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, arm, mips, spu,
1419 xcore, msp430, ptx, cbe, and cpp (default=all)
1420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
1424 --enable-libffi Check for the presence of libffi (default is NO)
1425 --enable-ltdl-install install libltdl
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-optimize-option Select the compiler options to use for optimized
1432 --with-extra-options Specify additional options to compile LLVM with
1433 --with-extra-ld-options Specify additional options to link LLVM with
1434 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 --with-clang-srcdir Directory to the out-of-tree Clang source
1437 --with-clang-resource-dir
1438 Relative directory from the Clang binary for
1440 --with-c-include-dirs Colon separated list of directories clang will
1442 --with-cxx-include-root Directory with the libstdc++ headers.
1443 --with-cxx-include-arch Architecture of the libstdc++ headers.
1444 --with-cxx-include-32bit-dir
1445 32 bit multilib dir.
1446 --with-cxx-include-64bit-dir
1447 64 bit multilib directory.
1448 --with-binutils-include Specify path to binutils/include/ containing
1449 plugin-api.h file for gold plugin.
1450 --with-bug-report-url Specify the URL where bug reports should be
1451 submitted (default=http://llvm.org/bugs/)
1452 --with-tclinclude directory where tcl headers are
1453 --with-udis86=<path> Use udis86 external x86 disassembler library
1454 --with-oprofile=<prefix>
1455 Tell OProfile >= 0.9.4 how to symbolize JIT output
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to <llvmbugs@cs.uiuc.edu>.
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" || continue
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1499 .) # We are building in place.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1532 llvm configure 3.1svn
1533 generated by GNU Autoconf 2.60
1535 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1536 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1540 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1544 cat >config.log <<_ACEOF
1545 This file contains any messages produced by compilers while
1546 running configure, to aid debugging if configure makes a mistake.
1548 It was created by llvm $as_me 3.1svn, which was
1549 generated by GNU Autoconf 2.60. Invocation command line was
1561 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1571 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1572 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1573 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1574 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1575 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1576 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 test -z "$as_dir" && as_dir=.
1585 echo "PATH: $as_dir"
1601 # Keep a trace of the command line.
1602 # Strip out --no-create and --no-recursion so they do not pile up.
1603 # Strip out --silent because we don't want to record it for future runs.
1604 # Also quote any args containing shell meta-characters.
1605 # Make two passes to allow for proper duplicate-argument suppression.
1609 ac_must_keep_next=false
1615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617 | -silent | --silent | --silen | --sile | --sil)
1620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1626 if test $ac_must_keep_next = true; then
1627 ac_must_keep_next=false # Got value, back to normal.
1630 *=* | --config-cache | -C | -disable-* | --disable-* \
1631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633 | -with-* | --with-* | -without-* | --without-* | --x)
1634 case "$ac_configure_args0 " in
1635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 -* ) ac_must_keep_next=true ;;
1641 ac_configure_args="$ac_configure_args '$ac_arg'"
1646 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649 # When interrupted or exit'd, cleanup temporary files, and complete
1650 # config.log. We remove comments because anyway the quotes in there
1651 # would cause problems or look ugly.
1652 # WARNING: Use '\'' to represent an apostrophe within the trap.
1653 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1654 trap 'exit_status=$?
1655 # Save into config.log some information that might help in debugging.
1660 ## ---------------- ##
1661 ## Cache variables. ##
1662 ## ---------------- ##
1665 # The following way of writing the cache mishandles newlines in values,
1667 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668 eval ac_val=\$$ac_var
1672 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676 _ | IFS | as_nl) ;; #(
1677 *) $as_unset $ac_var ;;
1682 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683 *${as_nl}ac_space=\ *)
1685 "s/'\''/'\''\\\\'\'''\''/g;
1686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1697 ## ----------------- ##
1698 ## Output variables. ##
1699 ## ----------------- ##
1702 for ac_var in $ac_subst_vars
1704 eval ac_val=\$$ac_var
1706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708 echo "$ac_var='\''$ac_val'\''"
1712 if test -n "$ac_subst_files"; then
1714 ## ------------------- ##
1715 ## File substitutions. ##
1716 ## ------------------- ##
1719 for ac_var in $ac_subst_files
1721 eval ac_val=\$$ac_var
1723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 echo "$ac_var='\''$ac_val'\''"
1730 if test -s confdefs.h; then
1740 test "$ac_signal" != 0 &&
1741 echo "$as_me: caught signal $ac_signal"
1742 echo "$as_me: exit $exit_status"
1744 rm -f core *.core core.conftest.* &&
1745 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748 for ac_signal in 1 2 13 15; do
1749 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1753 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1754 rm -f -r conftest* confdefs.h
1756 # Predefined preprocessor variables.
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_NAME "$PACKAGE_NAME"
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_STRING "$PACKAGE_STRING"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 # Let the site file select an alternate cache file if it wants to.
1784 # Prefer explicitly selected file to automatically selected ones.
1785 if test -n "$CONFIG_SITE"; then
1786 set x "$CONFIG_SITE"
1787 elif test "x$prefix" != xNONE; then
1788 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 set x "$ac_default_prefix/share/config.site" \
1791 "$ac_default_prefix/etc/config.site"
1796 if test -r "$ac_site_file"; then
1797 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798 echo "$as_me: loading site script $ac_site_file" >&6;}
1799 sed 's/^/| /' "$ac_site_file" >&5
1804 if test -r "$cache_file"; then
1805 # Some versions of bash will fail to source /dev/null (special
1806 # files actually), so we avoid doing that.
1807 if test -f "$cache_file"; then
1808 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809 echo "$as_me: loading cache $cache_file" >&6;}
1811 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812 *) . "./$cache_file";;
1816 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817 echo "$as_me: creating cache $cache_file" >&6;}
1821 # Check that the precious variables saved in the cache have kept the same
1823 ac_cache_corrupted=false
1824 for ac_var in $ac_precious_vars; do
1825 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826 eval ac_new_set=\$ac_env_${ac_var}_set
1827 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828 eval ac_new_val=\$ac_env_${ac_var}_value
1829 case $ac_old_set,$ac_new_set in
1831 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1833 ac_cache_corrupted=: ;;
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1840 if test "x$ac_old_val" != "x$ac_new_val"; then
1841 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1844 echo "$as_me: former value: $ac_old_val" >&2;}
1845 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1846 echo "$as_me: current value: $ac_new_val" >&2;}
1847 ac_cache_corrupted=:
1850 # Pass precious variables to config.status.
1851 if test "$ac_new_set" = set; then
1853 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1854 *) ac_arg=$ac_var=$ac_new_val ;;
1856 case " $ac_configure_args " in
1857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1858 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1862 if $ac_cache_corrupted; then
1863 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867 { (exit 1); exit 1; }; }
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1911 for ac_dir in autoconf "$srcdir"/autoconf; do
1912 if test -f "$ac_dir/install-sh"; then
1914 ac_install_sh="$ac_aux_dir/install-sh -c"
1916 elif test -f "$ac_dir/install.sh"; then
1918 ac_install_sh="$ac_aux_dir/install.sh -c"
1920 elif test -f "$ac_dir/shtool"; then
1922 ac_install_sh="$ac_aux_dir/shtool install -c"
1926 if test -z "$ac_aux_dir"; then
1927 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1928 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1929 { (exit 1); exit 1; }; }
1932 # These three variables are undocumented and unsupported,
1933 # and are intended to be withdrawn in a future Autoconf release.
1934 # They can cause serious problems if a builder's source tree is in a directory
1935 # whose full name contains unusual characters.
1936 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1937 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1938 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1942 if test ${srcdir} != "." ; then
1943 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1944 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1945 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1946 { (exit 1); exit 1; }; }
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955 if test -n "$ac_tool_prefix"; then
1956 for ac_prog in clang llvm-gcc gcc
1958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 if test -n "$CC"; then
1966 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 if test -n "$CC"; then
1987 { echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6; }
1990 { echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6; }
1995 test -n "$CC" && break
1998 if test -z "$CC"; then
2000 for ac_prog in clang llvm-gcc gcc
2002 # Extract the first word of "$ac_prog", so it can be a program name with args.
2003 set dummy $ac_prog; ac_word=$2
2004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$ac_ct_CC"; then
2010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2019 ac_cv_prog_ac_ct_CC="$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6; }
2034 { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2039 test -n "$ac_ct_CC" && break
2042 if test "x$ac_ct_CC" = x; then
2045 case $cross_compiling:$ac_tool_warned in
2047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2048 whose name does not start with the host triplet. If you think this
2049 configuration is useful to you, please write to autoconf@gnu.org." >&5
2050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2051 whose name does not start with the host triplet. If you think this
2052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2053 ac_tool_warned=yes ;;
2060 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2061 See \`config.log' for more details." >&5
2062 echo "$as_me: error: no acceptable C compiler found in \$PATH
2063 See \`config.log' for more details." >&2;}
2064 { (exit 1); exit 1; }; }
2066 # Provide some information about the compiler.
2067 echo "$as_me:$LINENO: checking for C compiler version" >&5
2068 ac_compiler=`set X $ac_compile; echo $2`
2069 { (ac_try="$ac_compiler --version >&5"
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2075 (eval "$ac_compiler --version >&5") 2>&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079 { (ac_try="$ac_compiler -v >&5"
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085 (eval "$ac_compiler -v >&5") 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089 { (ac_try="$ac_compiler -V >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler -V >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2100 cat >conftest.$ac_ext <<_ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2115 ac_clean_files_save=$ac_clean_files
2116 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2117 # Try to create an executable without -o first, disregard a.out.
2118 # It will help us diagnose broken compilers, and finding out an intuition
2120 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2121 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2122 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124 # List of possible output files, starting from the most likely.
2125 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2126 # only as a last resort. b.out is created by i960 compilers.
2127 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2129 # The IRIX 6 linker writes into existing files which may not be
2130 # executable, retaining their permissions. Remove them first so a
2131 # subsequent execution test works.
2133 for ac_file in $ac_files
2136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142 if { (ac_try="$ac_link_default"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148 (eval "$ac_link_default") 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; then
2152 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2153 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2154 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2155 # so that the user can short-circuit this test for compilers unknown to
2157 for ac_file in $ac_files
2159 test -f "$ac_file" || continue
2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2164 # We found the default executable, but exeext='' is most
2168 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172 # We set ac_cv_exeext here because the later test for it is not
2173 # safe: cross compilers may not add the suffix if given an `-o'
2174 # argument, so we may need to know it at that point already.
2175 # Even if this section looks crufty: it has the advantage of
2182 test "$ac_cv_exeext" = no && ac_cv_exeext=
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2188 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: C compiler cannot create executables
2191 See \`config.log' for more details." >&2;}
2192 { (exit 77); exit 77; }; }
2195 ac_exeext=$ac_cv_exeext
2196 { echo "$as_me:$LINENO: result: $ac_file" >&5
2197 echo "${ECHO_T}$ac_file" >&6; }
2199 # Check that the compiler produces executables we can run. If not, either
2200 # the compiler is broken, or we cross compile.
2201 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2202 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2203 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2204 # If not cross compiling, check that we can run a simple program.
2205 if test "$cross_compiling" != yes; then
2206 if { ac_try='./$ac_file'
2207 { (case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212 (eval "$ac_try") 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2218 if test "$cross_compiling" = maybe; then
2221 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: cannot run C compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&2;}
2227 { (exit 1); exit 1; }; }
2231 { echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6; }
2234 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2235 ac_clean_files=$ac_clean_files_save
2236 # Check that the compiler produces executables we can run. If not, either
2237 # the compiler is broken, or we cross compile.
2238 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2239 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2240 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2241 echo "${ECHO_T}$cross_compiling" >&6; }
2243 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2244 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2245 if { (ac_try="$ac_link"
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2251 (eval "$ac_link") 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; then
2255 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2259 for ac_file in conftest.exe conftest conftest.*; do
2260 test -f "$ac_file" || continue
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2269 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2276 rm -f conftest$ac_cv_exeext
2277 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2278 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2280 rm -f conftest.$ac_ext
2281 EXEEXT=$ac_cv_exeext
2283 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2284 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2285 if test "${ac_cv_objext+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 cat >conftest.$ac_ext <<_ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2303 rm -f conftest.o conftest.obj
2304 if { (ac_try="$ac_compile"
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310 (eval "$ac_compile") 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
2314 for ac_file in conftest.o conftest.obj conftest.*; do
2315 test -f "$ac_file" || continue;
2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
2333 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2336 echo "${ECHO_T}$ac_cv_objext" >&6; }
2337 OBJEXT=$ac_cv_objext
2339 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2340 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2341 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 cat >conftest.$ac_ext <<_ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h. */
2362 rm -f conftest.$ac_objext
2363 if { (ac_try="$ac_compile"
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compile") 2>conftest.er1
2371 grep -v '^ *+' conftest.er1 >conftest.err
2373 cat conftest.err >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
2376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2377 { (case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_try") 2>&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_try") 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2413 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2414 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_cc_g+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 ac_save_c_werror_flag=$ac_c_werror_flag
2419 ac_c_werror_flag=yes
2422 cat >conftest.$ac_ext <<_ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2437 rm -f conftest.$ac_objext
2438 if { (ac_try="$ac_compile"
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444 (eval "$ac_compile") 2>conftest.er1
2446 grep -v '^ *+' conftest.er1 >conftest.err
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2452 { (case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_try") 2>&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest.$ac_objext'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_try") 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2477 cat >conftest.$ac_ext <<_ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2492 rm -f conftest.$ac_objext
2493 if { (ac_try="$ac_compile"
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2531 ac_c_werror_flag=$ac_save_c_werror_flag
2533 cat >conftest.$ac_ext <<_ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2548 rm -f conftest.$ac_objext
2549 if { (ac_try="$ac_compile"
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_compile") 2>conftest.er1
2557 grep -v '^ *+' conftest.er1 >conftest.err
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2563 { (case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_try") 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_try") 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 ac_c_werror_flag=$ac_save_c_werror_flag
2599 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2601 if test "$ac_test_CFLAGS" = set; then
2602 CFLAGS=$ac_save_CFLAGS
2603 elif test $ac_cv_prog_cc_g = yes; then
2604 if test "$GCC" = yes; then
2610 if test "$GCC" = yes; then
2616 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_cc_c89+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 ac_cv_prog_cc_c89=no
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2631 #include <sys/types.h>
2632 #include <sys/stat.h>
2633 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2634 struct buf { int x; };
2635 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636 static char *e (p, i)
2642 static char *f (char * (*g) (char **, int), char **p, ...)
2647 s = g (p, va_arg (v,int));
2652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2653 function prototypes and stuff, but not '\xHH' hex character constants.
2654 These don't provoke an error unfortunately, instead are silently treated
2655 as 'x'. The following induces an error, until -std is added to get
2656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2657 array size at least. It's necessary to write '\x00'==0 to get something
2658 that's true only with -std. */
2659 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662 inside strings and character constants. */
2664 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2680 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2683 CC="$ac_save_CC $ac_arg"
2684 rm -f conftest.$ac_objext
2685 if { (ac_try="$ac_compile"
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compile") 2>conftest.er1
2693 grep -v '^ *+' conftest.er1 >conftest.err
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2699 { (case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_try") 2>&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_try") 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 ac_cv_prog_cc_c89=$ac_arg
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2726 rm -f core conftest.err conftest.$ac_objext
2727 test "x$ac_cv_prog_cc_c89" != "xno" && break
2729 rm -f conftest.$ac_ext
2734 case "x$ac_cv_prog_cc_c89" in
2736 { echo "$as_me:$LINENO: result: none needed" >&5
2737 echo "${ECHO_T}none needed" >&6; } ;;
2739 { echo "$as_me:$LINENO: result: unsupported" >&5
2740 echo "${ECHO_T}unsupported" >&6; } ;;
2742 CC="$CC $ac_cv_prog_cc_c89"
2743 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 ac_cpp='$CXXCPP $CPPFLAGS'
2756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2759 if test -z "$CXX"; then
2760 if test -n "$CCC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 for ac_prog in clang++ llvm-g++ g++
2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_CXX+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 if test -n "$CXX"; then
2774 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 if test -n "$CXX"; then
2795 { echo "$as_me:$LINENO: result: $CXX" >&5
2796 echo "${ECHO_T}$CXX" >&6; }
2798 { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2803 test -n "$CXX" && break
2806 if test -z "$CXX"; then
2808 for ac_prog in clang++ llvm-g++ g++
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 if test -n "$ac_ct_CXX"; then
2818 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_ac_ct_CXX="$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2838 if test -n "$ac_ct_CXX"; then
2839 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2840 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2847 test -n "$ac_ct_CXX" && break
2850 if test "x$ac_ct_CXX" = x; then
2853 case $cross_compiling:$ac_tool_warned in
2855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet. If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&5
2858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859 whose name does not start with the host triplet. If you think this
2860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861 ac_tool_warned=yes ;;
2869 # Provide some information about the compiler.
2870 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2871 ac_compiler=`set X $ac_compile; echo $2`
2872 { (ac_try="$ac_compiler --version >&5"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compiler --version >&5") 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }
2882 { (ac_try="$ac_compiler -v >&5"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler -v >&5") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892 { (ac_try="$ac_compiler -V >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler -V >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2903 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2904 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2905 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2935 grep -v '^ *+' conftest.er1 >conftest.err
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } &&
2940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2941 { (case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_try") 2>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2972 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2974 GXX=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CXXFLAGS=${CXXFLAGS+set}
2976 ac_save_CXXFLAGS=$CXXFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2978 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cxx_g+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2983 ac_cxx_werror_flag=yes
2986 cat >conftest.$ac_ext <<_ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3016 { (case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_try") 2>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 ac_cv_prog_cxx_g=yes
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3097 cat >conftest.$ac_ext <<_ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 ac_cv_prog_cxx_g=yes
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3165 if test "$ac_test_CXXFLAGS" = set; then
3166 CXXFLAGS=$ac_save_CXXFLAGS
3167 elif test $ac_cv_prog_cxx_g = yes; then
3168 if test "$GXX" = yes; then
3174 if test "$GXX" = yes; then
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3193 # On Suns, sometimes $CPP names a directory.
3194 if test -n "$CPP" && test -d "$CPP"; then
3197 if test -z "$CPP"; then
3198 if test "${ac_cv_prog_CPP+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 # Double quotes because CPP needs to be expanded
3202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3205 for ac_c_preproc_warn_flag in '' yes
3207 # Use a header file that comes with gcc, so configuring glibc
3208 # with a fresh cross-compiler works.
3209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210 # <limits.h> exists even on freestanding compilers.
3211 # On the NeXT, cc -E runs the code through the compiler's parser,
3212 # not just through cpp. "Syntax error" is here to catch this case.
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3220 # include <limits.h>
3222 # include <assert.h>
3226 if { (ac_try="$ac_cpp conftest.$ac_ext"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3248 if test -z "$ac_cpp_err"; then
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 # Broken: fails on valid input.
3258 rm -f conftest.err conftest.$ac_ext
3260 # OK, works on sane cases. Now check whether nonexistent headers
3261 # can be detected and how.
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3268 #include <ac_nonexistent.h>
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292 if test -z "$ac_cpp_err"; then
3293 # Broken: success on invalid input.
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Passes both tests.
3304 rm -f conftest.err conftest.$ac_ext
3307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308 rm -f conftest.err conftest.$ac_ext
3309 if $ac_preproc_ok; then
3321 { echo "$as_me:$LINENO: result: $CPP" >&5
3322 echo "${ECHO_T}$CPP" >&6; }
3324 for ac_c_preproc_warn_flag in '' yes
3326 # Use a header file that comes with gcc, so configuring glibc
3327 # with a fresh cross-compiler works.
3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329 # <limits.h> exists even on freestanding compilers.
3330 # On the NeXT, cc -E runs the code through the compiler's parser,
3331 # not just through cpp. "Syntax error" is here to catch this case.
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3339 # include <limits.h>
3341 # include <assert.h>
3345 if { (ac_try="$ac_cpp conftest.$ac_ext"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } >/dev/null; then
3358 if test -s conftest.err; then
3359 ac_cpp_err=$ac_c_preproc_warn_flag
3360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3367 if test -z "$ac_cpp_err"; then
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3373 # Broken: fails on valid input.
3377 rm -f conftest.err conftest.$ac_ext
3379 # OK, works on sane cases. Now check whether nonexistent headers
3380 # can be detected and how.
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387 #include <ac_nonexistent.h>
3389 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 if test -z "$ac_cpp_err"; then
3412 # Broken: success on invalid input.
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Passes both tests.
3423 rm -f conftest.err conftest.$ac_ext
3426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427 rm -f conftest.err conftest.$ac_ext
3428 if $ac_preproc_ok; then
3431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&2;}
3435 { (exit 1); exit 1; }; }
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 if test -d ${srcdir}/projects/llvm-gcc ; then
3448 subdirs="$subdirs projects/llvm-gcc"
3452 if test -d ${srcdir}/projects/test-suite ; then
3453 subdirs="$subdirs projects/test-suite"
3457 if test -d ${srcdir}/projects/llvm-test ; then
3458 subdirs="$subdirs projects/llvm-test"
3462 if test -d ${srcdir}/projects/poolalloc ; then
3463 subdirs="$subdirs projects/poolalloc"
3467 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3468 subdirs="$subdirs projects/llvm-poolalloc"
3472 for i in `ls ${srcdir}/projects`
3474 if test -d ${srcdir}/projects/${i} ; then
3476 sample) subdirs="$subdirs projects/sample"
3478 privbracket) subdirs="$subdirs projects/privbracket"
3480 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3482 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3484 llvm-java) subdirs="$subdirs projects/llvm-java"
3486 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3488 safecode) subdirs="$subdirs projects/safecode"
3490 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3498 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3499 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3505 # Check whether --enable-polly was given.
3506 if test "${enable_polly+set}" = set; then
3507 enableval=$enable_polly;
3512 case "$enableval" in
3517 default) ENABLE_POLLY=1
3519 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3520 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3521 { (exit 1); exit 1; }; } ;;
3525 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3528 subdirs="$subdirs tools/polly"
3533 # Make sure we can run config.sub.
3534 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3535 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3536 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3537 { (exit 1); exit 1; }; }
3539 { echo "$as_me:$LINENO: checking build system type" >&5
3540 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3541 if test "${ac_cv_build+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 ac_build_alias=$build_alias
3545 test "x$ac_build_alias" = x &&
3546 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3547 test "x$ac_build_alias" = x &&
3548 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3549 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3550 { (exit 1); exit 1; }; }
3551 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3552 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3553 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3554 { (exit 1); exit 1; }; }
3557 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3558 echo "${ECHO_T}$ac_cv_build" >&6; }
3559 case $ac_cv_build in
3561 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3562 echo "$as_me: error: invalid value of canonical build" >&2;}
3563 { (exit 1); exit 1; }; };;
3566 ac_save_IFS=$IFS; IFS='-'
3572 # Remember, the first character of IFS is used to create $*,
3573 # except with old shells:
3576 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3579 { echo "$as_me:$LINENO: checking host system type" >&5
3580 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3581 if test "${ac_cv_host+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if test "x$host_alias" = x; then
3585 ac_cv_host=$ac_cv_build
3587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3588 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3589 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3590 { (exit 1); exit 1; }; }
3594 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3595 echo "${ECHO_T}$ac_cv_host" >&6; }
3598 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3599 echo "$as_me: error: invalid value of canonical host" >&2;}
3600 { (exit 1); exit 1; }; };;
3603 ac_save_IFS=$IFS; IFS='-'
3609 # Remember, the first character of IFS is used to create $*,
3610 # except with old shells:
3613 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3616 { echo "$as_me:$LINENO: checking target system type" >&5
3617 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3618 if test "${ac_cv_target+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 if test "x$target_alias" = x; then
3622 ac_cv_target=$ac_cv_host
3624 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3625 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3626 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3627 { (exit 1); exit 1; }; }
3631 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3632 echo "${ECHO_T}$ac_cv_target" >&6; }
3633 case $ac_cv_target in
3635 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3636 echo "$as_me: error: invalid value of canonical target" >&2;}
3637 { (exit 1); exit 1; }; };;
3639 target=$ac_cv_target
3640 ac_save_IFS=$IFS; IFS='-'
3646 # Remember, the first character of IFS is used to create $*,
3647 # except with old shells:
3650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3653 # The aliases save the names the user supplied, while $host etc.
3654 # will get canonicalized.
3655 test -n "$target_alias" &&
3656 test "$program_prefix$program_suffix$program_transform_name" = \
3658 program_prefix=${target_alias}-
3660 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3661 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3662 if test "${llvm_cv_os_type+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 llvm_cv_link_all_option="-Wl,--whole-archive"
3668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669 llvm_cv_os_type="AIX"
3670 llvm_cv_platform_type="Unix" ;;
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="IRIX"
3675 llvm_cv_platform_type="Unix" ;;
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="Cygwin"
3680 llvm_cv_platform_type="Unix" ;;
3682 llvm_cv_link_all_option="-Wl,-all_load"
3683 llvm_cv_no_link_all_option="-Wl,-noall_load"
3684 llvm_cv_os_type="Darwin"
3685 llvm_cv_platform_type="Unix" ;;
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Minix"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="FreeBSD"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="OpenBSD"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="NetBSD"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="DragonFly"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="HP-UX"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="Interix"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Linux"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,-z,allextract"
3728 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3729 llvm_cv_os_type="SunOS"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,-z,allextract"
3733 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3734 llvm_cv_os_type="AuroraUX"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="Win32"
3740 llvm_cv_platform_type="Win32" ;;
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="MingW"
3745 llvm_cv_platform_type="Win32" ;;
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Haiku"
3750 llvm_cv_platform_type="Unix" ;;
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Freestanding"
3755 llvm_cv_platform_type="Unix" ;;
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Freestanding"
3760 llvm_cv_platform_type="Unix" ;;
3762 llvm_cv_link_all_option=""
3763 llvm_cv_no_link_all_option=""
3764 llvm_cv_os_type="Unknown"
3765 llvm_cv_platform_type="Unknown" ;;
3768 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3769 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3771 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3772 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3773 if test "${llvm_cv_target_os_type+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 llvm_cv_target_os_type="AIX" ;;
3780 llvm_cv_target_os_type="IRIX" ;;
3782 llvm_cv_target_os_type="Cygwin" ;;
3784 llvm_cv_target_os_type="Darwin" ;;
3786 llvm_cv_target_os_type="Minix" ;;
3788 llvm_cv_target_os_type="FreeBSD" ;;
3790 llvm_cv_target_os_type="OpenBSD" ;;
3792 llvm_cv_target_os_type="NetBSD" ;;
3794 llvm_cv_target_os_type="DragonFly" ;;
3796 llvm_cv_target_os_type="HP-UX" ;;
3798 llvm_cv_target_os_type="Interix" ;;
3800 llvm_cv_target_os_type="Linux" ;;
3802 llvm_cv_target_os_type="SunOS" ;;
3804 llvm_cv_target_os_type="AuroraUX" ;;
3806 llvm_cv_target_os_type="Win32" ;;
3808 llvm_cv_target_os_type="MingW" ;;
3810 llvm_cv_target_os_type="Haiku" ;;
3812 llvm_cv_target_os_type="RTEMS" ;;
3814 llvm_cv_target_os_type="NativeClient" ;;
3816 llvm_cv_target_os_type="Freestanding" ;;
3818 llvm_cv_target_os_type="Unknown" ;;
3821 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3822 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3824 if test "$llvm_cv_os_type" = "Unknown" ; then
3825 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3826 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3827 { (exit 1); exit 1; }; }
3832 HOST_OS=$llvm_cv_os_type
3834 TARGET_OS=$llvm_cv_target_os_type
3837 LINKALL=$llvm_cv_link_all_option
3839 NOLINKALL=$llvm_cv_no_link_all_option
3842 case $llvm_cv_platform_type in
3845 cat >>confdefs.h <<\_ACEOF
3846 #define LLVM_ON_UNIX 1
3856 cat >>confdefs.h <<\_ACEOF
3857 #define LLVM_ON_WIN32 1
3867 { echo "$as_me:$LINENO: checking target architecture" >&5
3868 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3869 if test "${llvm_cv_target_arch+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 i?86-*) llvm_cv_target_arch="x86" ;;
3874 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3875 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3876 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3877 arm*-*) llvm_cv_target_arch="ARM" ;;
3878 mips-*) llvm_cv_target_arch="Mips" ;;
3879 xcore-*) llvm_cv_target_arch="XCore" ;;
3880 msp430-*) llvm_cv_target_arch="MSP430" ;;
3881 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3882 ptx-*) llvm_cv_target_arch="PTX" ;;
3883 *) llvm_cv_target_arch="Unknown" ;;
3886 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3887 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3889 if test "$llvm_cv_target_arch" = "Unknown" ; then
3890 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3891 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3894 # Determine the LLVM native architecture for the target
3895 case "$llvm_cv_target_arch" in
3896 x86) LLVM_NATIVE_ARCH="X86" ;;
3897 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3898 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3901 ARCH=$llvm_cv_target_arch
3906 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3907 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3908 if test "${ac_cv_path_GREP+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 # Extract the first word of "grep ggrep" to use in msg output
3912 if test -z "$GREP"; then
3913 set dummy grep ggrep; ac_prog_name=$2
3914 if test "${ac_cv_path_GREP+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 ac_path_GREP_found=false
3918 # Loop through the user's path and test for each of PROGNAME-LIST
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3923 test -z "$as_dir" && as_dir=.
3924 for ac_prog in grep ggrep; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3927 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3928 # Check for GNU ac_path_GREP and select it if it is found.
3929 # Check for GNU $ac_path_GREP
3930 case `"$ac_path_GREP" --version 2>&1` in
3932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3938 cat "conftest.in" "conftest.in" >"conftest.tmp"
3939 mv "conftest.tmp" "conftest.in"
3940 cp "conftest.in" "conftest.nl"
3941 echo 'GREP' >> "conftest.nl"
3942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3944 ac_count=`expr $ac_count + 1`
3945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3946 # Best one so far, save it but keep looking for a better one
3947 ac_cv_path_GREP="$ac_path_GREP"
3948 ac_path_GREP_max=$ac_count
3950 # 10*(2^10) chars as input seems more than enough
3951 test $ac_count -gt 10 && break
3953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3957 $ac_path_GREP_found && break 3
3967 GREP="$ac_cv_path_GREP"
3968 if test -z "$GREP"; then
3969 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3970 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3971 { (exit 1); exit 1; }; }
3975 ac_cv_path_GREP=$GREP
3980 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3981 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3982 GREP="$ac_cv_path_GREP"
3985 { echo "$as_me:$LINENO: checking for egrep" >&5
3986 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3987 if test "${ac_cv_path_EGREP+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3991 then ac_cv_path_EGREP="$GREP -E"
3993 # Extract the first word of "egrep" to use in msg output
3994 if test -z "$EGREP"; then
3995 set dummy egrep; ac_prog_name=$2
3996 if test "${ac_cv_path_EGREP+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 ac_path_EGREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in egrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4010 # Check for GNU ac_path_EGREP and select it if it is found.
4011 # Check for GNU $ac_path_EGREP
4012 case `"$ac_path_EGREP" --version 2>&1` in
4014 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 echo 'EGREP' >> "conftest.nl"
4024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 ac_count=`expr $ac_count + 1`
4027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_EGREP="$ac_path_EGREP"
4030 ac_path_EGREP_max=$ac_count
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4039 $ac_path_EGREP_found && break 3
4049 EGREP="$ac_cv_path_EGREP"
4050 if test -z "$EGREP"; then
4051 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053 { (exit 1); exit 1; }; }
4057 ac_cv_path_EGREP=$EGREP
4063 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4064 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4065 EGREP="$ac_cv_path_EGREP"
4068 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4069 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4070 if test "${ac_cv_header_stdc+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4092 rm -f conftest.$ac_objext
4093 if { (ac_try="$ac_compile"
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4101 grep -v '^ *+' conftest.er1 >conftest.err
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4107 { (case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_try") 2>&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; } &&
4116 { ac_try='test -s conftest.$ac_objext'
4117 { (case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122 (eval "$ac_try") 2>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 ac_cv_header_stdc=yes
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 ac_cv_header_stdc=no
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 if test $ac_cv_header_stdc = yes; then
4137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4148 $EGREP "memchr" >/dev/null 2>&1; then
4151 ac_cv_header_stdc=no
4157 if test $ac_cv_header_stdc = yes; then
4158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4159 cat >conftest.$ac_ext <<_ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "free" >/dev/null 2>&1; then
4172 ac_cv_header_stdc=no
4178 if test $ac_cv_header_stdc = yes; then
4179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4180 if test "$cross_compiling" = yes; then
4183 cat >conftest.$ac_ext <<_ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4191 #if ((' ' & 0x0FF) == 0x020)
4192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4195 # define ISLOWER(c) \
4196 (('a' <= (c) && (c) <= 'i') \
4197 || ('j' <= (c) && (c) <= 'r') \
4198 || ('s' <= (c) && (c) <= 'z'))
4199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4207 for (i = 0; i < 256; i++)
4208 if (XOR (islower (i), ISLOWER (i))
4209 || toupper (i) != TOUPPER (i))
4214 rm -f conftest$ac_exeext
4215 if { (ac_try="$ac_link"
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_link") 2>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4241 ac_cv_header_stdc=no
4243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4249 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4250 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4251 if test $ac_cv_header_stdc = yes; then
4253 cat >>confdefs.h <<\_ACEOF
4254 #define STDC_HEADERS 1
4259 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4270 inttypes.h stdint.h unistd.h
4272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 $ac_includes_default
4286 #include <$ac_header>
4288 rm -f conftest.$ac_objext
4289 if { (ac_try="$ac_compile"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_compile") 2>conftest.er1
4297 grep -v '^ *+' conftest.er1 >conftest.err
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4303 { (case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_try") 2>&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; } &&
4312 { ac_try='test -s conftest.$ac_objext'
4313 { (case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_try") 2>&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4322 eval "$as_ac_Header=yes"
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4327 eval "$as_ac_Header=no"
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 ac_res=`eval echo '${'$as_ac_Header'}'`
4333 { echo "$as_me:$LINENO: result: $ac_res" >&5
4334 echo "${ECHO_T}$ac_res" >&6; }
4335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4336 cat >>confdefs.h <<_ACEOF
4337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4345 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4346 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4347 if test "${ac_cv_c_bigendian+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 # See if sys/param.h defines the BYTE_ORDER macro.
4351 cat >conftest.$ac_ext <<_ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <sys/types.h>
4358 #include <sys/param.h>
4363 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4371 rm -f conftest.$ac_objext
4372 if { (ac_try="$ac_compile"
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_compile") 2>conftest.er1
4380 grep -v '^ *+' conftest.er1 >conftest.err
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4386 { (case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_try") 2>&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; } &&
4395 { ac_try='test -s conftest.$ac_objext'
4396 { (case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_try") 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4405 # It does; now see whether it defined to BIG_ENDIAN or not.
4406 cat >conftest.$ac_ext <<_ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <sys/types.h>
4413 #include <sys/param.h>
4418 #if BYTE_ORDER != BIG_ENDIAN
4426 rm -f conftest.$ac_objext
4427 if { (ac_try="$ac_compile"
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_compile") 2>conftest.er1
4435 grep -v '^ *+' conftest.er1 >conftest.err
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4441 { (case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_try") 2>&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_try") 2>&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_cv_c_bigendian=yes
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 ac_cv_c_bigendian=no
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 # It does not; compile a test program.
4474 if test "$cross_compiling" = yes; then
4475 # try to guess the endianness by grepping values into an object file
4476 ac_cv_c_bigendian=unknown
4477 cat >conftest.$ac_ext <<_ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4484 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4485 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4486 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4487 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4488 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4492 _ascii (); _ebcdic ();
4497 rm -f conftest.$ac_objext
4498 if { (ac_try="$ac_compile"
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_compile") 2>conftest.er1
4506 grep -v '^ *+' conftest.er1 >conftest.err
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4512 { (case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_try") 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; } &&
4521 { ac_try='test -s conftest.$ac_objext'
4522 { (case "(($ac_try" in
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_try") 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4532 ac_cv_c_bigendian=yes
4534 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4535 if test "$ac_cv_c_bigendian" = unknown; then
4536 ac_cv_c_bigendian=no
4538 # finding both strings is unlikely to happen, but who knows?
4539 ac_cv_c_bigendian=unknown
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 cat >conftest.$ac_ext <<_ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 $ac_includes_default
4562 /* Are we little or big endian? From Harbison&Steele. */
4566 char c[sizeof (long int)];
4569 return u.c[sizeof (long int) - 1] == 1;
4575 rm -f conftest$ac_exeext
4576 if { (ac_try="$ac_link"
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_link") 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4586 { (case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_try") 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4595 ac_cv_c_bigendian=no
4597 echo "$as_me: program exited with status $ac_status" >&5
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4602 ac_cv_c_bigendian=yes
4604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4613 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4614 case $ac_cv_c_bigendian in
4622 { { echo "$as_me:$LINENO: error: unknown endianness
4623 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4624 echo "$as_me: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4626 { (exit 1); exit 1; }; } ;;
4630 if test "$cross_compiling" = yes; then
4631 LLVM_CROSS_COMPILING=1
4634 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4635 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4636 if test "${ac_cv_build_exeext+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4640 ac_cv_build_exeext=.exe
4642 ac_build_prefix=${build_alias}-
4644 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4645 set dummy ${ac_build_prefix}gcc; ac_word=$2
4646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 if test -n "$BUILD_CC"; then
4652 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 BUILD_CC=$ac_cv_prog_BUILD_CC
4672 if test -n "$BUILD_CC"; then
4673 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4674 echo "${ECHO_T}$BUILD_CC" >&6; }
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4681 if test -z "$BUILD_CC"; then
4682 # Extract the first word of "gcc", so it can be a program name with args.
4683 set dummy gcc; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 if test -n "$BUILD_CC"; then
4690 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_BUILD_CC="gcc"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 BUILD_CC=$ac_cv_prog_BUILD_CC
4710 if test -n "$BUILD_CC"; then
4711 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4712 echo "${ECHO_T}$BUILD_CC" >&6; }
4714 { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4719 if test -z "$BUILD_CC"; then
4720 # Extract the first word of "cc", so it can be a program name with args.
4721 set dummy cc; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 if test -n "$BUILD_CC"; then
4728 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4739 ac_prog_rejected=yes
4742 ac_cv_prog_BUILD_CC="cc"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 if test $ac_prog_rejected = yes; then
4751 # We found a bogon in the path, so make sure we never use it.
4752 set dummy $ac_cv_prog_BUILD_CC
4754 if test $# != 0; then
4755 # We chose a different compiler from the bogus one.
4756 # However, it has the same basename, so the bogon will be chosen
4757 # first if we set BUILD_CC to just the basename; use the full file name.
4759 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4764 BUILD_CC=$ac_cv_prog_BUILD_CC
4765 if test -n "$BUILD_CC"; then
4766 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4767 echo "${ECHO_T}$BUILD_CC" >&6; }
4769 { echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6; }
4776 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4777 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4778 { (exit 1); exit 1; }; }
4779 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4781 echo 'int main () { return 0; }' > conftest.$ac_ext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4784 (eval $ac_build_link) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; then
4788 for file in conftest.*; do
4790 *.c | *.o | *.obj | *.dSYM) ;;
4791 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4795 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4796 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4797 { (exit 1); exit 1; }; }
4800 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4805 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4806 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4807 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4808 ac_build_exeext=$BUILD_EXEEXT
4810 ac_build_prefix=${build_alias}-
4811 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4812 set dummy ${ac_build_prefix}g++; ac_word=$2
4813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4815 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test -n "$BUILD_CXX"; then
4819 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4839 if test -n "$BUILD_CXX"; then
4840 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4841 echo "${ECHO_T}$BUILD_CXX" >&6; }
4843 { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4848 if test -z "$BUILD_CXX"; then
4849 # Extract the first word of "g++", so it can be a program name with args.
4850 set dummy g++; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 if test -n "$BUILD_CXX"; then
4857 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_BUILD_CXX="g++"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4877 if test -n "$BUILD_CXX"; then
4878 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4879 echo "${ECHO_T}$BUILD_CXX" >&6; }
4881 { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4886 if test -z "$BUILD_CXX"; then
4887 # Extract the first word of "c++", so it can be a program name with args.
4888 set dummy c++; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 if test -n "$BUILD_CXX"; then
4895 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4906 ac_prog_rejected=yes
4909 ac_cv_prog_BUILD_CXX="c++"
4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 if test $ac_prog_rejected = yes; then
4918 # We found a bogon in the path, so make sure we never use it.
4919 set dummy $ac_cv_prog_BUILD_CXX
4921 if test $# != 0; then
4922 # We chose a different compiler from the bogus one.
4923 # However, it has the same basename, so the bogon will be chosen
4924 # first if we set BUILD_CXX to just the basename; use the full file name.
4926 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4931 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4932 if test -n "$BUILD_CXX"; then
4933 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4934 echo "${ECHO_T}$BUILD_CXX" >&6; }
4936 { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4944 LLVM_CROSS_COMPILING=0
4948 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4959 # Check whether --enable-optimized was given.
4960 if test "${enable_optimized+set}" = set; then
4961 enableval=$enable_optimized;
4966 if test ${enableval} = "no" ; then
4970 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4974 # Check whether --enable-profiling was given.
4975 if test "${enable_profiling+set}" = set; then
4976 enableval=$enable_profiling;
4981 if test ${enableval} = "no" ; then
4985 ENABLE_PROFILING=ENABLE_PROFILING=1
4989 # Check whether --enable-assertions was given.
4990 if test "${enable_assertions+set}" = set; then
4991 enableval=$enable_assertions;
4996 if test ${enableval} = "yes" ; then
5000 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5004 # Check whether --enable-expensive-checks was given.
5005 if test "${enable_expensive_checks+set}" = set; then
5006 enableval=$enable_expensive_checks;
5011 if test ${enableval} = "yes" ; then
5012 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5014 EXPENSIVE_CHECKS=yes
5017 ENABLE_EXPENSIVE_CHECKS=
5023 # Check whether --enable-debug-runtime was given.
5024 if test "${enable_debug_runtime+set}" = set; then
5025 enableval=$enable_debug_runtime;
5030 if test ${enableval} = "no" ; then
5034 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5038 # Check whether --enable-debug-symbols was given.
5039 if test "${enable_debug_symbols+set}" = set; then
5040 enableval=$enable_debug_symbols;
5045 if test ${enableval} = "no" ; then
5049 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5053 # Check whether --enable-jit was given.
5054 if test "${enable_jit+set}" = set; then
5055 enableval=$enable_jit;
5060 if test ${enableval} = "no"
5065 case "$llvm_cv_target_arch" in
5066 x86) TARGET_HAS_JIT=1
5068 Sparc) TARGET_HAS_JIT=0
5070 PowerPC) TARGET_HAS_JIT=1
5072 x86_64) TARGET_HAS_JIT=1
5074 ARM) TARGET_HAS_JIT=1
5076 Mips) TARGET_HAS_JIT=1
5078 XCore) TARGET_HAS_JIT=0
5080 MSP430) TARGET_HAS_JIT=0
5082 MBlaze) TARGET_HAS_JIT=0
5084 PTX) TARGET_HAS_JIT=0
5091 # Check whether --enable-docs was given.
5092 if test "${enable_docs+set}" = set; then
5093 enableval=$enable_docs;
5098 case "$enableval" in
5103 default) ENABLE_DOCS=1
5105 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5106 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5107 { (exit 1); exit 1; }; } ;;
5110 # Check whether --enable-doxygen was given.
5111 if test "${enable_doxygen+set}" = set; then
5112 enableval=$enable_doxygen;
5117 case "$enableval" in
5118 yes) ENABLE_DOXYGEN=1
5120 no) ENABLE_DOXYGEN=0
5122 default) ENABLE_DOXYGEN=0
5124 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5125 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5126 { (exit 1); exit 1; }; } ;;
5129 # Check whether --enable-threads was given.
5130 if test "${enable_threads+set}" = set; then
5131 enableval=$enable_threads;
5136 case "$enableval" in
5137 yes) ENABLE_THREADS=1
5139 no) ENABLE_THREADS=0
5141 default) ENABLE_THREADS=1
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5148 cat >>confdefs.h <<_ACEOF
5149 #define ENABLE_THREADS $ENABLE_THREADS
5153 # Check whether --enable-pthreads was given.
5154 if test "${enable_pthreads+set}" = set; then
5155 enableval=$enable_pthreads;
5160 case "$enableval" in
5161 yes) ENABLE_PTHREADS=1
5163 no) ENABLE_PTHREADS=0
5165 default) ENABLE_PTHREADS=1
5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
5172 # Check whether --enable-pic was given.
5173 if test "${enable_pic+set}" = set; then
5174 enableval=$enable_pic;
5179 case "$enableval" in
5184 default) ENABLE_PIC=1
5186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5191 cat >>confdefs.h <<_ACEOF
5192 #define ENABLE_PIC $ENABLE_PIC
5196 # Check whether --enable-shared was given.
5197 if test "${enable_shared+set}" = set; then
5198 enableval=$enable_shared;
5203 case "$enableval" in
5204 yes) ENABLE_SHARED=1
5208 default) ENABLE_SHARED=0
5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5211 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5215 # Check whether --enable-embed-stdcxx was given.
5216 if test "${enable_embed_stdcxx+set}" = set; then
5217 enableval=$enable_embed_stdcxx;
5222 case "$enableval" in
5223 yes) ENABLE_EMBED_STDCXX=1
5225 no) ENABLE_EMBED_STDCXX=0
5227 default) ENABLE_EMBED_STDCXX=0
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 # Check whether --enable-timestamps was given.
5235 if test "${enable_timestamps+set}" = set; then
5236 enableval=$enable_timestamps;
5241 case "$enableval" in
5242 yes) ENABLE_TIMESTAMPS=1
5244 no) ENABLE_TIMESTAMPS=0
5246 default) ENABLE_TIMESTAMPS=1
5248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5249 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5250 { (exit 1); exit 1; }; } ;;
5253 cat >>confdefs.h <<_ACEOF
5254 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5259 # Check whether --enable-targets was given.
5260 if test "${enable_targets+set}" = set; then
5261 enableval=$enable_targets;
5266 if test "$enableval" = host-only ; then
5269 case "$enableval" in
5270 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5271 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5273 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5274 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5275 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5276 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5277 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5278 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5279 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5280 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5281 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5282 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5283 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5284 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5285 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5286 host) case "$llvm_cv_target_arch" in
5287 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5288 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5289 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5290 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5291 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5292 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5293 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5294 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5295 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5296 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5297 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5298 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5299 echo "$as_me: error: Can not set target to build" >&2;}
5300 { (exit 1); exit 1; }; } ;;
5302 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5303 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5304 { (exit 1); exit 1; }; } ;;
5309 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5312 # Determine whether we are building LLVM support for the native architecture.
5313 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5314 for a_target in $TARGETS_TO_BUILD; do
5315 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5317 cat >>confdefs.h <<_ACEOF
5318 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5321 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5322 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5323 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5324 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5325 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5326 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5329 cat >>confdefs.h <<_ACEOF
5330 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5334 cat >>confdefs.h <<_ACEOF
5335 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5339 cat >>confdefs.h <<_ACEOF
5340 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5344 cat >>confdefs.h <<_ACEOF
5345 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5348 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5358 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5359 # target feature def files.
5360 LLVM_ENUM_TARGETS=""
5361 LLVM_ENUM_ASM_PRINTERS=""
5362 LLVM_ENUM_ASM_PARSERS=""
5363 LLVM_ENUM_DISASSEMBLERS=""
5364 for target_to_build in $TARGETS_TO_BUILD; do
5365 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5366 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5367 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5369 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5370 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5372 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5373 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5381 # Check whether --enable-cbe-printf-a was given.
5382 if test "${enable_cbe_printf_a+set}" = set; then
5383 enableval=$enable_cbe_printf_a;
5388 case "$enableval" in
5389 yes) ENABLE_CBE_PRINTF_A=1
5391 no) ENABLE_CBE_PRINTF_A=0
5393 default) ENABLE_CBE_PRINTF_A=1
5395 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5396 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5397 { (exit 1); exit 1; }; } ;;
5400 cat >>confdefs.h <<_ACEOF
5401 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5406 # Check whether --with-optimize-option was given.
5407 if test "${with_optimize_option+set}" = set; then
5408 withval=$with_optimize_option;
5413 { echo "$as_me:$LINENO: checking optimization flags" >&5
5414 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5417 case "$llvm_cv_os_type" in
5418 FreeBSD) optimize_option=-O2 ;;
5419 MingW) optimize_option=-O2 ;;
5420 *) optimize_option=-O3 ;;
5422 *) optimize_option="$withval" ;;
5424 OPTIMIZE_OPTION=$optimize_option
5426 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5427 echo "${ECHO_T}$optimize_option" >&6; }
5430 # Check whether --with-extra-options was given.
5431 if test "${with_extra_options+set}" = set; then
5432 withval=$with_extra_options;
5438 default) EXTRA_OPTIONS= ;;
5439 *) EXTRA_OPTIONS=$withval ;;
5441 EXTRA_OPTIONS=$EXTRA_OPTIONS
5445 # Check whether --with-extra-ld-options was given.
5446 if test "${with_extra_ld_options+set}" = set; then
5447 withval=$with_extra_ld_options;
5453 default) EXTRA_LD_OPTIONS= ;;
5454 *) EXTRA_LD_OPTIONS=$withval ;;
5456 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5459 # Check whether --enable-bindings was given.
5460 if test "${enable_bindings+set}" = set; then
5461 enableval=$enable_bindings;
5466 BINDINGS_TO_BUILD=""
5467 case "$enableval" in
5468 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5469 all ) BINDINGS_TO_BUILD="ocaml" ;;
5470 none | no) BINDINGS_TO_BUILD="" ;;
5471 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5472 case "$a_binding" in
5473 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5474 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5475 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5483 # Check whether --with-ocaml-libdir was given.
5484 if test "${with_ocaml_libdir+set}" = set; then
5485 withval=$with_ocaml_libdir;
5491 auto) with_ocaml_libdir="$withval" ;;
5492 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5493 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5494 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5499 # Check whether --with-clang-srcdir was given.
5500 if test "${with_clang_srcdir+set}" = set; then
5501 withval=$with_clang_srcdir;
5507 -) clang_src_root="" ;;
5508 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5509 *) clang_src_root="$ac_pwd/$withval" ;;
5511 CLANG_SRC_ROOT=$clang_src_root
5515 # Check whether --with-clang-resource-dir was given.
5516 if test "${with_clang_resource_dir+set}" = set; then
5517 withval=$with_clang_resource_dir;
5523 cat >>confdefs.h <<_ACEOF
5524 #define CLANG_RESOURCE_DIR "$withval"
5529 # Check whether --with-c-include-dirs was given.
5530 if test "${with_c_include_dirs+set}" = set; then
5531 withval=$with_c_include_dirs;
5537 cat >>confdefs.h <<_ACEOF
5538 #define C_INCLUDE_DIRS "$withval"
5543 # Check whether --with-cxx-include-root was given.
5544 if test "${with_cxx_include_root+set}" = set; then
5545 withval=$with_cxx_include_root;
5551 cat >>confdefs.h <<_ACEOF
5552 #define CXX_INCLUDE_ROOT "$withval"
5557 # Check whether --with-cxx-include-arch was given.
5558 if test "${with_cxx_include_arch+set}" = set; then
5559 withval=$with_cxx_include_arch;
5565 cat >>confdefs.h <<_ACEOF
5566 #define CXX_INCLUDE_ARCH "$withval"
5571 # Check whether --with-cxx-include-32bit-dir was given.
5572 if test "${with_cxx_include_32bit_dir+set}" = set; then
5573 withval=$with_cxx_include_32bit_dir;
5579 cat >>confdefs.h <<_ACEOF
5580 #define CXX_INCLUDE_32BIT_DIR "$withval"
5585 # Check whether --with-cxx-include-64bit-dir was given.
5586 if test "${with_cxx_include_64bit_dir+set}" = set; then
5587 withval=$with_cxx_include_64bit_dir;
5593 cat >>confdefs.h <<_ACEOF
5594 #define CXX_INCLUDE_64BIT_DIR "$withval"
5599 # Check whether --with-binutils-include was given.
5600 if test "${with_binutils_include+set}" = set; then
5601 withval=$with_binutils_include;
5607 default) WITH_BINUTILS_INCDIR=default ;;
5608 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5609 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5610 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5611 { (exit 1); exit 1; }; } ;;
5613 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5614 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5616 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5617 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5618 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5619 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5620 { (exit 1); exit 1; }; };
5625 # Check whether --with-bug-report-url was given.
5626 if test "${with_bug_report_url+set}" = set; then
5627 withval=$with_bug_report_url;
5629 withval="http://llvm.org/bugs/"
5633 cat >>confdefs.h <<_ACEOF
5634 #define BUG_REPORT_URL "$withval"
5638 # Check whether --enable-libffi was given.
5639 if test "${enable_libffi+set}" = set; then
5640 enableval=$enable_libffi; case "$enableval" in
5641 yes) llvm_cv_enable_libffi="yes" ;;
5642 no) llvm_cv_enable_libffi="no" ;;
5643 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5644 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5645 { (exit 1); exit 1; }; } ;;
5648 llvm_cv_enable_libffi=no
5653 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5654 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5655 if test "${lt_cv_path_NM+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 if test -n "$NM"; then
5659 # Let the user override the test.
5662 lt_nm_to_check="${ac_tool_prefix}nm"
5663 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5664 lt_nm_to_check="$lt_nm_to_check nm"
5666 for lt_tmp_nm in $lt_nm_to_check; do
5667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5668 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5670 test -z "$ac_dir" && ac_dir=.
5671 tmp_nm="$ac_dir/$lt_tmp_nm"
5672 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5673 # Check to see if the nm accepts a BSD-compat flag.
5674 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5675 # nm: unknown option "B" ignored
5676 # Tru64's nm complains that /dev/null is an invalid object file
5677 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5678 */dev/null* | *'Invalid file or object type'*)
5679 lt_cv_path_NM="$tmp_nm -B"
5683 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5685 lt_cv_path_NM="$tmp_nm -p"
5689 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5690 continue # so that we can try to find one that supports BSD flags
5699 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5702 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5703 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5708 { echo "$as_me:$LINENO: checking for GNU make" >&5
5709 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5710 if test "${llvm_cv_gnu_make_command+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 llvm_cv_gnu_make_command=''
5714 for a in "$MAKE" make gmake gnumake ; do
5715 if test -z "$a" ; then continue ; fi ;
5716 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5718 llvm_cv_gnu_make_command=$a ;
5723 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5724 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5725 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5729 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5730 echo "${ECHO_T}\"Not found\"" >&6; };
5734 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5735 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5737 if test "$LN_S" = "ln -s"; then
5738 { echo "$as_me:$LINENO: result: yes" >&5
5739 echo "${ECHO_T}yes" >&6; }
5741 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5742 echo "${ECHO_T}no, using $LN_S" >&6; }
5745 # Extract the first word of "cmp", so it can be a program name with args.
5746 set dummy cmp; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_path_CMP+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5777 if test -n "$CMP"; then
5778 { echo "$as_me:$LINENO: result: $CMP" >&5
5779 echo "${ECHO_T}$CMP" >&6; }
5781 { echo "$as_me:$LINENO: result: no" >&5
5782 echo "${ECHO_T}no" >&6; }
5786 # Extract the first word of "cp", so it can be a program name with args.
5787 set dummy cp; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_path_CP+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5805 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5818 if test -n "$CP"; then
5819 { echo "$as_me:$LINENO: result: $CP" >&5
5820 echo "${ECHO_T}$CP" >&6; }
5822 { echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6; }
5827 # Extract the first word of "date", so it can be a program name with args.
5828 set dummy date; ac_word=$2
5829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831 if test "${ac_cv_path_DATE+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5858 DATE=$ac_cv_path_DATE
5859 if test -n "$DATE"; then
5860 { echo "$as_me:$LINENO: result: $DATE" >&5
5861 echo "${ECHO_T}$DATE" >&6; }
5863 { echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6; }
5868 # Extract the first word of "find", so it can be a program name with args.
5869 set dummy find; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_path_FIND+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5887 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5899 FIND=$ac_cv_path_FIND
5900 if test -n "$FIND"; then
5901 { echo "$as_me:$LINENO: result: $FIND" >&5
5902 echo "${ECHO_T}$FIND" >&6; }
5904 { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5909 # Extract the first word of "grep", so it can be a program name with args.
5910 set dummy grep; ac_word=$2
5911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913 if test "${ac_cv_path_GREP+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5940 GREP=$ac_cv_path_GREP
5941 if test -n "$GREP"; then
5942 { echo "$as_me:$LINENO: result: $GREP" >&5
5943 echo "${ECHO_T}$GREP" >&6; }
5945 { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5950 # Extract the first word of "mkdir", so it can be a program name with args.
5951 set dummy mkdir; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_path_MKDIR+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5969 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5981 MKDIR=$ac_cv_path_MKDIR
5982 if test -n "$MKDIR"; then
5983 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5984 echo "${ECHO_T}$MKDIR" >&6; }
5986 { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5991 # Extract the first word of "mv", so it can be a program name with args.
5992 set dummy mv; ac_word=$2
5993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995 if test "${ac_cv_path_MV+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6023 if test -n "$MV"; then
6024 { echo "$as_me:$LINENO: result: $MV" >&5
6025 echo "${ECHO_T}$MV" >&6; }
6027 { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_RANLIB+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 if test -n "$RANLIB"; then
6041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 RANLIB=$ac_cv_prog_RANLIB
6061 if test -n "$RANLIB"; then
6062 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6063 echo "${ECHO_T}$RANLIB" >&6; }
6065 { echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6; }
6071 if test -z "$ac_cv_prog_RANLIB"; then
6072 ac_ct_RANLIB=$RANLIB
6073 # Extract the first word of "ranlib", so it can be a program name with args.
6074 set dummy ranlib; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 if test -n "$ac_ct_RANLIB"; then
6081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_ac_ct_RANLIB="ranlib"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6101 if test -n "$ac_ct_RANLIB"; then
6102 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6103 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6105 { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6109 if test "x$ac_ct_RANLIB" = x; then
6112 case $cross_compiling:$ac_tool_warned in
6114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6115 whose name does not start with the host triplet. If you think this
6116 configuration is useful to you, please write to autoconf@gnu.org." >&5
6117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6118 whose name does not start with the host triplet. If you think this
6119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6120 ac_tool_warned=yes ;;
6122 RANLIB=$ac_ct_RANLIB
6125 RANLIB="$ac_cv_prog_RANLIB"
6128 if test -n "$ac_tool_prefix"; then
6129 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}ar; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_prog_AR+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 if test -n "$AR"; then
6137 ac_cv_prog_AR="$AR" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_AR="${ac_tool_prefix}ar"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 if test -n "$AR"; then
6158 { echo "$as_me:$LINENO: result: $AR" >&5
6159 echo "${ECHO_T}$AR" >&6; }
6161 { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6167 if test -z "$ac_cv_prog_AR"; then
6169 # Extract the first word of "ar", so it can be a program name with args.
6170 set dummy ar; ac_word=$2
6171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 if test -n "$ac_ct_AR"; then
6177 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_ac_ct_AR="ar"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6197 if test -n "$ac_ct_AR"; then
6198 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6199 echo "${ECHO_T}$ac_ct_AR" >&6; }
6201 { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6205 if test "x$ac_ct_AR" = x; then
6208 case $cross_compiling:$ac_tool_warned in
6210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6211 whose name does not start with the host triplet. If you think this
6212 configuration is useful to you, please write to autoconf@gnu.org." >&5
6213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6214 whose name does not start with the host triplet. If you think this
6215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6216 ac_tool_warned=yes ;;
6224 # Extract the first word of "rm", so it can be a program name with args.
6225 set dummy rm; ac_word=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_path_RM+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6256 if test -n "$RM"; then
6257 { echo "$as_me:$LINENO: result: $RM" >&5
6258 echo "${ECHO_T}$RM" >&6; }
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6265 # Extract the first word of "sed", so it can be a program name with args.
6266 set dummy sed; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_path_SED+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6297 if test -n "$SED"; then
6298 { echo "$as_me:$LINENO: result: $SED" >&5
6299 echo "${ECHO_T}$SED" >&6; }
6301 { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6306 # Extract the first word of "tar", so it can be a program name with args.
6307 set dummy tar; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_path_TAR+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6338 if test -n "$TAR"; then
6339 { echo "$as_me:$LINENO: result: $TAR" >&5
6340 echo "${ECHO_T}$TAR" >&6; }
6342 { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6347 # Extract the first word of "pwd", so it can be a program name with args.
6348 set dummy pwd; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_path_BINPWD+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6378 BINPWD=$ac_cv_path_BINPWD
6379 if test -n "$BINPWD"; then
6380 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6381 echo "${ECHO_T}$BINPWD" >&6; }
6383 { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6389 # Extract the first word of "Graphviz", so it can be a program name with args.
6390 set dummy Graphviz; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6420 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6421 if test -n "$GRAPHVIZ"; then
6422 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6423 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6430 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_GRAPHVIZ 1
6436 if test "$llvm_cv_os_type" = "MingW" ; then
6437 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6440 cat >>confdefs.h <<_ACEOF
6441 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6445 # Extract the first word of "dot", so it can be a program name with args.
6446 set dummy dot; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_DOT+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6477 if test -n "$DOT"; then
6478 { echo "$as_me:$LINENO: result: $DOT" >&5
6479 echo "${ECHO_T}$DOT" >&6; }
6481 { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6486 if test "$DOT" != "echo dot" ; then
6488 cat >>confdefs.h <<\_ACEOF
6492 if test "$llvm_cv_os_type" = "MingW" ; then
6493 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6496 cat >>confdefs.h <<_ACEOF
6497 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6501 # Extract the first word of "fdp", so it can be a program name with args.
6502 set dummy fdp; ac_word=$2
6503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6505 if test "${ac_cv_path_FDP+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6533 if test -n "$FDP"; then
6534 { echo "$as_me:$LINENO: result: $FDP" >&5
6535 echo "${ECHO_T}$FDP" >&6; }
6537 { echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6; }
6542 if test "$FDP" != "echo fdp" ; then
6544 cat >>confdefs.h <<\_ACEOF
6548 if test "$llvm_cv_os_type" = "MingW" ; then
6549 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6552 cat >>confdefs.h <<_ACEOF
6553 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6557 # Extract the first word of "neato", so it can be a program name with args.
6558 set dummy neato; ac_word=$2
6559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561 if test "${ac_cv_path_NEATO+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6588 NEATO=$ac_cv_path_NEATO
6589 if test -n "$NEATO"; then
6590 { echo "$as_me:$LINENO: result: $NEATO" >&5
6591 echo "${ECHO_T}$NEATO" >&6; }
6593 { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6598 if test "$NEATO" != "echo neato" ; then
6600 cat >>confdefs.h <<\_ACEOF
6601 #define HAVE_NEATO 1
6604 if test "$llvm_cv_os_type" = "MingW" ; then
6605 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6608 cat >>confdefs.h <<_ACEOF
6609 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6613 # Extract the first word of "twopi", so it can be a program name with args.
6614 set dummy twopi; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_TWOPI+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6644 TWOPI=$ac_cv_path_TWOPI
6645 if test -n "$TWOPI"; then
6646 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6647 echo "${ECHO_T}$TWOPI" >&6; }
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6654 if test "$TWOPI" != "echo twopi" ; then
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_TWOPI 1
6660 if test "$llvm_cv_os_type" = "MingW" ; then
6661 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6664 cat >>confdefs.h <<_ACEOF
6665 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6669 # Extract the first word of "circo", so it can be a program name with args.
6670 set dummy circo; ac_word=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_path_CIRCO+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6700 CIRCO=$ac_cv_path_CIRCO
6701 if test -n "$CIRCO"; then
6702 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6703 echo "${ECHO_T}$CIRCO" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6710 if test "$CIRCO" != "echo circo" ; then
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_CIRCO 1
6716 if test "$llvm_cv_os_type" = "MingW" ; then
6717 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6720 cat >>confdefs.h <<_ACEOF
6721 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6725 for ac_prog in gv gsview32
6727 # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_GV+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 if test -n "$GV"; then
6759 { echo "$as_me:$LINENO: result: $GV" >&5
6760 echo "${ECHO_T}$GV" >&6; }
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6767 test -n "$GV" && break
6769 test -n "$GV" || GV="echo gv"
6771 if test "$GV" != "echo gv" ; then
6773 cat >>confdefs.h <<\_ACEOF
6777 if test "$llvm_cv_os_type" = "MingW" ; then
6778 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6781 cat >>confdefs.h <<_ACEOF
6782 #define LLVM_PATH_GV "$GV${EXEEXT}"
6786 # Extract the first word of "dotty", so it can be a program name with args.
6787 set dummy dotty; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_path_DOTTY+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6817 DOTTY=$ac_cv_path_DOTTY
6818 if test -n "$DOTTY"; then
6819 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6820 echo "${ECHO_T}$DOTTY" >&6; }
6822 { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6827 if test "$DOTTY" != "echo dotty" ; then
6829 cat >>confdefs.h <<\_ACEOF
6830 #define HAVE_DOTTY 1
6833 if test "$llvm_cv_os_type" = "MingW" ; then
6834 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6837 cat >>confdefs.h <<_ACEOF
6838 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6842 # Extract the first word of "xdot.py", so it can be a program name with args.
6843 set dummy xdot.py; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6873 XDOT_PY=$ac_cv_path_XDOT_PY
6874 if test -n "$XDOT_PY"; then
6875 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6876 echo "${ECHO_T}$XDOT_PY" >&6; }
6878 { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6883 if test "$XDOT_PY" != "echo xdot.py" ; then
6885 cat >>confdefs.h <<\_ACEOF
6886 #define HAVE_XDOT_PY 1
6889 if test "$llvm_cv_os_type" = "MingW" ; then
6890 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6893 cat >>confdefs.h <<_ACEOF
6894 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6900 # Extract the first word of "perl", so it can be a program name with args.
6901 set dummy perl; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_PERL+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6931 PERL=$ac_cv_path_PERL
6932 if test -n "$PERL"; then
6933 { echo "$as_me:$LINENO: result: $PERL" >&5
6934 echo "${ECHO_T}$PERL" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6941 if test "$PERL" != "none"; then
6942 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6943 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6944 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6945 { echo "$as_me:$LINENO: result: yes" >&5
6946 echo "${ECHO_T}yes" >&6; }
6949 { echo "$as_me:$LINENO: result: not found" >&5
6950 echo "${ECHO_T}not found" >&6; }
6955 if test x"$PERL" = xnone; then
6958 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6959 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6960 { (exit 1); exit 1; }; }
6966 # Find a good install program. We prefer a C program (faster),
6967 # so one script is as good as another. But avoid the broken or
6968 # incompatible versions:
6969 # SysV /etc/install, /usr/sbin/install
6970 # SunOS /usr/etc/install
6971 # IRIX /sbin/install
6973 # AmigaOS /C/install, which installs bootblocks on floppy discs
6974 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6977 # OS/2's system install, which has a completely different semantic
6978 # ./install, which can be erroneously created by make from ./install.sh.
6979 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6980 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6981 if test -z "$INSTALL"; then
6982 if test "${ac_cv_path_install+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 test -z "$as_dir" && as_dir=.
6990 # Account for people who put trailing slashes in PATH elements.
6992 ./ | .// | /cC/* | \
6993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6994 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6997 # OSF1 and SCO ODT 3.0 have their own names for install.
6998 # Don't use installbsd from OSF since it installs stuff as root
7000 for ac_prog in ginstall scoinst install; do
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7003 if test $ac_prog = install &&
7004 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7005 # AIX install. It has an incompatible calling convention.
7007 elif test $ac_prog = install &&
7008 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7009 # program-specific install script used by HP pwplus--don't use.
7012 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7025 if test "${ac_cv_path_install+set}" = set; then
7026 INSTALL=$ac_cv_path_install
7028 # As a last resort, use the slow shell script. Don't cache a
7029 # value for INSTALL within a source directory, because that will
7030 # break other packages using the cache if that directory is
7031 # removed, or if the value is a relative name.
7032 INSTALL=$ac_install_sh
7035 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7036 echo "${ECHO_T}$INSTALL" >&6; }
7038 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7039 # It thinks the first close brace ends the variable substitution.
7040 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7042 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7044 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7047 [\\/$]* | ?:[\\/]* ) ;;
7048 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7051 # Extract the first word of "bzip2", so it can be a program name with args.
7052 set dummy bzip2; ac_word=$2
7053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055 if test "${ac_cv_path_BZIP2+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 BZIP2=$ac_cv_path_BZIP2
7082 if test -n "$BZIP2"; then
7083 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7084 echo "${ECHO_T}$BZIP2" >&6; }
7086 { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7091 # Extract the first word of "cat", so it can be a program name with args.
7092 set dummy cat; ac_word=$2
7093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095 if test "${ac_cv_path_CAT+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 if test -n "$CAT"; then
7123 { echo "$as_me:$LINENO: result: $CAT" >&5
7124 echo "${ECHO_T}$CAT" >&6; }
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7131 # Extract the first word of "doxygen", so it can be a program name with args.
7132 set dummy doxygen; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 DOXYGEN=$ac_cv_path_DOXYGEN
7162 if test -n "$DOXYGEN"; then
7163 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7164 echo "${ECHO_T}$DOXYGEN" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7171 # Extract the first word of "groff", so it can be a program name with args.
7172 set dummy groff; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_GROFF+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 GROFF=$ac_cv_path_GROFF
7202 if test -n "$GROFF"; then
7203 { echo "$as_me:$LINENO: result: $GROFF" >&5
7204 echo "${ECHO_T}$GROFF" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7211 # Extract the first word of "gzip", so it can be a program name with args.
7212 set dummy gzip; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 GZIPBIN=$ac_cv_path_GZIPBIN
7242 if test -n "$GZIPBIN"; then
7243 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7244 echo "${ECHO_T}$GZIPBIN" >&6; }
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7251 # Extract the first word of "pod2html", so it can be a program name with args.
7252 set dummy pod2html; ac_word=$2
7253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255 if test "${ac_cv_path_POD2HTML+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 POD2HTML=$ac_cv_path_POD2HTML
7282 if test -n "$POD2HTML"; then
7283 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7284 echo "${ECHO_T}$POD2HTML" >&6; }
7286 { echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6; }
7291 # Extract the first word of "pod2man", so it can be a program name with args.
7292 set dummy pod2man; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_POD2MAN+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 POD2MAN=$ac_cv_path_POD2MAN
7322 if test -n "$POD2MAN"; then
7323 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7324 echo "${ECHO_T}$POD2MAN" >&6; }
7326 { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7331 # Extract the first word of "pdfroff", so it can be a program name with args.
7332 set dummy pdfroff; ac_word=$2
7333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335 if test "${ac_cv_path_PDFROFF+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 PDFROFF=$ac_cv_path_PDFROFF
7362 if test -n "$PDFROFF"; then
7363 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7364 echo "${ECHO_T}$PDFROFF" >&6; }
7366 { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7371 # Extract the first word of "runtest", so it can be a program name with args.
7372 set dummy runtest; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_RUNTEST+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 RUNTEST=$ac_cv_path_RUNTEST
7402 if test -n "$RUNTEST"; then
7403 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7404 echo "${ECHO_T}$RUNTEST" >&6; }
7406 { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7413 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7414 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7416 # Check whether --with-tclinclude was given.
7417 if test "${with_tclinclude+set}" = set; then
7418 withval=$with_tclinclude; with_tclinclude=${withval}
7423 if test "${ac_cv_path_tclsh+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 if test x"${with_tclinclude}" != x ; then
7428 if test -f ${with_tclinclude}/tclsh ; then
7429 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7430 elif test -f ${with_tclinclude}/src/tclsh ; then
7431 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7433 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7434 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7435 { (exit 1); exit 1; }; }
7441 if test x"${ac_cv_path_tclsh}" = x ; then
7442 { echo "$as_me:$LINENO: result: none" >&5
7443 echo "${ECHO_T}none" >&6; }
7444 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
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy $ac_prog; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_TCLSH+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 TCLSH=$ac_cv_path_TCLSH
7477 if test -n "$TCLSH"; then
7478 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7479 echo "${ECHO_T}$TCLSH" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 test -n "$TCLSH" && break
7489 if test x"${TCLSH}" = x ; then
7490 ac_cv_path_tclsh='';
7492 ac_cv_path_tclsh="${TCLSH}";
7495 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7496 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7497 TCLSH="${ac_cv_path_tclsh}"
7501 # Extract the first word of "zip", so it can be a program name with args.
7502 set dummy zip; ac_word=$2
7503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7505 if test "${ac_cv_path_ZIP+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 if test -n "$ZIP"; then
7533 { echo "$as_me:$LINENO: result: $ZIP" >&5
7534 echo "${ECHO_T}$ZIP" >&6; }
7536 { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7541 for ac_prog in ocamlc
7543 # Extract the first word of "$ac_prog", so it can be a program name with args.
7544 set dummy $ac_prog; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_OCAMLC+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 OCAMLC=$ac_cv_path_OCAMLC
7574 if test -n "$OCAMLC"; then
7575 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7576 echo "${ECHO_T}$OCAMLC" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7583 test -n "$OCAMLC" && break
7586 for ac_prog in ocamlopt
7588 # Extract the first word of "$ac_prog", so it can be a program name with args.
7589 set dummy $ac_prog; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 OCAMLOPT=$ac_cv_path_OCAMLOPT
7619 if test -n "$OCAMLOPT"; then
7620 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7621 echo "${ECHO_T}$OCAMLOPT" >&6; }
7623 { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7628 test -n "$OCAMLOPT" && break
7631 for ac_prog in ocamldep
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 OCAMLDEP=$ac_cv_path_OCAMLDEP
7664 if test -n "$OCAMLDEP"; then
7665 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7666 echo "${ECHO_T}$OCAMLDEP" >&6; }
7668 { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7673 test -n "$OCAMLDEP" && break
7676 for ac_prog in ocamldoc
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 OCAMLDOC=$ac_cv_path_OCAMLDOC
7709 if test -n "$OCAMLDOC"; then
7710 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7711 echo "${ECHO_T}$OCAMLDOC" >&6; }
7713 { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7718 test -n "$OCAMLDOC" && break
7721 for ac_prog in gas as
7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
7724 set dummy $ac_prog; ac_word=$2
7725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727 if test "${ac_cv_path_GAS+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 if test -n "$GAS"; then
7755 { echo "$as_me:$LINENO: result: $GAS" >&5
7756 echo "${ECHO_T}$GAS" >&6; }
7758 { echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6; }
7763 test -n "$GAS" && break
7767 { echo "$as_me:$LINENO: checking for linker version" >&5
7768 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7769 if test "${llvm_cv_link_version+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 version_string="$(ld -v 2>&1 | head -1)"
7776 if (echo "$version_string" | grep -q "ld64"); then
7777 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7779 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7783 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7784 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7786 cat >>confdefs.h <<_ACEOF
7787 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7792 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7793 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7794 if test "${llvm_cv_link_use_r+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 ac_cpp='$CPP $CPPFLAGS'
7799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804 CFLAGS="$CFLAGS -Wl,-R."
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (ac_try="$ac_link"
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_link") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7835 { (case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_try") 2>&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_try") 2>&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; }; then
7854 llvm_cv_link_use_r=yes
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7859 llvm_cv_link_use_r=no
7862 rm -f core conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7866 ac_cpp='$CPP $CPPFLAGS'
7867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7874 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7875 if test "$llvm_cv_link_use_r" = yes ; then
7877 cat >>confdefs.h <<\_ACEOF
7878 #define HAVE_LINK_R 1
7884 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7885 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7886 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (ac_try="$ac_link"
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_link") 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7927 { (case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_try") 2>&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; } &&
7936 { ac_try='test -s conftest$ac_exeext'
7937 { (case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_try") 2>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7946 llvm_cv_link_use_export_dynamic=yes
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 llvm_cv_link_use_export_dynamic=no
7954 rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7958 ac_cpp='$CPP $CPPFLAGS'
7959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7966 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7967 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_LINK_EXPORT_DYNAMIC 1
7976 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7977 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7978 if test "${llvm_cv_link_use_version_script+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 ac_cpp='$CPP $CPPFLAGS'
7983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7989 # The following code is from the autoconf manual,
7990 # "11.13: Limitations of Usual Tools".
7991 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7992 # Use mktemp if possible; otherwise fall back on mkdir,
7993 # with $RANDOM to make collisions less likely.
7997 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7999 test -n "$tmp" && test -d "$tmp"
8001 tmp=$TMPDIR/foo$$-$RANDOM
8002 (umask 077 && mkdir "$tmp")
8005 echo "{" > "$tmp/export.map"
8006 echo " global: main;" >> "$tmp/export.map"
8007 echo " local: *;" >> "$tmp/export.map"
8008 echo "};" >> "$tmp/export.map"
8010 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8011 cat >conftest.$ac_ext <<_ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (ac_try="$ac_link"
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_link") 2>conftest.er1
8035 grep -v '^ *+' conftest.er1 >conftest.err
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8041 { (case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_try") 2>&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest$ac_exeext'
8051 { (case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_try") 2>&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 llvm_cv_link_use_version_script=yes
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 llvm_cv_link_use_version_script=no
8068 rm -f core conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8070 rm "$tmp/export.map"
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8081 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8082 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8083 if test "$llvm_cv_link_use_version_script" = yes ; then
8084 HAVE_LINK_VERSION_SCRIPT=1
8091 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8092 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8093 if test "${ac_cv_c_const+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 cat >conftest.$ac_ext <<_ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8106 /* FIXME: Include the comments suggested by Paul. */
8108 /* Ultrix mips cc rejects this. */
8109 typedef int charset[2];
8111 /* SunOS 4.1.1 cc rejects this. */
8112 char const *const *ccp;
8114 /* NEC SVR4.0.2 mips cc rejects this. */
8115 struct point {int x, y;};
8116 static struct point const zero = {0,0};
8117 /* AIX XL C 1.02.0.0 rejects this.
8118 It does not let you subtract one const X* pointer from another in
8119 an arm of an if-expression whose if-part is not a constant
8121 const char *g = "string";
8122 ccp = &g + (g ? g-g : 0);
8123 /* HPUX 7.0 cc rejects these. */
8126 ccp = (char const *const *) p;
8127 { /* SCO 3.2v4 cc rejects this. */
8129 char const *s = 0 ? (char *) 0 : (char const *) 0;
8134 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8136 const int *foo = &x[0];
8139 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8140 typedef const int *iptr;
8144 { /* AIX XL C 1.02.0.0 rejects this saying
8145 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8146 struct s { int j; const int *ap[3]; };
8147 struct s *b; b->j = 5;
8149 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8153 return !x[0] && !zero.x;
8160 rm -f conftest.$ac_objext
8161 if { (ac_try="$ac_compile"
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_compile") 2>conftest.er1
8169 grep -v '^ *+' conftest.er1 >conftest.err
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8175 { (case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_try") 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest.$ac_objext'
8185 { (case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_try") 2>&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8205 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8206 if test $ac_cv_c_const = no; then
8208 cat >>confdefs.h <<\_ACEOF
8220 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8221 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8222 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8223 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8233 #include <sys/types.h>
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8254 grep -v '^ *+' conftest.er1 >conftest.err
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8260 { (case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_try") 2>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest.$ac_objext'
8270 { (case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_try") 2>&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 eval "$as_ac_Header=yes"
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 eval "$as_ac_Header=no"
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 ac_res=`eval echo '${'$as_ac_Header'}'`
8290 { echo "$as_me:$LINENO: result: $ac_res" >&5
8291 echo "${ECHO_T}$ac_res" >&6; }
8292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8293 cat >>confdefs.h <<_ACEOF
8294 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8297 ac_header_dirent=$ac_hdr; break
8301 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8302 if test $ac_header_dirent = dirent.h; then
8303 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8304 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8305 if test "${ac_cv_search_opendir+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 ac_func_search_save_LIBS=$LIBS
8309 cat >conftest.$ac_ext <<_ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8316 /* Override any GCC internal prototype to avoid an error.
8317 Use char because int might match the return type of a GCC
8318 builtin and then its argument prototype would still apply. */
8331 for ac_lib in '' dir; do
8332 if test -z "$ac_lib"; then
8333 ac_res="none required"
8336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8338 rm -f conftest.$ac_objext conftest$ac_exeext
8339 if { (ac_try="$ac_link"
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_link") 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest$ac_exeext'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 ac_cv_search_opendir=$ac_res
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8380 rm -f core conftest.err conftest.$ac_objext \
8382 if test "${ac_cv_search_opendir+set}" = set; then
8386 if test "${ac_cv_search_opendir+set}" = set; then
8389 ac_cv_search_opendir=no
8392 LIBS=$ac_func_search_save_LIBS
8394 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8395 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8396 ac_res=$ac_cv_search_opendir
8397 if test "$ac_res" != no; then
8398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8403 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8404 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8405 if test "${ac_cv_search_opendir+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 ac_func_search_save_LIBS=$LIBS
8409 cat >conftest.$ac_ext <<_ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8416 /* Override any GCC internal prototype to avoid an error.
8417 Use char because int might match the return type of a GCC
8418 builtin and then its argument prototype would still apply. */
8431 for ac_lib in '' x; do
8432 if test -z "$ac_lib"; then
8433 ac_res="none required"
8436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_link") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453 { (case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest$ac_exeext'
8463 { (case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_try") 2>&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_cv_search_opendir=$ac_res
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8480 rm -f core conftest.err conftest.$ac_objext \
8482 if test "${ac_cv_search_opendir+set}" = set; then
8486 if test "${ac_cv_search_opendir+set}" = set; then
8489 ac_cv_search_opendir=no
8492 LIBS=$ac_func_search_save_LIBS
8494 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8495 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8496 ac_res=$ac_cv_search_opendir
8497 if test "$ac_res" != no; then
8498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8505 for ac_header in dlfcn.h
8507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 ac_res=`eval echo '${'$as_ac_Header'}'`
8515 { echo "$as_me:$LINENO: result: $ac_res" >&5
8516 echo "${ECHO_T}$ac_res" >&6; }
8518 # Is the header compilable?
8519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8521 cat >conftest.$ac_ext <<_ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 $ac_includes_default
8528 #include <$ac_header>
8530 rm -f conftest.$ac_objext
8531 if { (ac_try="$ac_compile"
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_compile") 2>conftest.er1
8539 grep -v '^ *+' conftest.er1 >conftest.err
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_try") 2>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_try") 2>&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_header_compiler=yes
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 ac_header_compiler=no
8572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8574 echo "${ECHO_T}$ac_header_compiler" >&6; }
8576 # Is the header present?
8577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8579 cat >conftest.$ac_ext <<_ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <$ac_header>
8587 if { (ac_try="$ac_cpp conftest.$ac_ext"
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8595 grep -v '^ *+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } >/dev/null; then
8600 if test -s conftest.err; then
8601 ac_cpp_err=$ac_c_preproc_warn_flag
8602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8609 if test -z "$ac_cpp_err"; then
8610 ac_header_preproc=yes
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 ac_header_preproc=no
8618 rm -f conftest.err conftest.$ac_ext
8619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8620 echo "${ECHO_T}$ac_header_preproc" >&6; }
8622 # So? What about this header?
8623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8629 ac_header_preproc=yes
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8645 ## ----------------------------------- ##
8646 ## Report this to llvmbugs@cs.uiuc.edu ##
8647 ## ----------------------------------- ##
8649 ) | sed "s/^/$as_me: WARNING: /" >&2
8652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 eval "$as_ac_Header=\$ac_header_preproc"
8659 ac_res=`eval echo '${'$as_ac_Header'}'`
8660 { echo "$as_me:$LINENO: result: $ac_res" >&5
8661 echo "${ECHO_T}$ac_res" >&6; }
8664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8665 cat >>confdefs.h <<_ACEOF
8666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8673 # Check whether --enable-ltdl-install was given.
8674 if test "${enable_ltdl_install+set}" = set; then
8675 enableval=$enable_ltdl_install;
8681 if test x"${enable_ltdl_install-no}" != xno; then
8683 INSTALL_LTDL_FALSE='#'
8685 INSTALL_LTDL_TRUE='#'
8691 if test x"${enable_ltdl_convenience-no}" != xno; then
8692 CONVENIENCE_LTDL_TRUE=
8693 CONVENIENCE_LTDL_FALSE='#'
8695 CONVENIENCE_LTDL_TRUE='#'
8696 CONVENIENCE_LTDL_FALSE=
8700 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8701 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8703 libname_spec='lib$name'
8711 shlibpath_overrides_runpath=unknown
8713 dynamic_linker="$host_os ld.so"
8714 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8715 if test "$GCC" = yes; then
8716 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8717 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8718 # if the path contains ";" then we assume it to be the separator
8719 # otherwise default to the standard path separator (i.e. ":") - it is
8720 # assumed that no part of a normal pathname contains ";" but that should
8721 # okay in the real world where ";" in dirpaths is itself problematic.
8722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8727 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8729 need_lib_prefix=unknown
8730 hardcode_into_libs=no
8732 # when you set need_version to no, make sure it does not cause -set_version
8733 # flags to be left without arguments
8734 need_version=unknown
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8740 shlibpath_var=LIBPATH
8742 # AIX 3 has no versioning support, so we append a major version to the name.
8743 soname_spec='${libname}${release}${shared_ext}$major'
8750 hardcode_into_libs=yes
8751 if test "$host_cpu" = ia64; then
8752 # AIX 5 supports IA64
8753 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8754 shlibpath_var=LD_LIBRARY_PATH
8756 # With GCC up to 2.95.x, collect2 would create an import file
8757 # for dependence libraries. The import file would start with
8758 # the line `#! .'. This would cause the generated library to
8759 # depend on `.', always an invalid library. This was fixed in
8760 # development snapshots of GCC prior to 3.0.
8762 aix4 | aix4.[01] | aix4.[01].*)
8763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8765 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8772 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8773 # soname into executable. Probably we can add versioning support to
8774 # collect2, so additional links can be useful in future.
8775 if test "$aix_use_runtimelinking" = yes; then
8776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8777 # instead of lib<name>.a to let people know that these are not
8778 # typical AIX shared libraries.
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8781 # We preserve .a as extension for shared libraries through AIX4.2
8782 # and later when we are not doing run time linking.
8783 library_names_spec='${libname}${release}.a $libname.a'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8786 shlibpath_var=LIBPATH
8791 library_names_spec='$libname.ixlibrary $libname.a'
8792 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8793 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'
8797 library_names_spec='${libname}${shared_ext}'
8798 dynamic_linker="$host_os ld.so"
8799 shlibpath_var=LIBRARY_PATH
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8808 shlibpath_var=LD_LIBRARY_PATH
8809 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8810 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8811 # the default ld.so.conf also contains /usr/contrib/lib and
8812 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8813 # libtool to hard-code these into programs
8816 cygwin* | mingw* | pw32*)
8817 version_type=windows
8822 case $GCC,$host_os in
8823 yes,cygwin* | yes,mingw* | yes,pw32*)
8824 library_names_spec='$libname.dll.a'
8825 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8826 postinstall_cmds='base_file=`basename \${file}`~
8827 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8828 dldir=$destdir/`dirname \$dlpath`~
8829 test -d \$dldir || mkdir -p \$dldir~
8830 $install_prog $dir/$dlname \$dldir/$dlname~
8831 chmod a+x \$dldir/$dlname'
8832 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8833 dlpath=$dir/\$dldll~
8835 shlibpath_overrides_runpath=yes
8839 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8840 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8841 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8844 # MinGW DLLs use traditional 'lib' prefix
8845 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8846 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8847 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8848 # It is most probably a Windows format PATH printed by
8849 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8850 # path with ; separators, and with drive letters. We can handle the
8851 # drive letters (cygwin fileutils understands them), so leave them,
8852 # especially as we might pass files found there to a mingw objdump,
8853 # which wouldn't understand a cygwinified path. Ahh.
8854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8860 # pw32 DLLs use 'pw' prefix rather than 'lib'
8861 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8867 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8870 dynamic_linker='Win32 ld.exe'
8871 # FIXME: first we should search . and the directory the executable is in
8875 darwin* | rhapsody*)
8876 dynamic_linker="$host_os dyld"
8880 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8881 soname_spec='${libname}${release}${major}$shared_ext'
8882 shlibpath_overrides_runpath=yes
8883 shlibpath_var=DYLD_LIBRARY_PATH
8884 shrext_cmds='.dylib'
8885 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8886 if test "$GCC" = yes; then
8887 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"`
8889 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8891 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 shlibpath_var=LD_LIBRARY_PATH
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 shlibpath_var=LD_LIBRARY_PATH
8914 shlibpath_overrides_runpath=no
8915 hardcode_into_libs=yes
8916 dynamic_linker='GNU ld.so'
8919 freebsd* | dragonfly*)
8920 # DragonFly does not have aout. When/if they implement a new
8921 # versioning mechanism, adjust this.
8922 if test -x /usr/bin/objformat; then
8923 objformat=`/usr/bin/objformat`
8926 freebsd[123].*) objformat=aout ;;
8930 version_type=freebsd-$objformat
8931 case $version_type in
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8942 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=yes
8947 freebsd3.[01]* | freebsdelf3.[01]*)
8948 shlibpath_overrides_runpath=yes
8949 hardcode_into_libs=yes
8951 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8952 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8953 shlibpath_overrides_runpath=no
8954 hardcode_into_libs=yes
8956 freebsd*) # from 4.6 on
8957 shlibpath_overrides_runpath=yes
8958 hardcode_into_libs=yes
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 hardcode_into_libs=yes
8973 hpux9* | hpux10* | hpux11*)
8974 # Give a soname corresponding to the major version so that dld.sl refuses to
8975 # link against other versions.
8982 hardcode_into_libs=yes
8983 dynamic_linker="$host_os dld.so"
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 if test "X$HPUX_IA64_MODE" = X32; then
8989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8991 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8997 hardcode_into_libs=yes
8998 dynamic_linker="$host_os dld.sl"
8999 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9008 dynamic_linker="$host_os dld.sl"
9009 shlibpath_var=SHLIB_PATH
9010 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9015 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9016 postinstall_cmds='chmod 555 $lib'
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=no
9028 hardcode_into_libs=yes
9031 irix5* | irix6* | nonstopux*)
9033 nonstopux*) version_type=nonstopux ;;
9035 if test "$lt_cv_prog_gnu_ld" = yes; then
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9046 irix5* | nonstopux*)
9050 case $LD in # libtool.m4 will add one of these switches to LD
9051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9052 libsuff= shlibsuff= libmagic=32-bit;;
9053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9054 libsuff=32 shlibsuff=N32 libmagic=N32;;
9055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9056 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9057 *) libsuff= shlibsuff= libmagic=never-match;;
9061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9062 shlibpath_overrides_runpath=no
9063 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9064 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9065 hardcode_into_libs=yes
9068 # No shared lib support for Linux oldld, aout, or coff.
9069 linux*oldld* | linux*aout* | linux*coff*)
9073 # This must be Linux ELF.
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=no
9083 # This implies no fast_install, which is unacceptable.
9084 # Some rework will be needed to allow for fast_install
9085 # before this can be enabled.
9086 hardcode_into_libs=yes
9088 # Append ld.so.conf contents to the search path
9089 if test -f /etc/ld.so.conf; then
9090 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' ' '`
9091 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9094 # We used to test for /lib/ld.so.1 and disable shared libraries on
9095 # powerpc, because MkLinux only supported shared libraries with the
9096 # GNU dynamic linker. Since this was broken with cross compilers,
9097 # most powerpc-linux boxes support dynamic linking these days and
9098 # people can always --disable-shared, the test was removed, and we
9099 # assume the GNU/Linux dynamic linker is in use.
9100 dynamic_linker='GNU/Linux ld.so'
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 shlibpath_overrides_runpath=no
9111 hardcode_into_libs=yes
9112 dynamic_linker='GNU ld.so'
9119 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9122 dynamic_linker='NetBSD (a.out) ld.so'
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 dynamic_linker='NetBSD ld.elf_so'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=yes
9130 hardcode_into_libs=yes
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 shlibpath_overrides_runpath=yes
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 shlibpath_overrides_runpath=yes
9152 sys_lib_dlsearch_path_spec="/usr/lib"
9154 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9156 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9157 *) need_version=no ;;
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9164 openbsd2.[89] | openbsd2.[89].*)
9165 shlibpath_overrides_runpath=no
9168 shlibpath_overrides_runpath=yes
9172 shlibpath_overrides_runpath=yes
9177 libname_spec='$name'
9180 library_names_spec='$libname${shared_ext} $libname.a'
9181 dynamic_linker='OS/2 ld.exe'
9182 shlibpath_var=LIBPATH
9185 osf3* | osf4* | osf5*)
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9193 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=yes
9204 hardcode_into_libs=yes
9205 # ldd complains unless libraries are executable
9206 postinstall_cmds='chmod +x $lib'
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9212 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9213 shlibpath_var=LD_LIBRARY_PATH
9214 shlibpath_overrides_runpath=yes
9215 if test "$with_gnu_ld" = yes; then
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 case $host_vendor in
9228 shlibpath_overrides_runpath=no
9230 export_dynamic_flag_spec='${wl}-Blargedynsym'
9231 runpath_var=LD_RUN_PATH
9239 shlibpath_overrides_runpath=no
9240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9246 if test -d /usr/nec ;then
9248 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9249 soname_spec='$libname${shared_ext}.$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9254 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9255 version_type=freebsd-elf
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 hardcode_into_libs=yes
9262 if test "$with_gnu_ld" = yes; then
9263 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9264 shlibpath_overrides_runpath=no
9266 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9267 shlibpath_overrides_runpath=yes
9270 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9274 sys_lib_dlsearch_path_spec='/usr/lib'
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 shlibpath_var=LD_LIBRARY_PATH
9288 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9289 echo "${ECHO_T}$dynamic_linker" >&6; }
9290 test "$dynamic_linker" = no && can_build_shared=no
9292 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9293 if test "$GCC" = yes; then
9294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9298 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9299 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9300 if test "${libltdl_cv_shlibext+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 eval libltdl_cv_shlibext=$shrext_cmds
9308 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9309 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9310 if test -n "$libltdl_cv_shlibext"; then
9312 cat >>confdefs.h <<_ACEOF
9313 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9319 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9320 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9321 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 libltdl_cv_shlibpath_var="$shlibpath_var"
9326 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9327 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9328 if test -n "$libltdl_cv_shlibpath_var"; then
9330 cat >>confdefs.h <<_ACEOF
9331 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9337 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9338 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9339 if test "${libltdl_cv_sys_search_path+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9344 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9345 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9346 if test -n "$libltdl_cv_sys_search_path"; then
9348 for dir in $libltdl_cv_sys_search_path; do
9349 if test -z "$sys_search_path"; then
9350 sys_search_path="$dir"
9352 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9356 cat >>confdefs.h <<_ACEOF
9357 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9362 { echo "$as_me:$LINENO: checking for objdir" >&5
9363 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9364 if test "${libltdl_cv_objdir+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 libltdl_cv_objdir="$objdir"
9368 if test -n "$objdir"; then
9371 rm -f .libs 2>/dev/null
9372 mkdir .libs 2>/dev/null
9373 if test -d .libs; then
9374 libltdl_cv_objdir=.libs
9376 # MS-DOS does not allow filenames that begin with a dot.
9377 libltdl_cv_objdir=_libs
9379 rmdir .libs 2>/dev/null
9383 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9384 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9386 cat >>confdefs.h <<_ACEOF
9387 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9395 # Check for command to grab the raw symbol name followed by C symbol from nm.
9396 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9397 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9398 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 # These are sane defaults that work on at least a few old systems.
9403 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9405 # Character class describing NM global symbol codes.
9406 symcode='[BCDEGRST]'
9408 # Regexp to match symbols that can be accessed directly from C.
9409 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9411 # Transform an extracted symbol line into a proper C declaration
9412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9414 # Transform an extracted symbol line into symbol name and symbol address
9415 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'"
9417 # Define system-specific variables.
9422 cygwin* | mingw* | pw32*)
9423 symcode='[ABCDGISTW]'
9425 hpux*) # Its linker distinguishes data from code symbols
9426 if test "$host_cpu" = ia64; then
9427 symcode='[ABCDEGRST]'
9429 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9430 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'"
9433 if test "$host_cpu" = ia64; then
9434 symcode='[ABCDGIRSTW]'
9435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9436 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'"
9440 symcode='[BCDEGRST]'
9443 symcode='[BCDEGQRST]'
9454 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9462 # Handle CRLF in mingw tool chain
9466 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9470 # If we're using GNU nm, then use its standard symbol codes.
9471 case `$NM -V 2>&1` in
9472 *GNU* | *'with BFD'*)
9473 symcode='[ABCDGIRSTW]' ;;
9476 # Try without a prefix undercore, then with it.
9477 for ac_symprfx in "" "_"; do
9479 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9480 symxfrm="\\1 $ac_symprfx\\2 \\2"
9482 # Write the raw and C identifiers.
9483 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9485 # Check to see that the pipe works correctly.
9489 cat > conftest.$ac_ext <<EOF
9494 void nm_test_func(){}
9498 int main(){nm_test_var='a';nm_test_func();return(0);}
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; then
9506 # Now try to grab the symbols.
9508 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9509 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } && test -s "$nlist"; then
9513 # Try sorting and uniquifying the output.
9514 if sort "$nlist" | uniq > "$nlist"T; then
9515 mv -f "$nlist"T "$nlist"
9520 # Make sure that we snagged all the symbols we need.
9521 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9522 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9523 cat <<EOF > conftest.$ac_ext
9529 # Now generate the symbol file.
9530 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9532 cat <<EOF >> conftest.$ac_ext
9533 #if defined (__STDC__) && __STDC__
9534 # define lt_ptr_t void *
9536 # define lt_ptr_t char *
9540 /* The mapping between symbol names and symbols. */
9545 lt_preloaded_symbols[] =
9548 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9549 cat <<\EOF >> conftest.$ac_ext
9557 # Now try linking the two files.
9558 mv conftest.$ac_objext conftstm.$ac_objext
9559 lt_save_LIBS="$LIBS"
9560 lt_save_CFLAGS="$CFLAGS"
9561 LIBS="conftstm.$ac_objext"
9562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564 (eval $ac_link) 2>&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9570 LIBS="$lt_save_LIBS"
9571 CFLAGS="$lt_save_CFLAGS"
9573 echo "cannot find nm_test_func in $nlist" >&5
9576 echo "cannot find nm_test_var in $nlist" >&5
9579 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9582 echo "$progname: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9585 rm -f conftest* conftst*
9587 # Do not use the global_symbol_pipe unless it works.
9588 if test "$pipe_works" = yes; then
9591 lt_cv_sys_global_symbol_pipe=
9597 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9598 lt_cv_sys_global_symbol_to_cdecl=
9600 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9601 { echo "$as_me:$LINENO: result: failed" >&5
9602 echo "${ECHO_T}failed" >&6; }
9604 { echo "$as_me:$LINENO: result: ok" >&5
9605 echo "${ECHO_T}ok" >&6; }
9609 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9610 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9611 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9615 libltdl_cv_preloaded_symbols=yes
9617 libltdl_cv_preloaded_symbols=no
9621 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9622 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9623 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9625 cat >>confdefs.h <<\_ACEOF
9626 #define HAVE_PRELOADED_SYMBOLS 1
9634 ac_cpp='$CPP $CPPFLAGS'
9635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9640 { echo "$as_me:$LINENO: checking for shl_load" >&5
9641 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9642 if test "${ac_cv_func_shl_load+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 cat >conftest.$ac_ext <<_ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9653 #define shl_load innocuous_shl_load
9655 /* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char shl_load (); below.
9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658 <limits.h> exists even on freestanding compilers. */
9661 # include <limits.h>
9663 # include <assert.h>
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9675 /* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678 #if defined __stub_shl_load || defined __stub___shl_load
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9699 grep -v '^ *+' conftest.er1 >conftest.err
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9705 { (case "(($ac_try" in
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_try") 2>&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_try") 2>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 ac_cv_func_shl_load=yes
9726 echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.$ac_ext >&5
9729 ac_cv_func_shl_load=no
9732 rm -f core conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext conftest.$ac_ext
9735 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9736 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9737 if test $ac_cv_func_shl_load = yes; then
9739 cat >>confdefs.h <<\_ACEOF
9740 #define HAVE_SHL_LOAD 1
9744 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9745 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9746 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 ac_check_lib_save_LIBS=$LIBS
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_link") 2>conftest.er1
9782 grep -v '^ *+' conftest.er1 >conftest.err
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9788 { (case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_try") 2>&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_try") 2>&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 ac_cv_lib_dld_shl_load=yes
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_cv_lib_dld_shl_load=no
9815 rm -f core conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_lib_save_LIBS
9819 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9820 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9821 if test $ac_cv_lib_dld_shl_load = yes; then
9823 cat >>confdefs.h <<\_ACEOF
9824 #define HAVE_SHL_LOAD 1
9827 LIBADD_DL="$LIBADD_DL -ldld"
9829 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9830 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 ac_check_lib_save_LIBS=$LIBS
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9843 /* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (ac_try="$ac_link"
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_link") 2>conftest.er1
9867 grep -v '^ *+' conftest.er1 >conftest.err
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9873 { (case "(($ac_try" in
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878 (eval "$ac_try") 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_try") 2>&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 ac_cv_lib_dl_dlopen=yes
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_cv_lib_dl_dlopen=no
9900 rm -f core conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9904 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9905 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9906 if test $ac_cv_lib_dl_dlopen = yes; then
9908 cat >>confdefs.h <<\_ACEOF
9909 #define HAVE_LIBDL 1
9912 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9914 cat >conftest.$ac_ext <<_ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947 { (case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_try") 2>&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9967 cat >>confdefs.h <<\_ACEOF
9968 #define HAVE_LIBDL 1
9970 libltdl_cv_func_dlopen="yes"
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9976 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9977 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 ac_check_lib_save_LIBS=$LIBS
9982 cat >conftest.$ac_ext <<_ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9989 /* Override any GCC internal prototype to avoid an error.
9990 Use char because int might match the return type of a GCC
9991 builtin and then its argument prototype would still apply. */
10004 rm -f conftest.$ac_objext conftest$ac_exeext
10005 if { (ac_try="$ac_link"
10006 case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_link") 2>conftest.er1
10013 grep -v '^ *+' conftest.er1 >conftest.err
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10019 { (case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_try") 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_try") 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 ac_cv_lib_svld_dlopen=yes
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10043 ac_cv_lib_svld_dlopen=no
10046 rm -f core conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10048 LIBS=$ac_check_lib_save_LIBS
10050 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10051 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10052 if test $ac_cv_lib_svld_dlopen = yes; then
10054 cat >>confdefs.h <<\_ACEOF
10055 #define HAVE_LIBDL 1
10058 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10060 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10061 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10062 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 ac_check_lib_save_LIBS=$LIBS
10067 cat >conftest.$ac_ext <<_ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10084 return dld_link ();
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (ac_try="$ac_link"
10091 case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_link") 2>conftest.er1
10098 grep -v '^ *+' conftest.er1 >conftest.err
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10104 { (case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_try") 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try='test -s conftest$ac_exeext'
10114 { (case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_try") 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_cv_lib_dld_dld_link=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_cv_lib_dld_dld_link=no
10131 rm -f core conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10135 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10136 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10137 if test $ac_cv_lib_dld_dld_link = yes; then
10139 cat >>confdefs.h <<\_ACEOF
10143 LIBADD_DL="$LIBADD_DL -ldld"
10145 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10146 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10147 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 cat >conftest.$ac_ext <<_ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10158 #define _dyld_func_lookup innocuous__dyld_func_lookup
10160 /* System header to define __stub macros and hopefully few prototypes,
10161 which can conflict with char _dyld_func_lookup (); below.
10162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10163 <limits.h> exists even on freestanding compilers. */
10166 # include <limits.h>
10168 # include <assert.h>
10171 #undef _dyld_func_lookup
10173 /* Override any GCC internal prototype to avoid an error.
10174 Use char because int might match the return type of a GCC
10175 builtin and then its argument prototype would still apply. */
10179 char _dyld_func_lookup ();
10180 /* The GNU C library defines this for functions which it implements
10181 to always fail with ENOSYS. Some functions are actually named
10182 something starting with __ and the normal name is an alias. */
10183 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10190 return _dyld_func_lookup ();
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_link") 2>conftest.er1
10204 grep -v '^ *+' conftest.er1 >conftest.err
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10210 { (case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_try") 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; } &&
10219 { ac_try='test -s conftest$ac_exeext'
10220 { (case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_try") 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_func__dyld_func_lookup=yes
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ac_cv_func__dyld_func_lookup=no
10237 rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10240 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10241 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10242 if test $ac_cv_func__dyld_func_lookup = yes; then
10244 cat >>confdefs.h <<\_ACEOF
10245 #define HAVE_DYLD 1
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10271 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10273 lt_save_LIBS="$LIBS"
10274 LIBS="$LIBS $LIBADD_DL"
10276 for ac_func in dlerror
10278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10292 #define $ac_func innocuous_$ac_func
10294 /* System header to define __stub macros and hopefully few prototypes,
10295 which can conflict with char $ac_func (); below.
10296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10297 <limits.h> exists even on freestanding compilers. */
10300 # include <limits.h>
10302 # include <assert.h>
10307 /* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10314 /* The GNU C library defines this for functions which it implements
10315 to always fail with ENOSYS. Some functions are actually named
10316 something starting with __ and the normal name is an alias. */
10317 #if defined __stub_$ac_func || defined __stub___$ac_func
10324 return $ac_func ();
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (ac_try="$ac_link"
10331 case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_link") 2>conftest.er1
10338 grep -v '^ *+' conftest.er1 >conftest.err
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10344 { (case "(($ac_try" in
10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346 *) ac_try_echo=$ac_try;;
10348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349 (eval "$ac_try") 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; } &&
10353 { ac_try='test -s conftest$ac_exeext'
10354 { (case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_try") 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; }; then
10363 eval "$as_ac_var=yes"
10365 echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10368 eval "$as_ac_var=no"
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10374 ac_res=`eval echo '${'$as_ac_var'}'`
10375 { echo "$as_me:$LINENO: result: $ac_res" >&5
10376 echo "${ECHO_T}$ac_res" >&6; }
10377 if test `eval echo '${'$as_ac_var'}'` = yes; then
10378 cat >>confdefs.h <<_ACEOF
10379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10385 LIBS="$lt_save_LIBS"
10388 ac_cpp='$CPP $CPPFLAGS'
10389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10395 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10396 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10397 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 ac_cv_sys_symbol_underscore=no
10401 cat > conftest.$ac_ext <<EOF
10402 void nm_test_func(){}
10403 int main(){nm_test_func;return 0;}
10405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406 (eval $ac_compile) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; then
10410 # Now try to grab the symbols.
10411 ac_nlist=conftest.nm
10412 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10413 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } && test -s "$ac_nlist"; then
10417 # See whether the symbols have a leading underscore.
10418 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10419 ac_cv_sys_symbol_underscore=yes
10421 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10424 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10428 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10431 echo "configure: failed program was:" >&5
10437 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10438 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10441 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10442 if test x"$libltdl_cv_func_dlopen" = xyes ||
10443 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10444 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10445 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10446 if test "${libltdl_cv_need_uscore+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 libltdl_cv_need_uscore=unknown
10451 LIBS="$LIBS $LIBADD_DL"
10452 if test "$cross_compiling" = yes; then :
10453 libltdl_cv_need_uscore=cross
10455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10456 lt_status=$lt_dlunknown
10457 cat > conftest.$ac_ext <<EOF
10458 #line 10463 "configure"
10459 #include "confdefs.h"
10468 # define LT_DLGLOBAL RTLD_GLOBAL
10471 # define LT_DLGLOBAL DL_GLOBAL
10473 # define LT_DLGLOBAL 0
10477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10478 find out it does not work in some platform. */
10479 #ifndef LT_DLLAZY_OR_NOW
10481 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10484 # define LT_DLLAZY_OR_NOW DL_LAZY
10487 # define LT_DLLAZY_OR_NOW RTLD_NOW
10490 # define LT_DLLAZY_OR_NOW DL_NOW
10492 # define LT_DLLAZY_OR_NOW 0
10500 extern "C" void exit (int);
10503 void fnord() { int i=42;}
10506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10507 int status = $lt_dlunknown;
10511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10512 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10513 /* dlclose (self); */
10521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10522 (eval $ac_link) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10526 (./conftest; exit; ) >&5 2>/dev/null
10528 case x$lt_status in
10529 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10530 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10531 x$lt_dlunknown|x*) ;;
10534 # compilation failed
10543 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10544 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10548 if test x"$libltdl_cv_need_uscore" = xyes; then
10550 cat >>confdefs.h <<\_ACEOF
10551 #define NEED_USCORE 1
10557 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10558 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10559 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 # PORTME does your system automatically load deplibs for dlopen?
10563 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10564 # For now, we just catch OSes we know something about -- in the
10565 # future, we'll try test this programmatically.
10566 libltdl_cv_sys_dlopen_deplibs=unknown
10568 aix3*|aix4.1.*|aix4.2.*)
10569 # Unknown whether this is true for these versions of AIX, but
10570 # we want this `case' here to explicitly catch those versions.
10571 libltdl_cv_sys_dlopen_deplibs=unknown
10574 libltdl_cv_sys_dlopen_deplibs=yes
10577 # Assuming the user has installed a libdl from somewhere, this is true
10578 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10579 libltdl_cv_sys_dlopen_deplibs=yes
10581 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10582 # GNU and its variants, using gnu ld.so (Glibc)
10583 libltdl_cv_sys_dlopen_deplibs=yes
10586 libltdl_cv_sys_dlopen_deplibs=yes
10589 libltdl_cv_sys_dlopen_deplibs=yes
10591 irix[12345]*|irix6.[01]*)
10592 # Catch all versions of IRIX before 6.2, and indicate that we don't
10593 # know how it worked for any of those versions.
10594 libltdl_cv_sys_dlopen_deplibs=unknown
10597 # The case above catches anything before 6.2, and it's known that
10598 # at 6.2 and later dlopen does load deplibs.
10599 libltdl_cv_sys_dlopen_deplibs=yes
10602 libltdl_cv_sys_dlopen_deplibs=yes
10605 libltdl_cv_sys_dlopen_deplibs=yes
10608 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10609 # it did *not* use an RPATH in a shared library to find objects the
10610 # library depends on, so we explicitly say `no'.
10611 libltdl_cv_sys_dlopen_deplibs=no
10613 osf5.0|osf5.0a|osf5.1)
10614 # dlopen *does* load deplibs and with the right loader patch applied
10615 # it even uses RPATH in a shared library to search for shared objects
10616 # that the library depends on, but there's no easy way to know if that
10617 # patch is installed. Since this is the case, all we can really
10618 # say is unknown -- it depends on the patch being installed. If
10619 # it is, this changes to `yes'. Without it, it would be `no'.
10620 libltdl_cv_sys_dlopen_deplibs=unknown
10623 # the two cases above should catch all versions of osf <= 5.1. Read
10624 # the comments above for what we know about them.
10625 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10626 # is used to find them so we can finally say `yes'.
10627 libltdl_cv_sys_dlopen_deplibs=yes
10630 libltdl_cv_sys_dlopen_deplibs=yes
10632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10633 libltdl_cv_sys_dlopen_deplibs=yes
10638 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10639 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10640 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10642 cat >>confdefs.h <<\_ACEOF
10643 #define LTDL_DLOPEN_DEPLIBS 1
10649 for ac_header in argz.h
10651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 ac_res=`eval echo '${'$as_ac_Header'}'`
10659 { echo "$as_me:$LINENO: result: $ac_res" >&5
10660 echo "${ECHO_T}$ac_res" >&6; }
10662 # Is the header compilable?
10663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10665 cat >conftest.$ac_ext <<_ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 $ac_includes_default
10672 #include <$ac_header>
10674 rm -f conftest.$ac_objext
10675 if { (ac_try="$ac_compile"
10676 case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_compile") 2>conftest.er1
10683 grep -v '^ *+' conftest.er1 >conftest.err
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10689 { (case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_try") 2>&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try='test -s conftest.$ac_objext'
10699 { (case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_try") 2>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_header_compiler=yes
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10713 ac_header_compiler=no
10716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10718 echo "${ECHO_T}$ac_header_compiler" >&6; }
10720 # Is the header present?
10721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10723 cat >conftest.$ac_ext <<_ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10729 #include <$ac_header>
10731 if { (ac_try="$ac_cpp conftest.$ac_ext"
10732 case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10739 grep -v '^ *+' conftest.er1 >conftest.err
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } >/dev/null; then
10744 if test -s conftest.err; then
10745 ac_cpp_err=$ac_c_preproc_warn_flag
10746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10753 if test -z "$ac_cpp_err"; then
10754 ac_header_preproc=yes
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 ac_header_preproc=no
10762 rm -f conftest.err conftest.$ac_ext
10763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10764 echo "${ECHO_T}$ac_header_preproc" >&6; }
10766 # So? What about this header?
10767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10773 ac_header_preproc=yes
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10789 ## ----------------------------------- ##
10790 ## Report this to llvmbugs@cs.uiuc.edu ##
10791 ## ----------------------------------- ##
10793 ) | sed "s/^/$as_me: WARNING: /" >&2
10796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 eval "$as_ac_Header=\$ac_header_preproc"
10803 ac_res=`eval echo '${'$as_ac_Header'}'`
10804 { echo "$as_me:$LINENO: result: $ac_res" >&5
10805 echo "${ECHO_T}$ac_res" >&6; }
10808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10809 cat >>confdefs.h <<_ACEOF
10810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10818 { echo "$as_me:$LINENO: checking for error_t" >&5
10819 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10820 if test "${ac_cv_type_error_t+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10833 typedef error_t ac__type_new_;
10837 if ((ac__type_new_ *) 0)
10839 if (sizeof (ac__type_new_))
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_compile") 2>conftest.er1
10854 grep -v '^ *+' conftest.er1 >conftest.err
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } &&
10859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10860 { (case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_try") 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest.$ac_objext'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_type_error_t=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_cv_type_error_t=no
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10890 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10891 if test $ac_cv_type_error_t = yes; then
10893 cat >>confdefs.h <<_ACEOF
10894 #define HAVE_ERROR_T 1
10900 cat >>confdefs.h <<\_ACEOF
10901 #define error_t int
10912 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 cat >conftest.$ac_ext <<_ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10928 #define $ac_func innocuous_$ac_func
10930 /* System header to define __stub macros and hopefully few prototypes,
10931 which can conflict with char $ac_func (); below.
10932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10933 <limits.h> exists even on freestanding compilers. */
10936 # include <limits.h>
10938 # include <assert.h>
10943 /* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10950 /* The GNU C library defines this for functions which it implements
10951 to always fail with ENOSYS. Some functions are actually named
10952 something starting with __ and the normal name is an alias. */
10953 #if defined __stub_$ac_func || defined __stub___$ac_func
10960 return $ac_func ();
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_link") 2>conftest.er1
10974 grep -v '^ *+' conftest.er1 >conftest.err
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980 { (case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_try") 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; } &&
10989 { ac_try='test -s conftest$ac_exeext'
10990 { (case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_try") 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 eval "$as_ac_var=yes"
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 eval "$as_ac_var=no"
11007 rm -f core conftest.err conftest.$ac_objext \
11008 conftest$ac_exeext conftest.$ac_ext
11010 ac_res=`eval echo '${'$as_ac_var'}'`
11011 { echo "$as_me:$LINENO: result: $ac_res" >&5
11012 echo "${ECHO_T}$ac_res" >&6; }
11013 if test `eval echo '${'$as_ac_var'}'` = yes; then
11014 cat >>confdefs.h <<_ACEOF
11015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11048 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 ac_res=`eval echo '${'$as_ac_Header'}'`
11059 { echo "$as_me:$LINENO: result: $ac_res" >&5
11060 echo "${ECHO_T}$ac_res" >&6; }
11062 # Is the header compilable?
11063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11065 cat >conftest.$ac_ext <<_ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071 $ac_includes_default
11072 #include <$ac_header>
11074 rm -f conftest.$ac_objext
11075 if { (ac_try="$ac_compile"
11076 case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_compile") 2>conftest.er1
11083 grep -v '^ *+' conftest.er1 >conftest.err
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11089 { (case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_try") 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try='test -s conftest.$ac_objext'
11099 { (case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_try") 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_header_compiler=yes
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_header_compiler=no
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11118 echo "${ECHO_T}$ac_header_compiler" >&6; }
11120 # Is the header present?
11121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11129 #include <$ac_header>
11131 if { (ac_try="$ac_cpp conftest.$ac_ext"
11132 case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11139 grep -v '^ *+' conftest.er1 >conftest.err
11141 cat conftest.err >&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } >/dev/null; then
11144 if test -s conftest.err; then
11145 ac_cpp_err=$ac_c_preproc_warn_flag
11146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11153 if test -z "$ac_cpp_err"; then
11154 ac_header_preproc=yes
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ac_header_preproc=no
11162 rm -f conftest.err conftest.$ac_ext
11163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11164 echo "${ECHO_T}$ac_header_preproc" >&6; }
11166 # So? What about this header?
11167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11173 ac_header_preproc=yes
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11189 ## ----------------------------------- ##
11190 ## Report this to llvmbugs@cs.uiuc.edu ##
11191 ## ----------------------------------- ##
11193 ) | sed "s/^/$as_me: WARNING: /" >&2
11196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 eval "$as_ac_Header=\$ac_header_preproc"
11203 ac_res=`eval echo '${'$as_ac_Header'}'`
11204 { echo "$as_me:$LINENO: result: $ac_res" >&5
11205 echo "${ECHO_T}$ac_res" >&6; }
11208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11209 cat >>confdefs.h <<_ACEOF
11210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11221 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 ac_res=`eval echo '${'$as_ac_Header'}'`
11231 { echo "$as_me:$LINENO: result: $ac_res" >&5
11232 echo "${ECHO_T}$ac_res" >&6; }
11234 # Is the header compilable?
11235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11237 cat >conftest.$ac_ext <<_ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 $ac_includes_default
11244 #include <$ac_header>
11246 rm -f conftest.$ac_objext
11247 if { (ac_try="$ac_compile"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_compile") 2>conftest.er1
11255 grep -v '^ *+' conftest.er1 >conftest.err
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11261 { (case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_try") 2>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest.$ac_objext'
11271 { (case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_try") 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_header_compiler=yes
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 ac_header_compiler=no
11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11290 echo "${ECHO_T}$ac_header_compiler" >&6; }
11292 # Is the header present?
11293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11295 cat >conftest.$ac_ext <<_ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11301 #include <$ac_header>
11303 if { (ac_try="$ac_cpp conftest.$ac_ext"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11311 grep -v '^ *+' conftest.er1 >conftest.err
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } >/dev/null; then
11316 if test -s conftest.err; then
11317 ac_cpp_err=$ac_c_preproc_warn_flag
11318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11325 if test -z "$ac_cpp_err"; then
11326 ac_header_preproc=yes
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 ac_header_preproc=no
11334 rm -f conftest.err conftest.$ac_ext
11335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11336 echo "${ECHO_T}$ac_header_preproc" >&6; }
11338 # So? What about this header?
11339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11345 ac_header_preproc=yes
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11361 ## ----------------------------------- ##
11362 ## Report this to llvmbugs@cs.uiuc.edu ##
11363 ## ----------------------------------- ##
11365 ) | sed "s/^/$as_me: WARNING: /" >&2
11368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 eval "$as_ac_Header=\$ac_header_preproc"
11375 ac_res=`eval echo '${'$as_ac_Header'}'`
11376 { echo "$as_me:$LINENO: result: $ac_res" >&5
11377 echo "${ECHO_T}$ac_res" >&6; }
11380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11381 cat >>confdefs.h <<_ACEOF
11382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11391 for ac_header in string.h strings.h
11393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 ac_res=`eval echo '${'$as_ac_Header'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11404 # Is the header compilable?
11405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11407 cat >conftest.$ac_ext <<_ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11413 $ac_includes_default
11414 #include <$ac_header>
11416 rm -f conftest.$ac_objext
11417 if { (ac_try="$ac_compile"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11425 grep -v '^ *+' conftest.er1 >conftest.err
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11431 { (case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_try") 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try='test -s conftest.$ac_objext'
11441 { (case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_try") 2>&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_header_compiler=yes
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_header_compiler=no
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11460 echo "${ECHO_T}$ac_header_compiler" >&6; }
11462 # Is the header present?
11463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 #include <$ac_header>
11473 if { (ac_try="$ac_cpp conftest.$ac_ext"
11474 case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } >/dev/null; then
11486 if test -s conftest.err; then
11487 ac_cpp_err=$ac_c_preproc_warn_flag
11488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11495 if test -z "$ac_cpp_err"; then
11496 ac_header_preproc=yes
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ac_header_preproc=no
11504 rm -f conftest.err conftest.$ac_ext
11505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11506 echo "${ECHO_T}$ac_header_preproc" >&6; }
11508 # So? What about this header?
11509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11515 ac_header_preproc=yes
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11531 ## ----------------------------------- ##
11532 ## Report this to llvmbugs@cs.uiuc.edu ##
11533 ## ----------------------------------- ##
11535 ) | sed "s/^/$as_me: WARNING: /" >&2
11538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 eval "$as_ac_Header=\$ac_header_preproc"
11545 ac_res=`eval echo '${'$as_ac_Header'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11551 cat >>confdefs.h <<_ACEOF
11552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11562 for ac_func in strchr index
11564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11578 #define $ac_func innocuous_$ac_func
11580 /* System header to define __stub macros and hopefully few prototypes,
11581 which can conflict with char $ac_func (); below.
11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583 <limits.h> exists even on freestanding compilers. */
11586 # include <limits.h>
11588 # include <assert.h>
11593 /* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11600 /* The GNU C library defines this for functions which it implements
11601 to always fail with ENOSYS. Some functions are actually named
11602 something starting with __ and the normal name is an alias. */
11603 #if defined __stub_$ac_func || defined __stub___$ac_func
11610 return $ac_func ();
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11630 { (case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_try") 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest$ac_exeext'
11640 { (case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645 (eval "$ac_try") 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 eval "$as_ac_var=yes"
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 eval "$as_ac_var=no"
11657 rm -f core conftest.err conftest.$ac_objext \
11658 conftest$ac_exeext conftest.$ac_ext
11660 ac_res=`eval echo '${'$as_ac_var'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11663 if test `eval echo '${'$as_ac_var'}'` = yes; then
11664 cat >>confdefs.h <<_ACEOF
11665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11673 for ac_func in strrchr rindex
11675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 cat >conftest.$ac_ext <<_ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11689 #define $ac_func innocuous_$ac_func
11691 /* System header to define __stub macros and hopefully few prototypes,
11692 which can conflict with char $ac_func (); below.
11693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11694 <limits.h> exists even on freestanding compilers. */
11697 # include <limits.h>
11699 # include <assert.h>
11704 /* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11711 /* The GNU C library defines this for functions which it implements
11712 to always fail with ENOSYS. Some functions are actually named
11713 something starting with __ and the normal name is an alias. */
11714 #if defined __stub_$ac_func || defined __stub___$ac_func
11721 return $ac_func ();
11726 rm -f conftest.$ac_objext conftest$ac_exeext
11727 if { (ac_try="$ac_link"
11728 case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_link") 2>conftest.er1
11735 grep -v '^ *+' conftest.er1 >conftest.err
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11741 { (case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_try") 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; } &&
11750 { ac_try='test -s conftest$ac_exeext'
11751 { (case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_try") 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 eval "$as_ac_var=yes"
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 eval "$as_ac_var=no"
11768 rm -f core conftest.err conftest.$ac_objext \
11769 conftest$ac_exeext conftest.$ac_ext
11771 ac_res=`eval echo '${'$as_ac_var'}'`
11772 { echo "$as_me:$LINENO: result: $ac_res" >&5
11773 echo "${ECHO_T}$ac_res" >&6; }
11774 if test `eval echo '${'$as_ac_var'}'` = yes; then
11775 cat >>confdefs.h <<_ACEOF
11776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11784 for ac_func in memcpy bcopy
11786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 cat >conftest.$ac_ext <<_ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11800 #define $ac_func innocuous_$ac_func
11802 /* System header to define __stub macros and hopefully few prototypes,
11803 which can conflict with char $ac_func (); below.
11804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11805 <limits.h> exists even on freestanding compilers. */
11808 # include <limits.h>
11810 # include <assert.h>
11815 /* Override any GCC internal prototype to avoid an error.
11816 Use char because int might match the return type of a GCC
11817 builtin and then its argument prototype would still apply. */
11822 /* The GNU C library defines this for functions which it implements
11823 to always fail with ENOSYS. Some functions are actually named
11824 something starting with __ and the normal name is an alias. */
11825 #if defined __stub_$ac_func || defined __stub___$ac_func
11832 return $ac_func ();
11837 rm -f conftest.$ac_objext conftest$ac_exeext
11838 if { (ac_try="$ac_link"
11839 case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_link") 2>conftest.er1
11846 grep -v '^ *+' conftest.er1 >conftest.err
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } &&
11851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11852 { (case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_try") 2>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; } &&
11861 { ac_try='test -s conftest$ac_exeext'
11862 { (case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_try") 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 eval "$as_ac_var=yes"
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11876 eval "$as_ac_var=no"
11879 rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11882 ac_res=`eval echo '${'$as_ac_var'}'`
11883 { echo "$as_me:$LINENO: result: $ac_res" >&5
11884 echo "${ECHO_T}$ac_res" >&6; }
11885 if test `eval echo '${'$as_ac_var'}'` = yes; then
11886 cat >>confdefs.h <<_ACEOF
11887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11895 for ac_func in memmove strcmp
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 cat >conftest.$ac_ext <<_ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11911 #define $ac_func innocuous_$ac_func
11913 /* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char $ac_func (); below.
11915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11916 <limits.h> exists even on freestanding compilers. */
11919 # include <limits.h>
11921 # include <assert.h>
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11933 /* The GNU C library defines this for functions which it implements
11934 to always fail with ENOSYS. Some functions are actually named
11935 something starting with __ and the normal name is an alias. */
11936 #if defined __stub_$ac_func || defined __stub___$ac_func
11943 return $ac_func ();
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (ac_try="$ac_link"
11950 case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_link") 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963 { (case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_try") 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_try") 2>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 eval "$as_ac_var=yes"
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 eval "$as_ac_var=no"
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11993 ac_res=`eval echo '${'$as_ac_var'}'`
11994 { echo "$as_me:$LINENO: result: $ac_res" >&5
11995 echo "${ECHO_T}$ac_res" >&6; }
11996 if test `eval echo '${'$as_ac_var'}'` = yes; then
11997 cat >>confdefs.h <<_ACEOF
11998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12007 for ac_func in closedir opendir readdir
12009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 cat >conftest.$ac_ext <<_ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12023 #define $ac_func innocuous_$ac_func
12025 /* System header to define __stub macros and hopefully few prototypes,
12026 which can conflict with char $ac_func (); below.
12027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12028 <limits.h> exists even on freestanding compilers. */
12031 # include <limits.h>
12033 # include <assert.h>
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12045 /* The GNU C library defines this for functions which it implements
12046 to always fail with ENOSYS. Some functions are actually named
12047 something starting with __ and the normal name is an alias. */
12048 #if defined __stub_$ac_func || defined __stub___$ac_func
12055 return $ac_func ();
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (ac_try="$ac_link"
12062 case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_link") 2>conftest.er1
12069 grep -v '^ *+' conftest.er1 >conftest.err
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12075 { (case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_try") 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; } &&
12084 { ac_try='test -s conftest$ac_exeext'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_try") 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12094 eval "$as_ac_var=yes"
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 eval "$as_ac_var=no"
12102 rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12105 ac_res=`eval echo '${'$as_ac_var'}'`
12106 { echo "$as_me:$LINENO: result: $ac_res" >&5
12107 echo "${ECHO_T}$ac_res" >&6; }
12108 if test `eval echo '${'$as_ac_var'}'` = yes; then
12109 cat >>confdefs.h <<_ACEOF
12110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12118 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12119 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12132 if test "$GCC" != "yes" && test "$ICC" != "yes"
12134 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12135 echo "$as_me: error: gcc|icc required but not found" >&2;}
12136 { (exit 1); exit 1; }; }
12139 if test "$GXX" != "yes" && test "$IXX" != "yes"
12141 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12142 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12143 { (exit 1); exit 1; }; }
12146 if test "$GCC" = "yes"
12148 cat >conftest.$ac_ext <<_ACEOF
12149 #if !defined(__GNUC__) || __GNUC__ < 3
12150 #error Unsupported GCC version
12154 rm -f conftest.$ac_objext
12155 if { (ac_try="$ac_compile"
12156 case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_compile") 2>conftest.er1
12163 grep -v '^ *+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169 { (case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_try") 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12194 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12195 { (exit 1); exit 1; }; }
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 if test -z "$llvm_cv_gnu_make_command"
12203 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12204 echo "$as_me: error: GNU Make required but not found" >&2;}
12205 { (exit 1); exit 1; }; }
12208 { echo "$as_me:$LINENO: result: ok" >&5
12209 echo "${ECHO_T}ok" >&6; }
12211 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12212 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12213 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12215 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12217 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12218 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12222 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12223 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12224 if test "${ac_cv_lib_m_sin+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 ac_check_lib_save_LIBS=$LIBS
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12236 /* Override any GCC internal prototype to avoid an error.
12237 Use char because int might match the return type of a GCC
12238 builtin and then its argument prototype would still apply. */
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (ac_try="$ac_link"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_link") 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest$ac_exeext'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_lib_m_sin=yes
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12293 rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295 LIBS=$ac_check_lib_save_LIBS
12297 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12298 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12299 if test $ac_cv_lib_m_sin = yes; then
12300 cat >>confdefs.h <<_ACEOF
12301 #define HAVE_LIBM 1
12308 if test "$llvm_cv_os_type" = "MingW" ; then
12310 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12311 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12312 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 ac_check_lib_save_LIBS=$LIBS
12316 LIBS="-limagehlp $LIBS"
12317 cat >conftest.$ac_ext <<_ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_link") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest$ac_exeext'
12358 { (case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_try") 2>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367 ac_cv_lib_imagehlp_main=yes
12369 echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12372 ac_cv_lib_imagehlp_main=no
12375 rm -f core conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12377 LIBS=$ac_check_lib_save_LIBS
12379 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12380 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12381 if test $ac_cv_lib_imagehlp_main = yes; then
12382 cat >>confdefs.h <<_ACEOF
12383 #define HAVE_LIBIMAGEHLP 1
12386 LIBS="-limagehlp $LIBS"
12391 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12392 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12393 if test "${ac_cv_lib_psapi_main+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 ac_check_lib_save_LIBS=$LIBS
12397 LIBS="-lpsapi $LIBS"
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (ac_try="$ac_link"
12416 case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_link") 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest$ac_exeext'
12439 { (case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_try") 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_cv_lib_psapi_main=yes
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12453 ac_cv_lib_psapi_main=no
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12460 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12461 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12462 if test $ac_cv_lib_psapi_main = yes; then
12463 cat >>confdefs.h <<_ACEOF
12464 #define HAVE_LIBPSAPI 1
12467 LIBS="-lpsapi $LIBS"
12473 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12474 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12475 if test "${ac_cv_search_dlopen+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 ac_func_search_save_LIBS=$LIBS
12479 cat >conftest.$ac_ext <<_ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12486 /* Override any GCC internal prototype to avoid an error.
12487 Use char because int might match the return type of a GCC
12488 builtin and then its argument prototype would still apply. */
12501 for ac_lib in '' dl; do
12502 if test -z "$ac_lib"; then
12503 ac_res="none required"
12506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12508 rm -f conftest.$ac_objext conftest$ac_exeext
12509 if { (ac_try="$ac_link"
12510 case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_link") 2>conftest.er1
12517 grep -v '^ *+' conftest.er1 >conftest.err
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12523 { (case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_try") 2>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; } &&
12532 { ac_try='test -s conftest$ac_exeext'
12533 { (case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_try") 2>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; }; then
12542 ac_cv_search_dlopen=$ac_res
12544 echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12550 rm -f core conftest.err conftest.$ac_objext \
12552 if test "${ac_cv_search_dlopen+set}" = set; then
12556 if test "${ac_cv_search_dlopen+set}" = set; then
12559 ac_cv_search_dlopen=no
12561 rm conftest.$ac_ext
12562 LIBS=$ac_func_search_save_LIBS
12564 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12565 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12566 ac_res=$ac_cv_search_dlopen
12567 if test "$ac_res" != no; then
12568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12570 cat >>confdefs.h <<\_ACEOF
12571 #define HAVE_DLOPEN 1
12575 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12576 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12580 if test "$llvm_cv_enable_libffi" = "yes" ; then
12581 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12582 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12583 if test "${ac_cv_search_ffi_call+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 ac_func_search_save_LIBS=$LIBS
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12604 return ffi_call ();
12609 for ac_lib in '' ffi; do
12610 if test -z "$ac_lib"; then
12611 ac_res="none required"
12614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>conftest.er1
12625 grep -v '^ *+' conftest.er1 >conftest.err
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest$ac_exeext'
12641 { (case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_try") 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_cv_search_ffi_call=$ac_res
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12658 rm -f core conftest.err conftest.$ac_objext \
12660 if test "${ac_cv_search_ffi_call+set}" = set; then
12664 if test "${ac_cv_search_ffi_call+set}" = set; then
12667 ac_cv_search_ffi_call=no
12669 rm conftest.$ac_ext
12670 LIBS=$ac_func_search_save_LIBS
12672 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12673 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12674 ac_res=$ac_cv_search_ffi_call
12675 if test "$ac_res" != no; then
12676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12678 cat >>confdefs.h <<\_ACEOF
12679 #define HAVE_FFI_CALL 1
12683 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12684 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12685 { (exit 1); exit 1; }; }
12690 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12691 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12692 if test "${ac_cv_search_mallinfo+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 ac_func_search_save_LIBS=$LIBS
12696 cat >conftest.$ac_ext <<_ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12703 /* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
12713 return mallinfo ();
12718 for ac_lib in '' malloc; do
12719 if test -z "$ac_lib"; then
12720 ac_res="none required"
12723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_link") 2>conftest.er1
12734 grep -v '^ *+' conftest.er1 >conftest.err
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest$ac_exeext'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_search_mallinfo=$ac_res
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12767 rm -f core conftest.err conftest.$ac_objext \
12769 if test "${ac_cv_search_mallinfo+set}" = set; then
12773 if test "${ac_cv_search_mallinfo+set}" = set; then
12776 ac_cv_search_mallinfo=no
12778 rm conftest.$ac_ext
12779 LIBS=$ac_func_search_save_LIBS
12781 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12782 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12783 ac_res=$ac_cv_search_mallinfo
12784 if test "$ac_res" != no; then
12785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_MALLINFO 1
12794 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12796 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12797 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12798 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 ac_check_lib_save_LIBS=$LIBS
12802 LIBS="-lpthread $LIBS"
12803 cat >conftest.$ac_ext <<_ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12816 char pthread_mutex_init ();
12820 return pthread_mutex_init ();
12825 rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (ac_try="$ac_link"
12827 case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_link") 2>conftest.er1
12834 grep -v '^ *+' conftest.er1 >conftest.err
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
12839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12840 { (case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_try") 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest$ac_exeext'
12850 { (case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_try") 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_cv_lib_pthread_pthread_mutex_init=yes
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_cv_lib_pthread_pthread_mutex_init=no
12867 rm -f core conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
12869 LIBS=$ac_check_lib_save_LIBS
12871 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12872 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12873 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12874 cat >>confdefs.h <<_ACEOF
12875 #define HAVE_LIBPTHREAD 1
12878 LIBS="-lpthread $LIBS"
12882 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12883 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12884 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 ac_func_search_save_LIBS=$LIBS
12888 cat >conftest.$ac_ext <<_ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12901 char pthread_mutex_lock ();
12905 return pthread_mutex_lock ();
12910 for ac_lib in '' pthread; do
12911 if test -z "$ac_lib"; then
12912 ac_res="none required"
12915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12917 rm -f conftest.$ac_objext conftest$ac_exeext
12918 if { (ac_try="$ac_link"
12919 case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_link") 2>conftest.er1
12926 grep -v '^ *+' conftest.er1 >conftest.err
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12932 { (case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_try") 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; } &&
12941 { ac_try='test -s conftest$ac_exeext'
12942 { (case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_try") 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 ac_cv_search_pthread_mutex_lock=$ac_res
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12959 rm -f core conftest.err conftest.$ac_objext \
12961 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12965 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12968 ac_cv_search_pthread_mutex_lock=no
12970 rm conftest.$ac_ext
12971 LIBS=$ac_func_search_save_LIBS
12973 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12974 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12975 ac_res=$ac_cv_search_pthread_mutex_lock
12976 if test "$ac_res" != no; then
12977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12979 cat >>confdefs.h <<\_ACEOF
12980 #define HAVE_PTHREAD_MUTEX_LOCK 1
12985 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12986 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12987 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 ac_func_search_save_LIBS=$LIBS
12991 cat >conftest.$ac_ext <<_ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13004 char pthread_rwlock_init ();
13008 return pthread_rwlock_init ();
13013 for ac_lib in '' pthread; do
13014 if test -z "$ac_lib"; then
13015 ac_res="none required"
13018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13020 rm -f conftest.$ac_objext conftest$ac_exeext
13021 if { (ac_try="$ac_link"
13022 case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_link") 2>conftest.er1
13029 grep -v '^ *+' conftest.er1 >conftest.err
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13035 { (case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_try") 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; } &&
13044 { ac_try='test -s conftest$ac_exeext'
13045 { (case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050 (eval "$ac_try") 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_cv_search_pthread_rwlock_init=$ac_res
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13062 rm -f core conftest.err conftest.$ac_objext \
13064 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13068 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13071 ac_cv_search_pthread_rwlock_init=no
13073 rm conftest.$ac_ext
13074 LIBS=$ac_func_search_save_LIBS
13076 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13077 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13078 ac_res=$ac_cv_search_pthread_rwlock_init
13079 if test "$ac_res" != no; then
13080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13082 cat >>confdefs.h <<\_ACEOF
13083 #define HAVE_PTHREAD_RWLOCK_INIT 1
13088 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13089 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13090 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 ac_func_search_save_LIBS=$LIBS
13094 cat >conftest.$ac_ext <<_ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13107 char pthread_getspecific ();
13111 return pthread_getspecific ();
13116 for ac_lib in '' pthread; do
13117 if test -z "$ac_lib"; then
13118 ac_res="none required"
13121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13132 grep -v '^ *+' conftest.er1 >conftest.err
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_cv_search_pthread_getspecific=$ac_res
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13165 rm -f core conftest.err conftest.$ac_objext \
13167 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13171 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13174 ac_cv_search_pthread_getspecific=no
13176 rm conftest.$ac_ext
13177 LIBS=$ac_func_search_save_LIBS
13179 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13180 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13181 ac_res=$ac_cv_search_pthread_getspecific
13182 if test "$ac_res" != no; then
13183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_PTHREAD_GETSPECIFIC 1
13194 # Check whether --with-udis86 was given.
13195 if test "${with_udis86+set}" = set; then
13196 withval=$with_udis86;
13201 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13204 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13205 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13206 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-ludis86 $LIBS"
13211 cat >conftest.$ac_ext <<_ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13218 /* Override any GCC internal prototype to avoid an error.
13219 Use char because int might match the return type of a GCC
13220 builtin and then its argument prototype would still apply. */
13233 rm -f conftest.$ac_objext conftest$ac_exeext
13234 if { (ac_try="$ac_link"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_link") 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest$ac_exeext'
13258 { (case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_try") 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_cv_lib_udis86_ud_init=yes
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_cv_lib_udis86_ud_init=no
13275 rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277 LIBS=$ac_check_lib_save_LIBS
13279 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13280 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13281 if test $ac_cv_lib_udis86_ud_init = yes; then
13282 cat >>confdefs.h <<_ACEOF
13283 #define HAVE_LIBUDIS86 1
13286 LIBS="-ludis86 $LIBS"
13290 echo "Error! You need to have libudis86 around."
13302 cat >>confdefs.h <<_ACEOF
13303 #define USE_UDIS86 $USE_UDIS86
13308 # Check whether --with-oprofile was given.
13309 if test "${with_oprofile+set}" = set; then
13310 withval=$with_oprofile;
13314 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13315 no) llvm_cv_oppath=
13318 *) llvm_cv_oppath="${withval}/lib/oprofile"
13319 CPPFLAGS="-I${withval}/include";;
13321 if test -n "$llvm_cv_oppath" ; then
13322 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13323 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13324 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13325 if test "${ac_cv_search_bfd_init+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 ac_func_search_save_LIBS=$LIBS
13329 cat >conftest.$ac_ext <<_ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13336 /* Override any GCC internal prototype to avoid an error.
13337 Use char because int might match the return type of a GCC
13338 builtin and then its argument prototype would still apply. */
13346 return bfd_init ();
13351 for ac_lib in '' bfd; do
13352 if test -z "$ac_lib"; then
13353 ac_res="none required"
13356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13358 rm -f conftest.$ac_objext conftest$ac_exeext
13359 if { (ac_try="$ac_link"
13360 case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_link") 2>conftest.er1
13367 grep -v '^ *+' conftest.er1 >conftest.err
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13373 { (case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_try") 2>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; } &&
13382 { ac_try='test -s conftest$ac_exeext'
13383 { (case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_try") 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392 ac_cv_search_bfd_init=$ac_res
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13400 rm -f core conftest.err conftest.$ac_objext \
13402 if test "${ac_cv_search_bfd_init+set}" = set; then
13406 if test "${ac_cv_search_bfd_init+set}" = set; then
13409 ac_cv_search_bfd_init=no
13411 rm conftest.$ac_ext
13412 LIBS=$ac_func_search_save_LIBS
13414 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13415 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13416 ac_res=$ac_cv_search_bfd_init
13417 if test "$ac_res" != no; then
13418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13422 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13423 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13424 if test "${ac_cv_search_op_open_agent+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 ac_func_search_save_LIBS=$LIBS
13428 cat >conftest.$ac_ext <<_ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13441 char op_open_agent ();
13445 return op_open_agent ();
13450 for ac_lib in '' opagent; do
13451 if test -z "$ac_lib"; then
13452 ac_res="none required"
13455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13457 rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (ac_try="$ac_link"
13459 case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_link") 2>conftest.er1
13466 grep -v '^ *+' conftest.er1 >conftest.err
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest$ac_exeext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_cv_search_op_open_agent=$ac_res
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13499 rm -f core conftest.err conftest.$ac_objext \
13501 if test "${ac_cv_search_op_open_agent+set}" = set; then
13505 if test "${ac_cv_search_op_open_agent+set}" = set; then
13508 ac_cv_search_op_open_agent=no
13510 rm conftest.$ac_ext
13511 LIBS=$ac_func_search_save_LIBS
13513 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13514 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13515 ac_res=$ac_cv_search_op_open_agent
13516 if test "$ac_res" != no; then
13517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13521 echo "Error! You need to have libopagent around."
13526 if test "${ac_cv_header_opagent_h+set}" = set; then
13527 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13528 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_opagent_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13533 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13535 # Is the header compilable?
13536 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13537 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13538 cat >conftest.$ac_ext <<_ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 $ac_includes_default
13545 #include <opagent.h>
13547 rm -f conftest.$ac_objext
13548 if { (ac_try="$ac_compile"
13549 case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_compile") 2>conftest.er1
13556 grep -v '^ *+' conftest.er1 >conftest.err
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13562 { (case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_try") 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; } &&
13571 { ac_try='test -s conftest.$ac_objext'
13572 { (case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_try") 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13581 ac_header_compiler=yes
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13586 ac_header_compiler=no
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13591 echo "${ECHO_T}$ac_header_compiler" >&6; }
13593 # Is the header present?
13594 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13595 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13596 cat >conftest.$ac_ext <<_ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 #include <opagent.h>
13604 if { (ac_try="$ac_cpp conftest.$ac_ext"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } >/dev/null; then
13617 if test -s conftest.err; then
13618 ac_cpp_err=$ac_c_preproc_warn_flag
13619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13626 if test -z "$ac_cpp_err"; then
13627 ac_header_preproc=yes
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13632 ac_header_preproc=no
13635 rm -f conftest.err conftest.$ac_ext
13636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13637 echo "${ECHO_T}$ac_header_preproc" >&6; }
13639 # So? What about this header?
13640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13642 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13643 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13644 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13645 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13646 ac_header_preproc=yes
13649 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13650 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13652 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13654 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13656 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13658 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13660 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13662 ## ----------------------------------- ##
13663 ## Report this to llvmbugs@cs.uiuc.edu ##
13664 ## ----------------------------------- ##
13666 ) | sed "s/^/$as_me: WARNING: /" >&2
13669 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13670 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13671 if test "${ac_cv_header_opagent_h+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 ac_cv_header_opagent_h=$ac_header_preproc
13676 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13677 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13680 if test $ac_cv_header_opagent_h = yes; then
13684 echo "Error! You need to have opagent.h around."
13700 cat >>confdefs.h <<_ACEOF
13701 #define USE_OPROFILE $USE_OPROFILE
13711 ac_header_dirent=no
13712 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13713 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13714 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13715 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13719 cat >conftest.$ac_ext <<_ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 #include <sys/types.h>
13737 rm -f conftest.$ac_objext
13738 if { (ac_try="$ac_compile"
13739 case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_compile") 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752 { (case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_try") 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (case "(($ac_try" in
13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764 *) ac_try_echo=$ac_try;;
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_try") 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
13771 eval "$as_ac_Header=yes"
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 eval "$as_ac_Header=no"
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 ac_res=`eval echo '${'$as_ac_Header'}'`
13782 { echo "$as_me:$LINENO: result: $ac_res" >&5
13783 echo "${ECHO_T}$ac_res" >&6; }
13784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13785 cat >>confdefs.h <<_ACEOF
13786 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13789 ac_header_dirent=$ac_hdr; break
13793 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13794 if test $ac_header_dirent = dirent.h; then
13795 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13796 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13797 if test "${ac_cv_search_opendir+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 ac_func_search_save_LIBS=$LIBS
13801 cat >conftest.$ac_ext <<_ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13808 /* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
13823 for ac_lib in '' dir; do
13824 if test -z "$ac_lib"; then
13825 ac_res="none required"
13828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (ac_try="$ac_link"
13832 case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_link") 2>conftest.er1
13839 grep -v '^ *+' conftest.er1 >conftest.err
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest$ac_exeext'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 ac_cv_search_opendir=$ac_res
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13872 rm -f core conftest.err conftest.$ac_objext \
13874 if test "${ac_cv_search_opendir+set}" = set; then
13878 if test "${ac_cv_search_opendir+set}" = set; then
13881 ac_cv_search_opendir=no
13883 rm conftest.$ac_ext
13884 LIBS=$ac_func_search_save_LIBS
13886 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13887 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13888 ac_res=$ac_cv_search_opendir
13889 if test "$ac_res" != no; then
13890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13895 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13896 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13897 if test "${ac_cv_search_opendir+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 ac_func_search_save_LIBS=$LIBS
13901 cat >conftest.$ac_ext <<_ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13908 /* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
13923 for ac_lib in '' x; do
13924 if test -z "$ac_lib"; then
13925 ac_res="none required"
13928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (ac_try="$ac_link"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_link") 2>conftest.er1
13939 grep -v '^ *+' conftest.er1 >conftest.err
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
13944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13945 { (case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_try") 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest$ac_exeext'
13955 { (case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_try") 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_cv_search_opendir=$ac_res
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13972 rm -f core conftest.err conftest.$ac_objext \
13974 if test "${ac_cv_search_opendir+set}" = set; then
13978 if test "${ac_cv_search_opendir+set}" = set; then
13981 ac_cv_search_opendir=no
13983 rm conftest.$ac_ext
13984 LIBS=$ac_func_search_save_LIBS
13986 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13987 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13988 ac_res=$ac_cv_search_opendir
13989 if test "$ac_res" != no; then
13990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13996 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13997 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13998 if test "${ac_cv_header_mmap_anon+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 ac_cpp='$CPP $CPPFLAGS'
14003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14007 cat >conftest.$ac_ext <<_ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 #include <sys/mman.h>
14014 #include <unistd.h>
14019 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14024 rm -f conftest.$ac_objext
14025 if { (ac_try="$ac_compile"
14026 case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_compile") 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } &&
14038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14039 { (case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_try") 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest.$ac_objext'
14049 { (case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_try") 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
14058 ac_cv_header_mmap_anon=yes
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14063 ac_cv_header_mmap_anon=no
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 ac_cpp='$CPP $CPPFLAGS'
14069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14075 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14076 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14077 if test "$ac_cv_header_mmap_anon" = yes; then
14079 cat >>confdefs.h <<\_ACEOF
14080 #define HAVE_MMAP_ANONYMOUS 1
14085 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14086 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14087 if test "${ac_cv_header_stat_broken+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 #include <sys/types.h>
14097 #include <sys/stat.h>
14099 #if defined S_ISBLK && defined S_IFDIR
14100 # if S_ISBLK (S_IFDIR)
14105 #if defined S_ISBLK && defined S_IFCHR
14106 # if S_ISBLK (S_IFCHR)
14111 #if defined S_ISLNK && defined S_IFREG
14112 # if S_ISLNK (S_IFREG)
14117 #if defined S_ISSOCK && defined S_IFREG
14118 # if S_ISSOCK (S_IFREG)
14124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14125 $EGREP "You lose" >/dev/null 2>&1; then
14126 ac_cv_header_stat_broken=yes
14128 ac_cv_header_stat_broken=no
14133 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14134 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14135 if test $ac_cv_header_stat_broken = yes; then
14137 cat >>confdefs.h <<\_ACEOF
14138 #define STAT_MACROS_BROKEN 1
14143 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14144 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14145 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 cat >conftest.$ac_ext <<_ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 #include <sys/types.h>
14155 #include <sys/wait.h>
14156 #ifndef WEXITSTATUS
14157 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14160 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14168 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14173 rm -f conftest.$ac_objext
14174 if { (ac_try="$ac_compile"
14175 case "(($ac_try" in
14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177 *) ac_try_echo=$ac_try;;
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_compile") 2>conftest.er1
14182 grep -v '^ *+' conftest.er1 >conftest.err
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14188 { (case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_try") 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest.$ac_objext'
14198 { (case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_try") 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 ac_cv_header_sys_wait_h=yes
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14212 ac_cv_header_sys_wait_h=no
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14218 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14219 if test $ac_cv_header_sys_wait_h = yes; then
14221 cat >>confdefs.h <<\_ACEOF
14222 #define HAVE_SYS_WAIT_H 1
14227 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14228 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14229 if test "${ac_cv_header_time+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 #include <sys/types.h>
14239 #include <sys/time.h>
14245 if ((struct tm *) 0)
14251 rm -f conftest.$ac_objext
14252 if { (ac_try="$ac_compile"
14253 case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_compile") 2>conftest.er1
14260 grep -v '^ *+' conftest.er1 >conftest.err
14262 cat conftest.err >&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14266 { (case "(($ac_try" in
14267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268 *) ac_try_echo=$ac_try;;
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271 (eval "$ac_try") 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; } &&
14275 { ac_try='test -s conftest.$ac_objext'
14276 { (case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_try") 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 ac_cv_header_time=yes
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 ac_cv_header_time=no
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14296 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14297 if test $ac_cv_header_time = yes; then
14299 cat >>confdefs.h <<\_ACEOF
14300 #define TIME_WITH_SYS_TIME 1
14312 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 ac_res=`eval echo '${'$as_ac_Header'}'`
14322 { echo "$as_me:$LINENO: result: $ac_res" >&5
14323 echo "${ECHO_T}$ac_res" >&6; }
14325 # Is the header compilable?
14326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14328 cat >conftest.$ac_ext <<_ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14334 $ac_includes_default
14335 #include <$ac_header>
14337 rm -f conftest.$ac_objext
14338 if { (ac_try="$ac_compile"
14339 case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_compile") 2>conftest.er1
14346 grep -v '^ *+' conftest.er1 >conftest.err
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest.$ac_objext'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_header_compiler=yes
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_header_compiler=no
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14381 echo "${ECHO_T}$ac_header_compiler" >&6; }
14383 # Is the header present?
14384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14386 cat >conftest.$ac_ext <<_ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 #include <$ac_header>
14394 if { (ac_try="$ac_cpp conftest.$ac_ext"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1 >conftest.err
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } >/dev/null; then
14407 if test -s conftest.err; then
14408 ac_cpp_err=$ac_c_preproc_warn_flag
14409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14416 if test -z "$ac_cpp_err"; then
14417 ac_header_preproc=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_header_preproc=no
14425 rm -f conftest.err conftest.$ac_ext
14426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14427 echo "${ECHO_T}$ac_header_preproc" >&6; }
14429 # So? What about this header?
14430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14436 ac_header_preproc=yes
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14452 ## ----------------------------------- ##
14453 ## Report this to llvmbugs@cs.uiuc.edu ##
14454 ## ----------------------------------- ##
14456 ) | sed "s/^/$as_me: WARNING: /" >&2
14459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 eval "$as_ac_Header=\$ac_header_preproc"
14466 ac_res=`eval echo '${'$as_ac_Header'}'`
14467 { echo "$as_me:$LINENO: result: $ac_res" >&5
14468 echo "${ECHO_T}$ac_res" >&6; }
14471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14472 cat >>confdefs.h <<_ACEOF
14473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14486 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 ac_res=`eval echo '${'$as_ac_Header'}'`
14496 { echo "$as_me:$LINENO: result: $ac_res" >&5
14497 echo "${ECHO_T}$ac_res" >&6; }
14499 # Is the header compilable?
14500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14502 cat >conftest.$ac_ext <<_ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 $ac_includes_default
14509 #include <$ac_header>
14511 rm -f conftest.$ac_objext
14512 if { (ac_try="$ac_compile"
14513 case "(($ac_try" in
14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518 (eval "$ac_compile") 2>conftest.er1
14520 grep -v '^ *+' conftest.er1 >conftest.err
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14526 { (case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_try") 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try='test -s conftest.$ac_objext'
14536 { (case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_try") 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_header_compiler=yes
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 ac_header_compiler=no
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14555 echo "${ECHO_T}$ac_header_compiler" >&6; }
14557 # Is the header present?
14558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <$ac_header>
14568 if { (ac_try="$ac_cpp conftest.$ac_ext"
14569 case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14576 grep -v '^ *+' conftest.er1 >conftest.err
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } >/dev/null; then
14581 if test -s conftest.err; then
14582 ac_cpp_err=$ac_c_preproc_warn_flag
14583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14590 if test -z "$ac_cpp_err"; then
14591 ac_header_preproc=yes
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 ac_header_preproc=no
14599 rm -f conftest.err conftest.$ac_ext
14600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14601 echo "${ECHO_T}$ac_header_preproc" >&6; }
14603 # So? What about this header?
14604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14610 ac_header_preproc=yes
14613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14626 ## ----------------------------------- ##
14627 ## Report this to llvmbugs@cs.uiuc.edu ##
14628 ## ----------------------------------- ##
14630 ) | sed "s/^/$as_me: WARNING: /" >&2
14633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 eval "$as_ac_Header=\$ac_header_preproc"
14640 ac_res=`eval echo '${'$as_ac_Header'}'`
14641 { echo "$as_me:$LINENO: result: $ac_res" >&5
14642 echo "${ECHO_T}$ac_res" >&6; }
14645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14646 cat >>confdefs.h <<_ACEOF
14647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14656 for ac_header in utime.h windows.h
14658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 ac_res=`eval echo '${'$as_ac_Header'}'`
14666 { echo "$as_me:$LINENO: result: $ac_res" >&5
14667 echo "${ECHO_T}$ac_res" >&6; }
14669 # Is the header compilable?
14670 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 $ac_includes_default
14679 #include <$ac_header>
14681 rm -f conftest.$ac_objext
14682 if { (ac_try="$ac_compile"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14690 grep -v '^ *+' conftest.er1 >conftest.err
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14696 { (case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_try") 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest.$ac_objext'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_header_compiler=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_header_compiler=no
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725 echo "${ECHO_T}$ac_header_compiler" >&6; }
14727 # Is the header present?
14728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14730 cat >conftest.$ac_ext <<_ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 #include <$ac_header>
14738 if { (ac_try="$ac_cpp conftest.$ac_ext"
14739 case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14746 grep -v '^ *+' conftest.er1 >conftest.err
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } >/dev/null; then
14751 if test -s conftest.err; then
14752 ac_cpp_err=$ac_c_preproc_warn_flag
14753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14760 if test -z "$ac_cpp_err"; then
14761 ac_header_preproc=yes
14763 echo "$as_me: failed program was:" >&5
14764 sed 's/^/| /' conftest.$ac_ext >&5
14766 ac_header_preproc=no
14769 rm -f conftest.err conftest.$ac_ext
14770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14771 echo "${ECHO_T}$ac_header_preproc" >&6; }
14773 # So? What about this header?
14774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14780 ac_header_preproc=yes
14783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14790 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14796 ## ----------------------------------- ##
14797 ## Report this to llvmbugs@cs.uiuc.edu ##
14798 ## ----------------------------------- ##
14800 ) | sed "s/^/$as_me: WARNING: /" >&2
14803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 eval "$as_ac_Header=\$ac_header_preproc"
14810 ac_res=`eval echo '${'$as_ac_Header'}'`
14811 { echo "$as_me:$LINENO: result: $ac_res" >&5
14812 echo "${ECHO_T}$ac_res" >&6; }
14815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14816 cat >>confdefs.h <<_ACEOF
14817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14829 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 ac_res=`eval echo '${'$as_ac_Header'}'`
14839 { echo "$as_me:$LINENO: result: $ac_res" >&5
14840 echo "${ECHO_T}$ac_res" >&6; }
14842 # Is the header compilable?
14843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 $ac_includes_default
14852 #include <$ac_header>
14854 rm -f conftest.$ac_objext
14855 if { (ac_try="$ac_compile"
14856 case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_compile") 2>conftest.er1
14863 grep -v '^ *+' conftest.er1 >conftest.err
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_try") 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_header_compiler=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_header_compiler=no
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14898 echo "${ECHO_T}$ac_header_compiler" >&6; }
14900 # Is the header present?
14901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14903 cat >conftest.$ac_ext <<_ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 #include <$ac_header>
14911 if { (ac_try="$ac_cpp conftest.$ac_ext"
14912 case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14919 grep -v '^ *+' conftest.er1 >conftest.err
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } >/dev/null; then
14924 if test -s conftest.err; then
14925 ac_cpp_err=$ac_c_preproc_warn_flag
14926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14933 if test -z "$ac_cpp_err"; then
14934 ac_header_preproc=yes
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ac_header_preproc=no
14942 rm -f conftest.err conftest.$ac_ext
14943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14944 echo "${ECHO_T}$ac_header_preproc" >&6; }
14946 # So? What about this header?
14947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14953 ac_header_preproc=yes
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14969 ## ----------------------------------- ##
14970 ## Report this to llvmbugs@cs.uiuc.edu ##
14971 ## ----------------------------------- ##
14973 ) | sed "s/^/$as_me: WARNING: /" >&2
14976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 eval "$as_ac_Header=\$ac_header_preproc"
14983 ac_res=`eval echo '${'$as_ac_Header'}'`
14984 { echo "$as_me:$LINENO: result: $ac_res" >&5
14985 echo "${ECHO_T}$ac_res" >&6; }
14988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14989 cat >>confdefs.h <<_ACEOF
14990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15001 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 ac_res=`eval echo '${'$as_ac_Header'}'`
15011 { echo "$as_me:$LINENO: result: $ac_res" >&5
15012 echo "${ECHO_T}$ac_res" >&6; }
15014 # Is the header compilable?
15015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 $ac_includes_default
15024 #include <$ac_header>
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15041 { (case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_try") 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; } &&
15050 { ac_try='test -s conftest.$ac_objext'
15051 { (case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_try") 2>&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15060 ac_header_compiler=yes
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15065 ac_header_compiler=no
15068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15070 echo "${ECHO_T}$ac_header_compiler" >&6; }
15072 # Is the header present?
15073 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15075 cat >conftest.$ac_ext <<_ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 #include <$ac_header>
15083 if { (ac_try="$ac_cpp conftest.$ac_ext"
15084 case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15091 grep -v '^ *+' conftest.er1 >conftest.err
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } >/dev/null; then
15096 if test -s conftest.err; then
15097 ac_cpp_err=$ac_c_preproc_warn_flag
15098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15105 if test -z "$ac_cpp_err"; then
15106 ac_header_preproc=yes
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 ac_header_preproc=no
15114 rm -f conftest.err conftest.$ac_ext
15115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6; }
15118 # So? What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc=yes
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15141 ## ----------------------------------- ##
15142 ## Report this to llvmbugs@cs.uiuc.edu ##
15143 ## ----------------------------------- ##
15145 ) | sed "s/^/$as_me: WARNING: /" >&2
15148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15153 eval "$as_ac_Header=\$ac_header_preproc"
15155 ac_res=`eval echo '${'$as_ac_Header'}'`
15156 { echo "$as_me:$LINENO: result: $ac_res" >&5
15157 echo "${ECHO_T}$ac_res" >&6; }
15160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15161 cat >>confdefs.h <<_ACEOF
15162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15170 for ac_header in valgrind/valgrind.h
15172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15179 ac_res=`eval echo '${'$as_ac_Header'}'`
15180 { echo "$as_me:$LINENO: result: $ac_res" >&5
15181 echo "${ECHO_T}$ac_res" >&6; }
15183 # Is the header compilable?
15184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 $ac_includes_default
15193 #include <$ac_header>
15195 rm -f conftest.$ac_objext
15196 if { (ac_try="$ac_compile"
15197 case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_compile") 2>conftest.er1
15204 grep -v '^ *+' conftest.er1 >conftest.err
15206 cat conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
15209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15210 { (case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_try") 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; } &&
15219 { ac_try='test -s conftest.$ac_objext'
15220 { (case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_try") 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; }; then
15229 ac_header_compiler=yes
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15234 ac_header_compiler=no
15237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15239 echo "${ECHO_T}$ac_header_compiler" >&6; }
15241 # Is the header present?
15242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15244 cat >conftest.$ac_ext <<_ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 #include <$ac_header>
15252 if { (ac_try="$ac_cpp conftest.$ac_ext"
15253 case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15260 grep -v '^ *+' conftest.er1 >conftest.err
15262 cat conftest.err >&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } >/dev/null; then
15265 if test -s conftest.err; then
15266 ac_cpp_err=$ac_c_preproc_warn_flag
15267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15274 if test -z "$ac_cpp_err"; then
15275 ac_header_preproc=yes
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15280 ac_header_preproc=no
15283 rm -f conftest.err conftest.$ac_ext
15284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15285 echo "${ECHO_T}$ac_header_preproc" >&6; }
15287 # So? What about this header?
15288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15294 ac_header_preproc=yes
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15310 ## ----------------------------------- ##
15311 ## Report this to llvmbugs@cs.uiuc.edu ##
15312 ## ----------------------------------- ##
15314 ) | sed "s/^/$as_me: WARNING: /" >&2
15317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 eval "$as_ac_Header=\$ac_header_preproc"
15324 ac_res=`eval echo '${'$as_ac_Header'}'`
15325 { echo "$as_me:$LINENO: result: $ac_res" >&5
15326 echo "${ECHO_T}$ac_res" >&6; }
15329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15330 cat >>confdefs.h <<_ACEOF
15331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15339 for ac_header in fenv.h
15341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 ac_res=`eval echo '${'$as_ac_Header'}'`
15349 { echo "$as_me:$LINENO: result: $ac_res" >&5
15350 echo "${ECHO_T}$ac_res" >&6; }
15352 # Is the header compilable?
15353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 $ac_includes_default
15362 #include <$ac_header>
15364 rm -f conftest.$ac_objext
15365 if { (ac_try="$ac_compile"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_compile") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest.$ac_objext'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_header_compiler=yes
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_header_compiler=no
15406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15408 echo "${ECHO_T}$ac_header_compiler" >&6; }
15410 # Is the header present?
15411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15413 cat >conftest.$ac_ext <<_ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 #include <$ac_header>
15421 if { (ac_try="$ac_cpp conftest.$ac_ext"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15429 grep -v '^ *+' conftest.er1 >conftest.err
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } >/dev/null; then
15434 if test -s conftest.err; then
15435 ac_cpp_err=$ac_c_preproc_warn_flag
15436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15443 if test -z "$ac_cpp_err"; then
15444 ac_header_preproc=yes
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_header_preproc=no
15452 rm -f conftest.err conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15454 echo "${ECHO_T}$ac_header_preproc" >&6; }
15456 # So? What about this header?
15457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15463 ac_header_preproc=yes
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15479 ## ----------------------------------- ##
15480 ## Report this to llvmbugs@cs.uiuc.edu ##
15481 ## ----------------------------------- ##
15483 ) | sed "s/^/$as_me: WARNING: /" >&2
15486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 eval "$as_ac_Header=\$ac_header_preproc"
15493 ac_res=`eval echo '${'$as_ac_Header'}'`
15494 { echo "$as_me:$LINENO: result: $ac_res" >&5
15495 echo "${ECHO_T}$ac_res" >&6; }
15498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15499 cat >>confdefs.h <<_ACEOF
15500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15507 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15509 for ac_header in pthread.h
15511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 ac_res=`eval echo '${'$as_ac_Header'}'`
15519 { echo "$as_me:$LINENO: result: $ac_res" >&5
15520 echo "${ECHO_T}$ac_res" >&6; }
15522 # Is the header compilable?
15523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 $ac_includes_default
15532 #include <$ac_header>
15534 rm -f conftest.$ac_objext
15535 if { (ac_try="$ac_compile"
15536 case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_compile") 2>conftest.er1
15543 grep -v '^ *+' conftest.er1 >conftest.err
15545 cat conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; } &&
15558 { ac_try='test -s conftest.$ac_objext'
15559 { (case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_try") 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_header_compiler=yes
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_header_compiler=no
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15578 echo "${ECHO_T}$ac_header_compiler" >&6; }
15580 # Is the header present?
15581 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15583 cat >conftest.$ac_ext <<_ACEOF
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h. */
15589 #include <$ac_header>
15591 if { (ac_try="$ac_cpp conftest.$ac_ext"
15592 case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15599 grep -v '^ *+' conftest.er1 >conftest.err
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } >/dev/null; then
15604 if test -s conftest.err; then
15605 ac_cpp_err=$ac_c_preproc_warn_flag
15606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15613 if test -z "$ac_cpp_err"; then
15614 ac_header_preproc=yes
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ac_header_preproc=no
15622 rm -f conftest.err conftest.$ac_ext
15623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15624 echo "${ECHO_T}$ac_header_preproc" >&6; }
15626 # So? What about this header?
15627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15633 ac_header_preproc=yes
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15649 ## ----------------------------------- ##
15650 ## Report this to llvmbugs@cs.uiuc.edu ##
15651 ## ----------------------------------- ##
15653 ) | sed "s/^/$as_me: WARNING: /" >&2
15656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15661 eval "$as_ac_Header=\$ac_header_preproc"
15663 ac_res=`eval echo '${'$as_ac_Header'}'`
15664 { echo "$as_me:$LINENO: result: $ac_res" >&5
15665 echo "${ECHO_T}$ac_res" >&6; }
15668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15669 cat >>confdefs.h <<_ACEOF
15670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15686 if test "$llvm_cv_enable_libffi" = "yes" ; then
15689 for ac_header in ffi.h ffi/ffi.h
15691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 ac_res=`eval echo '${'$as_ac_Header'}'`
15699 { echo "$as_me:$LINENO: result: $ac_res" >&5
15700 echo "${ECHO_T}$ac_res" >&6; }
15702 # Is the header compilable?
15703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15705 cat >conftest.$ac_ext <<_ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 $ac_includes_default
15712 #include <$ac_header>
15714 rm -f conftest.$ac_objext
15715 if { (ac_try="$ac_compile"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_compile") 2>conftest.er1
15723 grep -v '^ *+' conftest.er1 >conftest.err
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729 { (case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_try") 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_try") 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_header_compiler=yes
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_header_compiler=no
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15758 echo "${ECHO_T}$ac_header_compiler" >&6; }
15760 # Is the header present?
15761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15763 cat >conftest.$ac_ext <<_ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 #include <$ac_header>
15771 if { (ac_try="$ac_cpp conftest.$ac_ext"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15779 grep -v '^ *+' conftest.er1 >conftest.err
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } >/dev/null; then
15784 if test -s conftest.err; then
15785 ac_cpp_err=$ac_c_preproc_warn_flag
15786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15793 if test -z "$ac_cpp_err"; then
15794 ac_header_preproc=yes
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15799 ac_header_preproc=no
15802 rm -f conftest.err conftest.$ac_ext
15803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15804 echo "${ECHO_T}$ac_header_preproc" >&6; }
15806 # So? What about this header?
15807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15813 ac_header_preproc=yes
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15829 ## ----------------------------------- ##
15830 ## Report this to llvmbugs@cs.uiuc.edu ##
15831 ## ----------------------------------- ##
15833 ) | sed "s/^/$as_me: WARNING: /" >&2
15836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 eval "$as_ac_Header=\$ac_header_preproc"
15843 ac_res=`eval echo '${'$as_ac_Header'}'`
15844 { echo "$as_me:$LINENO: result: $ac_res" >&5
15845 echo "${ECHO_T}$ac_res" >&6; }
15848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15849 cat >>confdefs.h <<_ACEOF
15850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15860 for ac_header in CrashReporterClient.h
15862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 ac_res=`eval echo '${'$as_ac_Header'}'`
15870 { echo "$as_me:$LINENO: result: $ac_res" >&5
15871 echo "${ECHO_T}$ac_res" >&6; }
15873 # Is the header compilable?
15874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15883 #include <$ac_header>
15885 rm -f conftest.$ac_objext
15886 if { (ac_try="$ac_compile"
15887 case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_compile") 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900 { (case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_try") 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_try") 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_header_compiler=yes
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_header_compiler=no
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15929 echo "${ECHO_T}$ac_header_compiler" >&6; }
15931 # Is the header present?
15932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15934 cat >conftest.$ac_ext <<_ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 #include <$ac_header>
15942 if { (ac_try="$ac_cpp conftest.$ac_ext"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15950 grep -v '^ *+' conftest.er1 >conftest.err
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } >/dev/null; then
15955 if test -s conftest.err; then
15956 ac_cpp_err=$ac_c_preproc_warn_flag
15957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15964 if test -z "$ac_cpp_err"; then
15965 ac_header_preproc=yes
15967 echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ac_header_preproc=no
15973 rm -f conftest.err conftest.$ac_ext
15974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15975 echo "${ECHO_T}$ac_header_preproc" >&6; }
15977 # So? What about this header?
15978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15984 ac_header_preproc=yes
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16000 ## ----------------------------------- ##
16001 ## Report this to llvmbugs@cs.uiuc.edu ##
16002 ## ----------------------------------- ##
16004 ) | sed "s/^/$as_me: WARNING: /" >&2
16007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16012 eval "$as_ac_Header=\$ac_header_preproc"
16014 ac_res=`eval echo '${'$as_ac_Header'}'`
16015 { echo "$as_me:$LINENO: result: $ac_res" >&5
16016 echo "${ECHO_T}$ac_res" >&6; }
16019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16020 cat >>confdefs.h <<_ACEOF
16021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16029 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16030 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16031 cat >conftest.$ac_ext <<_ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 extern const char *__crashreporter_info__;
16039 __crashreporter_info__ = "test";
16044 rm -f conftest.$ac_objext conftest$ac_exeext
16045 if { (ac_try="$ac_link"
16046 case "(($ac_try" in
16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048 *) ac_try_echo=$ac_try;;
16050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051 (eval "$ac_link") 2>conftest.er1
16053 grep -v '^ *+' conftest.er1 >conftest.err
16055 cat conftest.err >&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
16058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16059 { (case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_try") 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; } &&
16068 { ac_try='test -s conftest$ac_exeext'
16069 { (case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_try") 2>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078 { echo "$as_me:$LINENO: result: yes" >&5
16079 echo "${ECHO_T}yes" >&6; }
16081 cat >>confdefs.h <<\_ACEOF
16082 #define HAVE_CRASHREPORTER_INFO 1
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 { echo "$as_me:$LINENO: result: no" >&5
16090 echo "${ECHO_T}no" >&6; }
16092 cat >>confdefs.h <<\_ACEOF
16093 #define HAVE_CRASHREPORTER_INFO 0
16098 rm -f core conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16104 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16105 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16106 if test "${ac_cv_huge_val_sanity+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 ac_cpp='$CXXCPP $CPPFLAGS'
16112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16116 ac_save_CXXFLAGS=$CXXFLAGS
16118 if test "$cross_compiling" = yes; then
16119 ac_cv_huge_val_sanity=yes
16121 cat >conftest.$ac_ext <<_ACEOF
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h. */
16131 double x = HUGE_VAL; return x != x;
16136 rm -f conftest$ac_exeext
16137 if { (ac_try="$ac_link"
16138 case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_link") 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156 ac_cv_huge_val_sanity=yes
16158 echo "$as_me: program exited with status $ac_status" >&5
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ( exit $ac_status )
16163 ac_cv_huge_val_sanity=no
16165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16169 CXXFLAGS=$ac_save_CXXFLAGS
16171 ac_cpp='$CPP $CPPFLAGS'
16172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16178 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16179 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16180 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16183 { echo "$as_me:$LINENO: checking for pid_t" >&5
16184 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16185 if test "${ac_cv_type_pid_t+set}" = set; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 cat >conftest.$ac_ext <<_ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 $ac_includes_default
16195 typedef pid_t ac__type_new_;
16199 if ((ac__type_new_ *) 0)
16201 if (sizeof (ac__type_new_))
16207 rm -f conftest.$ac_objext
16208 if { (ac_try="$ac_compile"
16209 case "(($ac_try" in
16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211 *) ac_try_echo=$ac_try;;
16213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214 (eval "$ac_compile") 2>conftest.er1
16216 grep -v '^ *+' conftest.er1 >conftest.err
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16222 { (case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_try") 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; } &&
16231 { ac_try='test -s conftest.$ac_objext'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_type_pid_t=yes
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 ac_cv_type_pid_t=no
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16251 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16252 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16253 if test $ac_cv_type_pid_t = yes; then
16257 cat >>confdefs.h <<_ACEOF
16263 { echo "$as_me:$LINENO: checking for size_t" >&5
16264 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16265 if test "${ac_cv_type_size_t+set}" = set; then
16266 echo $ECHO_N "(cached) $ECHO_C" >&6
16268 cat >conftest.$ac_ext <<_ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16274 $ac_includes_default
16275 typedef size_t ac__type_new_;
16279 if ((ac__type_new_ *) 0)
16281 if (sizeof (ac__type_new_))
16287 rm -f conftest.$ac_objext
16288 if { (ac_try="$ac_compile"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_compile") 2>conftest.er1
16296 grep -v '^ *+' conftest.er1 >conftest.err
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } &&
16301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16302 { (case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_try") 2>&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; } &&
16311 { ac_try='test -s conftest.$ac_objext'
16312 { (case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_try") 2>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16321 ac_cv_type_size_t=yes
16323 echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16326 ac_cv_type_size_t=no
16329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16331 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16332 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16333 if test $ac_cv_type_size_t = yes; then
16337 cat >>confdefs.h <<_ACEOF
16338 #define size_t unsigned int
16344 cat >>confdefs.h <<_ACEOF
16345 #define RETSIGTYPE void
16348 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16349 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16350 if test "${ac_cv_struct_tm+set}" = set; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 cat >conftest.$ac_ext <<_ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h. */
16359 #include <sys/types.h>
16365 struct tm *tp; tp->tm_sec;
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_compile") 2>conftest.er1
16379 grep -v '^ *+' conftest.er1 >conftest.err
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16385 { (case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_try") 2>&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; } &&
16394 { ac_try='test -s conftest.$ac_objext'
16395 { (case "(($ac_try" in
16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397 *) ac_try_echo=$ac_try;;
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400 (eval "$ac_try") 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; }; then
16404 ac_cv_struct_tm=time.h
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16409 ac_cv_struct_tm=sys/time.h
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16415 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16416 if test $ac_cv_struct_tm = sys/time.h; then
16418 cat >>confdefs.h <<\_ACEOF
16419 #define TM_IN_SYS_TIME 1
16424 { echo "$as_me:$LINENO: checking for int64_t" >&5
16425 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16426 if test "${ac_cv_type_int64_t+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 cat >conftest.$ac_ext <<_ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 $ac_includes_default
16436 typedef int64_t ac__type_new_;
16440 if ((ac__type_new_ *) 0)
16442 if (sizeof (ac__type_new_))
16448 rm -f conftest.$ac_objext
16449 if { (ac_try="$ac_compile"
16450 case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_compile") 2>conftest.er1
16457 grep -v '^ *+' conftest.er1 >conftest.err
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
16462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16463 { (case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_try") 2>&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; } &&
16472 { ac_try='test -s conftest.$ac_objext'
16473 { (case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_try") 2>&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; }; then
16482 ac_cv_type_int64_t=yes
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ac_cv_type_int64_t=no
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16493 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16494 if test $ac_cv_type_int64_t = yes; then
16496 cat >>confdefs.h <<_ACEOF
16497 #define HAVE_INT64_T 1
16502 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16503 echo "$as_me: error: Type int64_t required but not found" >&2;}
16504 { (exit 1); exit 1; }; }
16507 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16508 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16509 if test "${ac_cv_type_uint64_t+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 cat >conftest.$ac_ext <<_ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 $ac_includes_default
16519 typedef uint64_t ac__type_new_;
16523 if ((ac__type_new_ *) 0)
16525 if (sizeof (ac__type_new_))
16531 rm -f conftest.$ac_objext
16532 if { (ac_try="$ac_compile"
16533 case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_compile") 2>conftest.er1
16540 grep -v '^ *+' conftest.er1 >conftest.err
16542 cat conftest.err >&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } &&
16545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest.$ac_objext'
16556 { (case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_try") 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_type_uint64_t=yes
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ac_cv_type_uint64_t=no
16573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16576 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16577 if test $ac_cv_type_uint64_t = yes; then
16579 cat >>confdefs.h <<_ACEOF
16580 #define HAVE_UINT64_T 1
16585 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16586 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16587 if test "${ac_cv_type_u_int64_t+set}" = set; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16590 cat >conftest.$ac_ext <<_ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 $ac_includes_default
16597 typedef u_int64_t ac__type_new_;
16601 if ((ac__type_new_ *) 0)
16603 if (sizeof (ac__type_new_))
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_compile") 2>conftest.er1
16618 grep -v '^ *+' conftest.er1 >conftest.err
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } &&
16623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16624 { (case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_try") 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest.$ac_objext'
16634 { (case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_try") 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16643 ac_cv_type_u_int64_t=yes
16645 echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16648 ac_cv_type_u_int64_t=no
16651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16653 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16654 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16655 if test $ac_cv_type_u_int64_t = yes; then
16657 cat >>confdefs.h <<_ACEOF
16658 #define HAVE_U_INT64_T 1
16663 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16664 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16665 { (exit 1); exit 1; }; }
16679 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16695 #define $ac_func innocuous_$ac_func
16697 /* System header to define __stub macros and hopefully few prototypes,
16698 which can conflict with char $ac_func (); below.
16699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16700 <limits.h> exists even on freestanding compilers. */
16703 # include <limits.h>
16705 # include <assert.h>
16710 /* Override any GCC internal prototype to avoid an error.
16711 Use char because int might match the return type of a GCC
16712 builtin and then its argument prototype would still apply. */
16717 /* The GNU C library defines this for functions which it implements
16718 to always fail with ENOSYS. Some functions are actually named
16719 something starting with __ and the normal name is an alias. */
16720 #if defined __stub_$ac_func || defined __stub___$ac_func
16727 return $ac_func ();
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_link") 2>conftest.er1
16741 grep -v '^ *+' conftest.er1 >conftest.err
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest$ac_exeext'
16757 { (case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_try") 2>&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 eval "$as_ac_var=yes"
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16771 eval "$as_ac_var=no"
16774 rm -f core conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext conftest.$ac_ext
16777 ac_res=`eval echo '${'$as_ac_var'}'`
16778 { echo "$as_me:$LINENO: result: $ac_res" >&5
16779 echo "${ECHO_T}$ac_res" >&6; }
16780 if test `eval echo '${'$as_ac_var'}'` = yes; then
16781 cat >>confdefs.h <<_ACEOF
16782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16792 for ac_func in powf fmodf strtof round
16794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 cat >conftest.$ac_ext <<_ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16808 #define $ac_func innocuous_$ac_func
16810 /* System header to define __stub macros and hopefully few prototypes,
16811 which can conflict with char $ac_func (); below.
16812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16813 <limits.h> exists even on freestanding compilers. */
16816 # include <limits.h>
16818 # include <assert.h>
16823 /* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
16830 /* The GNU C library defines this for functions which it implements
16831 to always fail with ENOSYS. Some functions are actually named
16832 something starting with __ and the normal name is an alias. */
16833 #if defined __stub_$ac_func || defined __stub___$ac_func
16840 return $ac_func ();
16845 rm -f conftest.$ac_objext conftest$ac_exeext
16846 if { (ac_try="$ac_link"
16847 case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_link") 2>conftest.er1
16854 grep -v '^ *+' conftest.er1 >conftest.err
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16860 { (case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_try") 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; } &&
16869 { ac_try='test -s conftest$ac_exeext'
16870 { (case "(($ac_try" in
16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872 *) ac_try_echo=$ac_try;;
16874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875 (eval "$ac_try") 2>&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
16879 eval "$as_ac_var=yes"
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16884 eval "$as_ac_var=no"
16887 rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16890 ac_res=`eval echo '${'$as_ac_var'}'`
16891 { echo "$as_me:$LINENO: result: $ac_res" >&5
16892 echo "${ECHO_T}$ac_res" >&6; }
16893 if test `eval echo '${'$as_ac_var'}'` = yes; then
16894 cat >>confdefs.h <<_ACEOF
16895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16906 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 cat >conftest.$ac_ext <<_ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16922 #define $ac_func innocuous_$ac_func
16924 /* System header to define __stub macros and hopefully few prototypes,
16925 which can conflict with char $ac_func (); below.
16926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16927 <limits.h> exists even on freestanding compilers. */
16930 # include <limits.h>
16932 # include <assert.h>
16937 /* Override any GCC internal prototype to avoid an error.
16938 Use char because int might match the return type of a GCC
16939 builtin and then its argument prototype would still apply. */
16944 /* The GNU C library defines this for functions which it implements
16945 to always fail with ENOSYS. Some functions are actually named
16946 something starting with __ and the normal name is an alias. */
16947 #if defined __stub_$ac_func || defined __stub___$ac_func
16954 return $ac_func ();
16959 rm -f conftest.$ac_objext conftest$ac_exeext
16960 if { (ac_try="$ac_link"
16961 case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_link") 2>conftest.er1
16968 grep -v '^ *+' conftest.er1 >conftest.err
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16974 { (case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_try") 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; } &&
16983 { ac_try='test -s conftest$ac_exeext'
16984 { (case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_try") 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 eval "$as_ac_var=yes"
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 eval "$as_ac_var=no"
17001 rm -f core conftest.err conftest.$ac_objext \
17002 conftest$ac_exeext conftest.$ac_ext
17004 ac_res=`eval echo '${'$as_ac_var'}'`
17005 { echo "$as_me:$LINENO: result: $ac_res" >&5
17006 echo "${ECHO_T}$ac_res" >&6; }
17007 if test `eval echo '${'$as_ac_var'}'` = yes; then
17008 cat >>confdefs.h <<_ACEOF
17009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17018 for ac_func in isatty mkdtemp mkstemp
17020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 cat >conftest.$ac_ext <<_ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17034 #define $ac_func innocuous_$ac_func
17036 /* System header to define __stub macros and hopefully few prototypes,
17037 which can conflict with char $ac_func (); below.
17038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17039 <limits.h> exists even on freestanding compilers. */
17042 # include <limits.h>
17044 # include <assert.h>
17049 /* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
17056 /* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
17059 #if defined __stub_$ac_func || defined __stub___$ac_func
17066 return $ac_func ();
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
17080 grep -v '^ *+' conftest.er1 >conftest.err
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 eval "$as_ac_var=yes"
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 eval "$as_ac_var=no"
17113 rm -f core conftest.err conftest.$ac_objext \
17114 conftest$ac_exeext conftest.$ac_ext
17116 ac_res=`eval echo '${'$as_ac_var'}'`
17117 { echo "$as_me:$LINENO: result: $ac_res" >&5
17118 echo "${ECHO_T}$ac_res" >&6; }
17119 if test `eval echo '${'$as_ac_var'}'` = yes; then
17120 cat >>confdefs.h <<_ACEOF
17121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17133 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 cat >conftest.$ac_ext <<_ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17149 #define $ac_func innocuous_$ac_func
17151 /* System header to define __stub macros and hopefully few prototypes,
17152 which can conflict with char $ac_func (); below.
17153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17154 <limits.h> exists even on freestanding compilers. */
17157 # include <limits.h>
17159 # include <assert.h>
17164 /* Override any GCC internal prototype to avoid an error.
17165 Use char because int might match the return type of a GCC
17166 builtin and then its argument prototype would still apply. */
17171 /* The GNU C library defines this for functions which it implements
17172 to always fail with ENOSYS. Some functions are actually named
17173 something starting with __ and the normal name is an alias. */
17174 #if defined __stub_$ac_func || defined __stub___$ac_func
17181 return $ac_func ();
17186 rm -f conftest.$ac_objext conftest$ac_exeext
17187 if { (ac_try="$ac_link"
17188 case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_link") 2>conftest.er1
17195 grep -v '^ *+' conftest.er1 >conftest.err
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; } &&
17210 { ac_try='test -s conftest$ac_exeext'
17211 { (case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_try") 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 eval "$as_ac_var=yes"
17222 echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 eval "$as_ac_var=no"
17228 rm -f core conftest.err conftest.$ac_objext \
17229 conftest$ac_exeext conftest.$ac_ext
17231 ac_res=`eval echo '${'$as_ac_var'}'`
17232 { echo "$as_me:$LINENO: result: $ac_res" >&5
17233 echo "${ECHO_T}$ac_res" >&6; }
17234 if test `eval echo '${'$as_ac_var'}'` = yes; then
17235 cat >>confdefs.h <<_ACEOF
17236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17245 for ac_func in strerror strerror_r setenv
17247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 cat >conftest.$ac_ext <<_ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h. */
17259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17261 #define $ac_func innocuous_$ac_func
17263 /* System header to define __stub macros and hopefully few prototypes,
17264 which can conflict with char $ac_func (); below.
17265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17266 <limits.h> exists even on freestanding compilers. */
17269 # include <limits.h>
17271 # include <assert.h>
17276 /* Override any GCC internal prototype to avoid an error.
17277 Use char because int might match the return type of a GCC
17278 builtin and then its argument prototype would still apply. */
17283 /* The GNU C library defines this for functions which it implements
17284 to always fail with ENOSYS. Some functions are actually named
17285 something starting with __ and the normal name is an alias. */
17286 #if defined __stub_$ac_func || defined __stub___$ac_func
17293 return $ac_func ();
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17307 grep -v '^ *+' conftest.er1 >conftest.err
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17313 { (case "(($ac_try" in
17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318 (eval "$ac_try") 2>&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest$ac_exeext'
17323 { (case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_try") 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 eval "$as_ac_var=yes"
17334 echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17337 eval "$as_ac_var=no"
17340 rm -f core conftest.err conftest.$ac_objext \
17341 conftest$ac_exeext conftest.$ac_ext
17343 ac_res=`eval echo '${'$as_ac_var'}'`
17344 { echo "$as_me:$LINENO: result: $ac_res" >&5
17345 echo "${ECHO_T}$ac_res" >&6; }
17346 if test `eval echo '${'$as_ac_var'}'` = yes; then
17347 cat >>confdefs.h <<_ACEOF
17348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17358 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 cat >conftest.$ac_ext <<_ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374 #define $ac_func innocuous_$ac_func
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char $ac_func (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17382 # include <limits.h>
17384 # include <assert.h>
17389 /* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17396 /* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399 #if defined __stub_$ac_func || defined __stub___$ac_func
17406 return $ac_func ();
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_link") 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17426 { (case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431 (eval "$ac_try") 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_try") 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 eval "$as_ac_var=yes"
17447 echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17450 eval "$as_ac_var=no"
17453 rm -f core conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17456 ac_res=`eval echo '${'$as_ac_var'}'`
17457 { echo "$as_me:$LINENO: result: $ac_res" >&5
17458 echo "${ECHO_T}$ac_res" >&6; }
17459 if test `eval echo '${'$as_ac_var'}'` = yes; then
17460 cat >>confdefs.h <<_ACEOF
17461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17472 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17478 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 cat >conftest.$ac_ext <<_ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17488 #define $ac_func innocuous_$ac_func
17490 /* System header to define __stub macros and hopefully few prototypes,
17491 which can conflict with char $ac_func (); below.
17492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17493 <limits.h> exists even on freestanding compilers. */
17496 # include <limits.h>
17498 # include <assert.h>
17503 /* Override any GCC internal prototype to avoid an error.
17504 Use char because int might match the return type of a GCC
17505 builtin and then its argument prototype would still apply. */
17510 /* The GNU C library defines this for functions which it implements
17511 to always fail with ENOSYS. Some functions are actually named
17512 something starting with __ and the normal name is an alias. */
17513 #if defined __stub_$ac_func || defined __stub___$ac_func
17520 return $ac_func ();
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (ac_try="$ac_link"
17527 case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_link") 2>conftest.er1
17534 grep -v '^ *+' conftest.er1 >conftest.err
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17540 { (case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_try") 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest$ac_exeext'
17550 { (case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_try") 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 eval "$as_ac_var=yes"
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17564 eval "$as_ac_var=no"
17567 rm -f core conftest.err conftest.$ac_objext \
17568 conftest$ac_exeext conftest.$ac_ext
17570 ac_res=`eval echo '${'$as_ac_var'}'`
17571 { echo "$as_me:$LINENO: result: $ac_res" >&5
17572 echo "${ECHO_T}$ac_res" >&6; }
17573 if test `eval echo '${'$as_ac_var'}'` = yes; then
17574 cat >>confdefs.h <<_ACEOF
17575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17581 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17582 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17583 if test "${llvm_cv_c_printf_a+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 ac_cpp='$CPP $CPPFLAGS'
17588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17592 if test "$cross_compiling" = yes; then
17593 llvmac_cv_c_printf_a=no
17595 cat >conftest.$ac_ext <<_ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17604 #include <stdlib.h>
17610 volatile double A, B;
17614 sprintf(Buffer, "%a", A);
17618 if (A != 0x1.999999999999ap-4)
17625 rm -f conftest$ac_exeext
17626 if { (ac_try="$ac_link"
17627 case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_link") 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 llvm_cv_c_printf_a=yes
17647 echo "$as_me: program exited with status $ac_status" >&5
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 ( exit $ac_status )
17652 llvmac_cv_c_printf_a=no
17654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17659 ac_cpp='$CPP $CPPFLAGS'
17660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17665 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17666 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17667 if test "$llvm_cv_c_printf_a" = "yes"; then
17669 cat >>confdefs.h <<\_ACEOF
17670 #define HAVE_PRINTF_A 1
17676 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17677 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17678 if test "${ac_cv_func_rand48+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 ac_cpp='$CXXCPP $CPPFLAGS'
17683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17687 cat >conftest.$ac_ext <<_ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 #include <stdlib.h>
17697 srand48(0);lrand48();drand48();
17702 rm -f conftest.$ac_objext
17703 if { (ac_try="$ac_compile"
17704 case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_compile") 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest.$ac_objext'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 ac_cv_func_rand48=yes
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 ac_cv_func_rand48=no
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 ac_cpp='$CPP $CPPFLAGS'
17747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17752 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17753 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17755 if test "$ac_cv_func_rand48" = "yes" ; then
17757 cat >>confdefs.h <<\_ACEOF
17758 #define HAVE_RAND48 1
17764 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17765 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17766 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 $ac_includes_default
17780 char *p = (char *) strerror_s;
17788 rm -f conftest.$ac_objext
17789 if { (ac_try="$ac_compile"
17790 case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_compile") 2>conftest.er1
17797 grep -v '^ *+' conftest.er1 >conftest.err
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17803 { (case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_try") 2>&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest.$ac_objext'
17813 { (case "(($ac_try" in
17814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815 *) ac_try_echo=$ac_try;;
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818 (eval "$ac_try") 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_cv_have_decl_strerror_s=yes
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 ac_cv_have_decl_strerror_s=no
17830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17832 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17833 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17834 if test $ac_cv_have_decl_strerror_s = yes; then
17836 cat >>confdefs.h <<_ACEOF
17837 #define HAVE_DECL_STRERROR_S 1
17842 cat >>confdefs.h <<_ACEOF
17843 #define HAVE_DECL_STRERROR_S 0
17851 if test "$llvm_cv_os_type" = "MingW" ; then
17852 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17853 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17854 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 ac_check_lib_save_LIBS=$LIBS
17859 cat >conftest.$ac_ext <<_ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17866 /* Override any GCC internal prototype to avoid an error.
17867 Use char because int might match the return type of a GCC
17868 builtin and then its argument prototype would still apply. */
17881 rm -f conftest.$ac_objext conftest$ac_exeext
17882 if { (ac_try="$ac_link"
17883 case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_link") 2>conftest.er1
17890 grep -v '^ *+' conftest.er1 >conftest.err
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } &&
17895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17896 { (case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_try") 2>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; } &&
17905 { ac_try='test -s conftest$ac_exeext'
17906 { (case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_try") 2>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_cv_lib_gcc__alloca=yes
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 ac_cv_lib_gcc__alloca=no
17923 rm -f core conftest.err conftest.$ac_objext \
17924 conftest$ac_exeext conftest.$ac_ext
17925 LIBS=$ac_check_lib_save_LIBS
17927 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17928 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17929 if test $ac_cv_lib_gcc__alloca = yes; then
17931 cat >>confdefs.h <<\_ACEOF
17932 #define HAVE__ALLOCA 1
17937 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17938 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17939 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17942 ac_check_lib_save_LIBS=$LIBS
17944 cat >conftest.$ac_ext <<_ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17961 return __alloca ();
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (ac_try="$ac_link"
17968 case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_link") 2>conftest.er1
17975 grep -v '^ *+' conftest.er1 >conftest.err
17977 cat conftest.err >&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
17980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17981 { (case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_try") 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest$ac_exeext'
17991 { (case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_try") 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_cv_lib_gcc___alloca=yes
18002 echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 ac_cv_lib_gcc___alloca=no
18008 rm -f core conftest.err conftest.$ac_objext \
18009 conftest$ac_exeext conftest.$ac_ext
18010 LIBS=$ac_check_lib_save_LIBS
18012 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18013 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18014 if test $ac_cv_lib_gcc___alloca = yes; then
18016 cat >>confdefs.h <<\_ACEOF
18017 #define HAVE___ALLOCA 1
18022 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18023 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18024 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 ac_check_lib_save_LIBS=$LIBS
18029 cat >conftest.$ac_ext <<_ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18046 return __chkstk ();
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_link") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066 { (case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_try") 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest$ac_exeext'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 ac_cv_lib_gcc___chkstk=yes
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_cv_lib_gcc___chkstk=no
18093 rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18095 LIBS=$ac_check_lib_save_LIBS
18097 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18098 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18099 if test $ac_cv_lib_gcc___chkstk = yes; then
18101 cat >>confdefs.h <<\_ACEOF
18102 #define HAVE___CHKSTK 1
18107 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18108 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18109 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 ac_check_lib_save_LIBS=$LIBS
18114 cat >conftest.$ac_ext <<_ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18121 /* Override any GCC internal prototype to avoid an error.
18122 Use char because int might match the return type of a GCC
18123 builtin and then its argument prototype would still apply. */
18131 return ___chkstk ();
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18151 { (case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_try") 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try='test -s conftest$ac_exeext'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_cv_lib_gcc____chkstk=yes
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ac_cv_lib_gcc____chkstk=no
18178 rm -f core conftest.err conftest.$ac_objext \
18179 conftest$ac_exeext conftest.$ac_ext
18180 LIBS=$ac_check_lib_save_LIBS
18182 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18183 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18184 if test $ac_cv_lib_gcc____chkstk = yes; then
18186 cat >>confdefs.h <<\_ACEOF
18187 #define HAVE____CHKSTK 1
18193 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18194 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18195 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 ac_check_lib_save_LIBS=$LIBS
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18207 /* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18217 return __ashldi3 ();
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (ac_try="$ac_link"
18224 case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229 (eval "$ac_link") 2>conftest.er1
18231 grep -v '^ *+' conftest.er1 >conftest.err
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18237 { (case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242 (eval "$ac_try") 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest$ac_exeext'
18247 { (case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_try") 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; }; then
18256 ac_cv_lib_gcc___ashldi3=yes
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 ac_cv_lib_gcc___ashldi3=no
18264 rm -f core conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266 LIBS=$ac_check_lib_save_LIBS
18268 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18269 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18270 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18272 cat >>confdefs.h <<\_ACEOF
18273 #define HAVE___ASHLDI3 1
18278 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18279 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18280 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18283 ac_check_lib_save_LIBS=$LIBS
18285 cat >conftest.$ac_ext <<_ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18292 /* Override any GCC internal prototype to avoid an error.
18293 Use char because int might match the return type of a GCC
18294 builtin and then its argument prototype would still apply. */
18302 return __ashrdi3 ();
18307 rm -f conftest.$ac_objext conftest$ac_exeext
18308 if { (ac_try="$ac_link"
18309 case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_link") 2>conftest.er1
18316 grep -v '^ *+' conftest.er1 >conftest.err
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
18321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18322 { (case "(($ac_try" in
18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324 *) ac_try_echo=$ac_try;;
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327 (eval "$ac_try") 2>&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; } &&
18331 { ac_try='test -s conftest$ac_exeext'
18332 { (case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_try") 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 ac_cv_lib_gcc___ashrdi3=yes
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 ac_cv_lib_gcc___ashrdi3=no
18349 rm -f core conftest.err conftest.$ac_objext \
18350 conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18353 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18354 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18355 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18357 cat >>confdefs.h <<\_ACEOF
18358 #define HAVE___ASHRDI3 1
18363 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18364 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18365 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 ac_check_lib_save_LIBS=$LIBS
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18377 /* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18387 return __divdi3 ();
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (ac_try="$ac_link"
18394 case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399 (eval "$ac_link") 2>conftest.er1
18401 grep -v '^ *+' conftest.er1 >conftest.err
18403 cat conftest.err >&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } &&
18406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18407 { (case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_try") 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_try") 2>&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; }; then
18426 ac_cv_lib_gcc___divdi3=yes
18428 echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18431 ac_cv_lib_gcc___divdi3=no
18434 rm -f core conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
18436 LIBS=$ac_check_lib_save_LIBS
18438 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18439 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18440 if test $ac_cv_lib_gcc___divdi3 = yes; then
18442 cat >>confdefs.h <<\_ACEOF
18443 #define HAVE___DIVDI3 1
18448 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18449 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18450 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 ac_check_lib_save_LIBS=$LIBS
18455 cat >conftest.$ac_ext <<_ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18462 /* Override any GCC internal prototype to avoid an error.
18463 Use char because int might match the return type of a GCC
18464 builtin and then its argument prototype would still apply. */
18472 return __fixdfdi ();
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (ac_try="$ac_link"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_link") 2>conftest.er1
18486 grep -v '^ *+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492 { (case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497 (eval "$ac_try") 2>&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest$ac_exeext'
18502 { (case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_try") 2>&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; }; then
18511 ac_cv_lib_gcc___fixdfdi=yes
18513 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516 ac_cv_lib_gcc___fixdfdi=no
18519 rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18521 LIBS=$ac_check_lib_save_LIBS
18523 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18524 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18525 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18527 cat >>confdefs.h <<\_ACEOF
18528 #define HAVE___FIXDFDI 1
18533 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18534 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18535 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 ac_check_lib_save_LIBS=$LIBS
18540 cat >conftest.$ac_ext <<_ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18547 /* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18557 return __fixsfdi ();
18562 rm -f conftest.$ac_objext conftest$ac_exeext
18563 if { (ac_try="$ac_link"
18564 case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_link") 2>conftest.er1
18571 grep -v '^ *+' conftest.er1 >conftest.err
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18577 { (case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_try") 2>&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; } &&
18586 { ac_try='test -s conftest$ac_exeext'
18587 { (case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_try") 2>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; }; then
18596 ac_cv_lib_gcc___fixsfdi=yes
18598 echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.$ac_ext >&5
18601 ac_cv_lib_gcc___fixsfdi=no
18604 rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
18606 LIBS=$ac_check_lib_save_LIBS
18608 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18609 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18610 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18612 cat >>confdefs.h <<\_ACEOF
18613 #define HAVE___FIXSFDI 1
18618 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18619 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18620 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 ac_check_lib_save_LIBS=$LIBS
18625 cat >conftest.$ac_ext <<_ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18632 /* Override any GCC internal prototype to avoid an error.
18633 Use char because int might match the return type of a GCC
18634 builtin and then its argument prototype would still apply. */
18638 char __floatdidf ();
18642 return __floatdidf ();
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_link") 2>conftest.er1
18656 grep -v '^ *+' conftest.er1 >conftest.err
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18662 { (case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_try") 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try='test -s conftest$ac_exeext'
18672 { (case "(($ac_try" in
18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674 *) ac_try_echo=$ac_try;;
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677 (eval "$ac_try") 2>&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_lib_gcc___floatdidf=yes
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 ac_cv_lib_gcc___floatdidf=no
18689 rm -f core conftest.err conftest.$ac_objext \
18690 conftest$ac_exeext conftest.$ac_ext
18691 LIBS=$ac_check_lib_save_LIBS
18693 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18694 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18695 if test $ac_cv_lib_gcc___floatdidf = yes; then
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE___FLOATDIDF 1
18703 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18704 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18705 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18708 ac_check_lib_save_LIBS=$LIBS
18710 cat >conftest.$ac_ext <<_ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18717 /* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18727 return __lshrdi3 ();
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (ac_try="$ac_link"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739 (eval "$ac_link") 2>conftest.er1
18741 grep -v '^ *+' conftest.er1 >conftest.err
18743 cat conftest.err >&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } &&
18746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18747 { (case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_try") 2>&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest$ac_exeext'
18757 { (case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_try") 2>&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 ac_cv_lib_gcc___lshrdi3=yes
18768 echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18771 ac_cv_lib_gcc___lshrdi3=no
18774 rm -f core conftest.err conftest.$ac_objext \
18775 conftest$ac_exeext conftest.$ac_ext
18776 LIBS=$ac_check_lib_save_LIBS
18778 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18779 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18780 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18782 cat >>confdefs.h <<\_ACEOF
18783 #define HAVE___LSHRDI3 1
18788 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18789 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18790 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 ac_check_lib_save_LIBS=$LIBS
18795 cat >conftest.$ac_ext <<_ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18802 /* Override any GCC internal prototype to avoid an error.
18803 Use char because int might match the return type of a GCC
18804 builtin and then its argument prototype would still apply. */
18812 return __moddi3 ();
18817 rm -f conftest.$ac_objext conftest$ac_exeext
18818 if { (ac_try="$ac_link"
18819 case "(($ac_try" in
18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821 *) ac_try_echo=$ac_try;;
18823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824 (eval "$ac_link") 2>conftest.er1
18826 grep -v '^ *+' conftest.er1 >conftest.err
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } &&
18831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18832 { (case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_try") 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest$ac_exeext'
18842 { (case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_try") 2>&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_lib_gcc___moddi3=yes
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 ac_cv_lib_gcc___moddi3=no
18859 rm -f core conftest.err conftest.$ac_objext \
18860 conftest$ac_exeext conftest.$ac_ext
18861 LIBS=$ac_check_lib_save_LIBS
18863 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18864 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18865 if test $ac_cv_lib_gcc___moddi3 = yes; then
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE___MODDI3 1
18873 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18874 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18875 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18878 ac_check_lib_save_LIBS=$LIBS
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18887 /* Override any GCC internal prototype to avoid an error.
18888 Use char because int might match the return type of a GCC
18889 builtin and then its argument prototype would still apply. */
18897 return __udivdi3 ();
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (ac_try="$ac_link"
18904 case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_link") 2>conftest.er1
18911 grep -v '^ *+' conftest.er1 >conftest.err
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18917 { (case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_try") 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest$ac_exeext'
18927 { (case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_try") 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_lib_gcc___udivdi3=yes
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ac_cv_lib_gcc___udivdi3=no
18944 rm -f core conftest.err conftest.$ac_objext \
18945 conftest$ac_exeext conftest.$ac_ext
18946 LIBS=$ac_check_lib_save_LIBS
18948 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18949 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18950 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE___UDIVDI3 1
18958 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18959 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18960 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18963 ac_check_lib_save_LIBS=$LIBS
18965 cat >conftest.$ac_ext <<_ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18972 /* Override any GCC internal prototype to avoid an error.
18973 Use char because int might match the return type of a GCC
18974 builtin and then its argument prototype would still apply. */
18982 return __umoddi3 ();
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (ac_try="$ac_link"
18989 case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994 (eval "$ac_link") 2>conftest.er1
18996 grep -v '^ *+' conftest.er1 >conftest.err
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
19001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest$ac_exeext'
19012 { (case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_try") 2>&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_gcc___umoddi3=yes
19023 echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19026 ac_cv_lib_gcc___umoddi3=no
19029 rm -f core conftest.err conftest.$ac_objext \
19030 conftest$ac_exeext conftest.$ac_ext
19031 LIBS=$ac_check_lib_save_LIBS
19033 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19034 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19035 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19037 cat >>confdefs.h <<\_ACEOF
19038 #define HAVE___UMODDI3 1
19044 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19045 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19046 if test "${ac_cv_lib_gcc___main+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 ac_check_lib_save_LIBS=$LIBS
19051 cat >conftest.$ac_ext <<_ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19058 /* Override any GCC internal prototype to avoid an error.
19059 Use char because int might match the return type of a GCC
19060 builtin and then its argument prototype would still apply. */
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (ac_try="$ac_link"
19075 case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_link") 2>conftest.er1
19082 grep -v '^ *+' conftest.er1 >conftest.err
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
19087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19088 { (case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_try") 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; } &&
19097 { ac_try='test -s conftest$ac_exeext'
19098 { (case "(($ac_try" in
19099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100 *) ac_try_echo=$ac_try;;
19102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103 (eval "$ac_try") 2>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_cv_lib_gcc___main=yes
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19112 ac_cv_lib_gcc___main=no
19115 rm -f core conftest.err conftest.$ac_objext \
19116 conftest$ac_exeext conftest.$ac_ext
19117 LIBS=$ac_check_lib_save_LIBS
19119 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19120 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19121 if test $ac_cv_lib_gcc___main = yes; then
19123 cat >>confdefs.h <<\_ACEOF
19124 #define HAVE___MAIN 1
19129 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19130 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19131 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 ac_check_lib_save_LIBS=$LIBS
19136 cat >conftest.$ac_ext <<_ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19143 /* Override any GCC internal prototype to avoid an error.
19144 Use char because int might match the return type of a GCC
19145 builtin and then its argument prototype would still apply. */
19153 return __cmpdi2 ();
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (ac_try="$ac_link"
19160 case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_link") 2>conftest.er1
19167 grep -v '^ *+' conftest.er1 >conftest.err
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } &&
19172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19173 { (case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_try") 2>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_try") 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_lib_gcc___cmpdi2=yes
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ac_cv_lib_gcc___cmpdi2=no
19200 rm -f core conftest.err conftest.$ac_objext \
19201 conftest$ac_exeext conftest.$ac_ext
19202 LIBS=$ac_check_lib_save_LIBS
19204 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19205 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19206 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19208 cat >>confdefs.h <<\_ACEOF
19209 #define HAVE___CMPDI2 1
19216 if test "$llvm_cv_os_type" = "MingW" ; then
19217 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19218 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19219 cat >conftest.$ac_ext <<_ACEOF
19220 #include <windows.h>
19221 #include <imagehlp.h>
19222 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19223 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19234 grep -v '^ *+' conftest.er1 >conftest.err
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240 { (case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; } &&
19249 { ac_try='test -s conftest.$ac_objext'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19260 { echo "$as_me:$LINENO: result: yes" >&5
19261 echo "${ECHO_T}yes" >&6; }
19262 llvm_cv_win32_elmcb_pcstr="PCSTR"
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19269 { echo "$as_me:$LINENO: result: no" >&5
19270 echo "${ECHO_T}no" >&6; }
19271 llvm_cv_win32_elmcb_pcstr="PSTR"
19275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 cat >>confdefs.h <<_ACEOF
19278 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19284 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19285 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19286 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19290 ac_cpp='$CXXCPP $CPPFLAGS'
19291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19295 cat >conftest.$ac_ext <<_ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19310 rm -f conftest.$ac_objext
19311 if { (ac_try="$ac_compile"
19312 case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_compile") 2>conftest.er1
19319 grep -v '^ *+' conftest.er1 >conftest.err
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; } &&
19334 { ac_try='test -s conftest.$ac_objext'
19335 { (case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_try") 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_func_isnan_in_math_h=yes
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 ac_cv_func_isnan_in_math_h=no
19352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354 ac_cpp='$CPP $CPPFLAGS'
19355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19360 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19361 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19364 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19366 cat >>confdefs.h <<\_ACEOF
19367 #define HAVE_ISNAN_IN_MATH_H 1
19372 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19373 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19374 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 ac_cpp='$CXXCPP $CPPFLAGS'
19379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19383 cat >conftest.$ac_ext <<_ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19398 rm -f conftest.$ac_objext
19399 if { (ac_try="$ac_compile"
19400 case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_compile") 2>conftest.er1
19407 grep -v '^ *+' conftest.er1 >conftest.err
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19413 { (case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_try") 2>&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest.$ac_objext'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_try") 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_cv_func_isnan_in_cmath=yes
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_func_isnan_in_cmath=no
19440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442 ac_cpp='$CPP $CPPFLAGS'
19443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19448 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19449 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19451 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19453 cat >>confdefs.h <<\_ACEOF
19454 #define HAVE_ISNAN_IN_CMATH 1
19459 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19460 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19461 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 ac_cpp='$CXXCPP $CPPFLAGS'
19466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19480 float f; std::isnan(f);
19485 rm -f conftest.$ac_objext
19486 if { (ac_try="$ac_compile"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_compile") 2>conftest.er1
19494 grep -v '^ *+' conftest.er1 >conftest.err
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
19499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19500 { (case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_try") 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest.$ac_objext'
19510 { (case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_try") 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19519 ac_cv_func_std_isnan_in_cmath=yes
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19524 ac_cv_func_std_isnan_in_cmath=no
19527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19529 ac_cpp='$CPP $CPPFLAGS'
19530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19535 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19536 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19538 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19540 cat >>confdefs.h <<\_ACEOF
19541 #define HAVE_STD_ISNAN_IN_CMATH 1
19547 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19548 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19549 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 ac_cpp='$CXXCPP $CPPFLAGS'
19554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19558 cat >conftest.$ac_ext <<_ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19573 rm -f conftest.$ac_objext
19574 if { (ac_try="$ac_compile"
19575 case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_compile") 2>conftest.er1
19582 grep -v '^ *+' conftest.er1 >conftest.err
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19588 { (case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_try") 2>&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest.$ac_objext'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19607 ac_cv_func_isinf_in_math_h=yes
19609 echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19612 ac_cv_func_isinf_in_math_h=no
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19623 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19624 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19626 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE_ISINF_IN_MATH_H 1
19634 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19635 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19636 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19640 ac_cpp='$CXXCPP $CPPFLAGS'
19641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19645 cat >conftest.$ac_ext <<_ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_compile") 2>conftest.er1
19669 grep -v '^ *+' conftest.er1 >conftest.err
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19675 { (case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_try") 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
19685 { (case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_try") 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 ac_cv_func_isinf_in_cmath=yes
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_cv_func_isinf_in_cmath=no
19702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704 ac_cpp='$CPP $CPPFLAGS'
19705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19710 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19711 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19713 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19715 cat >>confdefs.h <<\_ACEOF
19716 #define HAVE_ISINF_IN_CMATH 1
19721 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19722 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19723 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 ac_cpp='$CXXCPP $CPPFLAGS'
19728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19732 cat >conftest.$ac_ext <<_ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19742 float f; std::isinf(f)}
19747 rm -f conftest.$ac_objext
19748 if { (ac_try="$ac_compile"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_compile") 2>conftest.er1
19756 grep -v '^ *+' conftest.er1 >conftest.err
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } &&
19761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19762 { (case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767 (eval "$ac_try") 2>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; } &&
19771 { ac_try='test -s conftest.$ac_objext'
19772 { (case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_try") 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_cv_func_std_isinf_in_cmath=yes
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19786 ac_cv_func_std_isinf_in_cmath=no
19789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791 ac_cpp='$CPP $CPPFLAGS'
19792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19797 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19798 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19800 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19802 cat >>confdefs.h <<\_ACEOF
19803 #define HAVE_STD_ISINF_IN_CMATH 1
19808 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19809 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19810 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 ac_cpp='$CXXCPP $CPPFLAGS'
19815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 #include <ieeefp.h>
19829 float f; finite(f);
19834 rm -f conftest.$ac_objext
19835 if { (ac_try="$ac_compile"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_compile") 2>conftest.er1
19843 grep -v '^ *+' conftest.er1 >conftest.err
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
19848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19849 { (case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_try") 2>&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; } &&
19858 { ac_try='test -s conftest.$ac_objext'
19859 { (case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_try") 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 ac_cv_func_finite_in_ieeefp_h=yes
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19873 ac_cv_func_finite_in_ieeefp_h=no
19876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19878 ac_cpp='$CPP $CPPFLAGS'
19879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19884 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19885 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19887 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19889 cat >>confdefs.h <<\_ACEOF
19890 #define HAVE_FINITE_IN_IEEEFP_H 1
19897 if test "$llvm_cv_platform_type" = "Unix" ; then
19900 for ac_header in stdlib.h unistd.h
19902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 ac_res=`eval echo '${'$as_ac_Header'}'`
19910 { echo "$as_me:$LINENO: result: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19913 # Is the header compilable?
19914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19916 cat >conftest.$ac_ext <<_ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 $ac_includes_default
19923 #include <$ac_header>
19925 rm -f conftest.$ac_objext
19926 if { (ac_try="$ac_compile"
19927 case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_compile") 2>conftest.er1
19934 grep -v '^ *+' conftest.er1 >conftest.err
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } &&
19939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19940 { (case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_try") 2>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; } &&
19949 { ac_try='test -s conftest.$ac_objext'
19950 { (case "(($ac_try" in
19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952 *) ac_try_echo=$ac_try;;
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_try") 2>&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959 ac_header_compiler=yes
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19964 ac_header_compiler=no
19967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19969 echo "${ECHO_T}$ac_header_compiler" >&6; }
19971 # Is the header present?
19972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19974 cat >conftest.$ac_ext <<_ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 #include <$ac_header>
19982 if { (ac_try="$ac_cpp conftest.$ac_ext"
19983 case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19990 grep -v '^ *+' conftest.er1 >conftest.err
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } >/dev/null; then
19995 if test -s conftest.err; then
19996 ac_cpp_err=$ac_c_preproc_warn_flag
19997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20004 if test -z "$ac_cpp_err"; then
20005 ac_header_preproc=yes
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ac_header_preproc=no
20013 rm -f conftest.err conftest.$ac_ext
20014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20015 echo "${ECHO_T}$ac_header_preproc" >&6; }
20017 # So? What about this header?
20018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20024 ac_header_preproc=yes
20027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20040 ## ----------------------------------- ##
20041 ## Report this to llvmbugs@cs.uiuc.edu ##
20042 ## ----------------------------------- ##
20044 ) | sed "s/^/$as_me: WARNING: /" >&2
20047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 eval "$as_ac_Header=\$ac_header_preproc"
20054 ac_res=`eval echo '${'$as_ac_Header'}'`
20055 { echo "$as_me:$LINENO: result: $ac_res" >&5
20056 echo "${ECHO_T}$ac_res" >&6; }
20059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20060 cat >>confdefs.h <<_ACEOF
20061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20069 for ac_func in getpagesize
20071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20085 #define $ac_func innocuous_$ac_func
20087 /* System header to define __stub macros and hopefully few prototypes,
20088 which can conflict with char $ac_func (); below.
20089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20090 <limits.h> exists even on freestanding compilers. */
20093 # include <limits.h>
20095 # include <assert.h>
20100 /* Override any GCC internal prototype to avoid an error.
20101 Use char because int might match the return type of a GCC
20102 builtin and then its argument prototype would still apply. */
20107 /* The GNU C library defines this for functions which it implements
20108 to always fail with ENOSYS. Some functions are actually named
20109 something starting with __ and the normal name is an alias. */
20110 #if defined __stub_$ac_func || defined __stub___$ac_func
20117 return $ac_func ();
20122 rm -f conftest.$ac_objext conftest$ac_exeext
20123 if { (ac_try="$ac_link"
20124 case "(($ac_try" in
20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126 *) ac_try_echo=$ac_try;;
20128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129 (eval "$ac_link") 2>conftest.er1
20131 grep -v '^ *+' conftest.er1 >conftest.err
20133 cat conftest.err >&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } &&
20136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20137 { (case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_try") 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; } &&
20146 { ac_try='test -s conftest$ac_exeext'
20147 { (case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_try") 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20156 eval "$as_ac_var=yes"
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 eval "$as_ac_var=no"
20164 rm -f core conftest.err conftest.$ac_objext \
20165 conftest$ac_exeext conftest.$ac_ext
20167 ac_res=`eval echo '${'$as_ac_var'}'`
20168 { echo "$as_me:$LINENO: result: $ac_res" >&5
20169 echo "${ECHO_T}$ac_res" >&6; }
20170 if test `eval echo '${'$as_ac_var'}'` = yes; then
20171 cat >>confdefs.h <<_ACEOF
20172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20178 { echo "$as_me:$LINENO: checking for working mmap" >&5
20179 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20180 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 if test "$cross_compiling" = yes; then
20184 ac_cv_func_mmap_fixed_mapped=no
20186 cat >conftest.$ac_ext <<_ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 $ac_includes_default
20193 /* malloc might have been renamed as rpl_malloc. */
20196 /* Thanks to Mike Haertel and Jim Avera for this test.
20197 Here is a matrix of mmap possibilities:
20198 mmap private not fixed
20199 mmap private fixed at somewhere currently unmapped
20200 mmap private fixed at somewhere already mapped
20201 mmap shared not fixed
20202 mmap shared fixed at somewhere currently unmapped
20203 mmap shared fixed at somewhere already mapped
20204 For private mappings, we should verify that changes cannot be read()
20205 back from the file, nor mmap's back from the file at a different
20206 address. (There have been systems where private was not correctly
20207 implemented like the infamous i386 svr4.0, and systems where the
20208 VM page cache was not coherent with the file system buffer cache
20209 like early versions of FreeBSD and possibly contemporary NetBSD.)
20210 For shared mappings, we should conversely verify that changes get
20211 propagated back to all the places they're supposed to be.
20213 Grep wants private fixed already mapped.
20214 The main things grep needs to know about mmap are:
20215 * does it exist and is it safe to write into the mmap'd area
20216 * how to use it (BSD variants) */
20219 #include <sys/mman.h>
20221 #if !STDC_HEADERS && !HAVE_STDLIB_H
20225 /* This mess was copied from the GNU getpagesize.h. */
20226 #if !HAVE_GETPAGESIZE
20227 /* Assume that all systems that can run configure have sys/param.h. */
20228 # if !HAVE_SYS_PARAM_H
20229 # define HAVE_SYS_PARAM_H 1
20232 # ifdef _SC_PAGESIZE
20233 # define getpagesize() sysconf(_SC_PAGESIZE)
20234 # else /* no _SC_PAGESIZE */
20235 # if HAVE_SYS_PARAM_H
20236 # include <sys/param.h>
20237 # ifdef EXEC_PAGESIZE
20238 # define getpagesize() EXEC_PAGESIZE
20239 # else /* no EXEC_PAGESIZE */
20241 # define getpagesize() NBPG * CLSIZE
20244 # endif /* no CLSIZE */
20245 # else /* no NBPG */
20247 # define getpagesize() NBPC
20248 # else /* no NBPC */
20250 # define getpagesize() PAGESIZE
20251 # endif /* PAGESIZE */
20252 # endif /* no NBPC */
20253 # endif /* no NBPG */
20254 # endif /* no EXEC_PAGESIZE */
20255 # else /* no HAVE_SYS_PARAM_H */
20256 # define getpagesize() 8192 /* punt totally */
20257 # endif /* no HAVE_SYS_PARAM_H */
20258 # endif /* no _SC_PAGESIZE */
20260 #endif /* no HAVE_GETPAGESIZE */
20265 char *data, *data2, *data3;
20269 pagesize = getpagesize ();
20271 /* First, make a file with some known garbage in it. */
20272 data = (char *) malloc (pagesize);
20275 for (i = 0; i < pagesize; ++i)
20276 *(data + i) = rand ();
20278 fd = creat ("conftest.mmap", 0600);
20281 if (write (fd, data, pagesize) != pagesize)
20285 /* Next, try to mmap the file at a fixed address which already has
20286 something else allocated at it. If we can, also make sure that
20287 we see the same garbage. */
20288 fd = open ("conftest.mmap", O_RDWR);
20291 data2 = (char *) malloc (2 * pagesize);
20294 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20295 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20296 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20298 for (i = 0; i < pagesize; ++i)
20299 if (*(data + i) != *(data2 + i))
20302 /* Finally, make sure that changes to the mapped area do not
20303 percolate back to the file as seen by read(). (This is a bug on
20304 some variants of i386 svr4.0.) */
20305 for (i = 0; i < pagesize; ++i)
20306 *(data2 + i) = *(data2 + i) + 1;
20307 data3 = (char *) malloc (pagesize);
20310 if (read (fd, data3, pagesize) != pagesize)
20312 for (i = 0; i < pagesize; ++i)
20313 if (*(data + i) != *(data3 + i))
20319 rm -f conftest$ac_exeext
20320 if { (ac_try="$ac_link"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_link") 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_cv_func_mmap_fixed_mapped=yes
20341 echo "$as_me: program exited with status $ac_status" >&5
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 ( exit $ac_status )
20346 ac_cv_func_mmap_fixed_mapped=no
20348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20353 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20354 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20355 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20357 cat >>confdefs.h <<\_ACEOF
20358 #define HAVE_MMAP 1
20362 rm -f conftest.mmap
20364 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20365 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20366 if test "${ac_cv_func_mmap_file+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 ac_cpp='$CPP $CPPFLAGS'
20371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20375 if test "$cross_compiling" = yes; then
20376 ac_cv_func_mmap_file=no
20378 cat >conftest.$ac_ext <<_ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20386 #include <sys/types.h>
20387 #include <sys/mman.h>
20395 fd = creat ("foo",0777);
20396 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20398 return (fd != (int) MAP_FAILED);
20403 rm -f conftest$ac_exeext
20404 if { (ac_try="$ac_link"
20405 case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_link") 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 ac_cv_func_mmap_file=yes
20425 echo "$as_me: program exited with status $ac_status" >&5
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ( exit $ac_status )
20430 ac_cv_func_mmap_file=no
20432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20437 ac_cpp='$CPP $CPPFLAGS'
20438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20444 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20445 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20446 if test "$ac_cv_func_mmap_file" = yes; then
20448 cat >>confdefs.h <<\_ACEOF
20449 #define HAVE_MMAP_FILE
20456 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20457 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20458 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 if test "$llvm_cv_os_type" = "Interix" ; then
20462 ac_cv_need_dev_zero_for_mmap=yes
20464 ac_cv_need_dev_zero_for_mmap=no
20468 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20469 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20470 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20472 cat >>confdefs.h <<\_ACEOF
20473 #define NEED_DEV_ZERO_FOR_MMAP 1
20478 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20480 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20481 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20483 if test "$ac_cv_func_mmap_file" = "no"
20485 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20486 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20490 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20491 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20493 ac_cpp='$CXXCPP $CPPFLAGS'
20494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20498 cat >conftest.$ac_ext <<_ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20505 volatile unsigned long val = 1;
20506 __sync_synchronize();
20507 __sync_val_compare_and_swap(&val, 1, 0);
20508 __sync_add_and_fetch(&val, 1);
20509 __sync_sub_and_fetch(&val, 1);
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_link") 2>conftest.er1
20523 grep -v '^ *+' conftest.er1 >conftest.err
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
20528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20529 { (case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_try") 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; } &&
20538 { ac_try='test -s conftest$ac_exeext'
20539 { (case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_try") 2>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
20549 ac_cpp='$CPP $CPPFLAGS'
20550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20554 { echo "$as_me:$LINENO: result: yes" >&5
20555 echo "${ECHO_T}yes" >&6; }
20557 cat >>confdefs.h <<\_ACEOF
20558 #define LLVM_HAS_ATOMICS 1
20562 echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20565 { echo "$as_me:$LINENO: result: no" >&5
20566 echo "${ECHO_T}no" >&6; }
20568 cat >>confdefs.h <<\_ACEOF
20569 #define LLVM_HAS_ATOMICS 0
20572 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20573 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20576 rm -f core conftest.err conftest.$ac_objext \
20577 conftest$ac_exeext conftest.$ac_ext
20580 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20581 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20582 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20583 if test "${llvm_cv_linux_mixed+set}" = set; then
20584 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 ac_cpp='$CPP $CPPFLAGS'
20588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20599 error: Not x86-64 even if uname says so!
20610 rm -f conftest.$ac_objext
20611 if { (ac_try="$ac_compile"
20612 case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_compile") 2>conftest.er1
20619 grep -v '^ *+' conftest.er1 >conftest.err
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_try") 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; } &&
20634 { ac_try='test -s conftest.$ac_objext'
20635 { (case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_try") 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 llvm_cv_linux_mixed=no
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 llvm_cv_linux_mixed=yes
20652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20654 ac_cpp='$CPP $CPPFLAGS'
20655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20661 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20662 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20664 if test "$llvm_cv_linux_mixed" = "yes"; then
20665 llvm_cv_target_arch="x86"
20671 for ac_func in __dso_handle
20673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 cat >conftest.$ac_ext <<_ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20687 #define $ac_func innocuous_$ac_func
20689 /* System header to define __stub macros and hopefully few prototypes,
20690 which can conflict with char $ac_func (); below.
20691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20692 <limits.h> exists even on freestanding compilers. */
20695 # include <limits.h>
20697 # include <assert.h>
20702 /* Override any GCC internal prototype to avoid an error.
20703 Use char because int might match the return type of a GCC
20704 builtin and then its argument prototype would still apply. */
20709 /* The GNU C library defines this for functions which it implements
20710 to always fail with ENOSYS. Some functions are actually named
20711 something starting with __ and the normal name is an alias. */
20712 #if defined __stub_$ac_func || defined __stub___$ac_func
20719 return $ac_func ();
20724 rm -f conftest.$ac_objext conftest$ac_exeext
20725 if { (ac_try="$ac_link"
20726 case "(($ac_try" in
20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728 *) ac_try_echo=$ac_try;;
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_link") 2>conftest.er1
20733 grep -v '^ *+' conftest.er1 >conftest.err
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
20738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20739 { (case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_try") 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; } &&
20748 { ac_try='test -s conftest$ac_exeext'
20749 { (case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_try") 2>&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; }; then
20758 eval "$as_ac_var=yes"
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 eval "$as_ac_var=no"
20766 rm -f core conftest.err conftest.$ac_objext \
20767 conftest$ac_exeext conftest.$ac_ext
20769 ac_res=`eval echo '${'$as_ac_var'}'`
20770 { echo "$as_me:$LINENO: result: $ac_res" >&5
20771 echo "${ECHO_T}$ac_res" >&6; }
20772 if test `eval echo '${'$as_ac_var'}'` = yes; then
20773 cat >>confdefs.h <<_ACEOF
20774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20781 SHLIBEXT=$libltdl_cv_shlibext
20784 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20787 # Translate the various configuration directories and other basic
20788 # information into substitutions that will end up in Makefile.config.in
20789 # that these configured values can be used by the makefiles
20790 if test "${prefix}" = "NONE" ; then
20791 prefix="/usr/local"
20793 eval LLVM_PREFIX="${prefix}";
20794 eval LLVM_BINDIR="${prefix}/bin";
20795 eval LLVM_LIBDIR="${prefix}/lib";
20796 eval LLVM_DATADIR="${prefix}/share/llvm";
20797 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20798 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20799 eval LLVM_INCLUDEDIR="${prefix}/include";
20800 eval LLVM_INFODIR="${prefix}/info";
20801 eval LLVM_MANDIR="${prefix}/man";
20802 LLVM_CONFIGTIME=`date`
20814 # Place the various directores into the config.h file as #defines so that we
20815 # can know about the installation paths within LLVM.
20817 cat >>confdefs.h <<_ACEOF
20818 #define LLVM_PREFIX "$LLVM_PREFIX"
20822 cat >>confdefs.h <<_ACEOF
20823 #define LLVM_BINDIR "$LLVM_BINDIR"
20827 cat >>confdefs.h <<_ACEOF
20828 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20832 cat >>confdefs.h <<_ACEOF
20833 #define LLVM_DATADIR "$LLVM_DATADIR"
20837 cat >>confdefs.h <<_ACEOF
20838 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20842 cat >>confdefs.h <<_ACEOF
20843 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20847 cat >>confdefs.h <<_ACEOF
20848 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20852 cat >>confdefs.h <<_ACEOF
20853 #define LLVM_INFODIR "$LLVM_INFODIR"
20857 cat >>confdefs.h <<_ACEOF
20858 #define LLVM_MANDIR "$LLVM_MANDIR"
20862 cat >>confdefs.h <<_ACEOF
20863 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20867 cat >>confdefs.h <<_ACEOF
20868 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20872 # Determine which bindings to build.
20873 if test "$BINDINGS_TO_BUILD" = auto ; then
20874 BINDINGS_TO_BUILD=""
20875 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20876 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20879 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20882 # This isn't really configurey, but it avoids having to repeat the list in
20887 # Do any work necessary to ensure that bindings have what they need.
20888 binding_prereqs_failed=0
20889 for a_binding in $BINDINGS_TO_BUILD ; do
20890 case "$a_binding" in
20892 if test "x$OCAMLC" = x ; then
20893 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20894 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20895 binding_prereqs_failed=1
20897 if test "x$OCAMLDEP" = x ; then
20898 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20899 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20900 binding_prereqs_failed=1
20902 if test "x$OCAMLOPT" = x ; then
20903 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20904 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20906 if test "x$with_ocaml_libdir" != xauto ; then
20907 OCAML_LIBDIR=$with_ocaml_libdir
20910 ocaml_stdlib="`"$OCAMLC" -where`"
20911 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20913 # ocaml stdlib is beneath our prefix; use stdlib
20914 OCAML_LIBDIR=$ocaml_stdlib
20917 # ocaml stdlib is outside our prefix; use libdir/ocaml
20918 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20925 if test "$binding_prereqs_failed" = 1 ; then
20926 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20927 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20928 { (exit 1); exit 1; }; }
20931 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20932 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20933 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20937 ac_cpp='$CXXCPP $CPPFLAGS'
20938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20942 oldcxxflags="$CXXFLAGS"
20943 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20944 cat >conftest.$ac_ext <<_ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20968 grep -v '^ *+' conftest.er1 >conftest.err
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
20973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; } &&
20983 { ac_try='test -s conftest.$ac_objext'
20984 { (case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_try") 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 llvm_cv_cxx_visibility_inlines_hidden=yes
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 llvm_cv_cxx_visibility_inlines_hidden=no
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 CXXFLAGS="$oldcxxflags"
21004 ac_cpp='$CPP $CPPFLAGS'
21005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21011 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21012 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21013 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21014 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21017 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21022 if test "$llvm_cv_link_use_r" = "yes" ; then
21029 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21030 RDYNAMIC="-Wl,-export-dynamic"
21037 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21044 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21046 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21048 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21050 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21052 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21055 ac_config_files="$ac_config_files Makefile.config"
21058 ac_config_files="$ac_config_files llvm.spec"
21061 ac_config_files="$ac_config_files docs/doxygen.cfg"
21063 if test -f ${srcdir}/tools/clang/README.txt; then
21064 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21071 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21074 ac_config_commands="$ac_config_commands setup"
21076 ac_config_commands="$ac_config_commands Makefile"
21079 ac_config_commands="$ac_config_commands Makefile.common"
21082 ac_config_commands="$ac_config_commands examples/Makefile"
21085 ac_config_commands="$ac_config_commands lib/Makefile"
21088 ac_config_commands="$ac_config_commands runtime/Makefile"
21091 ac_config_commands="$ac_config_commands test/Makefile"
21094 ac_config_commands="$ac_config_commands test/Makefile.tests"
21097 ac_config_commands="$ac_config_commands unittests/Makefile"
21100 ac_config_commands="$ac_config_commands tools/Makefile"
21103 ac_config_commands="$ac_config_commands utils/Makefile"
21106 ac_config_commands="$ac_config_commands projects/Makefile"
21109 ac_config_commands="$ac_config_commands bindings/Makefile"
21112 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21116 cat >confcache <<\_ACEOF
21117 # This file is a shell script that caches the results of configure
21118 # tests run on this system so they can be shared between configure
21119 # scripts and configure runs, see configure's option --config-cache.
21120 # It is not useful on other systems. If it contains results you don't
21121 # want to keep, you may remove or edit it.
21123 # config.status only pays attention to the cache file if you give it
21124 # the --recheck option to rerun configure.
21126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21128 # following values.
21132 # The following way of writing the cache mishandles newlines in values,
21133 # but we know of no workaround that is simple, portable, and efficient.
21134 # So, we kill variables containing newlines.
21135 # Ultrix sh set writes to stderr and can't be redirected directly,
21136 # and sets the high bit in the cache file unless we assign to the vars.
21138 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21139 eval ac_val=\$$ac_var
21143 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21144 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21147 _ | IFS | as_nl) ;; #(
21148 *) $as_unset $ac_var ;;
21154 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21155 *${as_nl}ac_space=\ *)
21156 # `set' does not quote correctly, so add quotes (double-quote
21157 # substitution turns \\\\ into \\, and sed turns \\ into \).
21160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21163 # `set' quotes correctly as required by POSIX, so do not add quotes.
21164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21177 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21178 if test -w "$cache_file"; then
21179 test "x$cache_file" != "x/dev/null" &&
21180 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21181 echo "$as_me: updating cache $cache_file" >&6;}
21182 cat confcache >$cache_file
21184 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21185 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21191 # Let make expand exec_prefix.
21192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21194 DEFS=-DHAVE_CONFIG_H
21198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21199 # 1. Remove the extension, and $U if already installed.
21200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21201 ac_i=`echo "$ac_i" | sed "$ac_script"`
21202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21203 # will be set to the directory where LIBOBJS objects are built.
21204 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21205 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21207 LIBOBJS=$ac_libobjs
21209 LTLIBOBJS=$ac_ltlibobjs
21212 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21213 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21214 Usually this means the macro was only invoked conditionally." >&5
21215 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21216 Usually this means the macro was only invoked conditionally." >&2;}
21217 { (exit 1); exit 1; }; }
21219 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21220 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21221 Usually this means the macro was only invoked conditionally." >&5
21222 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21223 Usually this means the macro was only invoked conditionally." >&2;}
21224 { (exit 1); exit 1; }; }
21227 : ${CONFIG_STATUS=./config.status}
21228 ac_clean_files_save=$ac_clean_files
21229 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21230 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21231 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21232 cat >$CONFIG_STATUS <<_ACEOF
21234 # Generated by $as_me.
21235 # Run this file to recreate the current configuration.
21236 # Compiler output produced by configure, useful for debugging
21237 # configure, is in config.log if it exists.
21240 ac_cs_recheck=false
21242 SHELL=\${CONFIG_SHELL-$SHELL}
21245 cat >>$CONFIG_STATUS <<\_ACEOF
21246 ## --------------------- ##
21247 ## M4sh Initialization. ##
21248 ## --------------------- ##
21250 # Be Bourne compatible
21251 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21254 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21255 # is contrary to our usage. Disable this feature.
21256 alias -g '${1+"$@"}'='"$@"'
21257 setopt NO_GLOB_SUBST
21259 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21261 BIN_SH=xpg4; export BIN_SH # for Tru64
21262 DUALCASE=1; export DUALCASE # for MKS sh
21266 # Avoid depending upon Character Ranges.
21267 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21268 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21269 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21270 as_cr_digits='0123456789'
21271 as_cr_alnum=$as_cr_Letters$as_cr_digits
21273 # The user is always right.
21274 if test "${PATH_SEPARATOR+set}" != set; then
21275 echo "#! /bin/sh" >conf$$.sh
21276 echo "exit 0" >>conf$$.sh
21278 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21286 # Support unset when possible.
21287 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21295 # We need space, tab and new line, in precisely that order. Quoting is
21296 # there to prevent editors from complaining about space-tab.
21297 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21298 # splitting by setting IFS to empty value.)
21303 # Find who we are. Look in the path if we contain no directory separator.
21305 *[\\/]* ) as_myself=$0 ;;
21306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21307 for as_dir in $PATH
21310 test -z "$as_dir" && as_dir=.
21311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21317 # We did not find ourselves, most probably we were run as `sh COMMAND'
21318 # in which case we are not to be found in the path.
21319 if test "x$as_myself" = x; then
21322 if test ! -f "$as_myself"; then
21323 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21324 { (exit 1); exit 1; }
21327 # Work around bugs in pre-3.0 UWIN ksh.
21328 for as_var in ENV MAIL MAILPATH
21329 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21337 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21338 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21339 LC_TELEPHONE LC_TIME
21341 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21342 eval $as_var=C; export $as_var
21344 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21348 # Required to use basename.
21349 if expr a : '\(a\)' >/dev/null 2>&1 &&
21350 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21356 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21357 as_basename=basename
21363 # Name of the executable.
21364 as_me=`$as_basename -- "$0" ||
21365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21366 X"$0" : 'X\(//\)$' \| \
21367 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21369 sed '/^.*\/\([^/][^/]*\)\/*$/{
21388 as_lineno_1=$LINENO
21389 as_lineno_2=$LINENO
21390 test "x$as_lineno_1" != "x$as_lineno_2" &&
21391 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21393 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21394 # uniformly replaced by the line number. The first 'sed' inserts a
21395 # line-number line after each line using $LINENO; the second 'sed'
21396 # does the real work. The second script uses 'N' to pair each
21397 # line-number line with the line containing $LINENO, and appends
21398 # trailing '-' during substitution so that $LINENO is not a special
21399 # case at line end.
21400 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21401 # scripts with optimization help from Paolo Bonzini. Blame Lee
21402 # E. McMahon (1931-1989) for sed's syntax. :-)
21414 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21417 ' >$as_me.lineno &&
21418 chmod +x "$as_me.lineno" ||
21419 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21420 { (exit 1); exit 1; }; }
21422 # Don't try to exec as it changes $[0], causing all sort of problems
21423 # (the dirname of $[0] is not the place where we might find the
21424 # original and so on. Autoconf is especially sensitive to this).
21425 . "./$as_me.lineno"
21426 # Exit status is that of the last command.
21431 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21437 ECHO_C= ECHO_N= ECHO_T=
21438 case `echo -n x` in
21440 case `echo 'x\c'` in
21441 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21448 if expr a : '\(a\)' >/dev/null 2>&1 &&
21449 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21455 rm -f conf$$ conf$$.exe conf$$.file
21456 if test -d conf$$.dir; then
21457 rm -f conf$$.dir/conf$$.file
21463 if ln -s conf$$.file conf$$ 2>/dev/null; then
21465 # ... but there are two gotchas:
21466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21468 # In both cases, we have to default to `cp -p'.
21469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21471 elif ln conf$$.file conf$$ 2>/dev/null; then
21476 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21477 rmdir conf$$.dir 2>/dev/null
21479 if mkdir -p . 2>/dev/null; then
21482 test -d ./-p && rmdir ./-p
21486 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21487 # systems may use methods other than mode bits to determine executability.
21488 cat >conf$$.file <<_ASEOF
21492 chmod +x conf$$.file
21493 if test -x conf$$.file >/dev/null 2>&1; then
21494 as_executable_p="test -x"
21500 # Sed expression to map a string onto a valid CPP name.
21501 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21503 # Sed expression to map a string onto a valid variable name.
21504 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21509 # Save the log message, to keep $[0] and so on meaningful, and to
21510 # report actual input values of CONFIG_FILES etc. instead of their
21511 # values after options handling.
21513 This file was extended by llvm $as_me 3.1svn, which was
21514 generated by GNU Autoconf 2.60. Invocation command line was
21516 CONFIG_FILES = $CONFIG_FILES
21517 CONFIG_HEADERS = $CONFIG_HEADERS
21518 CONFIG_LINKS = $CONFIG_LINKS
21519 CONFIG_COMMANDS = $CONFIG_COMMANDS
21522 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21527 cat >>$CONFIG_STATUS <<_ACEOF
21528 # Files that config.status was made for.
21529 config_files="$ac_config_files"
21530 config_headers="$ac_config_headers"
21531 config_commands="$ac_config_commands"
21535 cat >>$CONFIG_STATUS <<\_ACEOF
21537 \`$as_me' instantiates files from templates according to the
21538 current configuration.
21540 Usage: $0 [OPTIONS] [FILE]...
21542 -h, --help print this help, then exit
21543 -V, --version print version number, then exit
21544 -q, --quiet do not print progress messages
21545 -d, --debug don't remove temporary files
21546 --recheck update $as_me by reconfiguring in the same conditions
21547 --file=FILE[:TEMPLATE]
21548 instantiate the configuration file FILE
21549 --header=FILE[:TEMPLATE]
21550 instantiate the configuration header FILE
21552 Configuration files:
21555 Configuration headers:
21558 Configuration commands:
21561 Report bugs to <bug-autoconf@gnu.org>."
21564 cat >>$CONFIG_STATUS <<_ACEOF
21566 llvm config.status 3.1svn
21567 configured by $0, generated by GNU Autoconf 2.60,
21568 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21570 Copyright (C) 2006 Free Software Foundation, Inc.
21571 This config.status script is free software; the Free Software Foundation
21572 gives unlimited permission to copy, distribute and modify it."
21579 cat >>$CONFIG_STATUS <<\_ACEOF
21580 # If no file are specified by the user, then we need to provide default
21581 # value. By we need to know if files were specified by the user.
21587 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21588 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21599 # Handling of the options.
21600 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21602 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21603 echo "$ac_cs_version"; exit ;;
21604 --debug | --debu | --deb | --de | --d | -d )
21606 --file | --fil | --fi | --f )
21608 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21609 ac_need_defaults=false;;
21610 --header | --heade | --head | --hea )
21612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21613 ac_need_defaults=false;;
21615 # Conflict between --help and --header
21616 { echo "$as_me: error: ambiguous option: $1
21617 Try \`$0 --help' for more information." >&2
21618 { (exit 1); exit 1; }; };;
21619 --help | --hel | -h )
21620 echo "$ac_cs_usage"; exit ;;
21621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21625 # This is an error.
21626 -*) { echo "$as_me: error: unrecognized option: $1
21627 Try \`$0 --help' for more information." >&2
21628 { (exit 1); exit 1; }; } ;;
21630 *) ac_config_targets="$ac_config_targets $1"
21631 ac_need_defaults=false ;;
21637 ac_configure_extra_args=
21639 if $ac_cs_silent; then
21641 ac_configure_extra_args="$ac_configure_extra_args --silent"
21645 cat >>$CONFIG_STATUS <<_ACEOF
21646 if \$ac_cs_recheck; then
21647 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21648 CONFIG_SHELL=$SHELL
21649 export CONFIG_SHELL
21650 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21654 cat >>$CONFIG_STATUS <<\_ACEOF
21658 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21659 ## Running $as_me. ##
21665 cat >>$CONFIG_STATUS <<_ACEOF
21669 llvm_src="${srcdir}"
21673 cat >>$CONFIG_STATUS <<\_ACEOF
21675 # Handling of arguments.
21676 for ac_config_target in $ac_config_targets
21678 case $ac_config_target in
21679 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21680 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21681 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21682 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21683 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21684 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21685 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21686 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21687 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21688 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21689 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21690 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21691 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21692 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21693 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21694 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21695 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21696 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21697 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21698 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21699 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21700 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21701 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21702 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21703 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21704 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21705 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21707 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21708 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21709 { (exit 1); exit 1; }; };;
21714 # If the user did not use the arguments to specify the items to instantiate,
21715 # then the envvar interface is used. Set only those that are not.
21716 # We use the long form for the default assignment because of an extremely
21717 # bizarre bug on SunOS 4.1.3.
21718 if $ac_need_defaults; then
21719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21724 # Have a temporary directory for convenience. Make it in the build tree
21725 # simply because there is no reason against having it here, and in addition,
21726 # creating and moving files from /tmp can sometimes cause problems.
21727 # Hook for its removal unless debugging.
21728 # Note that there is a small window in which the directory will not be cleaned:
21729 # after its creation but before its name has been assigned to `$tmp'.
21733 trap 'exit_status=$?
21734 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21736 trap '{ (exit 1); exit 1; }' 1 2 13 15
21738 # Create a (secure) tmp directory for tmp files.
21741 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21742 test -n "$tmp" && test -d "$tmp"
21745 tmp=./conf$$-$RANDOM
21746 (umask 077 && mkdir "$tmp")
21749 echo "$me: cannot create a temporary directory in ." >&2
21750 { (exit 1); exit 1; }
21754 # Set up the sed scripts for CONFIG_FILES section.
21757 # No need to generate the scripts if there are no CONFIG_FILES.
21758 # This happens for instance when ./config.status config.h
21759 if test -n "$CONFIG_FILES"; then
21766 for ac_last_try in false false false false false :; do
21767 cat >conf$$subs.sed <<_ACEOF
21768 SHELL!$SHELL$ac_delim
21769 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21770 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21771 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21772 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21773 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21774 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21775 exec_prefix!$exec_prefix$ac_delim
21776 prefix!$prefix$ac_delim
21777 program_transform_name!$program_transform_name$ac_delim
21778 bindir!$bindir$ac_delim
21779 sbindir!$sbindir$ac_delim
21780 libexecdir!$libexecdir$ac_delim
21781 datarootdir!$datarootdir$ac_delim
21782 datadir!$datadir$ac_delim
21783 sysconfdir!$sysconfdir$ac_delim
21784 sharedstatedir!$sharedstatedir$ac_delim
21785 localstatedir!$localstatedir$ac_delim
21786 includedir!$includedir$ac_delim
21787 oldincludedir!$oldincludedir$ac_delim
21788 docdir!$docdir$ac_delim
21789 infodir!$infodir$ac_delim
21790 htmldir!$htmldir$ac_delim
21791 dvidir!$dvidir$ac_delim
21792 pdfdir!$pdfdir$ac_delim
21793 psdir!$psdir$ac_delim
21794 libdir!$libdir$ac_delim
21795 localedir!$localedir$ac_delim
21796 mandir!$mandir$ac_delim
21797 DEFS!$DEFS$ac_delim
21798 ECHO_C!$ECHO_C$ac_delim
21799 ECHO_N!$ECHO_N$ac_delim
21800 ECHO_T!$ECHO_T$ac_delim
21801 LIBS!$LIBS$ac_delim
21802 build_alias!$build_alias$ac_delim
21803 host_alias!$host_alias$ac_delim
21804 target_alias!$target_alias$ac_delim
21805 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21807 CFLAGS!$CFLAGS$ac_delim
21808 LDFLAGS!$LDFLAGS$ac_delim
21809 CPPFLAGS!$CPPFLAGS$ac_delim
21810 ac_ct_CC!$ac_ct_CC$ac_delim
21811 EXEEXT!$EXEEXT$ac_delim
21812 OBJEXT!$OBJEXT$ac_delim
21814 CXXFLAGS!$CXXFLAGS$ac_delim
21815 ac_ct_CXX!$ac_ct_CXX$ac_delim
21817 subdirs!$subdirs$ac_delim
21818 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21819 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21820 build!$build$ac_delim
21821 build_cpu!$build_cpu$ac_delim
21822 build_vendor!$build_vendor$ac_delim
21823 build_os!$build_os$ac_delim
21824 host!$host$ac_delim
21825 host_cpu!$host_cpu$ac_delim
21826 host_vendor!$host_vendor$ac_delim
21827 host_os!$host_os$ac_delim
21828 target!$target$ac_delim
21829 target_cpu!$target_cpu$ac_delim
21830 target_vendor!$target_vendor$ac_delim
21831 target_os!$target_os$ac_delim
21833 HOST_OS!$HOST_OS$ac_delim
21834 TARGET_OS!$TARGET_OS$ac_delim
21835 LINKALL!$LINKALL$ac_delim
21836 NOLINKALL!$NOLINKALL$ac_delim
21837 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21838 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21839 ARCH!$ARCH$ac_delim
21840 ENDIAN!$ENDIAN$ac_delim
21841 GREP!$GREP$ac_delim
21842 EGREP!$EGREP$ac_delim
21843 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21844 BUILD_CC!$BUILD_CC$ac_delim
21845 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21846 BUILD_CXX!$BUILD_CXX$ac_delim
21847 CVSBUILD!$CVSBUILD$ac_delim
21848 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21849 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21850 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21851 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21852 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21853 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21854 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21856 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21857 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21858 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21859 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21860 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21861 ENABLE_PIC!$ENABLE_PIC$ac_delim
21862 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21863 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21864 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21867 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21869 elif $ac_last_try; then
21870 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21871 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21872 { (exit 1); exit 1; }; }
21874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21878 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21879 if test -n "$ac_eof"; then
21880 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21881 ac_eof=`expr $ac_eof + 1`
21884 cat >>$CONFIG_STATUS <<_ACEOF
21885 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21889 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21890 s/^/s,@/; s/!/@,|#_!!_#|/
21893 s/'"$ac_delim"'$/,g/; t
21895 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21896 ' >>$CONFIG_STATUS <conf$$subs.sed
21897 rm -f conf$$subs.sed
21898 cat >>$CONFIG_STATUS <<_ACEOF
21904 for ac_last_try in false false false false false :; do
21905 cat >conf$$subs.sed <<_ACEOF
21906 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21907 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21908 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21909 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21910 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21911 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21912 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21913 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21914 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21915 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21916 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21918 ifGNUmake!$ifGNUmake$ac_delim
21919 LN_S!$LN_S$ac_delim
21922 DATE!$DATE$ac_delim
21923 FIND!$FIND$ac_delim
21924 MKDIR!$MKDIR$ac_delim
21926 RANLIB!$RANLIB$ac_delim
21931 BINPWD!$BINPWD$ac_delim
21932 GRAPHVIZ!$GRAPHVIZ$ac_delim
21935 NEATO!$NEATO$ac_delim
21936 TWOPI!$TWOPI$ac_delim
21937 CIRCO!$CIRCO$ac_delim
21939 DOTTY!$DOTTY$ac_delim
21940 XDOT_PY!$XDOT_PY$ac_delim
21941 PERL!$PERL$ac_delim
21942 HAVE_PERL!$HAVE_PERL$ac_delim
21943 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21944 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21945 INSTALL_DATA!$INSTALL_DATA$ac_delim
21946 BZIP2!$BZIP2$ac_delim
21948 DOXYGEN!$DOXYGEN$ac_delim
21949 GROFF!$GROFF$ac_delim
21950 GZIPBIN!$GZIPBIN$ac_delim
21951 POD2HTML!$POD2HTML$ac_delim
21952 POD2MAN!$POD2MAN$ac_delim
21953 PDFROFF!$PDFROFF$ac_delim
21954 RUNTEST!$RUNTEST$ac_delim
21955 TCLSH!$TCLSH$ac_delim
21957 OCAMLC!$OCAMLC$ac_delim
21958 OCAMLOPT!$OCAMLOPT$ac_delim
21959 OCAMLDEP!$OCAMLDEP$ac_delim
21960 OCAMLDOC!$OCAMLDOC$ac_delim
21962 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21963 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21964 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21965 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21966 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21967 LIBADD_DL!$LIBADD_DL$ac_delim
21968 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21969 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21970 USE_UDIS86!$USE_UDIS86$ac_delim
21971 USE_OPROFILE!$USE_OPROFILE$ac_delim
21972 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21973 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21974 MMAP_FILE!$MMAP_FILE$ac_delim
21975 SHLIBEXT!$SHLIBEXT$ac_delim
21976 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21977 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21978 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21979 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21980 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21981 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21982 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21983 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21984 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21985 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21986 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21987 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21988 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21989 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21990 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21991 RPATH!$RPATH$ac_delim
21992 RDYNAMIC!$RDYNAMIC$ac_delim
21993 LIBOBJS!$LIBOBJS$ac_delim
21994 LTLIBOBJS!$LTLIBOBJS$ac_delim
21997 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
21999 elif $ac_last_try; then
22000 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22001 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22002 { (exit 1); exit 1; }; }
22004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22008 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22009 if test -n "$ac_eof"; then
22010 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22011 ac_eof=`expr $ac_eof + 1`
22014 cat >>$CONFIG_STATUS <<_ACEOF
22015 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22019 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22020 s/^/s,@/; s/!/@,|#_!!_#|/
22023 s/'"$ac_delim"'$/,g/; t
22025 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22026 ' >>$CONFIG_STATUS <conf$$subs.sed
22027 rm -f conf$$subs.sed
22028 cat >>$CONFIG_STATUS <<_ACEOF
22035 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22036 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22037 # trailing colons and then remove the whole line if VPATH becomes empty
22038 # (actually we leave an empty line to preserve line numbers).
22039 if test "x$srcdir" = x.; then
22040 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22041 s/:*\$(srcdir):*/:/
22042 s/:*\${srcdir}:*/:/
22044 s/^\([^=]*=[ ]*\):*/\1/
22050 cat >>$CONFIG_STATUS <<\_ACEOF
22051 fi # test -n "$CONFIG_FILES"
22054 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22057 :[FHLC]) ac_mode=$ac_tag; continue;;
22059 case $ac_mode$ac_tag in
22061 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22062 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22063 { (exit 1); exit 1; }; };;
22064 :[FH]-) ac_tag=-:-;;
22065 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22082 -) ac_f="$tmp/stdin";;
22083 *) # Look for the file first in the build tree, then in the source tree
22084 # (if the path is not absolute). The absolute path cannot be DOS-style,
22085 # because $ac_f cannot contain `:'.
22089 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22091 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22092 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22093 { (exit 1); exit 1; }; };;
22095 ac_file_inputs="$ac_file_inputs $ac_f"
22098 # Let's still pretend it is `configure' which instantiates (i.e., don't
22099 # use $as_me), people would be surprised to read:
22100 # /* config.h. Generated by config.status. */
22101 configure_input="Generated from "`IFS=:
22102 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22103 if test x"$ac_file" != x-; then
22104 configure_input="$ac_file. $configure_input"
22105 { echo "$as_me:$LINENO: creating $ac_file" >&5
22106 echo "$as_me: creating $ac_file" >&6;}
22110 *:-:* | *:-) cat >"$tmp/stdin";;
22115 ac_dir=`$as_dirname -- "$ac_file" ||
22116 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22117 X"$ac_file" : 'X\(//\)[^/]' \| \
22118 X"$ac_file" : 'X\(//\)$' \| \
22119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22125 /^X\(\/\/\)[^/].*/{
22140 -*) as_dir=./$as_dir;;
22142 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22146 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22147 *) as_qdir=$as_dir;;
22149 as_dirs="'$as_qdir' $as_dirs"
22150 as_dir=`$as_dirname -- "$as_dir" ||
22151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22152 X"$as_dir" : 'X\(//\)[^/]' \| \
22153 X"$as_dir" : 'X\(//\)$' \| \
22154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22160 /^X\(\/\/\)[^/].*/{
22173 test -d "$as_dir" && break
22175 test -z "$as_dirs" || eval "mkdir $as_dirs"
22176 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22177 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22178 { (exit 1); exit 1; }; }; }
22182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22184 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22185 # A ".." for each directory in $ac_dir_suffix.
22186 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22187 case $ac_top_builddir_sub in
22188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22192 ac_abs_top_builddir=$ac_pwd
22193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22194 # for backward compatibility:
22195 ac_top_builddir=$ac_top_build_prefix
22198 .) # We are building in place.
22200 ac_top_srcdir=$ac_top_builddir_sub
22201 ac_abs_top_srcdir=$ac_pwd ;;
22202 [\\/]* | ?:[\\/]* ) # Absolute name.
22203 ac_srcdir=$srcdir$ac_dir_suffix;
22204 ac_top_srcdir=$srcdir
22205 ac_abs_top_srcdir=$srcdir ;;
22206 *) # Relative name.
22207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22208 ac_top_srcdir=$ac_top_build_prefix$srcdir
22209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22222 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22226 cat >>$CONFIG_STATUS <<\_ACEOF
22227 # If the template does not know about datarootdir, expand it.
22228 # FIXME: This hack should be removed a few years after 2.60.
22229 ac_datarootdir_hack=; ac_datarootdir_seen=
22231 case `sed -n '/datarootdir/ {
22240 ' $ac_file_inputs` in
22241 *datarootdir*) ac_datarootdir_seen=yes;;
22242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22243 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22244 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22246 cat >>$CONFIG_STATUS <<_ACEOF
22247 ac_datarootdir_hack='
22248 s&@datadir@&$datadir&g
22249 s&@docdir@&$docdir&g
22250 s&@infodir@&$infodir&g
22251 s&@localedir@&$localedir&g
22252 s&@mandir@&$mandir&g
22253 s&\\\${datarootdir}&$datarootdir&g' ;;
22257 # Neutralize VPATH when `$srcdir' = `.'.
22258 # Shell code in configure.ac might set extrasub.
22259 # FIXME: do we really want to maintain this feature?
22260 cat >>$CONFIG_STATUS <<_ACEOF
22264 cat >>$CONFIG_STATUS <<\_ACEOF
22266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22267 s&@configure_input@&$configure_input&;t t
22268 s&@top_builddir@&$ac_top_builddir_sub&;t t
22269 s&@srcdir@&$ac_srcdir&;t t
22270 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22271 s&@top_srcdir@&$ac_top_srcdir&;t t
22272 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22273 s&@builddir@&$ac_builddir&;t t
22274 s&@abs_builddir@&$ac_abs_builddir&;t t
22275 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22276 s&@INSTALL@&$ac_INSTALL&;t t
22277 $ac_datarootdir_hack
22278 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22280 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22281 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22282 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22283 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22284 which seems to be undefined. Please make sure it is defined." >&5
22285 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22286 which seems to be undefined. Please make sure it is defined." >&2;}
22290 -) cat "$tmp/out"; rm -f "$tmp/out";;
22291 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22300 # Transform confdefs.h into a sed script `conftest.defines', that
22301 # substitutes the proper values into config.h.in to produce config.h.
22302 rm -f conftest.defines conftest.tail
22303 # First, append a space to every undef/define line, to ease matching.
22304 echo 's/$/ /' >conftest.defines
22305 # Then, protect against being on the right side of a sed subst, or in
22306 # an unquoted here document, in config.status. If some macros were
22307 # called several times there might be several #defines for the same
22308 # symbol, which is useless. But do not sort them, since the last
22309 # AC_DEFINE must be honored.
22310 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22311 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22312 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22313 # PARAMS is the parameter list in the macro definition--in most cases, it's
22314 # just an empty string.
22315 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22316 ac_dB='\\)[ (].*,\\1define\\2'
22324 s/^[ ]*#[ ]*define[ ][ ]*//
22329 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22330 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22331 ' >>conftest.defines
22333 # Remove the space that was appended to ease matching.
22334 # Then replace #undef with comments. This is necessary, for
22335 # example, in the case of _POSIX_SOURCE, which is predefined and required
22336 # on some systems where configure will not decide to define it.
22337 # (The regexp can be short, since the line contains either #define or #undef.)
22339 s,^[ #]*u.*,/* & */,' >>conftest.defines
22341 # Break up conftest.defines:
22342 ac_max_sed_lines=50
22344 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22345 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22346 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22348 ac_in='$ac_file_inputs'
22349 ac_out='"$tmp/out1"'
22350 ac_nxt='"$tmp/out2"'
22354 # Write a here document:
22355 cat >>$CONFIG_STATUS <<_ACEOF
22356 # First, check the format of the line:
22357 cat >"\$tmp/defines.sed" <<\\CEOF
22358 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22359 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22363 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22365 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22366 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22367 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22368 grep . conftest.tail >/dev/null || break
22369 rm -f conftest.defines
22370 mv conftest.tail conftest.defines
22372 rm -f conftest.defines conftest.tail
22374 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22375 cat >>$CONFIG_STATUS <<\_ACEOF
22376 if test x"$ac_file" != x-; then
22377 echo "/* $configure_input */" >"$tmp/config.h"
22378 cat "$ac_result" >>"$tmp/config.h"
22379 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22380 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22381 echo "$as_me: $ac_file is unchanged" >&6;}
22384 mv "$tmp/config.h" $ac_file
22387 echo "/* $configure_input */"
22393 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22394 echo "$as_me: executing $ac_file commands" >&6;}
22399 case $ac_file$ac_mode in
22400 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22401 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22402 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22403 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22404 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22405 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22406 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22407 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22408 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22409 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22410 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22411 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22412 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22414 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22416 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22418 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22420 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22422 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22424 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22431 { (exit 0); exit 0; }
22433 chmod +x $CONFIG_STATUS
22434 ac_clean_files=$ac_clean_files_save
22437 # configure is writing to config.log, and then calls config.status.
22438 # config.status does its own redirection, appending to config.log.
22439 # Unfortunately, on DOS this fails, as config.log is still kept open
22440 # by configure, so config.status won't be able to write to it; its
22441 # output is simply discarded. So we exec the FD to /dev/null,
22442 # effectively closing config.log, so it can be properly (re)opened and
22443 # appended to by config.status. When coming back to configure, we
22444 # need to make the FD available again.
22445 if test "$no_create" != yes; then
22447 ac_config_status_args=
22448 test "$silent" = yes &&
22449 ac_config_status_args="$ac_config_status_args --quiet"
22451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22454 # would make configure fail if this is the last instruction.
22455 $ac_cs_success || { (exit 1); exit 1; }
22459 # CONFIG_SUBDIRS section.
22461 if test "$no_recursion" != yes; then
22463 # Remove --cache-file and --srcdir arguments so they do not pile up.
22464 ac_sub_configure_args=
22466 eval "set x $ac_configure_args"
22470 if test -n "$ac_prev"; then
22475 -cache-file | --cache-file | --cache-fil | --cache-fi \
22476 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22477 ac_prev=cache_file ;;
22478 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22479 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22482 --config-cache | -C)
22484 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22486 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22494 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22496 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22500 # Always prepend --prefix to ensure using the same prefix
22501 # in subdir configurations.
22502 ac_arg="--prefix=$prefix"
22504 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22506 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22509 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22511 # Do not complain, so a configure script can configure whichever
22512 # parts of a large source tree are present.
22513 test -d "$srcdir/$ac_dir" || continue
22515 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22516 echo "$as_me:$LINENO: $ac_msg" >&5
22520 -*) as_dir=./$as_dir;;
22522 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22526 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22527 *) as_qdir=$as_dir;;
22529 as_dirs="'$as_qdir' $as_dirs"
22530 as_dir=`$as_dirname -- "$as_dir" ||
22531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22532 X"$as_dir" : 'X\(//\)[^/]' \| \
22533 X"$as_dir" : 'X\(//\)$' \| \
22534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22540 /^X\(\/\/\)[^/].*/{
22553 test -d "$as_dir" && break
22555 test -z "$as_dirs" || eval "mkdir $as_dirs"
22556 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22557 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22558 { (exit 1); exit 1; }; }; }
22562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22565 # A ".." for each directory in $ac_dir_suffix.
22566 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22567 case $ac_top_builddir_sub in
22568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22572 ac_abs_top_builddir=$ac_pwd
22573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22574 # for backward compatibility:
22575 ac_top_builddir=$ac_top_build_prefix
22578 .) # We are building in place.
22580 ac_top_srcdir=$ac_top_builddir_sub
22581 ac_abs_top_srcdir=$ac_pwd ;;
22582 [\\/]* | ?:[\\/]* ) # Absolute name.
22583 ac_srcdir=$srcdir$ac_dir_suffix;
22584 ac_top_srcdir=$srcdir
22585 ac_abs_top_srcdir=$srcdir ;;
22586 *) # Relative name.
22587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22588 ac_top_srcdir=$ac_top_build_prefix$srcdir
22589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22596 # Check for guested configure; otherwise get Cygnus style configure.
22597 if test -f "$ac_srcdir/configure.gnu"; then
22598 ac_sub_configure=$ac_srcdir/configure.gnu
22599 elif test -f "$ac_srcdir/configure"; then
22600 ac_sub_configure=$ac_srcdir/configure
22601 elif test -f "$ac_srcdir/configure.in"; then
22602 # This should be Cygnus configure.
22603 ac_sub_configure=$ac_aux_dir/configure
22605 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22606 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22610 # The recursion is here.
22611 if test -n "$ac_sub_configure"; then
22612 # Make the cache file name correct relative to the subdirectory.
22613 case $cache_file in
22614 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22615 *) # Relative name.
22616 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22619 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22620 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22621 # The eval makes quoting arguments work.
22622 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22623 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22624 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22625 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22626 { (exit 1); exit 1; }; }