2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.1svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='llvm 3.1svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
786 ENABLE_VISIBILITY_INLINES_HIDDEN
792 ac_precious_vars='build_alias
803 ac_subdirs_all='projects/llvm-gcc
807 projects/llvm-poolalloc
810 projects/llvm-stacker
818 # Initialize some variables set by options.
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name=s,x,x,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
1153 # Obsolete; use --with-x.
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of llvm 3.1svn:";;
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-polly Use polly if available (default is YES)
1392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1396 --enable-expensive-checks
1397 Compile with expensive debug checks enabled (default
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
1403 --enable-jit Enable Just In Time Compiling (default is YES)
1404 --enable-docs Build documents (default is YES)
1405 --enable-doxygen Build doxygen documentation (default is NO)
1406 --enable-threads Use threads if available (default is YES)
1407 --enable-pthreads Use pthreads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1410 --enable-shared Build a shared library and link tools against it
1412 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1413 Win32 DLL (default is NO)
1414 --enable-timestamps Enable embedding timestamp information in build
1416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419 xcore, msp430, ptx, cbe, and cpp
1421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-ltdl-install install libltdl
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-optimize-option Select the compiler options to use for optimized
1433 --with-extra-options Specify additional options to compile LLVM with
1434 --with-extra-ld-options Specify additional options to link LLVM with
1435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 --with-clang-srcdir Directory to the out-of-tree Clang source
1438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1441 --with-c-include-dirs Colon separated list of directories clang will
1443 --with-cxx-include-root Directory with the libstdc++ headers.
1444 --with-cxx-include-arch Architecture of the libstdc++ headers.
1445 --with-cxx-include-32bit-dir
1446 32 bit multilib dir.
1447 --with-cxx-include-64bit-dir
1448 64 bit multilib directory.
1449 --with-binutils-include Specify path to binutils/include/ containing
1450 plugin-api.h file for gold plugin.
1451 --with-bug-report-url Specify the URL where bug reports should be
1452 submitted (default=http://llvm.org/bugs/)
1453 --with-tclinclude directory where tcl headers are
1454 --with-udis86=<path> Use udis86 external x86 disassembler library
1455 --with-oprofile=<prefix>
1456 Tell OProfile >= 0.9.4 how to symbolize JIT output
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <llvmbugs@cs.uiuc.edu>.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" || continue
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1500 .) # We are building in place.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1533 llvm configure 3.1svn
1534 generated by GNU Autoconf 2.60
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1541 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1549 It was created by llvm $as_me 3.1svn, which was
1550 generated by GNU Autoconf 2.60. Invocation command line was
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1575 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir=.
1586 echo "PATH: $as_dir"
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_must_keep_next=false
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627 if test $ac_must_keep_next = true; then
1628 ac_must_keep_next=false # Got value, back to normal.
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 -* ) ac_must_keep_next=true ;;
1642 ac_configure_args="$ac_configure_args '$ac_arg'"
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log. We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1666 # The following way of writing the cache mishandles newlines in values,
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677 _ | IFS | as_nl) ;; #(
1678 *) $as_unset $ac_var ;;
1683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
1686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1703 for ac_var in $ac_subst_vars
1705 eval ac_val=\$$ac_var
1707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 echo "$ac_var='\''$ac_val'\''"
1713 if test -n "$ac_subst_files"; then
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1720 for ac_var in $ac_subst_files
1722 eval ac_val=\$$ac_var
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 echo "$ac_var='\''$ac_val'\''"
1731 if test -s confdefs.h; then
1741 test "$ac_signal" != 0 &&
1742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
1745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749 for ac_signal in 1 2 13 15; do
1750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1757 # Predefined preprocessor variables.
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787 set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
1797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800 sed 's/^/| /' "$ac_site_file" >&5
1805 if test -r "$cache_file"; then
1806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
1817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1822 # Check that the precious variables saved in the cache have kept the same
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
1828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
1830 case $ac_old_set,$ac_new_set in
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
1842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845 echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847 echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 *) ac_arg=$ac_var=$ac_new_val ;;
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863 if $ac_cache_corrupted; then
1864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1912 for ac_dir in autoconf "$srcdir"/autoconf; do
1913 if test -f "$ac_dir/install-sh"; then
1915 ac_install_sh="$ac_aux_dir/install-sh -c"
1917 elif test -f "$ac_dir/install.sh"; then
1919 ac_install_sh="$ac_aux_dir/install.sh -c"
1921 elif test -f "$ac_dir/shtool"; then
1923 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 if test -z "$ac_aux_dir"; then
1928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930 { (exit 1); exit 1; }; }
1933 # These three variables are undocumented and unsupported,
1934 # and are intended to be withdrawn in a future Autoconf release.
1935 # They can cause serious problems if a builder's source tree is in a directory
1936 # whose full name contains unusual characters.
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943 if test ${srcdir} != "." ; then
1944 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1945 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947 { (exit 1); exit 1; }; }
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957 for ac_prog in clang llvm-gcc gcc
1959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 if test -n "$CC"; then
1988 { echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6; }
1991 { echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6; }
1996 test -n "$CC" && break
1999 if test -z "$CC"; then
2001 for ac_prog in clang llvm-gcc gcc
2003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2004 set dummy $ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_ac_ct_CC="$ac_prog"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2040 test -n "$ac_ct_CC" && break
2043 if test "x$ac_ct_CC" = x; then
2046 case $cross_compiling:$ac_tool_warned in
2048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049 whose name does not start with the host triplet. If you think this
2050 configuration is useful to you, please write to autoconf@gnu.org." >&5
2051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet. If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2054 ac_tool_warned=yes ;;
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO: checking for C compiler version" >&5
2069 ac_compiler=`set X $ac_compile; echo $2`
2070 { (ac_try="$ac_compiler --version >&5"
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076 (eval "$ac_compiler --version >&5") 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080 { (ac_try="$ac_compiler -v >&5"
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler -v >&5") 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (ac_try="$ac_compiler -V >&5"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -V >&5") 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2101 cat >conftest.$ac_ext <<_ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2121 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2125 # List of possible output files, starting from the most likely.
2126 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127 # only as a last resort. b.out is created by i960 compilers.
2128 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2130 # The IRIX 6 linker writes into existing files which may not be
2131 # executable, retaining their permissions. Remove them first so a
2132 # subsequent execution test works.
2134 for ac_file in $ac_files
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2143 if { (ac_try="$ac_link_default"
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149 (eval "$ac_link_default") 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2156 # so that the user can short-circuit this test for compilers unknown to
2158 for ac_file in $ac_files
2160 test -f "$ac_file" || continue
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2165 # We found the default executable, but exeext='' is most
2169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 # We set ac_cv_exeext here because the later test for it is not
2174 # safe: cross compilers may not add the suffix if given an `-o'
2175 # argument, so we may need to know it at that point already.
2176 # Even if this section looks crufty: it has the advantage of
2183 test "$ac_cv_exeext" = no && ac_cv_exeext=
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
2196 ac_exeext=$ac_cv_exeext
2197 { echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6; }
2200 # Check that the compiler produces executables we can run. If not, either
2201 # the compiler is broken, or we cross compile.
2202 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_try") 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2219 if test "$cross_compiling" = maybe; then
2222 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236 ac_clean_files=$ac_clean_files_save
2237 # Check that the compiler produces executables we can run. If not, either
2238 # the compiler is broken, or we cross compile.
2239 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6; }
2244 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246 if { (ac_try="$ac_link"
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252 (eval "$ac_link") 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
2256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2260 for ac_file in conftest.exe conftest conftest.*; do
2261 test -f "$ac_file" || continue
2263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2284 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.o conftest.obj
2305 if { (ac_try="$ac_compile"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compile") 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 for ac_file in conftest.o conftest.obj conftest.*; do
2316 test -f "$ac_file" || continue;
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6; }
2338 OBJEXT=$ac_cv_objext
2340 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.$ac_ext <<_ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2363 rm -f conftest.$ac_objext
2364 if { (ac_try="$ac_compile"
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compile") 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378 { (case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_try") 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 ac_save_c_werror_flag=$ac_c_werror_flag
2420 ac_c_werror_flag=yes
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2447 grep -v '^ *+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453 { (case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_try") 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 rm -f conftest.$ac_objext
2494 if { (ac_try="$ac_compile"
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_compile") 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508 { (case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_try") 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 ac_c_werror_flag=$ac_save_c_werror_flag
2534 cat >conftest.$ac_ext <<_ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2549 rm -f conftest.$ac_objext
2550 if { (ac_try="$ac_compile"
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_compile") 2>conftest.er1
2558 grep -v '^ *+' conftest.er1 >conftest.err
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_try") 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_c_werror_flag=$ac_save_c_werror_flag
2600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2602 if test "$ac_test_CFLAGS" = set; then
2603 CFLAGS=$ac_save_CFLAGS
2604 elif test $ac_cv_prog_cc_g = yes; then
2605 if test "$GCC" = yes; then
2611 if test "$GCC" = yes; then
2617 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_cc_c89+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 ac_cv_prog_cc_c89=no
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2632 #include <sys/types.h>
2633 #include <sys/stat.h>
2634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2635 struct buf { int x; };
2636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637 static char *e (p, i)
2643 static char *f (char * (*g) (char **, int), char **p, ...)
2648 s = g (p, va_arg (v,int));
2653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2654 function prototypes and stuff, but not '\xHH' hex character constants.
2655 These don't provoke an error unfortunately, instead are silently treated
2656 as 'x'. The following induces an error, until -std is added to get
2657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2658 array size at least. It's necessary to write '\x00'==0 to get something
2659 that's true only with -std. */
2660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663 inside strings and character constants. */
2665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2667 int test (int i, double x);
2668 struct s1 {int (*f) (int a);};
2669 struct s2 {int (*f) (double a);};
2670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684 CC="$ac_save_CC $ac_arg"
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_try") 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 ac_cv_prog_cc_c89=$ac_arg
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f core conftest.err conftest.$ac_objext
2728 test "x$ac_cv_prog_cc_c89" != "xno" && break
2730 rm -f conftest.$ac_ext
2735 case "x$ac_cv_prog_cc_c89" in
2737 { echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6; } ;;
2740 { echo "$as_me:$LINENO: result: unsupported" >&5
2741 echo "${ECHO_T}unsupported" >&6; } ;;
2743 CC="$CC $ac_cv_prog_cc_c89"
2744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 ac_cpp='$CXXCPP $CPPFLAGS'
2757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760 if test -z "$CXX"; then
2761 if test -n "$CCC"; then
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in clang++ llvm-g++ g++
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CXX+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$CXX"; then
2775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 if test -n "$CXX"; then
2796 { echo "$as_me:$LINENO: result: $CXX" >&5
2797 echo "${ECHO_T}$CXX" >&6; }
2799 { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2804 test -n "$CXX" && break
2807 if test -z "$CXX"; then
2809 for ac_prog in clang++ llvm-g++ g++
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -n "$ac_ct_CXX"; then
2819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CXX="$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839 if test -n "$ac_ct_CXX"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2848 test -n "$ac_ct_CXX" && break
2851 if test "x$ac_ct_CXX" = x; then
2854 case $cross_compiling:$ac_tool_warned in
2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet. If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&5
2859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862 ac_tool_warned=yes ;;
2870 # Provide some information about the compiler.
2871 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872 ac_compiler=`set X $ac_compile; echo $2`
2873 { (ac_try="$ac_compiler --version >&5"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler --version >&5") 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -v >&5") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2904 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975 GXX=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CXXFLAGS=${CXXFLAGS+set}
2977 ac_save_CXXFLAGS=$CXXFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cxx_g+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984 ac_cxx_werror_flag=yes
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_prog_cxx_g=yes
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cxx_g=yes
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166 if test "$ac_test_CXXFLAGS" = set; then
3167 CXXFLAGS=$ac_save_CXXFLAGS
3168 elif test $ac_cv_prog_cxx_g = yes; then
3169 if test "$GXX" = yes; then
3175 if test "$GXX" = yes; then
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3194 # On Suns, sometimes $CPP names a directory.
3195 if test -n "$CPP" && test -d "$CPP"; then
3198 if test -z "$CPP"; then
3199 if test "${ac_cv_prog_CPP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 # Double quotes because CPP needs to be expanded
3203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3206 for ac_c_preproc_warn_flag in '' yes
3208 # Use a header file that comes with gcc, so configuring glibc
3209 # with a fresh cross-compiler works.
3210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211 # <limits.h> exists even on freestanding compilers.
3212 # On the NeXT, cc -E runs the code through the compiler's parser,
3213 # not just through cpp. "Syntax error" is here to catch this case.
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3221 # include <limits.h>
3223 # include <assert.h>
3227 if { (ac_try="$ac_cpp conftest.$ac_ext"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3249 if test -z "$ac_cpp_err"; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 # Broken: fails on valid input.
3259 rm -f conftest.err conftest.$ac_ext
3261 # OK, works on sane cases. Now check whether nonexistent headers
3262 # can be detected and how.
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <ac_nonexistent.h>
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293 if test -z "$ac_cpp_err"; then
3294 # Broken: success on invalid input.
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 # Passes both tests.
3305 rm -f conftest.err conftest.$ac_ext
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3322 { echo "$as_me:$LINENO: result: $CPP" >&5
3323 echo "${ECHO_T}$CPP" >&6; }
3325 for ac_c_preproc_warn_flag in '' yes
3327 # Use a header file that comes with gcc, so configuring glibc
3328 # with a fresh cross-compiler works.
3329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330 # <limits.h> exists even on freestanding compilers.
3331 # On the NeXT, cc -E runs the code through the compiler's parser,
3332 # not just through cpp. "Syntax error" is here to catch this case.
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3340 # include <limits.h>
3342 # include <assert.h>
3346 if { (ac_try="$ac_cpp conftest.$ac_ext"
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3368 if test -z "$ac_cpp_err"; then
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 # Broken: fails on valid input.
3378 rm -f conftest.err conftest.$ac_ext
3380 # OK, works on sane cases. Now check whether nonexistent headers
3381 # can be detected and how.
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <ac_nonexistent.h>
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412 if test -z "$ac_cpp_err"; then
3413 # Broken: success on invalid input.
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 # Passes both tests.
3424 rm -f conftest.err conftest.$ac_ext
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 if test -d ${srcdir}/projects/llvm-gcc ; then
3449 subdirs="$subdirs projects/llvm-gcc"
3453 if test -d ${srcdir}/projects/test-suite ; then
3454 subdirs="$subdirs projects/test-suite"
3458 if test -d ${srcdir}/projects/llvm-test ; then
3459 subdirs="$subdirs projects/llvm-test"
3463 if test -d ${srcdir}/projects/poolalloc ; then
3464 subdirs="$subdirs projects/poolalloc"
3468 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469 subdirs="$subdirs projects/llvm-poolalloc"
3473 for i in `ls ${srcdir}/projects`
3475 if test -d ${srcdir}/projects/${i} ; then
3477 sample) subdirs="$subdirs projects/sample"
3479 privbracket) subdirs="$subdirs projects/privbracket"
3481 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3483 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3485 llvm-java) subdirs="$subdirs projects/llvm-java"
3487 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3489 safecode) subdirs="$subdirs projects/safecode"
3491 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3499 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3506 # Check whether --enable-polly was given.
3507 if test "${enable_polly+set}" = set; then
3508 enableval=$enable_polly;
3513 case "$enableval" in
3518 default) ENABLE_POLLY=1
3520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522 { (exit 1); exit 1; }; } ;;
3526 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3529 subdirs="$subdirs tools/polly"
3534 # Make sure we can run config.sub.
3535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538 { (exit 1); exit 1; }; }
3540 { echo "$as_me:$LINENO: checking build system type" >&5
3541 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_build+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_build_alias=$build_alias
3546 test "x$ac_build_alias" = x &&
3547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548 test "x$ac_build_alias" = x &&
3549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551 { (exit 1); exit 1; }; }
3552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555 { (exit 1); exit 1; }; }
3558 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559 echo "${ECHO_T}$ac_cv_build" >&6; }
3560 case $ac_cv_build in
3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563 echo "$as_me: error: invalid value of canonical build" >&2;}
3564 { (exit 1); exit 1; }; };;
3567 ac_save_IFS=$IFS; IFS='-'
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3580 { echo "$as_me:$LINENO: checking host system type" >&5
3581 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582 if test "${ac_cv_host+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 if test "x$host_alias" = x; then
3586 ac_cv_host=$ac_cv_build
3588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591 { (exit 1); exit 1; }; }
3595 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596 echo "${ECHO_T}$ac_cv_host" >&6; }
3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600 echo "$as_me: error: invalid value of canonical host" >&2;}
3601 { (exit 1); exit 1; }; };;
3604 ac_save_IFS=$IFS; IFS='-'
3610 # Remember, the first character of IFS is used to create $*,
3611 # except with old shells:
3614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3617 { echo "$as_me:$LINENO: checking target system type" >&5
3618 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619 if test "${ac_cv_target+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test "x$target_alias" = x; then
3623 ac_cv_target=$ac_cv_host
3625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628 { (exit 1); exit 1; }; }
3632 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633 echo "${ECHO_T}$ac_cv_target" >&6; }
3634 case $ac_cv_target in
3636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637 echo "$as_me: error: invalid value of canonical target" >&2;}
3638 { (exit 1); exit 1; }; };;
3640 target=$ac_cv_target
3641 ac_save_IFS=$IFS; IFS='-'
3647 # Remember, the first character of IFS is used to create $*,
3648 # except with old shells:
3651 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3654 # The aliases save the names the user supplied, while $host etc.
3655 # will get canonicalized.
3656 test -n "$target_alias" &&
3657 test "$program_prefix$program_suffix$program_transform_name" = \
3659 program_prefix=${target_alias}-
3661 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663 if test "${llvm_cv_os_type+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="AIX"
3671 llvm_cv_platform_type="Unix" ;;
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="IRIX"
3676 llvm_cv_platform_type="Unix" ;;
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Cygwin"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,-all_load"
3684 llvm_cv_no_link_all_option="-Wl,-noall_load"
3685 llvm_cv_os_type="Darwin"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,-all_load"
3689 llvm_cv_no_link_all_option="-Wl,-noall_load"
3690 llvm_cv_os_type="Minix"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="FreeBSD"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="OpenBSD"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="NetBSD"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="DragonFly"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="HP-UX"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Interix"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Linux"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,-z,allextract"
3729 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730 llvm_cv_os_type="SunOS"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,-z,allextract"
3734 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735 llvm_cv_os_type="AuroraUX"
3736 llvm_cv_platform_type="Unix" ;;
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Win32"
3741 llvm_cv_platform_type="Win32" ;;
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="MingW"
3746 llvm_cv_platform_type="Win32" ;;
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Haiku"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Freestanding"
3756 llvm_cv_platform_type="Unix" ;;
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="Freestanding"
3761 llvm_cv_platform_type="Unix" ;;
3763 llvm_cv_link_all_option=""
3764 llvm_cv_no_link_all_option=""
3765 llvm_cv_os_type="Unknown"
3766 llvm_cv_platform_type="Unknown" ;;
3769 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3772 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774 if test "${llvm_cv_target_os_type+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 llvm_cv_target_os_type="AIX" ;;
3781 llvm_cv_target_os_type="IRIX" ;;
3783 llvm_cv_target_os_type="Cygwin" ;;
3785 llvm_cv_target_os_type="Darwin" ;;
3787 llvm_cv_target_os_type="Minix" ;;
3789 llvm_cv_target_os_type="FreeBSD" ;;
3791 llvm_cv_target_os_type="OpenBSD" ;;
3793 llvm_cv_target_os_type="NetBSD" ;;
3795 llvm_cv_target_os_type="DragonFly" ;;
3797 llvm_cv_target_os_type="HP-UX" ;;
3799 llvm_cv_target_os_type="Interix" ;;
3801 llvm_cv_target_os_type="Linux" ;;
3803 llvm_cv_target_os_type="SunOS" ;;
3805 llvm_cv_target_os_type="AuroraUX" ;;
3807 llvm_cv_target_os_type="Win32" ;;
3809 llvm_cv_target_os_type="MingW" ;;
3811 llvm_cv_target_os_type="Haiku" ;;
3813 llvm_cv_target_os_type="RTEMS" ;;
3815 llvm_cv_target_os_type="NativeClient" ;;
3817 llvm_cv_target_os_type="Freestanding" ;;
3819 llvm_cv_target_os_type="Unknown" ;;
3822 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3825 if test "$llvm_cv_os_type" = "Unknown" ; then
3826 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828 { (exit 1); exit 1; }; }
3833 HOST_OS=$llvm_cv_os_type
3835 TARGET_OS=$llvm_cv_target_os_type
3838 LINKALL=$llvm_cv_link_all_option
3840 NOLINKALL=$llvm_cv_no_link_all_option
3843 case $llvm_cv_platform_type in
3846 cat >>confdefs.h <<\_ACEOF
3847 #define LLVM_ON_UNIX 1
3857 cat >>confdefs.h <<\_ACEOF
3858 #define LLVM_ON_WIN32 1
3868 { echo "$as_me:$LINENO: checking target architecture" >&5
3869 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870 if test "${llvm_cv_target_arch+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 i?86-*) llvm_cv_target_arch="x86" ;;
3875 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3876 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3877 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3878 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3879 arm*-*) llvm_cv_target_arch="ARM" ;;
3880 mips-*) llvm_cv_target_arch="Mips" ;;
3881 xcore-*) llvm_cv_target_arch="XCore" ;;
3882 msp430-*) llvm_cv_target_arch="MSP430" ;;
3883 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3884 ptx-*) llvm_cv_target_arch="PTX" ;;
3885 *) llvm_cv_target_arch="Unknown" ;;
3888 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3891 if test "$llvm_cv_target_arch" = "Unknown" ; then
3892 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3896 # Determine the LLVM native architecture for the target
3897 case "$llvm_cv_target_arch" in
3898 x86) LLVM_NATIVE_ARCH="X86" ;;
3899 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3900 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3903 ARCH=$llvm_cv_target_arch
3908 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 # Extract the first word of "grep ggrep" to use in msg output
3914 if test -z "$GREP"; then
3915 set dummy grep ggrep; ac_prog_name=$2
3916 if test "${ac_cv_path_GREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_path_GREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925 test -z "$as_dir" && as_dir=.
3926 for ac_prog in grep ggrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
3931 # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 echo 'GREP' >> "conftest.nl"
3944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946 ac_count=`expr $ac_count + 1`
3947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP="$ac_path_GREP"
3950 ac_path_GREP_max=$ac_count
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959 $ac_path_GREP_found && break 3
3969 GREP="$ac_cv_path_GREP"
3970 if test -z "$GREP"; then
3971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3977 ac_cv_path_GREP=$GREP
3982 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3984 GREP="$ac_cv_path_GREP"
3987 { echo "$as_me:$LINENO: checking for egrep" >&5
3988 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3995 # Extract the first word of "egrep" to use in msg output
3996 if test -z "$EGREP"; then
3997 set dummy egrep; ac_prog_name=$2
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
4013 # Check for GNU $ac_path_EGREP
4014 case `"$ac_path_EGREP" --version 2>&1` in
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 echo 'EGREP' >> "conftest.nl"
4026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 ac_count=`expr $ac_count + 1`
4029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 $ac_path_EGREP_found && break 3
4051 EGREP="$ac_cv_path_EGREP"
4052 if test -z "$EGREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4059 ac_cv_path_EGREP=$EGREP
4065 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4067 EGREP="$ac_cv_path_EGREP"
4070 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072 if test "${ac_cv_header_stdc+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_header_stdc=yes
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_cv_header_stdc=no
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then
4153 ac_cv_header_stdc=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then
4174 ac_cv_header_stdc=no
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4197 # define ISLOWER(c) \
4198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
4211 || toupper (i) != TOUPPER (i))
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4238 echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4243 ac_cv_header_stdc=no
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
4274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4288 #include <$ac_header>
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4299 grep -v '^ *+' conftest.er1 >conftest.err
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_Header=yes"
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 eval "$as_ac_Header=no"
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_res=`eval echo '${'$as_ac_Header'}'`
4335 { echo "$as_me:$LINENO: result: $ac_res" >&5
4336 echo "${ECHO_T}$ac_res" >&6; }
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338 cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_bigendian+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 # See if sys/param.h defines the BYTE_ORDER macro.
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <sys/types.h>
4360 #include <sys/param.h>
4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 # It does; now see whether it defined to BIG_ENDIAN or not.
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 #include <sys/param.h>
4420 #if BYTE_ORDER != BIG_ENDIAN
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4437 grep -v '^ *+' conftest.er1 >conftest.err
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_cv_c_bigendian=yes
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_cv_c_bigendian=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 # It does not; compile a test program.
4476 if test "$cross_compiling" = yes; then
4477 # try to guess the endianness by grepping values into an object file
4478 ac_cv_c_bigendian=unknown
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4494 _ascii (); _ebcdic ();
4499 rm -f conftest.$ac_objext
4500 if { (ac_try="$ac_compile"
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_compile") 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4534 ac_cv_c_bigendian=yes
4536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537 if test "$ac_cv_c_bigendian" = unknown; then
4538 ac_cv_c_bigendian=no
4540 # finding both strings is unlikely to happen, but who knows?
4541 ac_cv_c_bigendian=unknown
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 cat >conftest.$ac_ext <<_ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 $ac_includes_default
4564 /* Are we little or big endian? From Harbison&Steele. */
4568 char c[sizeof (long int)];
4571 return u.c[sizeof (long int) - 1] == 1;
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_c_bigendian=no
4599 echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4604 ac_cv_c_bigendian=yes
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616 case $ac_cv_c_bigendian in
4624 { { echo "$as_me:$LINENO: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626 echo "$as_me: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4632 if test "$cross_compiling" = yes; then
4633 LLVM_CROSS_COMPILING=1
4636 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638 if test "${ac_cv_build_exeext+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642 ac_cv_build_exeext=.exe
4644 ac_build_prefix=${build_alias}-
4646 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647 set dummy ${ac_build_prefix}gcc; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -n "$BUILD_CC"; then
4654 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 BUILD_CC=$ac_cv_prog_BUILD_CC
4674 if test -n "$BUILD_CC"; then
4675 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676 echo "${ECHO_T}$BUILD_CC" >&6; }
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4683 if test -z "$BUILD_CC"; then
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685 set dummy gcc; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test -n "$BUILD_CC"; then
4692 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_BUILD_CC="gcc"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 BUILD_CC=$ac_cv_prog_BUILD_CC
4712 if test -n "$BUILD_CC"; then
4713 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714 echo "${ECHO_T}$BUILD_CC" >&6; }
4716 { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4721 if test -z "$BUILD_CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723 set dummy cc; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$BUILD_CC"; then
4730 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4744 ac_cv_prog_BUILD_CC="cc"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_BUILD_CC
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set BUILD_CC to just the basename; use the full file name.
4761 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4766 BUILD_CC=$ac_cv_prog_BUILD_CC
4767 if test -n "$BUILD_CC"; then
4768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769 echo "${ECHO_T}$BUILD_CC" >&6; }
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4778 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780 { (exit 1); exit 1; }; }
4781 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4783 echo 'int main () { return 0; }' > conftest.$ac_ext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4786 (eval $ac_build_link) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
4790 for file in conftest.*; do
4792 *.c | *.o | *.obj | *.dSYM) ;;
4793 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4797 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799 { (exit 1); exit 1; }; }
4802 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4807 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4808 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4810 ac_build_exeext=$BUILD_EXEEXT
4812 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}g++; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 if test -n "$BUILD_CXX"; then
4821 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841 if test -n "$BUILD_CXX"; then
4842 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843 echo "${ECHO_T}$BUILD_CXX" >&6; }
4845 { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4850 if test -z "$BUILD_CXX"; then
4851 # Extract the first word of "g++", so it can be a program name with args.
4852 set dummy g++; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 if test -n "$BUILD_CXX"; then
4859 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_BUILD_CXX="g++"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879 if test -n "$BUILD_CXX"; then
4880 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881 echo "${ECHO_T}$BUILD_CXX" >&6; }
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4888 if test -z "$BUILD_CXX"; then
4889 # Extract the first word of "c++", so it can be a program name with args.
4890 set dummy c++; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 if test -n "$BUILD_CXX"; then
4897 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908 ac_prog_rejected=yes
4911 ac_cv_prog_BUILD_CXX="c++"
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CXX
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CXX to just the basename; use the full file name.
4928 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4933 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934 if test -n "$BUILD_CXX"; then
4935 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936 echo "${ECHO_T}$BUILD_CXX" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4946 LLVM_CROSS_COMPILING=0
4950 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4961 # Check whether --enable-optimized was given.
4962 if test "${enable_optimized+set}" = set; then
4963 enableval=$enable_optimized;
4968 if test ${enableval} = "no" ; then
4972 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4976 # Check whether --enable-profiling was given.
4977 if test "${enable_profiling+set}" = set; then
4978 enableval=$enable_profiling;
4983 if test ${enableval} = "no" ; then
4987 ENABLE_PROFILING=ENABLE_PROFILING=1
4991 # Check whether --enable-assertions was given.
4992 if test "${enable_assertions+set}" = set; then
4993 enableval=$enable_assertions;
4998 if test ${enableval} = "yes" ; then
5002 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5006 # Check whether --enable-expensive-checks was given.
5007 if test "${enable_expensive_checks+set}" = set; then
5008 enableval=$enable_expensive_checks;
5013 if test ${enableval} = "yes" ; then
5014 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5016 EXPENSIVE_CHECKS=yes
5019 ENABLE_EXPENSIVE_CHECKS=
5025 # Check whether --enable-debug-runtime was given.
5026 if test "${enable_debug_runtime+set}" = set; then
5027 enableval=$enable_debug_runtime;
5032 if test ${enableval} = "no" ; then
5036 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5040 # Check whether --enable-debug-symbols was given.
5041 if test "${enable_debug_symbols+set}" = set; then
5042 enableval=$enable_debug_symbols;
5047 if test ${enableval} = "no" ; then
5051 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5055 # Check whether --enable-jit was given.
5056 if test "${enable_jit+set}" = set; then
5057 enableval=$enable_jit;
5062 if test ${enableval} = "no"
5067 case "$llvm_cv_target_arch" in
5068 x86) TARGET_HAS_JIT=1
5070 Sparc) TARGET_HAS_JIT=0
5072 PowerPC) TARGET_HAS_JIT=1
5074 x86_64) TARGET_HAS_JIT=1
5076 Alpha) TARGET_HAS_JIT=0
5078 ARM) TARGET_HAS_JIT=1
5080 Mips) TARGET_HAS_JIT=1
5082 XCore) TARGET_HAS_JIT=0
5084 MSP430) TARGET_HAS_JIT=0
5086 MBlaze) TARGET_HAS_JIT=0
5088 PTX) TARGET_HAS_JIT=0
5095 # Check whether --enable-docs was given.
5096 if test "${enable_docs+set}" = set; then
5097 enableval=$enable_docs;
5102 case "$enableval" in
5107 default) ENABLE_DOCS=1
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5110 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5114 # Check whether --enable-doxygen was given.
5115 if test "${enable_doxygen+set}" = set; then
5116 enableval=$enable_doxygen;
5121 case "$enableval" in
5122 yes) ENABLE_DOXYGEN=1
5124 no) ENABLE_DOXYGEN=0
5126 default) ENABLE_DOXYGEN=0
5128 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5130 { (exit 1); exit 1; }; } ;;
5133 # Check whether --enable-threads was given.
5134 if test "${enable_threads+set}" = set; then
5135 enableval=$enable_threads;
5140 case "$enableval" in
5141 yes) ENABLE_THREADS=1
5143 no) ENABLE_THREADS=0
5145 default) ENABLE_THREADS=1
5147 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5148 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5149 { (exit 1); exit 1; }; } ;;
5152 cat >>confdefs.h <<_ACEOF
5153 #define ENABLE_THREADS $ENABLE_THREADS
5157 # Check whether --enable-pthreads was given.
5158 if test "${enable_pthreads+set}" = set; then
5159 enableval=$enable_pthreads;
5164 case "$enableval" in
5165 yes) ENABLE_PTHREADS=1
5167 no) ENABLE_PTHREADS=0
5169 default) ENABLE_PTHREADS=1
5171 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5172 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5173 { (exit 1); exit 1; }; } ;;
5176 # Check whether --enable-pic was given.
5177 if test "${enable_pic+set}" = set; then
5178 enableval=$enable_pic;
5183 case "$enableval" in
5188 default) ENABLE_PIC=1
5190 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5191 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5192 { (exit 1); exit 1; }; } ;;
5195 cat >>confdefs.h <<_ACEOF
5196 #define ENABLE_PIC $ENABLE_PIC
5200 # Check whether --enable-shared was given.
5201 if test "${enable_shared+set}" = set; then
5202 enableval=$enable_shared;
5207 case "$enableval" in
5208 yes) ENABLE_SHARED=1
5212 default) ENABLE_SHARED=0
5214 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5215 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5216 { (exit 1); exit 1; }; } ;;
5219 # Check whether --enable-embed-stdcxx was given.
5220 if test "${enable_embed_stdcxx+set}" = set; then
5221 enableval=$enable_embed_stdcxx;
5226 case "$enableval" in
5227 yes) ENABLE_EMBED_STDCXX=1
5229 no) ENABLE_EMBED_STDCXX=0
5231 default) ENABLE_EMBED_STDCXX=0
5233 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5234 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5235 { (exit 1); exit 1; }; } ;;
5238 # Check whether --enable-timestamps was given.
5239 if test "${enable_timestamps+set}" = set; then
5240 enableval=$enable_timestamps;
5245 case "$enableval" in
5246 yes) ENABLE_TIMESTAMPS=1
5248 no) ENABLE_TIMESTAMPS=0
5250 default) ENABLE_TIMESTAMPS=1
5252 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5253 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5257 cat >>confdefs.h <<_ACEOF
5258 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5263 # Check whether --enable-targets was given.
5264 if test "${enable_targets+set}" = set; then
5265 enableval=$enable_targets;
5270 if test "$enableval" = host-only ; then
5273 case "$enableval" in
5274 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5275 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5277 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5279 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5280 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5281 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5282 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5283 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5284 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5285 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5287 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5288 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5289 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5290 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5291 host) case "$llvm_cv_target_arch" in
5292 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5294 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5295 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5296 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5297 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5298 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5299 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5300 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5301 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5302 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5303 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5304 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5305 echo "$as_me: error: Can not set target to build" >&2;}
5306 { (exit 1); exit 1; }; } ;;
5308 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5309 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5310 { (exit 1); exit 1; }; } ;;
5315 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5318 # Determine whether we are building LLVM support for the native architecture.
5319 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5320 for a_target in $TARGETS_TO_BUILD; do
5321 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5323 cat >>confdefs.h <<_ACEOF
5324 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5327 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5328 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5329 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5330 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5331 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5332 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5335 cat >>confdefs.h <<_ACEOF
5336 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5340 cat >>confdefs.h <<_ACEOF
5341 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5345 cat >>confdefs.h <<_ACEOF
5346 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5354 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5364 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5365 # target feature def files.
5366 LLVM_ENUM_TARGETS=""
5367 LLVM_ENUM_ASM_PRINTERS=""
5368 LLVM_ENUM_ASM_PARSERS=""
5369 LLVM_ENUM_DISASSEMBLERS=""
5370 for target_to_build in $TARGETS_TO_BUILD; do
5371 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5372 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5373 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5375 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5376 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5378 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5379 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5387 # Check whether --enable-cbe-printf-a was given.
5388 if test "${enable_cbe_printf_a+set}" = set; then
5389 enableval=$enable_cbe_printf_a;
5394 case "$enableval" in
5395 yes) ENABLE_CBE_PRINTF_A=1
5397 no) ENABLE_CBE_PRINTF_A=0
5399 default) ENABLE_CBE_PRINTF_A=1
5401 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5402 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5403 { (exit 1); exit 1; }; } ;;
5406 cat >>confdefs.h <<_ACEOF
5407 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5412 # Check whether --with-optimize-option was given.
5413 if test "${with_optimize_option+set}" = set; then
5414 withval=$with_optimize_option;
5419 { echo "$as_me:$LINENO: checking optimization flags" >&5
5420 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5423 case "$llvm_cv_os_type" in
5424 FreeBSD) optimize_option=-O2 ;;
5425 MingW) optimize_option=-O2 ;;
5426 *) optimize_option=-O3 ;;
5428 *) optimize_option="$withval" ;;
5430 OPTIMIZE_OPTION=$optimize_option
5432 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5433 echo "${ECHO_T}$optimize_option" >&6; }
5436 # Check whether --with-extra-options was given.
5437 if test "${with_extra_options+set}" = set; then
5438 withval=$with_extra_options;
5444 default) EXTRA_OPTIONS= ;;
5445 *) EXTRA_OPTIONS=$withval ;;
5447 EXTRA_OPTIONS=$EXTRA_OPTIONS
5451 # Check whether --with-extra-ld-options was given.
5452 if test "${with_extra_ld_options+set}" = set; then
5453 withval=$with_extra_ld_options;
5459 default) EXTRA_LD_OPTIONS= ;;
5460 *) EXTRA_LD_OPTIONS=$withval ;;
5462 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5465 # Check whether --enable-bindings was given.
5466 if test "${enable_bindings+set}" = set; then
5467 enableval=$enable_bindings;
5472 BINDINGS_TO_BUILD=""
5473 case "$enableval" in
5474 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5475 all ) BINDINGS_TO_BUILD="ocaml" ;;
5476 none | no) BINDINGS_TO_BUILD="" ;;
5477 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5478 case "$a_binding" in
5479 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5480 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5481 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5482 { (exit 1); exit 1; }; } ;;
5489 # Check whether --with-ocaml-libdir was given.
5490 if test "${with_ocaml_libdir+set}" = set; then
5491 withval=$with_ocaml_libdir;
5497 auto) with_ocaml_libdir="$withval" ;;
5498 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5499 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5500 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5501 { (exit 1); exit 1; }; } ;;
5505 # Check whether --with-clang-srcdir was given.
5506 if test "${with_clang_srcdir+set}" = set; then
5507 withval=$with_clang_srcdir;
5513 -) clang_src_root="" ;;
5514 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5515 *) clang_src_root="$ac_pwd/$withval" ;;
5517 CLANG_SRC_ROOT=$clang_src_root
5521 # Check whether --with-clang-resource-dir was given.
5522 if test "${with_clang_resource_dir+set}" = set; then
5523 withval=$with_clang_resource_dir;
5529 cat >>confdefs.h <<_ACEOF
5530 #define CLANG_RESOURCE_DIR "$withval"
5535 # Check whether --with-c-include-dirs was given.
5536 if test "${with_c_include_dirs+set}" = set; then
5537 withval=$with_c_include_dirs;
5543 cat >>confdefs.h <<_ACEOF
5544 #define C_INCLUDE_DIRS "$withval"
5549 # Check whether --with-cxx-include-root was given.
5550 if test "${with_cxx_include_root+set}" = set; then
5551 withval=$with_cxx_include_root;
5557 cat >>confdefs.h <<_ACEOF
5558 #define CXX_INCLUDE_ROOT "$withval"
5563 # Check whether --with-cxx-include-arch was given.
5564 if test "${with_cxx_include_arch+set}" = set; then
5565 withval=$with_cxx_include_arch;
5571 cat >>confdefs.h <<_ACEOF
5572 #define CXX_INCLUDE_ARCH "$withval"
5577 # Check whether --with-cxx-include-32bit-dir was given.
5578 if test "${with_cxx_include_32bit_dir+set}" = set; then
5579 withval=$with_cxx_include_32bit_dir;
5585 cat >>confdefs.h <<_ACEOF
5586 #define CXX_INCLUDE_32BIT_DIR "$withval"
5591 # Check whether --with-cxx-include-64bit-dir was given.
5592 if test "${with_cxx_include_64bit_dir+set}" = set; then
5593 withval=$with_cxx_include_64bit_dir;
5599 cat >>confdefs.h <<_ACEOF
5600 #define CXX_INCLUDE_64BIT_DIR "$withval"
5605 # Check whether --with-binutils-include was given.
5606 if test "${with_binutils_include+set}" = set; then
5607 withval=$with_binutils_include;
5613 default) WITH_BINUTILS_INCDIR=default ;;
5614 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5615 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5616 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5617 { (exit 1); exit 1; }; } ;;
5619 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5620 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5622 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5623 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5624 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5625 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5626 { (exit 1); exit 1; }; };
5631 # Check whether --with-bug-report-url was given.
5632 if test "${with_bug_report_url+set}" = set; then
5633 withval=$with_bug_report_url;
5635 withval="http://llvm.org/bugs/"
5639 cat >>confdefs.h <<_ACEOF
5640 #define BUG_REPORT_URL "$withval"
5644 # Check whether --enable-libffi was given.
5645 if test "${enable_libffi+set}" = set; then
5646 enableval=$enable_libffi; case "$enableval" in
5647 yes) llvm_cv_enable_libffi="yes" ;;
5648 no) llvm_cv_enable_libffi="no" ;;
5649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5650 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5651 { (exit 1); exit 1; }; } ;;
5654 llvm_cv_enable_libffi=no
5659 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5660 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5661 if test "${lt_cv_path_NM+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 if test -n "$NM"; then
5665 # Let the user override the test.
5668 lt_nm_to_check="${ac_tool_prefix}nm"
5669 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5670 lt_nm_to_check="$lt_nm_to_check nm"
5672 for lt_tmp_nm in $lt_nm_to_check; do
5673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5674 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5676 test -z "$ac_dir" && ac_dir=.
5677 tmp_nm="$ac_dir/$lt_tmp_nm"
5678 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5679 # Check to see if the nm accepts a BSD-compat flag.
5680 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5681 # nm: unknown option "B" ignored
5682 # Tru64's nm complains that /dev/null is an invalid object file
5683 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5684 */dev/null* | *'Invalid file or object type'*)
5685 lt_cv_path_NM="$tmp_nm -B"
5689 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5691 lt_cv_path_NM="$tmp_nm -p"
5695 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696 continue # so that we can try to find one that supports BSD flags
5705 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5708 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5709 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5714 { echo "$as_me:$LINENO: checking for GNU make" >&5
5715 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5716 if test "${llvm_cv_gnu_make_command+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 llvm_cv_gnu_make_command=''
5720 for a in "$MAKE" make gmake gnumake ; do
5721 if test -z "$a" ; then continue ; fi ;
5722 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5724 llvm_cv_gnu_make_command=$a ;
5729 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5730 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5731 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5735 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5736 echo "${ECHO_T}\"Not found\"" >&6; };
5740 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5741 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5743 if test "$LN_S" = "ln -s"; then
5744 { echo "$as_me:$LINENO: result: yes" >&5
5745 echo "${ECHO_T}yes" >&6; }
5747 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5748 echo "${ECHO_T}no, using $LN_S" >&6; }
5751 # Extract the first word of "cmp", so it can be a program name with args.
5752 set dummy cmp; ac_word=$2
5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755 if test "${ac_cv_path_CMP+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5783 if test -n "$CMP"; then
5784 { echo "$as_me:$LINENO: result: $CMP" >&5
5785 echo "${ECHO_T}$CMP" >&6; }
5787 { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5792 # Extract the first word of "cp", so it can be a program name with args.
5793 set dummy cp; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_path_CP+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5824 if test -n "$CP"; then
5825 { echo "$as_me:$LINENO: result: $CP" >&5
5826 echo "${ECHO_T}$CP" >&6; }
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 # Extract the first word of "date", so it can be a program name with args.
5834 set dummy date; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_path_DATE+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5864 DATE=$ac_cv_path_DATE
5865 if test -n "$DATE"; then
5866 { echo "$as_me:$LINENO: result: $DATE" >&5
5867 echo "${ECHO_T}$DATE" >&6; }
5869 { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5874 # Extract the first word of "find", so it can be a program name with args.
5875 set dummy find; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_path_FIND+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5905 FIND=$ac_cv_path_FIND
5906 if test -n "$FIND"; then
5907 { echo "$as_me:$LINENO: result: $FIND" >&5
5908 echo "${ECHO_T}$FIND" >&6; }
5910 { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5915 # Extract the first word of "grep", so it can be a program name with args.
5916 set dummy grep; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_GREP+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5946 GREP=$ac_cv_path_GREP
5947 if test -n "$GREP"; then
5948 { echo "$as_me:$LINENO: result: $GREP" >&5
5949 echo "${ECHO_T}$GREP" >&6; }
5951 { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5956 # Extract the first word of "mkdir", so it can be a program name with args.
5957 set dummy mkdir; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_path_MKDIR+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5987 MKDIR=$ac_cv_path_MKDIR
5988 if test -n "$MKDIR"; then
5989 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5990 echo "${ECHO_T}$MKDIR" >&6; }
5992 { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5997 # Extract the first word of "mv", so it can be a program name with args.
5998 set dummy mv; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_path_MV+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6029 if test -n "$MV"; then
6030 { echo "$as_me:$LINENO: result: $MV" >&5
6031 echo "${ECHO_T}$MV" >&6; }
6033 { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6038 if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_RANLIB+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 if test -n "$RANLIB"; then
6047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 RANLIB=$ac_cv_prog_RANLIB
6067 if test -n "$RANLIB"; then
6068 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6069 echo "${ECHO_T}$RANLIB" >&6; }
6071 { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6077 if test -z "$ac_cv_prog_RANLIB"; then
6078 ac_ct_RANLIB=$RANLIB
6079 # Extract the first word of "ranlib", so it can be a program name with args.
6080 set dummy ranlib; ac_word=$2
6081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 if test -n "$ac_ct_RANLIB"; then
6087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_ac_ct_RANLIB="ranlib"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6107 if test -n "$ac_ct_RANLIB"; then
6108 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6109 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6111 { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6115 if test "x$ac_ct_RANLIB" = x; then
6118 case $cross_compiling:$ac_tool_warned in
6120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet. If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&5
6123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet. If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126 ac_tool_warned=yes ;;
6128 RANLIB=$ac_ct_RANLIB
6131 RANLIB="$ac_cv_prog_RANLIB"
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}ar; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_prog_AR+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 if test -n "$AR"; then
6143 ac_cv_prog_AR="$AR" # Let the user override the test.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_AR="${ac_tool_prefix}ar"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 if test -n "$AR"; then
6164 { echo "$as_me:$LINENO: result: $AR" >&5
6165 echo "${ECHO_T}$AR" >&6; }
6167 { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6173 if test -z "$ac_cv_prog_AR"; then
6175 # Extract the first word of "ar", so it can be a program name with args.
6176 set dummy ar; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 if test -n "$ac_ct_AR"; then
6183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_prog_ac_ct_AR="ar"
6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6203 if test -n "$ac_ct_AR"; then
6204 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6205 echo "${ECHO_T}$ac_ct_AR" >&6; }
6207 { echo "$as_me:$LINENO: result: no" >&5
6208 echo "${ECHO_T}no" >&6; }
6211 if test "x$ac_ct_AR" = x; then
6214 case $cross_compiling:$ac_tool_warned in
6216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet. If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&5
6219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet. If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222 ac_tool_warned=yes ;;
6230 # Extract the first word of "rm", so it can be a program name with args.
6231 set dummy rm; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_RM+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6262 if test -n "$RM"; then
6263 { echo "$as_me:$LINENO: result: $RM" >&5
6264 echo "${ECHO_T}$RM" >&6; }
6266 { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6271 # Extract the first word of "sed", so it can be a program name with args.
6272 set dummy sed; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_SED+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6303 if test -n "$SED"; then
6304 { echo "$as_me:$LINENO: result: $SED" >&5
6305 echo "${ECHO_T}$SED" >&6; }
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6312 # Extract the first word of "tar", so it can be a program name with args.
6313 set dummy tar; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_TAR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6344 if test -n "$TAR"; then
6345 { echo "$as_me:$LINENO: result: $TAR" >&5
6346 echo "${ECHO_T}$TAR" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6353 # Extract the first word of "pwd", so it can be a program name with args.
6354 set dummy pwd; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_BINPWD+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6384 BINPWD=$ac_cv_path_BINPWD
6385 if test -n "$BINPWD"; then
6386 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6387 echo "${ECHO_T}$BINPWD" >&6; }
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6395 # Extract the first word of "Graphviz", so it can be a program name with args.
6396 set dummy Graphviz; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6426 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6427 if test -n "$GRAPHVIZ"; then
6428 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6429 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6431 { echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6; }
6436 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6438 cat >>confdefs.h <<\_ACEOF
6439 #define HAVE_GRAPHVIZ 1
6442 if test "$llvm_cv_os_type" = "MingW" ; then
6443 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6446 cat >>confdefs.h <<_ACEOF
6447 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6451 # Extract the first word of "dot", so it can be a program name with args.
6452 set dummy dot; ac_word=$2
6453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6455 if test "${ac_cv_path_DOT+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6483 if test -n "$DOT"; then
6484 { echo "$as_me:$LINENO: result: $DOT" >&5
6485 echo "${ECHO_T}$DOT" >&6; }
6487 { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6492 if test "$DOT" != "echo dot" ; then
6494 cat >>confdefs.h <<\_ACEOF
6498 if test "$llvm_cv_os_type" = "MingW" ; then
6499 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6502 cat >>confdefs.h <<_ACEOF
6503 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6507 # Extract the first word of "fdp", so it can be a program name with args.
6508 set dummy fdp; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_path_FDP+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6539 if test -n "$FDP"; then
6540 { echo "$as_me:$LINENO: result: $FDP" >&5
6541 echo "${ECHO_T}$FDP" >&6; }
6543 { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6548 if test "$FDP" != "echo fdp" ; then
6550 cat >>confdefs.h <<\_ACEOF
6554 if test "$llvm_cv_os_type" = "MingW" ; then
6555 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6558 cat >>confdefs.h <<_ACEOF
6559 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6563 # Extract the first word of "neato", so it can be a program name with args.
6564 set dummy neato; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_NEATO+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6594 NEATO=$ac_cv_path_NEATO
6595 if test -n "$NEATO"; then
6596 { echo "$as_me:$LINENO: result: $NEATO" >&5
6597 echo "${ECHO_T}$NEATO" >&6; }
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6604 if test "$NEATO" != "echo neato" ; then
6606 cat >>confdefs.h <<\_ACEOF
6607 #define HAVE_NEATO 1
6610 if test "$llvm_cv_os_type" = "MingW" ; then
6611 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6614 cat >>confdefs.h <<_ACEOF
6615 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6619 # Extract the first word of "twopi", so it can be a program name with args.
6620 set dummy twopi; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_path_TWOPI+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6650 TWOPI=$ac_cv_path_TWOPI
6651 if test -n "$TWOPI"; then
6652 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6653 echo "${ECHO_T}$TWOPI" >&6; }
6655 { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6660 if test "$TWOPI" != "echo twopi" ; then
6662 cat >>confdefs.h <<\_ACEOF
6663 #define HAVE_TWOPI 1
6666 if test "$llvm_cv_os_type" = "MingW" ; then
6667 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6670 cat >>confdefs.h <<_ACEOF
6671 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6675 # Extract the first word of "circo", so it can be a program name with args.
6676 set dummy circo; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_path_CIRCO+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6706 CIRCO=$ac_cv_path_CIRCO
6707 if test -n "$CIRCO"; then
6708 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6709 echo "${ECHO_T}$CIRCO" >&6; }
6711 { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6716 if test "$CIRCO" != "echo circo" ; then
6718 cat >>confdefs.h <<\_ACEOF
6719 #define HAVE_CIRCO 1
6722 if test "$llvm_cv_os_type" = "MingW" ; then
6723 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6726 cat >>confdefs.h <<_ACEOF
6727 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6731 for ac_prog in gv gsview32
6733 # Extract the first word of "$ac_prog", so it can be a program name with args.
6734 set dummy $ac_prog; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_GV+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 if test -n "$GV"; then
6765 { echo "$as_me:$LINENO: result: $GV" >&5
6766 echo "${ECHO_T}$GV" >&6; }
6768 { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6773 test -n "$GV" && break
6775 test -n "$GV" || GV="echo gv"
6777 if test "$GV" != "echo gv" ; then
6779 cat >>confdefs.h <<\_ACEOF
6783 if test "$llvm_cv_os_type" = "MingW" ; then
6784 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6787 cat >>confdefs.h <<_ACEOF
6788 #define LLVM_PATH_GV "$GV${EXEEXT}"
6792 # Extract the first word of "dotty", so it can be a program name with args.
6793 set dummy dotty; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_DOTTY+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6823 DOTTY=$ac_cv_path_DOTTY
6824 if test -n "$DOTTY"; then
6825 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6826 echo "${ECHO_T}$DOTTY" >&6; }
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6833 if test "$DOTTY" != "echo dotty" ; then
6835 cat >>confdefs.h <<\_ACEOF
6836 #define HAVE_DOTTY 1
6839 if test "$llvm_cv_os_type" = "MingW" ; then
6840 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6843 cat >>confdefs.h <<_ACEOF
6844 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6848 # Extract the first word of "xdot.py", so it can be a program name with args.
6849 set dummy xdot.py; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6879 XDOT_PY=$ac_cv_path_XDOT_PY
6880 if test -n "$XDOT_PY"; then
6881 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6882 echo "${ECHO_T}$XDOT_PY" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6889 if test "$XDOT_PY" != "echo xdot.py" ; then
6891 cat >>confdefs.h <<\_ACEOF
6892 #define HAVE_XDOT_PY 1
6895 if test "$llvm_cv_os_type" = "MingW" ; then
6896 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6899 cat >>confdefs.h <<_ACEOF
6900 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6906 # Extract the first word of "perl", so it can be a program name with args.
6907 set dummy perl; ac_word=$2
6908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910 if test "${ac_cv_path_PERL+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6937 PERL=$ac_cv_path_PERL
6938 if test -n "$PERL"; then
6939 { echo "$as_me:$LINENO: result: $PERL" >&5
6940 echo "${ECHO_T}$PERL" >&6; }
6942 { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6947 if test "$PERL" != "none"; then
6948 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6949 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6950 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6951 { echo "$as_me:$LINENO: result: yes" >&5
6952 echo "${ECHO_T}yes" >&6; }
6955 { echo "$as_me:$LINENO: result: not found" >&5
6956 echo "${ECHO_T}not found" >&6; }
6961 if test x"$PERL" = xnone; then
6964 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6965 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6966 { (exit 1); exit 1; }; }
6972 # Find a good install program. We prefer a C program (faster),
6973 # so one script is as good as another. But avoid the broken or
6974 # incompatible versions:
6975 # SysV /etc/install, /usr/sbin/install
6976 # SunOS /usr/etc/install
6977 # IRIX /sbin/install
6979 # AmigaOS /C/install, which installs bootblocks on floppy discs
6980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6983 # OS/2's system install, which has a completely different semantic
6984 # ./install, which can be erroneously created by make from ./install.sh.
6985 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6986 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6987 if test -z "$INSTALL"; then
6988 if test "${ac_cv_path_install+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 test -z "$as_dir" && as_dir=.
6996 # Account for people who put trailing slashes in PATH elements.
6998 ./ | .// | /cC/* | \
6999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7003 # OSF1 and SCO ODT 3.0 have their own names for install.
7004 # Don't use installbsd from OSF since it installs stuff as root
7006 for ac_prog in ginstall scoinst install; do
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7009 if test $ac_prog = install &&
7010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7011 # AIX install. It has an incompatible calling convention.
7013 elif test $ac_prog = install &&
7014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015 # program-specific install script used by HP pwplus--don't use.
7018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7031 if test "${ac_cv_path_install+set}" = set; then
7032 INSTALL=$ac_cv_path_install
7034 # As a last resort, use the slow shell script. Don't cache a
7035 # value for INSTALL within a source directory, because that will
7036 # break other packages using the cache if that directory is
7037 # removed, or if the value is a relative name.
7038 INSTALL=$ac_install_sh
7041 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7042 echo "${ECHO_T}$INSTALL" >&6; }
7044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7045 # It thinks the first close brace ends the variable substitution.
7046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7053 [\\/$]* | ?:[\\/]* ) ;;
7054 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7057 # Extract the first word of "bzip2", so it can be a program name with args.
7058 set dummy bzip2; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_BZIP2+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 BZIP2=$ac_cv_path_BZIP2
7088 if test -n "$BZIP2"; then
7089 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7090 echo "${ECHO_T}$BZIP2" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7097 # Extract the first word of "cat", so it can be a program name with args.
7098 set dummy cat; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_CAT+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 if test -n "$CAT"; then
7129 { echo "$as_me:$LINENO: result: $CAT" >&5
7130 echo "${ECHO_T}$CAT" >&6; }
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7137 # Extract the first word of "doxygen", so it can be a program name with args.
7138 set dummy doxygen; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 DOXYGEN=$ac_cv_path_DOXYGEN
7168 if test -n "$DOXYGEN"; then
7169 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7170 echo "${ECHO_T}$DOXYGEN" >&6; }
7172 { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7177 # Extract the first word of "groff", so it can be a program name with args.
7178 set dummy groff; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_GROFF+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 GROFF=$ac_cv_path_GROFF
7208 if test -n "$GROFF"; then
7209 { echo "$as_me:$LINENO: result: $GROFF" >&5
7210 echo "${ECHO_T}$GROFF" >&6; }
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7217 # Extract the first word of "gzip", so it can be a program name with args.
7218 set dummy gzip; ac_word=$2
7219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 GZIPBIN=$ac_cv_path_GZIPBIN
7248 if test -n "$GZIPBIN"; then
7249 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7250 echo "${ECHO_T}$GZIPBIN" >&6; }
7252 { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7257 # Extract the first word of "pod2html", so it can be a program name with args.
7258 set dummy pod2html; ac_word=$2
7259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261 if test "${ac_cv_path_POD2HTML+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 POD2HTML=$ac_cv_path_POD2HTML
7288 if test -n "$POD2HTML"; then
7289 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7290 echo "${ECHO_T}$POD2HTML" >&6; }
7292 { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7297 # Extract the first word of "pod2man", so it can be a program name with args.
7298 set dummy pod2man; ac_word=$2
7299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301 if test "${ac_cv_path_POD2MAN+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 POD2MAN=$ac_cv_path_POD2MAN
7328 if test -n "$POD2MAN"; then
7329 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7330 echo "${ECHO_T}$POD2MAN" >&6; }
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7337 # Extract the first word of "pdfroff", so it can be a program name with args.
7338 set dummy pdfroff; ac_word=$2
7339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341 if test "${ac_cv_path_PDFROFF+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 PDFROFF=$ac_cv_path_PDFROFF
7368 if test -n "$PDFROFF"; then
7369 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7370 echo "${ECHO_T}$PDFROFF" >&6; }
7372 { echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6; }
7377 # Extract the first word of "runtest", so it can be a program name with args.
7378 set dummy runtest; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_RUNTEST+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 RUNTEST=$ac_cv_path_RUNTEST
7408 if test -n "$RUNTEST"; then
7409 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7410 echo "${ECHO_T}$RUNTEST" >&6; }
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7419 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7420 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7422 # Check whether --with-tclinclude was given.
7423 if test "${with_tclinclude+set}" = set; then
7424 withval=$with_tclinclude; with_tclinclude=${withval}
7429 if test "${ac_cv_path_tclsh+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 if test x"${with_tclinclude}" != x ; then
7434 if test -f ${with_tclinclude}/tclsh ; then
7435 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7436 elif test -f ${with_tclinclude}/src/tclsh ; then
7437 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7439 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7440 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7441 { (exit 1); exit 1; }; }
7447 if test x"${ac_cv_path_tclsh}" = x ; then
7448 { echo "$as_me:$LINENO: result: none" >&5
7449 echo "${ECHO_T}none" >&6; }
7450 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
7452 # Extract the first word of "$ac_prog", so it can be a program name with args.
7453 set dummy $ac_prog; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_TCLSH+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 TCLSH=$ac_cv_path_TCLSH
7483 if test -n "$TCLSH"; then
7484 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7485 echo "${ECHO_T}$TCLSH" >&6; }
7487 { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7492 test -n "$TCLSH" && break
7495 if test x"${TCLSH}" = x ; then
7496 ac_cv_path_tclsh='';
7498 ac_cv_path_tclsh="${TCLSH}";
7501 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7502 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7503 TCLSH="${ac_cv_path_tclsh}"
7507 # Extract the first word of "zip", so it can be a program name with args.
7508 set dummy zip; ac_word=$2
7509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511 if test "${ac_cv_path_ZIP+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 if test -n "$ZIP"; then
7539 { echo "$as_me:$LINENO: result: $ZIP" >&5
7540 echo "${ECHO_T}$ZIP" >&6; }
7542 { echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6; }
7547 for ac_prog in ocamlc
7549 # Extract the first word of "$ac_prog", so it can be a program name with args.
7550 set dummy $ac_prog; ac_word=$2
7551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553 if test "${ac_cv_path_OCAMLC+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 OCAMLC=$ac_cv_path_OCAMLC
7580 if test -n "$OCAMLC"; then
7581 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7582 echo "${ECHO_T}$OCAMLC" >&6; }
7584 { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7589 test -n "$OCAMLC" && break
7592 for ac_prog in ocamlopt
7594 # Extract the first word of "$ac_prog", so it can be a program name with args.
7595 set dummy $ac_prog; ac_word=$2
7596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7598 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 OCAMLOPT=$ac_cv_path_OCAMLOPT
7625 if test -n "$OCAMLOPT"; then
7626 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7627 echo "${ECHO_T}$OCAMLOPT" >&6; }
7629 { echo "$as_me:$LINENO: result: no" >&5
7630 echo "${ECHO_T}no" >&6; }
7634 test -n "$OCAMLOPT" && break
7637 for ac_prog in ocamldep
7639 # Extract the first word of "$ac_prog", so it can be a program name with args.
7640 set dummy $ac_prog; ac_word=$2
7641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7643 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 OCAMLDEP=$ac_cv_path_OCAMLDEP
7670 if test -n "$OCAMLDEP"; then
7671 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7672 echo "${ECHO_T}$OCAMLDEP" >&6; }
7674 { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7679 test -n "$OCAMLDEP" && break
7682 for ac_prog in ocamldoc
7684 # Extract the first word of "$ac_prog", so it can be a program name with args.
7685 set dummy $ac_prog; ac_word=$2
7686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 OCAMLDOC=$ac_cv_path_OCAMLDOC
7715 if test -n "$OCAMLDOC"; then
7716 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7717 echo "${ECHO_T}$OCAMLDOC" >&6; }
7719 { echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6; }
7724 test -n "$OCAMLDOC" && break
7727 for ac_prog in gas as
7729 # Extract the first word of "$ac_prog", so it can be a program name with args.
7730 set dummy $ac_prog; ac_word=$2
7731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733 if test "${ac_cv_path_GAS+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7748 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 if test -n "$GAS"; then
7761 { echo "$as_me:$LINENO: result: $GAS" >&5
7762 echo "${ECHO_T}$GAS" >&6; }
7764 { echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6; }
7769 test -n "$GAS" && break
7773 { echo "$as_me:$LINENO: checking for linker version" >&5
7774 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7775 if test "${llvm_cv_link_version+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 version_string="$(ld -v 2>&1 | head -1)"
7782 if (echo "$version_string" | grep -q "ld64"); then
7783 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7785 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7789 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7790 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7792 cat >>confdefs.h <<_ACEOF
7793 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7798 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7799 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7800 if test "${llvm_cv_link_use_r+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810 CFLAGS="$CFLAGS -Wl,-R."
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_link") 2>conftest.er1
7835 grep -v '^ *+' conftest.er1 >conftest.err
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7841 { (case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846 (eval "$ac_try") 2>&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; } &&
7850 { ac_try='test -s conftest$ac_exeext'
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 llvm_cv_link_use_r=yes
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 llvm_cv_link_use_r=no
7868 rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7880 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7881 if test "$llvm_cv_link_use_r" = yes ; then
7883 cat >>confdefs.h <<\_ACEOF
7884 #define HAVE_LINK_R 1
7890 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7891 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7892 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (ac_try="$ac_link"
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_link") 2>conftest.er1
7927 grep -v '^ *+' conftest.er1 >conftest.err
7929 cat conftest.err >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } &&
7932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7933 { (case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_try") 2>&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; } &&
7942 { ac_try='test -s conftest$ac_exeext'
7943 { (case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_try") 2>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7952 llvm_cv_link_use_export_dynamic=yes
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7957 llvm_cv_link_use_export_dynamic=no
7960 rm -f core conftest.err conftest.$ac_objext \
7961 conftest$ac_exeext conftest.$ac_ext
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7972 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7973 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7975 cat >>confdefs.h <<\_ACEOF
7976 #define HAVE_LINK_EXPORT_DYNAMIC 1
7982 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7983 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7984 if test "${llvm_cv_link_use_version_script+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 ac_cpp='$CPP $CPPFLAGS'
7989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995 # The following code is from the autoconf manual,
7996 # "11.13: Limitations of Usual Tools".
7997 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7998 # Use mktemp if possible; otherwise fall back on mkdir,
7999 # with $RANDOM to make collisions less likely.
8003 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8005 test -n "$tmp" && test -d "$tmp"
8007 tmp=$TMPDIR/foo$$-$RANDOM
8008 (umask 077 && mkdir "$tmp")
8011 echo "{" > "$tmp/export.map"
8012 echo " global: main;" >> "$tmp/export.map"
8013 echo " local: *;" >> "$tmp/export.map"
8014 echo "};" >> "$tmp/export.map"
8016 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (ac_try="$ac_link"
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_link") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest$ac_exeext'
8057 { (case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_try") 2>&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 llvm_cv_link_use_version_script=yes
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 llvm_cv_link_use_version_script=no
8074 rm -f core conftest.err conftest.$ac_objext \
8075 conftest$ac_exeext conftest.$ac_ext
8076 rm "$tmp/export.map"
8080 ac_cpp='$CPP $CPPFLAGS'
8081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8087 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8088 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8089 if test "$llvm_cv_link_use_version_script" = yes ; then
8090 HAVE_LINK_VERSION_SCRIPT=1
8097 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8098 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8099 if test "${ac_cv_c_const+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 cat >conftest.$ac_ext <<_ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8112 /* FIXME: Include the comments suggested by Paul. */
8114 /* Ultrix mips cc rejects this. */
8115 typedef int charset[2];
8117 /* SunOS 4.1.1 cc rejects this. */
8118 char const *const *ccp;
8120 /* NEC SVR4.0.2 mips cc rejects this. */
8121 struct point {int x, y;};
8122 static struct point const zero = {0,0};
8123 /* AIX XL C 1.02.0.0 rejects this.
8124 It does not let you subtract one const X* pointer from another in
8125 an arm of an if-expression whose if-part is not a constant
8127 const char *g = "string";
8128 ccp = &g + (g ? g-g : 0);
8129 /* HPUX 7.0 cc rejects these. */
8132 ccp = (char const *const *) p;
8133 { /* SCO 3.2v4 cc rejects this. */
8135 char const *s = 0 ? (char *) 0 : (char const *) 0;
8140 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8142 const int *foo = &x[0];
8145 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8146 typedef const int *iptr;
8150 { /* AIX XL C 1.02.0.0 rejects this saying
8151 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8152 struct s { int j; const int *ap[3]; };
8153 struct s *b; b->j = 5;
8155 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8159 return !x[0] && !zero.x;
8166 rm -f conftest.$ac_objext
8167 if { (ac_try="$ac_compile"
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_compile") 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try='test -s conftest.$ac_objext'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8211 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8212 if test $ac_cv_c_const = no; then
8214 cat >>confdefs.h <<\_ACEOF
8226 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8227 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8228 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8229 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 cat >conftest.$ac_ext <<_ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 #include <sys/types.h>
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_compile") 2>conftest.er1
8260 grep -v '^ *+' conftest.er1 >conftest.err
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try='test -s conftest.$ac_objext'
8276 { (case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_try") 2>&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 eval "$as_ac_Header=yes"
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8290 eval "$as_ac_Header=no"
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295 ac_res=`eval echo '${'$as_ac_Header'}'`
8296 { echo "$as_me:$LINENO: result: $ac_res" >&5
8297 echo "${ECHO_T}$ac_res" >&6; }
8298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8303 ac_header_dirent=$ac_hdr; break
8307 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8308 if test $ac_header_dirent = dirent.h; then
8309 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8310 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8311 if test "${ac_cv_search_opendir+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 ac_func_search_save_LIBS=$LIBS
8315 cat >conftest.$ac_ext <<_ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8322 /* Override any GCC internal prototype to avoid an error.
8323 Use char because int might match the return type of a GCC
8324 builtin and then its argument prototype would still apply. */
8337 for ac_lib in '' dir; do
8338 if test -z "$ac_lib"; then
8339 ac_res="none required"
8342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (ac_try="$ac_link"
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_link") 2>conftest.er1
8353 grep -v '^ *+' conftest.er1 >conftest.err
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest$ac_exeext'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_search_opendir=$ac_res
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8386 rm -f core conftest.err conftest.$ac_objext \
8388 if test "${ac_cv_search_opendir+set}" = set; then
8392 if test "${ac_cv_search_opendir+set}" = set; then
8395 ac_cv_search_opendir=no
8398 LIBS=$ac_func_search_save_LIBS
8400 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8401 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8402 ac_res=$ac_cv_search_opendir
8403 if test "$ac_res" != no; then
8404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8409 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8410 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8411 if test "${ac_cv_search_opendir+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 ac_func_search_save_LIBS=$LIBS
8415 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8422 /* Override any GCC internal prototype to avoid an error.
8423 Use char because int might match the return type of a GCC
8424 builtin and then its argument prototype would still apply. */
8437 for ac_lib in '' x; do
8438 if test -z "$ac_lib"; then
8439 ac_res="none required"
8442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (ac_try="$ac_link"
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_link") 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8459 { (case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_try") 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_try") 2>&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 ac_cv_search_opendir=$ac_res
8480 echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8486 rm -f core conftest.err conftest.$ac_objext \
8488 if test "${ac_cv_search_opendir+set}" = set; then
8492 if test "${ac_cv_search_opendir+set}" = set; then
8495 ac_cv_search_opendir=no
8498 LIBS=$ac_func_search_save_LIBS
8500 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8501 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8502 ac_res=$ac_cv_search_opendir
8503 if test "$ac_res" != no; then
8504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8511 for ac_header in dlfcn.h
8513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 ac_res=`eval echo '${'$as_ac_Header'}'`
8521 { echo "$as_me:$LINENO: result: $ac_res" >&5
8522 echo "${ECHO_T}$ac_res" >&6; }
8524 # Is the header compilable?
8525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8534 #include <$ac_header>
8536 rm -f conftest.$ac_objext
8537 if { (ac_try="$ac_compile"
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_compile") 2>conftest.er1
8545 grep -v '^ *+' conftest.er1 >conftest.err
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8551 { (case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_try") 2>&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_try") 2>&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 ac_header_compiler=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 ac_header_compiler=no
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8580 echo "${ECHO_T}$ac_header_compiler" >&6; }
8582 # Is the header present?
8583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8585 cat >conftest.$ac_ext <<_ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 #include <$ac_header>
8593 if { (ac_try="$ac_cpp conftest.$ac_ext"
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } >/dev/null; then
8606 if test -s conftest.err; then
8607 ac_cpp_err=$ac_c_preproc_warn_flag
8608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8615 if test -z "$ac_cpp_err"; then
8616 ac_header_preproc=yes
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8621 ac_header_preproc=no
8624 rm -f conftest.err conftest.$ac_ext
8625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8626 echo "${ECHO_T}$ac_header_preproc" >&6; }
8628 # So? What about this header?
8629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8635 ac_header_preproc=yes
8638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8651 ## ----------------------------------- ##
8652 ## Report this to llvmbugs@cs.uiuc.edu ##
8653 ## ----------------------------------- ##
8655 ) | sed "s/^/$as_me: WARNING: /" >&2
8658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 eval "$as_ac_Header=\$ac_header_preproc"
8665 ac_res=`eval echo '${'$as_ac_Header'}'`
8666 { echo "$as_me:$LINENO: result: $ac_res" >&5
8667 echo "${ECHO_T}$ac_res" >&6; }
8670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8671 cat >>confdefs.h <<_ACEOF
8672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8679 # Check whether --enable-ltdl-install was given.
8680 if test "${enable_ltdl_install+set}" = set; then
8681 enableval=$enable_ltdl_install;
8687 if test x"${enable_ltdl_install-no}" != xno; then
8689 INSTALL_LTDL_FALSE='#'
8691 INSTALL_LTDL_TRUE='#'
8697 if test x"${enable_ltdl_convenience-no}" != xno; then
8698 CONVENIENCE_LTDL_TRUE=
8699 CONVENIENCE_LTDL_FALSE='#'
8701 CONVENIENCE_LTDL_TRUE='#'
8702 CONVENIENCE_LTDL_FALSE=
8706 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8707 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8709 libname_spec='lib$name'
8717 shlibpath_overrides_runpath=unknown
8719 dynamic_linker="$host_os ld.so"
8720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8721 if test "$GCC" = yes; then
8722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8723 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8724 # if the path contains ";" then we assume it to be the separator
8725 # otherwise default to the standard path separator (i.e. ":") - it is
8726 # assumed that no part of a normal pathname contains ";" but that should
8727 # okay in the real world where ";" in dirpaths is itself problematic.
8728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8735 need_lib_prefix=unknown
8736 hardcode_into_libs=no
8738 # when you set need_version to no, make sure it does not cause -set_version
8739 # flags to be left without arguments
8740 need_version=unknown
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8746 shlibpath_var=LIBPATH
8748 # AIX 3 has no versioning support, so we append a major version to the name.
8749 soname_spec='${libname}${release}${shared_ext}$major'
8756 hardcode_into_libs=yes
8757 if test "$host_cpu" = ia64; then
8758 # AIX 5 supports IA64
8759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8760 shlibpath_var=LD_LIBRARY_PATH
8762 # With GCC up to 2.95.x, collect2 would create an import file
8763 # for dependence libraries. The import file would start with
8764 # the line `#! .'. This would cause the generated library to
8765 # depend on `.', always an invalid library. This was fixed in
8766 # development snapshots of GCC prior to 3.0.
8768 aix4 | aix4.[01] | aix4.[01].*)
8769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8771 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8779 # soname into executable. Probably we can add versioning support to
8780 # collect2, so additional links can be useful in future.
8781 if test "$aix_use_runtimelinking" = yes; then
8782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8783 # instead of lib<name>.a to let people know that these are not
8784 # typical AIX shared libraries.
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8787 # We preserve .a as extension for shared libraries through AIX4.2
8788 # and later when we are not doing run time linking.
8789 library_names_spec='${libname}${release}.a $libname.a'
8790 soname_spec='${libname}${release}${shared_ext}$major'
8792 shlibpath_var=LIBPATH
8797 library_names_spec='$libname.ixlibrary $libname.a'
8798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8799 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'
8803 library_names_spec='${libname}${shared_ext}'
8804 dynamic_linker="$host_os ld.so"
8805 shlibpath_var=LIBRARY_PATH
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8817 # the default ld.so.conf also contains /usr/contrib/lib and
8818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8819 # libtool to hard-code these into programs
8822 cygwin* | mingw* | pw32*)
8823 version_type=windows
8828 case $GCC,$host_os in
8829 yes,cygwin* | yes,mingw* | yes,pw32*)
8830 library_names_spec='$libname.dll.a'
8831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8832 postinstall_cmds='base_file=`basename \${file}`~
8833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8834 dldir=$destdir/`dirname \$dlpath`~
8835 test -d \$dldir || mkdir -p \$dldir~
8836 $install_prog $dir/$dlname \$dldir/$dlname~
8837 chmod a+x \$dldir/$dlname'
8838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8839 dlpath=$dir/\$dldll~
8841 shlibpath_overrides_runpath=yes
8845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8846 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8847 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8850 # MinGW DLLs use traditional 'lib' prefix
8851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8852 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8853 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8854 # It is most probably a Windows format PATH printed by
8855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8856 # path with ; separators, and with drive letters. We can handle the
8857 # drive letters (cygwin fileutils understands them), so leave them,
8858 # especially as we might pass files found there to a mingw objdump,
8859 # which wouldn't understand a cygwinified path. Ahh.
8860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8866 # pw32 DLLs use 'pw' prefix rather than 'lib'
8867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8876 dynamic_linker='Win32 ld.exe'
8877 # FIXME: first we should search . and the directory the executable is in
8881 darwin* | rhapsody*)
8882 dynamic_linker="$host_os dyld"
8886 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8887 soname_spec='${libname}${release}${major}$shared_ext'
8888 shlibpath_overrides_runpath=yes
8889 shlibpath_var=DYLD_LIBRARY_PATH
8890 shrext_cmds='.dylib'
8891 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8892 if test "$GCC" = yes; then
8893 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"`
8895 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 shlibpath_var=LD_LIBRARY_PATH
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 shlibpath_var=LD_LIBRARY_PATH
8920 shlibpath_overrides_runpath=no
8921 hardcode_into_libs=yes
8922 dynamic_linker='GNU ld.so'
8925 freebsd* | dragonfly*)
8926 # DragonFly does not have aout. When/if they implement a new
8927 # versioning mechanism, adjust this.
8928 if test -x /usr/bin/objformat; then
8929 objformat=`/usr/bin/objformat`
8932 freebsd[123]*) objformat=aout ;;
8936 version_type=freebsd-$objformat
8937 case $version_type in
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8948 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=yes
8953 freebsd3.[01]* | freebsdelf3.[01]*)
8954 shlibpath_overrides_runpath=yes
8955 hardcode_into_libs=yes
8957 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8958 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8959 shlibpath_overrides_runpath=no
8960 hardcode_into_libs=yes
8962 freebsd*) # from 4.6 on
8963 shlibpath_overrides_runpath=yes
8964 hardcode_into_libs=yes
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 hardcode_into_libs=yes
8979 hpux9* | hpux10* | hpux11*)
8980 # Give a soname corresponding to the major version so that dld.sl refuses to
8981 # link against other versions.
8988 hardcode_into_libs=yes
8989 dynamic_linker="$host_os dld.so"
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 if test "X$HPUX_IA64_MODE" = X32; then
8995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9003 hardcode_into_libs=yes
9004 dynamic_linker="$host_os dld.sl"
9005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9014 dynamic_linker="$host_os dld.sl"
9015 shlibpath_var=SHLIB_PATH
9016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9021 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9022 postinstall_cmds='chmod 555 $lib'
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=no
9034 hardcode_into_libs=yes
9037 irix5* | irix6* | nonstopux*)
9039 nonstopux*) version_type=nonstopux ;;
9041 if test "$lt_cv_prog_gnu_ld" = yes; then
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9052 irix5* | nonstopux*)
9056 case $LD in # libtool.m4 will add one of these switches to LD
9057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9058 libsuff= shlibsuff= libmagic=32-bit;;
9059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9060 libsuff=32 shlibsuff=N32 libmagic=N32;;
9061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9062 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9063 *) libsuff= shlibsuff= libmagic=never-match;;
9067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9068 shlibpath_overrides_runpath=no
9069 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9070 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9071 hardcode_into_libs=yes
9074 # No shared lib support for Linux oldld, aout, or coff.
9075 linux*oldld* | linux*aout* | linux*coff*)
9079 # This must be Linux ELF.
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=no
9089 # This implies no fast_install, which is unacceptable.
9090 # Some rework will be needed to allow for fast_install
9091 # before this can be enabled.
9092 hardcode_into_libs=yes
9094 # Append ld.so.conf contents to the search path
9095 if test -f /etc/ld.so.conf; then
9096 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' ' '`
9097 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9100 # We used to test for /lib/ld.so.1 and disable shared libraries on
9101 # powerpc, because MkLinux only supported shared libraries with the
9102 # GNU dynamic linker. Since this was broken with cross compilers,
9103 # most powerpc-linux boxes support dynamic linking these days and
9104 # people can always --disable-shared, the test was removed, and we
9105 # assume the GNU/Linux dynamic linker is in use.
9106 dynamic_linker='GNU/Linux ld.so'
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 hardcode_into_libs=yes
9118 dynamic_linker='GNU ld.so'
9125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9128 dynamic_linker='NetBSD (a.out) ld.so'
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 dynamic_linker='NetBSD ld.elf_so'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=yes
9136 hardcode_into_libs=yes
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=yes
9158 sys_lib_dlsearch_path_spec="/usr/lib"
9160 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9162 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9163 *) need_version=no ;;
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9170 openbsd2.[89] | openbsd2.[89].*)
9171 shlibpath_overrides_runpath=no
9174 shlibpath_overrides_runpath=yes
9178 shlibpath_overrides_runpath=yes
9183 libname_spec='$name'
9186 library_names_spec='$libname${shared_ext} $libname.a'
9187 dynamic_linker='OS/2 ld.exe'
9188 shlibpath_var=LIBPATH
9191 osf3* | osf4* | osf5*)
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=yes
9210 hardcode_into_libs=yes
9211 # ldd complains unless libraries are executable
9212 postinstall_cmds='chmod +x $lib'
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9218 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=yes
9221 if test "$with_gnu_ld" = yes; then
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 case $host_vendor in
9234 shlibpath_overrides_runpath=no
9236 export_dynamic_flag_spec='${wl}-Blargedynsym'
9237 runpath_var=LD_RUN_PATH
9245 shlibpath_overrides_runpath=no
9246 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9252 if test -d /usr/nec ;then
9254 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9255 soname_spec='$libname${shared_ext}.$major'
9256 shlibpath_var=LD_LIBRARY_PATH
9260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9261 version_type=freebsd-elf
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 hardcode_into_libs=yes
9268 if test "$with_gnu_ld" = yes; then
9269 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9270 shlibpath_overrides_runpath=no
9272 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9273 shlibpath_overrides_runpath=yes
9276 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9280 sys_lib_dlsearch_path_spec='/usr/lib'
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9294 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9295 echo "${ECHO_T}$dynamic_linker" >&6; }
9296 test "$dynamic_linker" = no && can_build_shared=no
9298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9299 if test "$GCC" = yes; then
9300 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9304 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9305 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9306 if test "${libltdl_cv_shlibext+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 eval libltdl_cv_shlibext=$shrext_cmds
9314 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9315 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9316 if test -n "$libltdl_cv_shlibext"; then
9318 cat >>confdefs.h <<_ACEOF
9319 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9325 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9326 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9327 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 libltdl_cv_shlibpath_var="$shlibpath_var"
9332 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9333 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9334 if test -n "$libltdl_cv_shlibpath_var"; then
9336 cat >>confdefs.h <<_ACEOF
9337 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9343 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9344 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9345 if test "${libltdl_cv_sys_search_path+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9350 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9351 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9352 if test -n "$libltdl_cv_sys_search_path"; then
9354 for dir in $libltdl_cv_sys_search_path; do
9355 if test -z "$sys_search_path"; then
9356 sys_search_path="$dir"
9358 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9362 cat >>confdefs.h <<_ACEOF
9363 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9368 { echo "$as_me:$LINENO: checking for objdir" >&5
9369 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9370 if test "${libltdl_cv_objdir+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 libltdl_cv_objdir="$objdir"
9374 if test -n "$objdir"; then
9377 rm -f .libs 2>/dev/null
9378 mkdir .libs 2>/dev/null
9379 if test -d .libs; then
9380 libltdl_cv_objdir=.libs
9382 # MS-DOS does not allow filenames that begin with a dot.
9383 libltdl_cv_objdir=_libs
9385 rmdir .libs 2>/dev/null
9389 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9390 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9392 cat >>confdefs.h <<_ACEOF
9393 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9401 # Check for command to grab the raw symbol name followed by C symbol from nm.
9402 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9403 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9404 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 # These are sane defaults that work on at least a few old systems.
9409 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9411 # Character class describing NM global symbol codes.
9412 symcode='[BCDEGRST]'
9414 # Regexp to match symbols that can be accessed directly from C.
9415 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9417 # Transform an extracted symbol line into a proper C declaration
9418 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9420 # Transform an extracted symbol line into symbol name and symbol address
9421 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'"
9423 # Define system-specific variables.
9428 cygwin* | mingw* | pw32*)
9429 symcode='[ABCDGISTW]'
9431 hpux*) # Its linker distinguishes data from code symbols
9432 if test "$host_cpu" = ia64; then
9433 symcode='[ABCDEGRST]'
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'"
9439 if test "$host_cpu" = ia64; then
9440 symcode='[ABCDGIRSTW]'
9441 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9442 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'"
9446 symcode='[BCDEGRST]'
9449 symcode='[BCDEGQRST]'
9460 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9468 # Handle CRLF in mingw tool chain
9472 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9476 # If we're using GNU nm, then use its standard symbol codes.
9477 case `$NM -V 2>&1` in
9478 *GNU* | *'with BFD'*)
9479 symcode='[ABCDGIRSTW]' ;;
9482 # Try without a prefix undercore, then with it.
9483 for ac_symprfx in "" "_"; do
9485 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9486 symxfrm="\\1 $ac_symprfx\\2 \\2"
9488 # Write the raw and C identifiers.
9489 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9491 # Check to see that the pipe works correctly.
9495 cat > conftest.$ac_ext <<EOF
9500 void nm_test_func(){}
9504 int main(){nm_test_var='a';nm_test_func();return(0);}
9507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508 (eval $ac_compile) 2>&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; then
9512 # Now try to grab the symbols.
9514 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9515 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && test -s "$nlist"; then
9519 # Try sorting and uniquifying the output.
9520 if sort "$nlist" | uniq > "$nlist"T; then
9521 mv -f "$nlist"T "$nlist"
9526 # Make sure that we snagged all the symbols we need.
9527 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9528 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9529 cat <<EOF > conftest.$ac_ext
9535 # Now generate the symbol file.
9536 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9538 cat <<EOF >> conftest.$ac_ext
9539 #if defined (__STDC__) && __STDC__
9540 # define lt_ptr_t void *
9542 # define lt_ptr_t char *
9546 /* The mapping between symbol names and symbols. */
9551 lt_preloaded_symbols[] =
9554 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9555 cat <<\EOF >> conftest.$ac_ext
9563 # Now try linking the two files.
9564 mv conftest.$ac_objext conftstm.$ac_objext
9565 lt_save_LIBS="$LIBS"
9566 lt_save_CFLAGS="$CFLAGS"
9567 LIBS="conftstm.$ac_objext"
9568 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9570 (eval $ac_link) 2>&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9576 LIBS="$lt_save_LIBS"
9577 CFLAGS="$lt_save_CFLAGS"
9579 echo "cannot find nm_test_func in $nlist" >&5
9582 echo "cannot find nm_test_var in $nlist" >&5
9585 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9588 echo "$progname: failed program was:" >&5
9589 cat conftest.$ac_ext >&5
9591 rm -f conftest* conftst*
9593 # Do not use the global_symbol_pipe unless it works.
9594 if test "$pipe_works" = yes; then
9597 lt_cv_sys_global_symbol_pipe=
9603 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9604 lt_cv_sys_global_symbol_to_cdecl=
9606 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9607 { echo "$as_me:$LINENO: result: failed" >&5
9608 echo "${ECHO_T}failed" >&6; }
9610 { echo "$as_me:$LINENO: result: ok" >&5
9611 echo "${ECHO_T}ok" >&6; }
9615 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9616 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9617 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9621 libltdl_cv_preloaded_symbols=yes
9623 libltdl_cv_preloaded_symbols=no
9627 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9628 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9629 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9631 cat >>confdefs.h <<\_ACEOF
9632 #define HAVE_PRELOADED_SYMBOLS 1
9640 ac_cpp='$CPP $CPPFLAGS'
9641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9646 { echo "$as_me:$LINENO: checking for shl_load" >&5
9647 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9648 if test "${ac_cv_func_shl_load+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9659 #define shl_load innocuous_shl_load
9661 /* System header to define __stub macros and hopefully few prototypes,
9662 which can conflict with char shl_load (); below.
9663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664 <limits.h> exists even on freestanding compilers. */
9667 # include <limits.h>
9669 # include <assert.h>
9674 /* Override any GCC internal prototype to avoid an error.
9675 Use char because int might match the return type of a GCC
9676 builtin and then its argument prototype would still apply. */
9681 /* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684 #if defined __stub_shl_load || defined __stub___shl_load
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (ac_try="$ac_link"
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_link") 2>conftest.er1
9705 grep -v '^ *+' conftest.er1 >conftest.err
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9711 { (case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_try") 2>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; } &&
9720 { ac_try='test -s conftest$ac_exeext'
9721 { (case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_try") 2>&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_func_shl_load=yes
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 ac_cv_func_shl_load=no
9738 rm -f core conftest.err conftest.$ac_objext \
9739 conftest$ac_exeext conftest.$ac_ext
9741 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9742 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9743 if test $ac_cv_func_shl_load = yes; then
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_SHL_LOAD 1
9750 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9751 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9752 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 ac_check_lib_save_LIBS=$LIBS
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (ac_try="$ac_link"
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
9788 grep -v '^ *+' conftest.er1 >conftest.err
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; }; then
9813 ac_cv_lib_dld_shl_load=yes
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 ac_cv_lib_dld_shl_load=no
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9825 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9826 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9827 if test $ac_cv_lib_dld_shl_load = yes; then
9829 cat >>confdefs.h <<\_ACEOF
9830 #define HAVE_SHL_LOAD 1
9833 LIBADD_DL="$LIBADD_DL -ldld"
9835 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9836 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9837 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 ac_check_lib_save_LIBS=$LIBS
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9849 /* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (ac_try="$ac_link"
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_link") 2>conftest.er1
9873 grep -v '^ *+' conftest.er1 >conftest.err
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_lib_dl_dlopen=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_cv_lib_dl_dlopen=no
9906 rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9910 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9911 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9912 if test $ac_cv_lib_dl_dlopen = yes; then
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_LIBDL 1
9918 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9920 cat >conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9947 grep -v '^ *+' conftest.er1 >conftest.err
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9953 { (case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_try") 2>&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; } &&
9962 { ac_try='test -s conftest$ac_exeext'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9973 cat >>confdefs.h <<\_ACEOF
9974 #define HAVE_LIBDL 1
9976 libltdl_cv_func_dlopen="yes"
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9982 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9983 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 ac_check_lib_save_LIBS=$LIBS
9988 cat >conftest.$ac_ext <<_ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9995 /* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (ac_try="$ac_link"
10012 case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_link") 2>conftest.er1
10019 grep -v '^ *+' conftest.er1 >conftest.err
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try='test -s conftest$ac_exeext'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 ac_cv_lib_svld_dlopen=yes
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_cv_lib_svld_dlopen=no
10052 rm -f core conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10056 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10057 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10058 if test $ac_cv_lib_svld_dlopen = yes; then
10060 cat >>confdefs.h <<\_ACEOF
10061 #define HAVE_LIBDL 1
10064 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10066 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10067 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 ac_check_lib_save_LIBS=$LIBS
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10090 return dld_link ();
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
10104 grep -v '^ *+' conftest.er1 >conftest.err
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; } &&
10119 { ac_try='test -s conftest$ac_exeext'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_lib_dld_dld_link=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_lib_dld_dld_link=no
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10141 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10142 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10143 if test $ac_cv_lib_dld_dld_link = yes; then
10145 cat >>confdefs.h <<\_ACEOF
10149 LIBADD_DL="$LIBADD_DL -ldld"
10151 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10152 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10153 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10164 #define _dyld_func_lookup innocuous__dyld_func_lookup
10166 /* System header to define __stub macros and hopefully few prototypes,
10167 which can conflict with char _dyld_func_lookup (); below.
10168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10169 <limits.h> exists even on freestanding compilers. */
10172 # include <limits.h>
10174 # include <assert.h>
10177 #undef _dyld_func_lookup
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10185 char _dyld_func_lookup ();
10186 /* The GNU C library defines this for functions which it implements
10187 to always fail with ENOSYS. Some functions are actually named
10188 something starting with __ and the normal name is an alias. */
10189 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10196 return _dyld_func_lookup ();
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_link") 2>conftest.er1
10210 grep -v '^ *+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 ac_cv_func__dyld_func_lookup=yes
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10240 ac_cv_func__dyld_func_lookup=no
10243 rm -f core conftest.err conftest.$ac_objext \
10244 conftest$ac_exeext conftest.$ac_ext
10246 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10247 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10248 if test $ac_cv_func__dyld_func_lookup = yes; then
10250 cat >>confdefs.h <<\_ACEOF
10251 #define HAVE_DYLD 1
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10277 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10279 lt_save_LIBS="$LIBS"
10280 LIBS="$LIBS $LIBADD_DL"
10282 for ac_func in dlerror
10284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 cat >conftest.$ac_ext <<_ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10298 #define $ac_func innocuous_$ac_func
10300 /* System header to define __stub macros and hopefully few prototypes,
10301 which can conflict with char $ac_func (); below.
10302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10303 <limits.h> exists even on freestanding compilers. */
10306 # include <limits.h>
10308 # include <assert.h>
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10320 /* The GNU C library defines this for functions which it implements
10321 to always fail with ENOSYS. Some functions are actually named
10322 something starting with __ and the normal name is an alias. */
10323 #if defined __stub_$ac_func || defined __stub___$ac_func
10330 return $ac_func ();
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_link") 2>conftest.er1
10344 grep -v '^ *+' conftest.er1 >conftest.err
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10350 { (case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_try") 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; } &&
10359 { ac_try='test -s conftest$ac_exeext'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 eval "$as_ac_var=yes"
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 eval "$as_ac_var=no"
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10380 ac_res=`eval echo '${'$as_ac_var'}'`
10381 { echo "$as_me:$LINENO: result: $ac_res" >&5
10382 echo "${ECHO_T}$ac_res" >&6; }
10383 if test `eval echo '${'$as_ac_var'}'` = yes; then
10384 cat >>confdefs.h <<_ACEOF
10385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10391 LIBS="$lt_save_LIBS"
10394 ac_cpp='$CPP $CPPFLAGS'
10395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10401 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10402 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10403 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 ac_cv_sys_symbol_underscore=no
10407 cat > conftest.$ac_ext <<EOF
10408 void nm_test_func(){}
10409 int main(){nm_test_func;return 0;}
10411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10412 (eval $ac_compile) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; then
10416 # Now try to grab the symbols.
10417 ac_nlist=conftest.nm
10418 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10419 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } && test -s "$ac_nlist"; then
10423 # See whether the symbols have a leading underscore.
10424 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10425 ac_cv_sys_symbol_underscore=yes
10427 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10430 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10434 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10437 echo "configure: failed program was:" >&5
10443 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10444 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10447 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10448 if test x"$libltdl_cv_func_dlopen" = xyes ||
10449 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10450 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10451 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10452 if test "${libltdl_cv_need_uscore+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 libltdl_cv_need_uscore=unknown
10457 LIBS="$LIBS $LIBADD_DL"
10458 if test "$cross_compiling" = yes; then :
10459 libltdl_cv_need_uscore=cross
10461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10462 lt_status=$lt_dlunknown
10463 cat > conftest.$ac_ext <<EOF
10464 #line 10474 "configure"
10465 #include "confdefs.h"
10474 # define LT_DLGLOBAL RTLD_GLOBAL
10477 # define LT_DLGLOBAL DL_GLOBAL
10479 # define LT_DLGLOBAL 0
10483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10484 find out it does not work in some platform. */
10485 #ifndef LT_DLLAZY_OR_NOW
10487 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10490 # define LT_DLLAZY_OR_NOW DL_LAZY
10493 # define LT_DLLAZY_OR_NOW RTLD_NOW
10496 # define LT_DLLAZY_OR_NOW DL_NOW
10498 # define LT_DLLAZY_OR_NOW 0
10506 extern "C" void exit (int);
10509 void fnord() { int i=42;}
10512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10513 int status = $lt_dlunknown;
10517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10518 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10519 /* dlclose (self); */
10527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10528 (eval $ac_link) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10532 (./conftest; exit; ) >&5 2>/dev/null
10534 case x$lt_status in
10535 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10536 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10537 x$lt_dlunknown|x*) ;;
10540 # compilation failed
10549 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10550 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10554 if test x"$libltdl_cv_need_uscore" = xyes; then
10556 cat >>confdefs.h <<\_ACEOF
10557 #define NEED_USCORE 1
10563 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10564 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10565 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 # PORTME does your system automatically load deplibs for dlopen?
10569 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10570 # For now, we just catch OSes we know something about -- in the
10571 # future, we'll try test this programmatically.
10572 libltdl_cv_sys_dlopen_deplibs=unknown
10574 aix3*|aix4.1.*|aix4.2.*)
10575 # Unknown whether this is true for these versions of AIX, but
10576 # we want this `case' here to explicitly catch those versions.
10577 libltdl_cv_sys_dlopen_deplibs=unknown
10580 libltdl_cv_sys_dlopen_deplibs=yes
10583 # Assuming the user has installed a libdl from somewhere, this is true
10584 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10585 libltdl_cv_sys_dlopen_deplibs=yes
10587 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10588 # GNU and its variants, using gnu ld.so (Glibc)
10589 libltdl_cv_sys_dlopen_deplibs=yes
10592 libltdl_cv_sys_dlopen_deplibs=yes
10595 libltdl_cv_sys_dlopen_deplibs=yes
10597 irix[12345]*|irix6.[01]*)
10598 # Catch all versions of IRIX before 6.2, and indicate that we don't
10599 # know how it worked for any of those versions.
10600 libltdl_cv_sys_dlopen_deplibs=unknown
10603 # The case above catches anything before 6.2, and it's known that
10604 # at 6.2 and later dlopen does load deplibs.
10605 libltdl_cv_sys_dlopen_deplibs=yes
10608 libltdl_cv_sys_dlopen_deplibs=yes
10611 libltdl_cv_sys_dlopen_deplibs=yes
10614 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10615 # it did *not* use an RPATH in a shared library to find objects the
10616 # library depends on, so we explicitly say `no'.
10617 libltdl_cv_sys_dlopen_deplibs=no
10619 osf5.0|osf5.0a|osf5.1)
10620 # dlopen *does* load deplibs and with the right loader patch applied
10621 # it even uses RPATH in a shared library to search for shared objects
10622 # that the library depends on, but there's no easy way to know if that
10623 # patch is installed. Since this is the case, all we can really
10624 # say is unknown -- it depends on the patch being installed. If
10625 # it is, this changes to `yes'. Without it, it would be `no'.
10626 libltdl_cv_sys_dlopen_deplibs=unknown
10629 # the two cases above should catch all versions of osf <= 5.1. Read
10630 # the comments above for what we know about them.
10631 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10632 # is used to find them so we can finally say `yes'.
10633 libltdl_cv_sys_dlopen_deplibs=yes
10636 libltdl_cv_sys_dlopen_deplibs=yes
10638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10639 libltdl_cv_sys_dlopen_deplibs=yes
10644 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10645 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10646 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10648 cat >>confdefs.h <<\_ACEOF
10649 #define LTDL_DLOPEN_DEPLIBS 1
10655 for ac_header in argz.h
10657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 ac_res=`eval echo '${'$as_ac_Header'}'`
10665 { echo "$as_me:$LINENO: result: $ac_res" >&5
10666 echo "${ECHO_T}$ac_res" >&6; }
10668 # Is the header compilable?
10669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10671 cat >conftest.$ac_ext <<_ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 $ac_includes_default
10678 #include <$ac_header>
10680 rm -f conftest.$ac_objext
10681 if { (ac_try="$ac_compile"
10682 case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_compile") 2>conftest.er1
10689 grep -v '^ *+' conftest.er1 >conftest.err
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } &&
10694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10695 { (case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_try") 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; } &&
10704 { ac_try='test -s conftest.$ac_objext'
10705 { (case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_try") 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_header_compiler=yes
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ac_header_compiler=no
10722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10724 echo "${ECHO_T}$ac_header_compiler" >&6; }
10726 # Is the header present?
10727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10729 cat >conftest.$ac_ext <<_ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735 #include <$ac_header>
10737 if { (ac_try="$ac_cpp conftest.$ac_ext"
10738 case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10745 grep -v '^ *+' conftest.er1 >conftest.err
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } >/dev/null; then
10750 if test -s conftest.err; then
10751 ac_cpp_err=$ac_c_preproc_warn_flag
10752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10759 if test -z "$ac_cpp_err"; then
10760 ac_header_preproc=yes
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 ac_header_preproc=no
10768 rm -f conftest.err conftest.$ac_ext
10769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10770 echo "${ECHO_T}$ac_header_preproc" >&6; }
10772 # So? What about this header?
10773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10779 ac_header_preproc=yes
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10795 ## ----------------------------------- ##
10796 ## Report this to llvmbugs@cs.uiuc.edu ##
10797 ## ----------------------------------- ##
10799 ) | sed "s/^/$as_me: WARNING: /" >&2
10802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 eval "$as_ac_Header=\$ac_header_preproc"
10809 ac_res=`eval echo '${'$as_ac_Header'}'`
10810 { echo "$as_me:$LINENO: result: $ac_res" >&5
10811 echo "${ECHO_T}$ac_res" >&6; }
10814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10815 cat >>confdefs.h <<_ACEOF
10816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10824 { echo "$as_me:$LINENO: checking for error_t" >&5
10825 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10826 if test "${ac_cv_type_error_t+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 cat >conftest.$ac_ext <<_ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10839 typedef error_t ac__type_new_;
10843 if ((ac__type_new_ *) 0)
10845 if (sizeof (ac__type_new_))
10851 rm -f conftest.$ac_objext
10852 if { (ac_try="$ac_compile"
10853 case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_compile") 2>conftest.er1
10860 grep -v '^ *+' conftest.er1 >conftest.err
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } &&
10865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10866 { (case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_try") 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; } &&
10875 { ac_try='test -s conftest.$ac_objext'
10876 { (case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_try") 2>&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; }; then
10885 ac_cv_type_error_t=yes
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10890 ac_cv_type_error_t=no
10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10896 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10897 if test $ac_cv_type_error_t = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define HAVE_ERROR_T 1
10906 cat >>confdefs.h <<\_ACEOF
10907 #define error_t int
10918 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10934 #define $ac_func innocuous_$ac_func
10936 /* System header to define __stub macros and hopefully few prototypes,
10937 which can conflict with char $ac_func (); below.
10938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10939 <limits.h> exists even on freestanding compilers. */
10942 # include <limits.h>
10944 # include <assert.h>
10949 /* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10956 /* The GNU C library defines this for functions which it implements
10957 to always fail with ENOSYS. Some functions are actually named
10958 something starting with __ and the normal name is an alias. */
10959 #if defined __stub_$ac_func || defined __stub___$ac_func
10966 return $ac_func ();
10971 rm -f conftest.$ac_objext conftest$ac_exeext
10972 if { (ac_try="$ac_link"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_link") 2>conftest.er1
10980 grep -v '^ *+' conftest.er1 >conftest.err
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10986 { (case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_try") 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; } &&
10995 { ac_try='test -s conftest$ac_exeext'
10996 { (case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_try") 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 eval "$as_ac_var=yes"
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 eval "$as_ac_var=no"
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11016 ac_res=`eval echo '${'$as_ac_var'}'`
11017 { echo "$as_me:$LINENO: result: $ac_res" >&5
11018 echo "${ECHO_T}$ac_res" >&6; }
11019 if test `eval echo '${'$as_ac_var'}'` = yes; then
11020 cat >>confdefs.h <<_ACEOF
11021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11054 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 ac_res=`eval echo '${'$as_ac_Header'}'`
11065 { echo "$as_me:$LINENO: result: $ac_res" >&5
11066 echo "${ECHO_T}$ac_res" >&6; }
11068 # Is the header compilable?
11069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 $ac_includes_default
11078 #include <$ac_header>
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 ac_header_compiler=yes
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_header_compiler=no
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11124 echo "${ECHO_T}$ac_header_compiler" >&6; }
11126 # Is the header present?
11127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 #include <$ac_header>
11137 if { (ac_try="$ac_cpp conftest.$ac_ext"
11138 case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11145 grep -v '^ *+' conftest.er1 >conftest.err
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } >/dev/null; then
11150 if test -s conftest.err; then
11151 ac_cpp_err=$ac_c_preproc_warn_flag
11152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11159 if test -z "$ac_cpp_err"; then
11160 ac_header_preproc=yes
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 ac_header_preproc=no
11168 rm -f conftest.err conftest.$ac_ext
11169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11170 echo "${ECHO_T}$ac_header_preproc" >&6; }
11172 # So? What about this header?
11173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11179 ac_header_preproc=yes
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11195 ## ----------------------------------- ##
11196 ## Report this to llvmbugs@cs.uiuc.edu ##
11197 ## ----------------------------------- ##
11199 ) | sed "s/^/$as_me: WARNING: /" >&2
11202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 eval "$as_ac_Header=\$ac_header_preproc"
11209 ac_res=`eval echo '${'$as_ac_Header'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211 echo "${ECHO_T}$ac_res" >&6; }
11214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11227 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11240 # Is the header compilable?
11241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 $ac_includes_default
11250 #include <$ac_header>
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_header_compiler=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_header_compiler=no
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296 echo "${ECHO_T}$ac_header_compiler" >&6; }
11298 # Is the header present?
11299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 #include <$ac_header>
11309 if { (ac_try="$ac_cpp conftest.$ac_ext"
11310 case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11317 grep -v '^ *+' conftest.er1 >conftest.err
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } >/dev/null; then
11322 if test -s conftest.err; then
11323 ac_cpp_err=$ac_c_preproc_warn_flag
11324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331 if test -z "$ac_cpp_err"; then
11332 ac_header_preproc=yes
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_header_preproc=no
11340 rm -f conftest.err conftest.$ac_ext
11341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342 echo "${ECHO_T}$ac_header_preproc" >&6; }
11344 # So? What about this header?
11345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351 ac_header_preproc=yes
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11367 ## ----------------------------------- ##
11368 ## Report this to llvmbugs@cs.uiuc.edu ##
11369 ## ----------------------------------- ##
11371 ) | sed "s/^/$as_me: WARNING: /" >&2
11374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 eval "$as_ac_Header=\$ac_header_preproc"
11381 ac_res=`eval echo '${'$as_ac_Header'}'`
11382 { echo "$as_me:$LINENO: result: $ac_res" >&5
11383 echo "${ECHO_T}$ac_res" >&6; }
11386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387 cat >>confdefs.h <<_ACEOF
11388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397 for ac_header in string.h strings.h
11399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 ac_res=`eval echo '${'$as_ac_Header'}'`
11407 { echo "$as_me:$LINENO: result: $ac_res" >&5
11408 echo "${ECHO_T}$ac_res" >&6; }
11410 # Is the header compilable?
11411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11413 cat >conftest.$ac_ext <<_ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 $ac_includes_default
11420 #include <$ac_header>
11422 rm -f conftest.$ac_objext
11423 if { (ac_try="$ac_compile"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_compile") 2>conftest.er1
11431 grep -v '^ *+' conftest.er1 >conftest.err
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest.$ac_objext'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_header_compiler=yes
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 ac_header_compiler=no
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11466 echo "${ECHO_T}$ac_header_compiler" >&6; }
11468 # Is the header present?
11469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11471 cat >conftest.$ac_ext <<_ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 #include <$ac_header>
11479 if { (ac_try="$ac_cpp conftest.$ac_ext"
11480 case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11487 grep -v '^ *+' conftest.er1 >conftest.err
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } >/dev/null; then
11492 if test -s conftest.err; then
11493 ac_cpp_err=$ac_c_preproc_warn_flag
11494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11501 if test -z "$ac_cpp_err"; then
11502 ac_header_preproc=yes
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 ac_header_preproc=no
11510 rm -f conftest.err conftest.$ac_ext
11511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11512 echo "${ECHO_T}$ac_header_preproc" >&6; }
11514 # So? What about this header?
11515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11521 ac_header_preproc=yes
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11537 ## ----------------------------------- ##
11538 ## Report this to llvmbugs@cs.uiuc.edu ##
11539 ## ----------------------------------- ##
11541 ) | sed "s/^/$as_me: WARNING: /" >&2
11544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 eval "$as_ac_Header=\$ac_header_preproc"
11551 ac_res=`eval echo '${'$as_ac_Header'}'`
11552 { echo "$as_me:$LINENO: result: $ac_res" >&5
11553 echo "${ECHO_T}$ac_res" >&6; }
11556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11557 cat >>confdefs.h <<_ACEOF
11558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11568 for ac_func in strchr index
11570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 cat >conftest.$ac_ext <<_ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11584 #define $ac_func innocuous_$ac_func
11586 /* System header to define __stub macros and hopefully few prototypes,
11587 which can conflict with char $ac_func (); below.
11588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11589 <limits.h> exists even on freestanding compilers. */
11592 # include <limits.h>
11594 # include <assert.h>
11599 /* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11606 /* The GNU C library defines this for functions which it implements
11607 to always fail with ENOSYS. Some functions are actually named
11608 something starting with __ and the normal name is an alias. */
11609 #if defined __stub_$ac_func || defined __stub___$ac_func
11616 return $ac_func ();
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (ac_try="$ac_link"
11623 case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_link") 2>conftest.er1
11630 grep -v '^ *+' conftest.er1 >conftest.err
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } &&
11635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11636 { (case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_try") 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_try") 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 eval "$as_ac_var=yes"
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11660 eval "$as_ac_var=no"
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11666 ac_res=`eval echo '${'$as_ac_var'}'`
11667 { echo "$as_me:$LINENO: result: $ac_res" >&5
11668 echo "${ECHO_T}$ac_res" >&6; }
11669 if test `eval echo '${'$as_ac_var'}'` = yes; then
11670 cat >>confdefs.h <<_ACEOF
11671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11679 for ac_func in strrchr rindex
11681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 cat >conftest.$ac_ext <<_ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11695 #define $ac_func innocuous_$ac_func
11697 /* System header to define __stub macros and hopefully few prototypes,
11698 which can conflict with char $ac_func (); below.
11699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700 <limits.h> exists even on freestanding compilers. */
11703 # include <limits.h>
11705 # include <assert.h>
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11717 /* The GNU C library defines this for functions which it implements
11718 to always fail with ENOSYS. Some functions are actually named
11719 something starting with __ and the normal name is an alias. */
11720 #if defined __stub_$ac_func || defined __stub___$ac_func
11727 return $ac_func ();
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_link") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1 >conftest.err
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11747 { (case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_try") 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; } &&
11756 { ac_try='test -s conftest$ac_exeext'
11757 { (case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_try") 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 eval "$as_ac_var=yes"
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 eval "$as_ac_var=no"
11774 rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11777 ac_res=`eval echo '${'$as_ac_var'}'`
11778 { echo "$as_me:$LINENO: result: $ac_res" >&5
11779 echo "${ECHO_T}$ac_res" >&6; }
11780 if test `eval echo '${'$as_ac_var'}'` = yes; then
11781 cat >>confdefs.h <<_ACEOF
11782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11790 for ac_func in memcpy bcopy
11792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 cat >conftest.$ac_ext <<_ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11806 #define $ac_func innocuous_$ac_func
11808 /* System header to define __stub macros and hopefully few prototypes,
11809 which can conflict with char $ac_func (); below.
11810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11811 <limits.h> exists even on freestanding compilers. */
11814 # include <limits.h>
11816 # include <assert.h>
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11828 /* The GNU C library defines this for functions which it implements
11829 to always fail with ENOSYS. Some functions are actually named
11830 something starting with __ and the normal name is an alias. */
11831 #if defined __stub_$ac_func || defined __stub___$ac_func
11838 return $ac_func ();
11843 rm -f conftest.$ac_objext conftest$ac_exeext
11844 if { (ac_try="$ac_link"
11845 case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_link") 2>conftest.er1
11852 grep -v '^ *+' conftest.er1 >conftest.err
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest$ac_exeext'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 eval "$as_ac_var=yes"
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 eval "$as_ac_var=no"
11885 rm -f core conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11888 ac_res=`eval echo '${'$as_ac_var'}'`
11889 { echo "$as_me:$LINENO: result: $ac_res" >&5
11890 echo "${ECHO_T}$ac_res" >&6; }
11891 if test `eval echo '${'$as_ac_var'}'` = yes; then
11892 cat >>confdefs.h <<_ACEOF
11893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11901 for ac_func in memmove strcmp
11903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 cat >conftest.$ac_ext <<_ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11917 #define $ac_func innocuous_$ac_func
11919 /* System header to define __stub macros and hopefully few prototypes,
11920 which can conflict with char $ac_func (); below.
11921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11922 <limits.h> exists even on freestanding compilers. */
11925 # include <limits.h>
11927 # include <assert.h>
11932 /* Override any GCC internal prototype to avoid an error.
11933 Use char because int might match the return type of a GCC
11934 builtin and then its argument prototype would still apply. */
11939 /* The GNU C library defines this for functions which it implements
11940 to always fail with ENOSYS. Some functions are actually named
11941 something starting with __ and the normal name is an alias. */
11942 #if defined __stub_$ac_func || defined __stub___$ac_func
11949 return $ac_func ();
11954 rm -f conftest.$ac_objext conftest$ac_exeext
11955 if { (ac_try="$ac_link"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_link") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest$ac_exeext'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 eval "$as_ac_var=yes"
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 eval "$as_ac_var=no"
11996 rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11999 ac_res=`eval echo '${'$as_ac_var'}'`
12000 { echo "$as_me:$LINENO: result: $ac_res" >&5
12001 echo "${ECHO_T}$ac_res" >&6; }
12002 if test `eval echo '${'$as_ac_var'}'` = yes; then
12003 cat >>confdefs.h <<_ACEOF
12004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12013 for ac_func in closedir opendir readdir
12015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 cat >conftest.$ac_ext <<_ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12029 #define $ac_func innocuous_$ac_func
12031 /* System header to define __stub macros and hopefully few prototypes,
12032 which can conflict with char $ac_func (); below.
12033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12034 <limits.h> exists even on freestanding compilers. */
12037 # include <limits.h>
12039 # include <assert.h>
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12051 /* The GNU C library defines this for functions which it implements
12052 to always fail with ENOSYS. Some functions are actually named
12053 something starting with __ and the normal name is an alias. */
12054 #if defined __stub_$ac_func || defined __stub___$ac_func
12061 return $ac_func ();
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (ac_try="$ac_link"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_link") 2>conftest.er1
12075 grep -v '^ *+' conftest.er1 >conftest.err
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest$ac_exeext'
12091 { (case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_try") 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 eval "$as_ac_var=yes"
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 eval "$as_ac_var=no"
12108 rm -f core conftest.err conftest.$ac_objext \
12109 conftest$ac_exeext conftest.$ac_ext
12111 ac_res=`eval echo '${'$as_ac_var'}'`
12112 { echo "$as_me:$LINENO: result: $ac_res" >&5
12113 echo "${ECHO_T}$ac_res" >&6; }
12114 if test `eval echo '${'$as_ac_var'}'` = yes; then
12115 cat >>confdefs.h <<_ACEOF
12116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12124 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12125 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12138 if test "$GCC" != "yes" && test "$ICC" != "yes"
12140 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12141 echo "$as_me: error: gcc|icc required but not found" >&2;}
12142 { (exit 1); exit 1; }; }
12145 if test "$GXX" != "yes" && test "$IXX" != "yes"
12147 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12148 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12149 { (exit 1); exit 1; }; }
12152 if test "$GCC" = "yes"
12154 cat >conftest.$ac_ext <<_ACEOF
12155 #if !defined(__GNUC__) || __GNUC__ < 3
12156 #error Unsupported GCC version
12160 rm -f conftest.$ac_objext
12161 if { (ac_try="$ac_compile"
12162 case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_compile") 2>conftest.er1
12169 grep -v '^ *+' conftest.er1 >conftest.err
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } &&
12174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12175 { (case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_try") 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; } &&
12184 { ac_try='test -s conftest.$ac_objext'
12185 { (case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_try") 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12200 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12201 { (exit 1); exit 1; }; }
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 if test -z "$llvm_cv_gnu_make_command"
12209 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12210 echo "$as_me: error: GNU Make required but not found" >&2;}
12211 { (exit 1); exit 1; }; }
12214 { echo "$as_me:$LINENO: result: ok" >&5
12215 echo "${ECHO_T}ok" >&6; }
12217 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12218 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12219 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12221 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12223 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12224 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12228 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12229 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12230 if test "${ac_cv_lib_m_sin+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 ac_check_lib_save_LIBS=$LIBS
12235 cat >conftest.$ac_ext <<_ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (ac_try="$ac_link"
12259 case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_link") 2>conftest.er1
12266 grep -v '^ *+' conftest.er1 >conftest.err
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12272 { (case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_try") 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest$ac_exeext'
12282 { (case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_try") 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 ac_cv_lib_m_sin=yes
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12299 rm -f core conftest.err conftest.$ac_objext \
12300 conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12303 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12304 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12305 if test $ac_cv_lib_m_sin = yes; then
12306 cat >>confdefs.h <<_ACEOF
12307 #define HAVE_LIBM 1
12314 if test "$llvm_cv_os_type" = "MingW" ; then
12316 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12317 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12318 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 ac_check_lib_save_LIBS=$LIBS
12322 LIBS="-limagehlp $LIBS"
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (ac_try="$ac_link"
12341 case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_link") 2>conftest.er1
12348 grep -v '^ *+' conftest.er1 >conftest.err
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12354 { (case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_try") 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } &&
12363 { ac_try='test -s conftest$ac_exeext'
12364 { (case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_try") 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_cv_lib_imagehlp_main=yes
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ac_cv_lib_imagehlp_main=no
12381 rm -f core conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12385 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12386 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12387 if test $ac_cv_lib_imagehlp_main = yes; then
12388 cat >>confdefs.h <<_ACEOF
12389 #define HAVE_LIBIMAGEHLP 1
12392 LIBS="-limagehlp $LIBS"
12397 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12398 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12399 if test "${ac_cv_lib_psapi_main+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 ac_check_lib_save_LIBS=$LIBS
12403 LIBS="-lpsapi $LIBS"
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (ac_try="$ac_link"
12422 case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_link") 2>conftest.er1
12429 grep -v '^ *+' conftest.er1 >conftest.err
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12435 { (case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_try") 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } &&
12444 { ac_try='test -s conftest$ac_exeext'
12445 { (case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_try") 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 ac_cv_lib_psapi_main=yes
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12459 ac_cv_lib_psapi_main=no
12462 rm -f core conftest.err conftest.$ac_objext \
12463 conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12466 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12467 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12468 if test $ac_cv_lib_psapi_main = yes; then
12469 cat >>confdefs.h <<_ACEOF
12470 #define HAVE_LIBPSAPI 1
12473 LIBS="-lpsapi $LIBS"
12479 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12480 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12481 if test "${ac_cv_search_dlopen+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 ac_func_search_save_LIBS=$LIBS
12485 cat >conftest.$ac_ext <<_ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12492 /* Override any GCC internal prototype to avoid an error.
12493 Use char because int might match the return type of a GCC
12494 builtin and then its argument prototype would still apply. */
12507 for ac_lib in '' dl; do
12508 if test -z "$ac_lib"; then
12509 ac_res="none required"
12512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_link") 2>conftest.er1
12523 grep -v '^ *+' conftest.er1 >conftest.err
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529 { (case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_try") 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest$ac_exeext'
12539 { (case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_try") 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 ac_cv_search_dlopen=$ac_res
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12556 rm -f core conftest.err conftest.$ac_objext \
12558 if test "${ac_cv_search_dlopen+set}" = set; then
12562 if test "${ac_cv_search_dlopen+set}" = set; then
12565 ac_cv_search_dlopen=no
12567 rm conftest.$ac_ext
12568 LIBS=$ac_func_search_save_LIBS
12570 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12571 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12572 ac_res=$ac_cv_search_dlopen
12573 if test "$ac_res" != no; then
12574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12576 cat >>confdefs.h <<\_ACEOF
12577 #define HAVE_DLOPEN 1
12581 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12582 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12586 if test "$llvm_cv_enable_libffi" = "yes" ; then
12587 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12588 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12589 if test "${ac_cv_search_ffi_call+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 ac_func_search_save_LIBS=$LIBS
12593 cat >conftest.$ac_ext <<_ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12610 return ffi_call ();
12615 for ac_lib in '' ffi; do
12616 if test -z "$ac_lib"; then
12617 ac_res="none required"
12620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_link") 2>conftest.er1
12631 grep -v '^ *+' conftest.er1 >conftest.err
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
12636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12637 { (case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_try") 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest$ac_exeext'
12647 { (case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_try") 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 ac_cv_search_ffi_call=$ac_res
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12664 rm -f core conftest.err conftest.$ac_objext \
12666 if test "${ac_cv_search_ffi_call+set}" = set; then
12670 if test "${ac_cv_search_ffi_call+set}" = set; then
12673 ac_cv_search_ffi_call=no
12675 rm conftest.$ac_ext
12676 LIBS=$ac_func_search_save_LIBS
12678 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12679 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12680 ac_res=$ac_cv_search_ffi_call
12681 if test "$ac_res" != no; then
12682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12684 cat >>confdefs.h <<\_ACEOF
12685 #define HAVE_FFI_CALL 1
12689 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12690 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12691 { (exit 1); exit 1; }; }
12696 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12697 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12698 if test "${ac_cv_search_mallinfo+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 ac_func_search_save_LIBS=$LIBS
12702 cat >conftest.$ac_ext <<_ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12719 return mallinfo ();
12724 for ac_lib in '' malloc; do
12725 if test -z "$ac_lib"; then
12726 ac_res="none required"
12729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12731 rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>conftest.er1
12740 grep -v '^ *+' conftest.er1 >conftest.err
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest$ac_exeext'
12756 { (case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_try") 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_search_mallinfo=$ac_res
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12773 rm -f core conftest.err conftest.$ac_objext \
12775 if test "${ac_cv_search_mallinfo+set}" = set; then
12779 if test "${ac_cv_search_mallinfo+set}" = set; then
12782 ac_cv_search_mallinfo=no
12784 rm conftest.$ac_ext
12785 LIBS=$ac_func_search_save_LIBS
12787 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12788 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12789 ac_res=$ac_cv_search_mallinfo
12790 if test "$ac_res" != no; then
12791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12793 cat >>confdefs.h <<\_ACEOF
12794 #define HAVE_MALLINFO 1
12800 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12802 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12803 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12804 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-lpthread $LIBS"
12809 cat >conftest.$ac_ext <<_ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12822 char pthread_mutex_init ();
12826 return pthread_mutex_init ();
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (ac_try="$ac_link"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_link") 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12846 { (case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_try") 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; } &&
12855 { ac_try='test -s conftest$ac_exeext'
12856 { (case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_try") 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_cv_lib_pthread_pthread_mutex_init=yes
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 ac_cv_lib_pthread_pthread_mutex_init=no
12873 rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875 LIBS=$ac_check_lib_save_LIBS
12877 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12878 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12879 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12880 cat >>confdefs.h <<_ACEOF
12881 #define HAVE_LIBPTHREAD 1
12884 LIBS="-lpthread $LIBS"
12888 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12889 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12890 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 ac_func_search_save_LIBS=$LIBS
12894 cat >conftest.$ac_ext <<_ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12901 /* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
12907 char pthread_mutex_lock ();
12911 return pthread_mutex_lock ();
12916 for ac_lib in '' pthread; do
12917 if test -z "$ac_lib"; then
12918 ac_res="none required"
12921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12923 rm -f conftest.$ac_objext conftest$ac_exeext
12924 if { (ac_try="$ac_link"
12925 case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_link") 2>conftest.er1
12932 grep -v '^ *+' conftest.er1 >conftest.err
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12938 { (case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_try") 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest$ac_exeext'
12948 { (case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953 (eval "$ac_try") 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 ac_cv_search_pthread_mutex_lock=$ac_res
12959 echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12965 rm -f core conftest.err conftest.$ac_objext \
12967 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12971 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12974 ac_cv_search_pthread_mutex_lock=no
12976 rm conftest.$ac_ext
12977 LIBS=$ac_func_search_save_LIBS
12979 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12980 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12981 ac_res=$ac_cv_search_pthread_mutex_lock
12982 if test "$ac_res" != no; then
12983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12985 cat >>confdefs.h <<\_ACEOF
12986 #define HAVE_PTHREAD_MUTEX_LOCK 1
12991 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12992 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12993 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 ac_func_search_save_LIBS=$LIBS
12997 cat >conftest.$ac_ext <<_ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13004 /* Override any GCC internal prototype to avoid an error.
13005 Use char because int might match the return type of a GCC
13006 builtin and then its argument prototype would still apply. */
13010 char pthread_rwlock_init ();
13014 return pthread_rwlock_init ();
13019 for ac_lib in '' pthread; do
13020 if test -z "$ac_lib"; then
13021 ac_res="none required"
13024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13026 rm -f conftest.$ac_objext conftest$ac_exeext
13027 if { (ac_try="$ac_link"
13028 case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_link") 2>conftest.er1
13035 grep -v '^ *+' conftest.er1 >conftest.err
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13041 { (case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_try") 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } &&
13050 { ac_try='test -s conftest$ac_exeext'
13051 { (case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_try") 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_cv_search_pthread_rwlock_init=$ac_res
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13068 rm -f core conftest.err conftest.$ac_objext \
13070 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13074 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13077 ac_cv_search_pthread_rwlock_init=no
13079 rm conftest.$ac_ext
13080 LIBS=$ac_func_search_save_LIBS
13082 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13083 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13084 ac_res=$ac_cv_search_pthread_rwlock_init
13085 if test "$ac_res" != no; then
13086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13088 cat >>confdefs.h <<\_ACEOF
13089 #define HAVE_PTHREAD_RWLOCK_INIT 1
13094 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13095 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13096 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 ac_func_search_save_LIBS=$LIBS
13100 cat >conftest.$ac_ext <<_ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13107 /* Override any GCC internal prototype to avoid an error.
13108 Use char because int might match the return type of a GCC
13109 builtin and then its argument prototype would still apply. */
13113 char pthread_getspecific ();
13117 return pthread_getspecific ();
13122 for ac_lib in '' pthread; do
13123 if test -z "$ac_lib"; then
13124 ac_res="none required"
13127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (ac_try="$ac_link"
13131 case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_link") 2>conftest.er1
13138 grep -v '^ *+' conftest.er1 >conftest.err
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13144 { (case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_try") 2>&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try='test -s conftest$ac_exeext'
13154 { (case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_try") 2>&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 ac_cv_search_pthread_getspecific=$ac_res
13165 echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13171 rm -f core conftest.err conftest.$ac_objext \
13173 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13177 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13180 ac_cv_search_pthread_getspecific=no
13182 rm conftest.$ac_ext
13183 LIBS=$ac_func_search_save_LIBS
13185 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13186 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13187 ac_res=$ac_cv_search_pthread_getspecific
13188 if test "$ac_res" != no; then
13189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_PTHREAD_GETSPECIFIC 1
13200 # Check whether --with-udis86 was given.
13201 if test "${with_udis86+set}" = set; then
13202 withval=$with_udis86;
13207 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13210 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13211 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13212 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 ac_check_lib_save_LIBS=$LIBS
13216 LIBS="-ludis86 $LIBS"
13217 cat >conftest.$ac_ext <<_ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13224 /* Override any GCC internal prototype to avoid an error.
13225 Use char because int might match the return type of a GCC
13226 builtin and then its argument prototype would still apply. */
13239 rm -f conftest.$ac_objext conftest$ac_exeext
13240 if { (ac_try="$ac_link"
13241 case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_link") 2>conftest.er1
13248 grep -v '^ *+' conftest.er1 >conftest.err
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } &&
13253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13254 { (case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259 (eval "$ac_try") 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; } &&
13263 { ac_try='test -s conftest$ac_exeext'
13264 { (case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_try") 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 ac_cv_lib_udis86_ud_init=yes
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13278 ac_cv_lib_udis86_ud_init=no
13281 rm -f core conftest.err conftest.$ac_objext \
13282 conftest$ac_exeext conftest.$ac_ext
13283 LIBS=$ac_check_lib_save_LIBS
13285 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13286 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13287 if test $ac_cv_lib_udis86_ud_init = yes; then
13288 cat >>confdefs.h <<_ACEOF
13289 #define HAVE_LIBUDIS86 1
13292 LIBS="-ludis86 $LIBS"
13296 echo "Error! You need to have libudis86 around."
13308 cat >>confdefs.h <<_ACEOF
13309 #define USE_UDIS86 $USE_UDIS86
13314 # Check whether --with-oprofile was given.
13315 if test "${with_oprofile+set}" = set; then
13316 withval=$with_oprofile;
13320 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13321 no) llvm_cv_oppath=
13324 *) llvm_cv_oppath="${withval}/lib/oprofile"
13325 CPPFLAGS="-I${withval}/include";;
13327 if test -n "$llvm_cv_oppath" ; then
13328 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13329 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13330 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13331 if test "${ac_cv_search_bfd_init+set}" = set; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 ac_func_search_save_LIBS=$LIBS
13335 cat >conftest.$ac_ext <<_ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13342 /* Override any GCC internal prototype to avoid an error.
13343 Use char because int might match the return type of a GCC
13344 builtin and then its argument prototype would still apply. */
13352 return bfd_init ();
13357 for ac_lib in '' bfd; do
13358 if test -z "$ac_lib"; then
13359 ac_res="none required"
13362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13364 rm -f conftest.$ac_objext conftest$ac_exeext
13365 if { (ac_try="$ac_link"
13366 case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_link") 2>conftest.er1
13373 grep -v '^ *+' conftest.er1 >conftest.err
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13379 { (case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_try") 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; } &&
13388 { ac_try='test -s conftest$ac_exeext'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 ac_cv_search_bfd_init=$ac_res
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13406 rm -f core conftest.err conftest.$ac_objext \
13408 if test "${ac_cv_search_bfd_init+set}" = set; then
13412 if test "${ac_cv_search_bfd_init+set}" = set; then
13415 ac_cv_search_bfd_init=no
13417 rm conftest.$ac_ext
13418 LIBS=$ac_func_search_save_LIBS
13420 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13421 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13422 ac_res=$ac_cv_search_bfd_init
13423 if test "$ac_res" != no; then
13424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13428 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13429 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13430 if test "${ac_cv_search_op_open_agent+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 ac_func_search_save_LIBS=$LIBS
13434 cat >conftest.$ac_ext <<_ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13441 /* Override any GCC internal prototype to avoid an error.
13442 Use char because int might match the return type of a GCC
13443 builtin and then its argument prototype would still apply. */
13447 char op_open_agent ();
13451 return op_open_agent ();
13456 for ac_lib in '' opagent; do
13457 if test -z "$ac_lib"; then
13458 ac_res="none required"
13461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13463 rm -f conftest.$ac_objext conftest$ac_exeext
13464 if { (ac_try="$ac_link"
13465 case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_link") 2>conftest.er1
13472 grep -v '^ *+' conftest.er1 >conftest.err
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13478 { (case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_try") 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try='test -s conftest$ac_exeext'
13488 { (case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_try") 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 ac_cv_search_op_open_agent=$ac_res
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13505 rm -f core conftest.err conftest.$ac_objext \
13507 if test "${ac_cv_search_op_open_agent+set}" = set; then
13511 if test "${ac_cv_search_op_open_agent+set}" = set; then
13514 ac_cv_search_op_open_agent=no
13516 rm conftest.$ac_ext
13517 LIBS=$ac_func_search_save_LIBS
13519 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13520 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13521 ac_res=$ac_cv_search_op_open_agent
13522 if test "$ac_res" != no; then
13523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13527 echo "Error! You need to have libopagent around."
13532 if test "${ac_cv_header_opagent_h+set}" = set; then
13533 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13534 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13535 if test "${ac_cv_header_opagent_h+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13539 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13541 # Is the header compilable?
13542 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13543 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13544 cat >conftest.$ac_ext <<_ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13550 $ac_includes_default
13551 #include <opagent.h>
13553 rm -f conftest.$ac_objext
13554 if { (ac_try="$ac_compile"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_compile") 2>conftest.er1
13562 grep -v '^ *+' conftest.er1 >conftest.err
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13568 { (case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_try") 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest.$ac_objext'
13578 { (case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_try") 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_header_compiler=yes
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 ac_header_compiler=no
13595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13597 echo "${ECHO_T}$ac_header_compiler" >&6; }
13599 # Is the header present?
13600 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13601 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13602 cat >conftest.$ac_ext <<_ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 #include <opagent.h>
13610 if { (ac_try="$ac_cpp conftest.$ac_ext"
13611 case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13618 grep -v '^ *+' conftest.er1 >conftest.err
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } >/dev/null; then
13623 if test -s conftest.err; then
13624 ac_cpp_err=$ac_c_preproc_warn_flag
13625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13632 if test -z "$ac_cpp_err"; then
13633 ac_header_preproc=yes
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_header_preproc=no
13641 rm -f conftest.err conftest.$ac_ext
13642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13643 echo "${ECHO_T}$ac_header_preproc" >&6; }
13645 # So? What about this header?
13646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13648 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13649 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13651 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13652 ac_header_preproc=yes
13655 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13656 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13658 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13660 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13662 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13664 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13666 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13668 ## ----------------------------------- ##
13669 ## Report this to llvmbugs@cs.uiuc.edu ##
13670 ## ----------------------------------- ##
13672 ) | sed "s/^/$as_me: WARNING: /" >&2
13675 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13676 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13677 if test "${ac_cv_header_opagent_h+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 ac_cv_header_opagent_h=$ac_header_preproc
13682 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13683 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13686 if test $ac_cv_header_opagent_h = yes; then
13690 echo "Error! You need to have opagent.h around."
13706 cat >>confdefs.h <<_ACEOF
13707 #define USE_OPROFILE $USE_OPROFILE
13717 ac_header_dirent=no
13718 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13719 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13720 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13721 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 cat >conftest.$ac_ext <<_ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h. */
13731 #include <sys/types.h>
13743 rm -f conftest.$ac_objext
13744 if { (ac_try="$ac_compile"
13745 case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_compile") 2>conftest.er1
13752 grep -v '^ *+' conftest.er1 >conftest.err
13754 cat conftest.err >&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } &&
13757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13758 { (case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_try") 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest.$ac_objext'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13777 eval "$as_ac_Header=yes"
13779 echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13782 eval "$as_ac_Header=no"
13785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 ac_res=`eval echo '${'$as_ac_Header'}'`
13788 { echo "$as_me:$LINENO: result: $ac_res" >&5
13789 echo "${ECHO_T}$ac_res" >&6; }
13790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13791 cat >>confdefs.h <<_ACEOF
13792 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13795 ac_header_dirent=$ac_hdr; break
13799 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13800 if test $ac_header_dirent = dirent.h; then
13801 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13802 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13803 if test "${ac_cv_search_opendir+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 ac_func_search_save_LIBS=$LIBS
13807 cat >conftest.$ac_ext <<_ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13814 /* Override any GCC internal prototype to avoid an error.
13815 Use char because int might match the return type of a GCC
13816 builtin and then its argument prototype would still apply. */
13829 for ac_lib in '' dir; do
13830 if test -z "$ac_lib"; then
13831 ac_res="none required"
13834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13836 rm -f conftest.$ac_objext conftest$ac_exeext
13837 if { (ac_try="$ac_link"
13838 case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_link") 2>conftest.er1
13845 grep -v '^ *+' conftest.er1 >conftest.err
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
13850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13851 { (case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_try") 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } &&
13860 { ac_try='test -s conftest$ac_exeext'
13861 { (case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_try") 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 ac_cv_search_opendir=$ac_res
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13878 rm -f core conftest.err conftest.$ac_objext \
13880 if test "${ac_cv_search_opendir+set}" = set; then
13884 if test "${ac_cv_search_opendir+set}" = set; then
13887 ac_cv_search_opendir=no
13889 rm conftest.$ac_ext
13890 LIBS=$ac_func_search_save_LIBS
13892 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13893 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13894 ac_res=$ac_cv_search_opendir
13895 if test "$ac_res" != no; then
13896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13901 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13903 if test "${ac_cv_search_opendir+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 ac_func_search_save_LIBS=$LIBS
13907 cat >conftest.$ac_ext <<_ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13914 /* Override any GCC internal prototype to avoid an error.
13915 Use char because int might match the return type of a GCC
13916 builtin and then its argument prototype would still apply. */
13929 for ac_lib in '' x; do
13930 if test -z "$ac_lib"; then
13931 ac_res="none required"
13934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13936 rm -f conftest.$ac_objext conftest$ac_exeext
13937 if { (ac_try="$ac_link"
13938 case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_link") 2>conftest.er1
13945 grep -v '^ *+' conftest.er1 >conftest.err
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13951 { (case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_try") 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; } &&
13960 { ac_try='test -s conftest$ac_exeext'
13961 { (case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_try") 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_cv_search_opendir=$ac_res
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13978 rm -f core conftest.err conftest.$ac_objext \
13980 if test "${ac_cv_search_opendir+set}" = set; then
13984 if test "${ac_cv_search_opendir+set}" = set; then
13987 ac_cv_search_opendir=no
13989 rm conftest.$ac_ext
13990 LIBS=$ac_func_search_save_LIBS
13992 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13993 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13994 ac_res=$ac_cv_search_opendir
13995 if test "$ac_res" != no; then
13996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14002 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14003 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14004 if test "${ac_cv_header_mmap_anon+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 ac_cpp='$CPP $CPPFLAGS'
14009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14013 cat >conftest.$ac_ext <<_ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 #include <sys/mman.h>
14020 #include <unistd.h>
14025 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14030 rm -f conftest.$ac_objext
14031 if { (ac_try="$ac_compile"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_compile") 2>conftest.er1
14039 grep -v '^ *+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14045 { (case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_try") 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try='test -s conftest.$ac_objext'
14055 { (case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_try") 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_header_mmap_anon=yes
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_cv_header_mmap_anon=no
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14074 ac_cpp='$CPP $CPPFLAGS'
14075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14081 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14082 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14083 if test "$ac_cv_header_mmap_anon" = yes; then
14085 cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_MMAP_ANONYMOUS 1
14091 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14092 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14093 if test "${ac_cv_header_stat_broken+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 cat >conftest.$ac_ext <<_ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14102 #include <sys/types.h>
14103 #include <sys/stat.h>
14105 #if defined S_ISBLK && defined S_IFDIR
14106 # if S_ISBLK (S_IFDIR)
14111 #if defined S_ISBLK && defined S_IFCHR
14112 # if S_ISBLK (S_IFCHR)
14117 #if defined S_ISLNK && defined S_IFREG
14118 # if S_ISLNK (S_IFREG)
14123 #if defined S_ISSOCK && defined S_IFREG
14124 # if S_ISSOCK (S_IFREG)
14130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14131 $EGREP "You lose" >/dev/null 2>&1; then
14132 ac_cv_header_stat_broken=yes
14134 ac_cv_header_stat_broken=no
14139 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14140 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14141 if test $ac_cv_header_stat_broken = yes; then
14143 cat >>confdefs.h <<\_ACEOF
14144 #define STAT_MACROS_BROKEN 1
14149 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14150 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14151 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 cat >conftest.$ac_ext <<_ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 #include <sys/types.h>
14161 #include <sys/wait.h>
14162 #ifndef WEXITSTATUS
14163 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14166 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14174 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14179 rm -f conftest.$ac_objext
14180 if { (ac_try="$ac_compile"
14181 case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_compile") 2>conftest.er1
14188 grep -v '^ *+' conftest.er1 >conftest.err
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest.$ac_objext'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 ac_cv_header_sys_wait_h=yes
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14218 ac_cv_header_sys_wait_h=no
14221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14224 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14225 if test $ac_cv_header_sys_wait_h = yes; then
14227 cat >>confdefs.h <<\_ACEOF
14228 #define HAVE_SYS_WAIT_H 1
14233 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14234 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14235 if test "${ac_cv_header_time+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <sys/types.h>
14245 #include <sys/time.h>
14251 if ((struct tm *) 0)
14257 rm -f conftest.$ac_objext
14258 if { (ac_try="$ac_compile"
14259 case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_compile") 2>conftest.er1
14266 grep -v '^ *+' conftest.er1 >conftest.err
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_try") 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_try") 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 ac_cv_header_time=yes
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 ac_cv_header_time=no
14299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14302 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14303 if test $ac_cv_header_time = yes; then
14305 cat >>confdefs.h <<\_ACEOF
14306 #define TIME_WITH_SYS_TIME 1
14318 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 ac_res=`eval echo '${'$as_ac_Header'}'`
14328 { echo "$as_me:$LINENO: result: $ac_res" >&5
14329 echo "${ECHO_T}$ac_res" >&6; }
14331 # Is the header compilable?
14332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14334 cat >conftest.$ac_ext <<_ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 $ac_includes_default
14341 #include <$ac_header>
14343 rm -f conftest.$ac_objext
14344 if { (ac_try="$ac_compile"
14345 case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_compile") 2>conftest.er1
14352 grep -v '^ *+' conftest.er1 >conftest.err
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } &&
14357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14358 { (case "(($ac_try" in
14359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360 *) ac_try_echo=$ac_try;;
14362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363 (eval "$ac_try") 2>&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; } &&
14367 { ac_try='test -s conftest.$ac_objext'
14368 { (case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_try") 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_header_compiler=yes
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_header_compiler=no
14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14387 echo "${ECHO_T}$ac_header_compiler" >&6; }
14389 # Is the header present?
14390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14392 cat >conftest.$ac_ext <<_ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h. */
14398 #include <$ac_header>
14400 if { (ac_try="$ac_cpp conftest.$ac_ext"
14401 case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14408 grep -v '^ *+' conftest.er1 >conftest.err
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } >/dev/null; then
14413 if test -s conftest.err; then
14414 ac_cpp_err=$ac_c_preproc_warn_flag
14415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14422 if test -z "$ac_cpp_err"; then
14423 ac_header_preproc=yes
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_header_preproc=no
14431 rm -f conftest.err conftest.$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14433 echo "${ECHO_T}$ac_header_preproc" >&6; }
14435 # So? What about this header?
14436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14442 ac_header_preproc=yes
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14458 ## ----------------------------------- ##
14459 ## Report this to llvmbugs@cs.uiuc.edu ##
14460 ## ----------------------------------- ##
14462 ) | sed "s/^/$as_me: WARNING: /" >&2
14465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 eval "$as_ac_Header=\$ac_header_preproc"
14472 ac_res=`eval echo '${'$as_ac_Header'}'`
14473 { echo "$as_me:$LINENO: result: $ac_res" >&5
14474 echo "${ECHO_T}$ac_res" >&6; }
14477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14478 cat >>confdefs.h <<_ACEOF
14479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14492 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 ac_res=`eval echo '${'$as_ac_Header'}'`
14502 { echo "$as_me:$LINENO: result: $ac_res" >&5
14503 echo "${ECHO_T}$ac_res" >&6; }
14505 # Is the header compilable?
14506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 $ac_includes_default
14515 #include <$ac_header>
14517 rm -f conftest.$ac_objext
14518 if { (ac_try="$ac_compile"
14519 case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_compile") 2>conftest.er1
14526 grep -v '^ *+' conftest.er1 >conftest.err
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14532 { (case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_try") 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; } &&
14541 { ac_try='test -s conftest.$ac_objext'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14551 ac_header_compiler=yes
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14556 ac_header_compiler=no
14559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14561 echo "${ECHO_T}$ac_header_compiler" >&6; }
14563 # Is the header present?
14564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14566 cat >conftest.$ac_ext <<_ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14572 #include <$ac_header>
14574 if { (ac_try="$ac_cpp conftest.$ac_ext"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14582 grep -v '^ *+' conftest.er1 >conftest.err
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } >/dev/null; then
14587 if test -s conftest.err; then
14588 ac_cpp_err=$ac_c_preproc_warn_flag
14589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14596 if test -z "$ac_cpp_err"; then
14597 ac_header_preproc=yes
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 ac_header_preproc=no
14605 rm -f conftest.err conftest.$ac_ext
14606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14607 echo "${ECHO_T}$ac_header_preproc" >&6; }
14609 # So? What about this header?
14610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14616 ac_header_preproc=yes
14619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14632 ## ----------------------------------- ##
14633 ## Report this to llvmbugs@cs.uiuc.edu ##
14634 ## ----------------------------------- ##
14636 ) | sed "s/^/$as_me: WARNING: /" >&2
14639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 eval "$as_ac_Header=\$ac_header_preproc"
14646 ac_res=`eval echo '${'$as_ac_Header'}'`
14647 { echo "$as_me:$LINENO: result: $ac_res" >&5
14648 echo "${ECHO_T}$ac_res" >&6; }
14651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14652 cat >>confdefs.h <<_ACEOF
14653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14662 for ac_header in utime.h windows.h
14664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 ac_res=`eval echo '${'$as_ac_Header'}'`
14672 { echo "$as_me:$LINENO: result: $ac_res" >&5
14673 echo "${ECHO_T}$ac_res" >&6; }
14675 # Is the header compilable?
14676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 $ac_includes_default
14685 #include <$ac_header>
14687 rm -f conftest.$ac_objext
14688 if { (ac_try="$ac_compile"
14689 case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_compile") 2>conftest.er1
14696 grep -v '^ *+' conftest.er1 >conftest.err
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } &&
14701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14702 { (case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_try") 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; } &&
14711 { ac_try='test -s conftest.$ac_objext'
14712 { (case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_try") 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }; then
14721 ac_header_compiler=yes
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ac_header_compiler=no
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14731 echo "${ECHO_T}$ac_header_compiler" >&6; }
14733 # Is the header present?
14734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14736 cat >conftest.$ac_ext <<_ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 #include <$ac_header>
14744 if { (ac_try="$ac_cpp conftest.$ac_ext"
14745 case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14752 grep -v '^ *+' conftest.er1 >conftest.err
14754 cat conftest.err >&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } >/dev/null; then
14757 if test -s conftest.err; then
14758 ac_cpp_err=$ac_c_preproc_warn_flag
14759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14766 if test -z "$ac_cpp_err"; then
14767 ac_header_preproc=yes
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_header_preproc=no
14775 rm -f conftest.err conftest.$ac_ext
14776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14777 echo "${ECHO_T}$ac_header_preproc" >&6; }
14779 # So? What about this header?
14780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14786 ac_header_preproc=yes
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14802 ## ----------------------------------- ##
14803 ## Report this to llvmbugs@cs.uiuc.edu ##
14804 ## ----------------------------------- ##
14806 ) | sed "s/^/$as_me: WARNING: /" >&2
14809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 eval "$as_ac_Header=\$ac_header_preproc"
14816 ac_res=`eval echo '${'$as_ac_Header'}'`
14817 { echo "$as_me:$LINENO: result: $ac_res" >&5
14818 echo "${ECHO_T}$ac_res" >&6; }
14821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14822 cat >>confdefs.h <<_ACEOF
14823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14835 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14844 ac_res=`eval echo '${'$as_ac_Header'}'`
14845 { echo "$as_me:$LINENO: result: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14848 # Is the header compilable?
14849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14851 cat >conftest.$ac_ext <<_ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14857 $ac_includes_default
14858 #include <$ac_header>
14860 rm -f conftest.$ac_objext
14861 if { (ac_try="$ac_compile"
14862 case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_compile") 2>conftest.er1
14869 grep -v '^ *+' conftest.er1 >conftest.err
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest.$ac_objext'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_header_compiler=yes
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_header_compiler=no
14902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14904 echo "${ECHO_T}$ac_header_compiler" >&6; }
14906 # Is the header present?
14907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14909 cat >conftest.$ac_ext <<_ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14915 #include <$ac_header>
14917 if { (ac_try="$ac_cpp conftest.$ac_ext"
14918 case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14925 grep -v '^ *+' conftest.er1 >conftest.err
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } >/dev/null; then
14930 if test -s conftest.err; then
14931 ac_cpp_err=$ac_c_preproc_warn_flag
14932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14939 if test -z "$ac_cpp_err"; then
14940 ac_header_preproc=yes
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_header_preproc=no
14948 rm -f conftest.err conftest.$ac_ext
14949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950 echo "${ECHO_T}$ac_header_preproc" >&6; }
14952 # So? What about this header?
14953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14959 ac_header_preproc=yes
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14975 ## ----------------------------------- ##
14976 ## Report this to llvmbugs@cs.uiuc.edu ##
14977 ## ----------------------------------- ##
14979 ) | sed "s/^/$as_me: WARNING: /" >&2
14982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 eval "$as_ac_Header=\$ac_header_preproc"
14989 ac_res=`eval echo '${'$as_ac_Header'}'`
14990 { echo "$as_me:$LINENO: result: $ac_res" >&5
14991 echo "${ECHO_T}$ac_res" >&6; }
14994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14995 cat >>confdefs.h <<_ACEOF
14996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15007 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 ac_res=`eval echo '${'$as_ac_Header'}'`
15017 { echo "$as_me:$LINENO: result: $ac_res" >&5
15018 echo "${ECHO_T}$ac_res" >&6; }
15020 # Is the header compilable?
15021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15023 cat >conftest.$ac_ext <<_ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15029 $ac_includes_default
15030 #include <$ac_header>
15032 rm -f conftest.$ac_objext
15033 if { (ac_try="$ac_compile"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_compile") 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15047 { (case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_try") 2>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_try") 2>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }; then
15066 ac_header_compiler=yes
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_header_compiler=no
15074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15076 echo "${ECHO_T}$ac_header_compiler" >&6; }
15078 # Is the header present?
15079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15081 cat >conftest.$ac_ext <<_ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 #include <$ac_header>
15089 if { (ac_try="$ac_cpp conftest.$ac_ext"
15090 case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15097 grep -v '^ *+' conftest.er1 >conftest.err
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } >/dev/null; then
15102 if test -s conftest.err; then
15103 ac_cpp_err=$ac_c_preproc_warn_flag
15104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15111 if test -z "$ac_cpp_err"; then
15112 ac_header_preproc=yes
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 ac_header_preproc=no
15120 rm -f conftest.err conftest.$ac_ext
15121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15122 echo "${ECHO_T}$ac_header_preproc" >&6; }
15124 # So? What about this header?
15125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15131 ac_header_preproc=yes
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15147 ## ----------------------------------- ##
15148 ## Report this to llvmbugs@cs.uiuc.edu ##
15149 ## ----------------------------------- ##
15151 ) | sed "s/^/$as_me: WARNING: /" >&2
15154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 eval "$as_ac_Header=\$ac_header_preproc"
15161 ac_res=`eval echo '${'$as_ac_Header'}'`
15162 { echo "$as_me:$LINENO: result: $ac_res" >&5
15163 echo "${ECHO_T}$ac_res" >&6; }
15166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15167 cat >>confdefs.h <<_ACEOF
15168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15176 for ac_header in valgrind/valgrind.h
15178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 ac_res=`eval echo '${'$as_ac_Header'}'`
15186 { echo "$as_me:$LINENO: result: $ac_res" >&5
15187 echo "${ECHO_T}$ac_res" >&6; }
15189 # Is the header compilable?
15190 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15192 cat >conftest.$ac_ext <<_ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 $ac_includes_default
15199 #include <$ac_header>
15201 rm -f conftest.$ac_objext
15202 if { (ac_try="$ac_compile"
15203 case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_compile") 2>conftest.er1
15210 grep -v '^ *+' conftest.er1 >conftest.err
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15216 { (case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_try") 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; } &&
15225 { ac_try='test -s conftest.$ac_objext'
15226 { (case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_try") 2>&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; }; then
15235 ac_header_compiler=yes
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_header_compiler=no
15243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15245 echo "${ECHO_T}$ac_header_compiler" >&6; }
15247 # Is the header present?
15248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15250 cat >conftest.$ac_ext <<_ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 #include <$ac_header>
15258 if { (ac_try="$ac_cpp conftest.$ac_ext"
15259 case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15266 grep -v '^ *+' conftest.er1 >conftest.err
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } >/dev/null; then
15271 if test -s conftest.err; then
15272 ac_cpp_err=$ac_c_preproc_warn_flag
15273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15280 if test -z "$ac_cpp_err"; then
15281 ac_header_preproc=yes
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_header_preproc=no
15289 rm -f conftest.err conftest.$ac_ext
15290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15291 echo "${ECHO_T}$ac_header_preproc" >&6; }
15293 # So? What about this header?
15294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15300 ac_header_preproc=yes
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15316 ## ----------------------------------- ##
15317 ## Report this to llvmbugs@cs.uiuc.edu ##
15318 ## ----------------------------------- ##
15320 ) | sed "s/^/$as_me: WARNING: /" >&2
15323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15328 eval "$as_ac_Header=\$ac_header_preproc"
15330 ac_res=`eval echo '${'$as_ac_Header'}'`
15331 { echo "$as_me:$LINENO: result: $ac_res" >&5
15332 echo "${ECHO_T}$ac_res" >&6; }
15335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15336 cat >>confdefs.h <<_ACEOF
15337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15345 for ac_header in fenv.h
15347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15354 ac_res=`eval echo '${'$as_ac_Header'}'`
15355 { echo "$as_me:$LINENO: result: $ac_res" >&5
15356 echo "${ECHO_T}$ac_res" >&6; }
15358 # Is the header compilable?
15359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 $ac_includes_default
15368 #include <$ac_header>
15370 rm -f conftest.$ac_objext
15371 if { (ac_try="$ac_compile"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_compile") 2>conftest.er1
15379 grep -v '^ *+' conftest.er1 >conftest.err
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15385 { (case "(($ac_try" in
15386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387 *) ac_try_echo=$ac_try;;
15389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15390 (eval "$ac_try") 2>&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest.$ac_objext'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_header_compiler=yes
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 ac_header_compiler=no
15412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15414 echo "${ECHO_T}$ac_header_compiler" >&6; }
15416 # Is the header present?
15417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15419 cat >conftest.$ac_ext <<_ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 #include <$ac_header>
15427 if { (ac_try="$ac_cpp conftest.$ac_ext"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15435 grep -v '^ *+' conftest.er1 >conftest.err
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } >/dev/null; then
15440 if test -s conftest.err; then
15441 ac_cpp_err=$ac_c_preproc_warn_flag
15442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15449 if test -z "$ac_cpp_err"; then
15450 ac_header_preproc=yes
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_header_preproc=no
15458 rm -f conftest.err conftest.$ac_ext
15459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15460 echo "${ECHO_T}$ac_header_preproc" >&6; }
15462 # So? What about this header?
15463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15469 ac_header_preproc=yes
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15485 ## ----------------------------------- ##
15486 ## Report this to llvmbugs@cs.uiuc.edu ##
15487 ## ----------------------------------- ##
15489 ) | sed "s/^/$as_me: WARNING: /" >&2
15492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 eval "$as_ac_Header=\$ac_header_preproc"
15499 ac_res=`eval echo '${'$as_ac_Header'}'`
15500 { echo "$as_me:$LINENO: result: $ac_res" >&5
15501 echo "${ECHO_T}$ac_res" >&6; }
15504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15513 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15515 for ac_header in pthread.h
15517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15524 ac_res=`eval echo '${'$as_ac_Header'}'`
15525 { echo "$as_me:$LINENO: result: $ac_res" >&5
15526 echo "${ECHO_T}$ac_res" >&6; }
15528 # Is the header compilable?
15529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 $ac_includes_default
15538 #include <$ac_header>
15540 rm -f conftest.$ac_objext
15541 if { (ac_try="$ac_compile"
15542 case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_compile") 2>conftest.er1
15549 grep -v '^ *+' conftest.er1 >conftest.err
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15555 { (case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_try") 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } &&
15564 { ac_try='test -s conftest.$ac_objext'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_header_compiler=yes
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 ac_header_compiler=no
15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15584 echo "${ECHO_T}$ac_header_compiler" >&6; }
15586 # Is the header present?
15587 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15589 cat >conftest.$ac_ext <<_ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15595 #include <$ac_header>
15597 if { (ac_try="$ac_cpp conftest.$ac_ext"
15598 case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15605 grep -v '^ *+' conftest.er1 >conftest.err
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } >/dev/null; then
15610 if test -s conftest.err; then
15611 ac_cpp_err=$ac_c_preproc_warn_flag
15612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15619 if test -z "$ac_cpp_err"; then
15620 ac_header_preproc=yes
15622 echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15625 ac_header_preproc=no
15628 rm -f conftest.err conftest.$ac_ext
15629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15630 echo "${ECHO_T}$ac_header_preproc" >&6; }
15632 # So? What about this header?
15633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15639 ac_header_preproc=yes
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15655 ## ----------------------------------- ##
15656 ## Report this to llvmbugs@cs.uiuc.edu ##
15657 ## ----------------------------------- ##
15659 ) | sed "s/^/$as_me: WARNING: /" >&2
15662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15667 eval "$as_ac_Header=\$ac_header_preproc"
15669 ac_res=`eval echo '${'$as_ac_Header'}'`
15670 { echo "$as_me:$LINENO: result: $ac_res" >&5
15671 echo "${ECHO_T}$ac_res" >&6; }
15674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15675 cat >>confdefs.h <<_ACEOF
15676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15692 if test "$llvm_cv_enable_libffi" = "yes" ; then
15695 for ac_header in ffi.h ffi/ffi.h
15697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 ac_res=`eval echo '${'$as_ac_Header'}'`
15705 { echo "$as_me:$LINENO: result: $ac_res" >&5
15706 echo "${ECHO_T}$ac_res" >&6; }
15708 # Is the header compilable?
15709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 $ac_includes_default
15718 #include <$ac_header>
15720 rm -f conftest.$ac_objext
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_compile") 2>conftest.er1
15729 grep -v '^ *+' conftest.er1 >conftest.err
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15735 { (case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_try") 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_try") 2>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_header_compiler=yes
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 ac_header_compiler=no
15762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764 echo "${ECHO_T}$ac_header_compiler" >&6; }
15766 # Is the header present?
15767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15769 cat >conftest.$ac_ext <<_ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 #include <$ac_header>
15777 if { (ac_try="$ac_cpp conftest.$ac_ext"
15778 case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15785 grep -v '^ *+' conftest.er1 >conftest.err
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } >/dev/null; then
15790 if test -s conftest.err; then
15791 ac_cpp_err=$ac_c_preproc_warn_flag
15792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15799 if test -z "$ac_cpp_err"; then
15800 ac_header_preproc=yes
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_preproc=no
15808 rm -f conftest.err conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15810 echo "${ECHO_T}$ac_header_preproc" >&6; }
15812 # So? What about this header?
15813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15819 ac_header_preproc=yes
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15835 ## ----------------------------------- ##
15836 ## Report this to llvmbugs@cs.uiuc.edu ##
15837 ## ----------------------------------- ##
15839 ) | sed "s/^/$as_me: WARNING: /" >&2
15842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 eval "$as_ac_Header=\$ac_header_preproc"
15849 ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15855 cat >>confdefs.h <<_ACEOF
15856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15866 for ac_header in CrashReporterClient.h
15868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 ac_res=`eval echo '${'$as_ac_Header'}'`
15876 { echo "$as_me:$LINENO: result: $ac_res" >&5
15877 echo "${ECHO_T}$ac_res" >&6; }
15879 # Is the header compilable?
15880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15882 cat >conftest.$ac_ext <<_ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888 $ac_includes_default
15889 #include <$ac_header>
15891 rm -f conftest.$ac_objext
15892 if { (ac_try="$ac_compile"
15893 case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_compile") 2>conftest.er1
15900 grep -v '^ *+' conftest.er1 >conftest.err
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15906 { (case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_try") 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; } &&
15915 { ac_try='test -s conftest.$ac_objext'
15916 { (case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_try") 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 ac_header_compiler=yes
15927 echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15930 ac_header_compiler=no
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15935 echo "${ECHO_T}$ac_header_compiler" >&6; }
15937 # Is the header present?
15938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15940 cat >conftest.$ac_ext <<_ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15946 #include <$ac_header>
15948 if { (ac_try="$ac_cpp conftest.$ac_ext"
15949 case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15956 grep -v '^ *+' conftest.er1 >conftest.err
15958 cat conftest.err >&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); } >/dev/null; then
15961 if test -s conftest.err; then
15962 ac_cpp_err=$ac_c_preproc_warn_flag
15963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15970 if test -z "$ac_cpp_err"; then
15971 ac_header_preproc=yes
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_header_preproc=no
15979 rm -f conftest.err conftest.$ac_ext
15980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15981 echo "${ECHO_T}$ac_header_preproc" >&6; }
15983 # So? What about this header?
15984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15990 ac_header_preproc=yes
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16006 ## ----------------------------------- ##
16007 ## Report this to llvmbugs@cs.uiuc.edu ##
16008 ## ----------------------------------- ##
16010 ) | sed "s/^/$as_me: WARNING: /" >&2
16013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 eval "$as_ac_Header=\$ac_header_preproc"
16020 ac_res=`eval echo '${'$as_ac_Header'}'`
16021 { echo "$as_me:$LINENO: result: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16026 cat >>confdefs.h <<_ACEOF
16027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16035 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16036 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 extern const char *__crashreporter_info__;
16045 __crashreporter_info__ = "test";
16050 rm -f conftest.$ac_objext conftest$ac_exeext
16051 if { (ac_try="$ac_link"
16052 case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_link") 2>conftest.er1
16059 grep -v '^ *+' conftest.er1 >conftest.err
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16065 { (case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_try") 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest$ac_exeext'
16075 { (case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_try") 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 { echo "$as_me:$LINENO: result: yes" >&5
16085 echo "${ECHO_T}yes" >&6; }
16087 cat >>confdefs.h <<\_ACEOF
16088 #define HAVE_CRASHREPORTER_INFO 1
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16095 { echo "$as_me:$LINENO: result: no" >&5
16096 echo "${ECHO_T}no" >&6; }
16098 cat >>confdefs.h <<\_ACEOF
16099 #define HAVE_CRASHREPORTER_INFO 0
16104 rm -f core conftest.err conftest.$ac_objext \
16105 conftest$ac_exeext conftest.$ac_ext
16110 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16111 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16112 if test "${ac_cv_huge_val_sanity+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 ac_cpp='$CXXCPP $CPPFLAGS'
16118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16122 ac_save_CXXFLAGS=$CXXFLAGS
16124 if test "$cross_compiling" = yes; then
16125 ac_cv_huge_val_sanity=yes
16127 cat >conftest.$ac_ext <<_ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16137 double x = HUGE_VAL; return x != x;
16142 rm -f conftest$ac_exeext
16143 if { (ac_try="$ac_link"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_link") 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16153 { (case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_try") 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_cv_huge_val_sanity=yes
16164 echo "$as_me: program exited with status $ac_status" >&5
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 ( exit $ac_status )
16169 ac_cv_huge_val_sanity=no
16171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16175 CXXFLAGS=$ac_save_CXXFLAGS
16177 ac_cpp='$CPP $CPPFLAGS'
16178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16184 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16185 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16186 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16189 { echo "$as_me:$LINENO: checking for pid_t" >&5
16190 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16191 if test "${ac_cv_type_pid_t+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 cat >conftest.$ac_ext <<_ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 $ac_includes_default
16201 typedef pid_t ac__type_new_;
16205 if ((ac__type_new_ *) 0)
16207 if (sizeof (ac__type_new_))
16213 rm -f conftest.$ac_objext
16214 if { (ac_try="$ac_compile"
16215 case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_compile") 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } &&
16227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16228 { (case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_try") 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest.$ac_objext'
16238 { (case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_try") 2>&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16247 ac_cv_type_pid_t=yes
16249 echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 ac_cv_type_pid_t=no
16255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16258 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16259 if test $ac_cv_type_pid_t = yes; then
16263 cat >>confdefs.h <<_ACEOF
16269 { echo "$as_me:$LINENO: checking for size_t" >&5
16270 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16271 if test "${ac_cv_type_size_t+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 cat >conftest.$ac_ext <<_ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16280 $ac_includes_default
16281 typedef size_t ac__type_new_;
16285 if ((ac__type_new_ *) 0)
16287 if (sizeof (ac__type_new_))
16293 rm -f conftest.$ac_objext
16294 if { (ac_try="$ac_compile"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_compile") 2>conftest.er1
16302 grep -v '^ *+' conftest.er1 >conftest.err
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308 { (case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_try") 2>&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_cv_type_size_t=yes
16329 echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 ac_cv_type_size_t=no
16335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16337 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16338 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16339 if test $ac_cv_type_size_t = yes; then
16343 cat >>confdefs.h <<_ACEOF
16344 #define size_t unsigned int
16350 cat >>confdefs.h <<_ACEOF
16351 #define RETSIGTYPE void
16354 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16355 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16356 if test "${ac_cv_struct_tm+set}" = set; then
16357 echo $ECHO_N "(cached) $ECHO_C" >&6
16359 cat >conftest.$ac_ext <<_ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16365 #include <sys/types.h>
16371 struct tm *tp; tp->tm_sec;
16376 rm -f conftest.$ac_objext
16377 if { (ac_try="$ac_compile"
16378 case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_compile") 2>conftest.er1
16385 grep -v '^ *+' conftest.er1 >conftest.err
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest.$ac_objext'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_cv_struct_tm=time.h
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ac_cv_struct_tm=sys/time.h
16418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16421 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16422 if test $ac_cv_struct_tm = sys/time.h; then
16424 cat >>confdefs.h <<\_ACEOF
16425 #define TM_IN_SYS_TIME 1
16430 { echo "$as_me:$LINENO: checking for int64_t" >&5
16431 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16432 if test "${ac_cv_type_int64_t+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16435 cat >conftest.$ac_ext <<_ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16441 $ac_includes_default
16442 typedef int64_t ac__type_new_;
16446 if ((ac__type_new_ *) 0)
16448 if (sizeof (ac__type_new_))
16454 rm -f conftest.$ac_objext
16455 if { (ac_try="$ac_compile"
16456 case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_compile") 2>conftest.er1
16463 grep -v '^ *+' conftest.er1 >conftest.err
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16469 { (case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_try") 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 ac_cv_type_int64_t=yes
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16493 ac_cv_type_int64_t=no
16496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16498 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16499 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16500 if test $ac_cv_type_int64_t = yes; then
16502 cat >>confdefs.h <<_ACEOF
16503 #define HAVE_INT64_T 1
16508 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16509 echo "$as_me: error: Type int64_t required but not found" >&2;}
16510 { (exit 1); exit 1; }; }
16513 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16514 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16515 if test "${ac_cv_type_uint64_t+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 $ac_includes_default
16525 typedef uint64_t ac__type_new_;
16529 if ((ac__type_new_ *) 0)
16531 if (sizeof (ac__type_new_))
16537 rm -f conftest.$ac_objext
16538 if { (ac_try="$ac_compile"
16539 case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_compile") 2>conftest.er1
16546 grep -v '^ *+' conftest.er1 >conftest.err
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest.$ac_objext'
16562 { (case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_try") 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_cv_type_uint64_t=yes
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 ac_cv_type_uint64_t=no
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16582 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16583 if test $ac_cv_type_uint64_t = yes; then
16585 cat >>confdefs.h <<_ACEOF
16586 #define HAVE_UINT64_T 1
16591 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16592 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16593 if test "${ac_cv_type_u_int64_t+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16596 cat >conftest.$ac_ext <<_ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 $ac_includes_default
16603 typedef u_int64_t ac__type_new_;
16607 if ((ac__type_new_ *) 0)
16609 if (sizeof (ac__type_new_))
16615 rm -f conftest.$ac_objext
16616 if { (ac_try="$ac_compile"
16617 case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_compile") 2>conftest.er1
16624 grep -v '^ *+' conftest.er1 >conftest.err
16626 cat conftest.err >&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } &&
16629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16630 { (case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_try") 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; } &&
16639 { ac_try='test -s conftest.$ac_objext'
16640 { (case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_try") 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 ac_cv_type_u_int64_t=yes
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 ac_cv_type_u_int64_t=no
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16660 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16661 if test $ac_cv_type_u_int64_t = yes; then
16663 cat >>confdefs.h <<_ACEOF
16664 #define HAVE_U_INT64_T 1
16669 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16670 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16671 { (exit 1); exit 1; }; }
16685 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 cat >conftest.$ac_ext <<_ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16701 #define $ac_func innocuous_$ac_func
16703 /* System header to define __stub macros and hopefully few prototypes,
16704 which can conflict with char $ac_func (); below.
16705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16706 <limits.h> exists even on freestanding compilers. */
16709 # include <limits.h>
16711 # include <assert.h>
16716 /* Override any GCC internal prototype to avoid an error.
16717 Use char because int might match the return type of a GCC
16718 builtin and then its argument prototype would still apply. */
16723 /* The GNU C library defines this for functions which it implements
16724 to always fail with ENOSYS. Some functions are actually named
16725 something starting with __ and the normal name is an alias. */
16726 #if defined __stub_$ac_func || defined __stub___$ac_func
16733 return $ac_func ();
16738 rm -f conftest.$ac_objext conftest$ac_exeext
16739 if { (ac_try="$ac_link"
16740 case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_link") 2>conftest.er1
16747 grep -v '^ *+' conftest.er1 >conftest.err
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753 { (case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_try") 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest$ac_exeext'
16763 { (case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768 (eval "$ac_try") 2>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16772 eval "$as_ac_var=yes"
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 eval "$as_ac_var=no"
16780 rm -f core conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16783 ac_res=`eval echo '${'$as_ac_var'}'`
16784 { echo "$as_me:$LINENO: result: $ac_res" >&5
16785 echo "${ECHO_T}$ac_res" >&6; }
16786 if test `eval echo '${'$as_ac_var'}'` = yes; then
16787 cat >>confdefs.h <<_ACEOF
16788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16798 for ac_func in powf fmodf strtof round
16800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 cat >conftest.$ac_ext <<_ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16814 #define $ac_func innocuous_$ac_func
16816 /* System header to define __stub macros and hopefully few prototypes,
16817 which can conflict with char $ac_func (); below.
16818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16819 <limits.h> exists even on freestanding compilers. */
16822 # include <limits.h>
16824 # include <assert.h>
16829 /* Override any GCC internal prototype to avoid an error.
16830 Use char because int might match the return type of a GCC
16831 builtin and then its argument prototype would still apply. */
16836 /* The GNU C library defines this for functions which it implements
16837 to always fail with ENOSYS. Some functions are actually named
16838 something starting with __ and the normal name is an alias. */
16839 #if defined __stub_$ac_func || defined __stub___$ac_func
16846 return $ac_func ();
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (ac_try="$ac_link"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_link") 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 eval "$as_ac_var=yes"
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16890 eval "$as_ac_var=no"
16893 rm -f core conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
16896 ac_res=`eval echo '${'$as_ac_var'}'`
16897 { echo "$as_me:$LINENO: result: $ac_res" >&5
16898 echo "${ECHO_T}$ac_res" >&6; }
16899 if test `eval echo '${'$as_ac_var'}'` = yes; then
16900 cat >>confdefs.h <<_ACEOF
16901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16912 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16920 cat >conftest.$ac_ext <<_ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h. */
16926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16928 #define $ac_func innocuous_$ac_func
16930 /* System header to define __stub macros and hopefully few prototypes,
16931 which can conflict with char $ac_func (); below.
16932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16933 <limits.h> exists even on freestanding compilers. */
16936 # include <limits.h>
16938 # include <assert.h>
16943 /* Override any GCC internal prototype to avoid an error.
16944 Use char because int might match the return type of a GCC
16945 builtin and then its argument prototype would still apply. */
16950 /* The GNU C library defines this for functions which it implements
16951 to always fail with ENOSYS. Some functions are actually named
16952 something starting with __ and the normal name is an alias. */
16953 #if defined __stub_$ac_func || defined __stub___$ac_func
16960 return $ac_func ();
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
16974 grep -v '^ *+' conftest.er1 >conftest.err
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16980 { (case "(($ac_try" in
16981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982 *) ac_try_echo=$ac_try;;
16984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985 (eval "$ac_try") 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest$ac_exeext'
16990 { (case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_try") 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 eval "$as_ac_var=yes"
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 eval "$as_ac_var=no"
17007 rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17010 ac_res=`eval echo '${'$as_ac_var'}'`
17011 { echo "$as_me:$LINENO: result: $ac_res" >&5
17012 echo "${ECHO_T}$ac_res" >&6; }
17013 if test `eval echo '${'$as_ac_var'}'` = yes; then
17014 cat >>confdefs.h <<_ACEOF
17015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17024 for ac_func in isatty mkdtemp mkstemp
17026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 cat >conftest.$ac_ext <<_ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17040 #define $ac_func innocuous_$ac_func
17042 /* System header to define __stub macros and hopefully few prototypes,
17043 which can conflict with char $ac_func (); below.
17044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17045 <limits.h> exists even on freestanding compilers. */
17048 # include <limits.h>
17050 # include <assert.h>
17055 /* Override any GCC internal prototype to avoid an error.
17056 Use char because int might match the return type of a GCC
17057 builtin and then its argument prototype would still apply. */
17062 /* The GNU C library defines this for functions which it implements
17063 to always fail with ENOSYS. Some functions are actually named
17064 something starting with __ and the normal name is an alias. */
17065 #if defined __stub_$ac_func || defined __stub___$ac_func
17072 return $ac_func ();
17077 rm -f conftest.$ac_objext conftest$ac_exeext
17078 if { (ac_try="$ac_link"
17079 case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_link") 2>conftest.er1
17086 grep -v '^ *+' conftest.er1 >conftest.err
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17092 { (case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_try") 2>&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest$ac_exeext'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 eval "$as_ac_var=yes"
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 eval "$as_ac_var=no"
17119 rm -f core conftest.err conftest.$ac_objext \
17120 conftest$ac_exeext conftest.$ac_ext
17122 ac_res=`eval echo '${'$as_ac_var'}'`
17123 { echo "$as_me:$LINENO: result: $ac_res" >&5
17124 echo "${ECHO_T}$ac_res" >&6; }
17125 if test `eval echo '${'$as_ac_var'}'` = yes; then
17126 cat >>confdefs.h <<_ACEOF
17127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17139 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17147 cat >conftest.$ac_ext <<_ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17155 #define $ac_func innocuous_$ac_func
17157 /* System header to define __stub macros and hopefully few prototypes,
17158 which can conflict with char $ac_func (); below.
17159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17160 <limits.h> exists even on freestanding compilers. */
17163 # include <limits.h>
17165 # include <assert.h>
17170 /* Override any GCC internal prototype to avoid an error.
17171 Use char because int might match the return type of a GCC
17172 builtin and then its argument prototype would still apply. */
17177 /* The GNU C library defines this for functions which it implements
17178 to always fail with ENOSYS. Some functions are actually named
17179 something starting with __ and the normal name is an alias. */
17180 #if defined __stub_$ac_func || defined __stub___$ac_func
17187 return $ac_func ();
17192 rm -f conftest.$ac_objext conftest$ac_exeext
17193 if { (ac_try="$ac_link"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_link") 2>conftest.er1
17201 grep -v '^ *+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207 { (case "(($ac_try" in
17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209 *) ac_try_echo=$ac_try;;
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212 (eval "$ac_try") 2>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest$ac_exeext'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 eval "$as_ac_var=yes"
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 eval "$as_ac_var=no"
17234 rm -f core conftest.err conftest.$ac_objext \
17235 conftest$ac_exeext conftest.$ac_ext
17237 ac_res=`eval echo '${'$as_ac_var'}'`
17238 { echo "$as_me:$LINENO: result: $ac_res" >&5
17239 echo "${ECHO_T}$ac_res" >&6; }
17240 if test `eval echo '${'$as_ac_var'}'` = yes; then
17241 cat >>confdefs.h <<_ACEOF
17242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17251 for ac_func in strerror strerror_r setenv
17253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 cat >conftest.$ac_ext <<_ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h. */
17265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17267 #define $ac_func innocuous_$ac_func
17269 /* System header to define __stub macros and hopefully few prototypes,
17270 which can conflict with char $ac_func (); below.
17271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17272 <limits.h> exists even on freestanding compilers. */
17275 # include <limits.h>
17277 # include <assert.h>
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17289 /* The GNU C library defines this for functions which it implements
17290 to always fail with ENOSYS. Some functions are actually named
17291 something starting with __ and the normal name is an alias. */
17292 #if defined __stub_$ac_func || defined __stub___$ac_func
17299 return $ac_func ();
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (ac_try="$ac_link"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_link") 2>conftest.er1
17313 grep -v '^ *+' conftest.er1 >conftest.err
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17319 { (case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_try") 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest$ac_exeext'
17329 { (case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_try") 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 eval "$as_ac_var=yes"
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 eval "$as_ac_var=no"
17346 rm -f core conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17349 ac_res=`eval echo '${'$as_ac_var'}'`
17350 { echo "$as_me:$LINENO: result: $ac_res" >&5
17351 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_var'}'` = yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17364 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17370 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 cat >conftest.$ac_ext <<_ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17380 #define $ac_func innocuous_$ac_func
17382 /* System header to define __stub macros and hopefully few prototypes,
17383 which can conflict with char $ac_func (); below.
17384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17385 <limits.h> exists even on freestanding compilers. */
17388 # include <limits.h>
17390 # include <assert.h>
17395 /* Override any GCC internal prototype to avoid an error.
17396 Use char because int might match the return type of a GCC
17397 builtin and then its argument prototype would still apply. */
17402 /* The GNU C library defines this for functions which it implements
17403 to always fail with ENOSYS. Some functions are actually named
17404 something starting with __ and the normal name is an alias. */
17405 #if defined __stub_$ac_func || defined __stub___$ac_func
17412 return $ac_func ();
17417 rm -f conftest.$ac_objext conftest$ac_exeext
17418 if { (ac_try="$ac_link"
17419 case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_link") 2>conftest.er1
17426 grep -v '^ *+' conftest.er1 >conftest.err
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17432 { (case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_try") 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest$ac_exeext'
17442 { (case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_try") 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 eval "$as_ac_var=yes"
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 eval "$as_ac_var=no"
17459 rm -f core conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
17462 ac_res=`eval echo '${'$as_ac_var'}'`
17463 { echo "$as_me:$LINENO: result: $ac_res" >&5
17464 echo "${ECHO_T}$ac_res" >&6; }
17465 if test `eval echo '${'$as_ac_var'}'` = yes; then
17466 cat >>confdefs.h <<_ACEOF
17467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17478 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17484 echo $ECHO_N "(cached) $ECHO_C" >&6
17486 cat >conftest.$ac_ext <<_ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17494 #define $ac_func innocuous_$ac_func
17496 /* System header to define __stub macros and hopefully few prototypes,
17497 which can conflict with char $ac_func (); below.
17498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17499 <limits.h> exists even on freestanding compilers. */
17502 # include <limits.h>
17504 # include <assert.h>
17509 /* Override any GCC internal prototype to avoid an error.
17510 Use char because int might match the return type of a GCC
17511 builtin and then its argument prototype would still apply. */
17516 /* The GNU C library defines this for functions which it implements
17517 to always fail with ENOSYS. Some functions are actually named
17518 something starting with __ and the normal name is an alias. */
17519 #if defined __stub_$ac_func || defined __stub___$ac_func
17526 return $ac_func ();
17531 rm -f conftest.$ac_objext conftest$ac_exeext
17532 if { (ac_try="$ac_link"
17533 case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_link") 2>conftest.er1
17540 grep -v '^ *+' conftest.er1 >conftest.err
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
17545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17546 { (case "(($ac_try" in
17547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548 *) ac_try_echo=$ac_try;;
17550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551 (eval "$ac_try") 2>&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; } &&
17555 { ac_try='test -s conftest$ac_exeext'
17556 { (case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_try") 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 eval "$as_ac_var=yes"
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 eval "$as_ac_var=no"
17573 rm -f core conftest.err conftest.$ac_objext \
17574 conftest$ac_exeext conftest.$ac_ext
17576 ac_res=`eval echo '${'$as_ac_var'}'`
17577 { echo "$as_me:$LINENO: result: $ac_res" >&5
17578 echo "${ECHO_T}$ac_res" >&6; }
17579 if test `eval echo '${'$as_ac_var'}'` = yes; then
17580 cat >>confdefs.h <<_ACEOF
17581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17587 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17588 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17589 if test "${llvm_cv_c_printf_a+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 ac_cpp='$CPP $CPPFLAGS'
17594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17598 if test "$cross_compiling" = yes; then
17599 llvmac_cv_c_printf_a=no
17601 cat >conftest.$ac_ext <<_ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17610 #include <stdlib.h>
17616 volatile double A, B;
17620 sprintf(Buffer, "%a", A);
17624 if (A != 0x1.999999999999ap-4)
17631 rm -f conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_link") 2>&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17642 { (case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_try") 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 llvm_cv_c_printf_a=yes
17653 echo "$as_me: program exited with status $ac_status" >&5
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 ( exit $ac_status )
17658 llvmac_cv_c_printf_a=no
17660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17665 ac_cpp='$CPP $CPPFLAGS'
17666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17671 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17672 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17673 if test "$llvm_cv_c_printf_a" = "yes"; then
17675 cat >>confdefs.h <<\_ACEOF
17676 #define HAVE_PRINTF_A 1
17682 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17683 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17684 if test "${ac_cv_func_rand48+set}" = set; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 ac_cpp='$CXXCPP $CPPFLAGS'
17689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17693 cat >conftest.$ac_ext <<_ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17699 #include <stdlib.h>
17703 srand48(0);lrand48();drand48();
17708 rm -f conftest.$ac_objext
17709 if { (ac_try="$ac_compile"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_compile") 2>conftest.er1
17717 grep -v '^ *+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest.$ac_objext'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
17742 ac_cv_func_rand48=yes
17744 echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17747 ac_cv_func_rand48=no
17750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17752 ac_cpp='$CPP $CPPFLAGS'
17753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17758 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17759 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17761 if test "$ac_cv_func_rand48" = "yes" ; then
17763 cat >>confdefs.h <<\_ACEOF
17764 #define HAVE_RAND48 1
17770 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17771 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17772 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 cat >conftest.$ac_ext <<_ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 $ac_includes_default
17786 char *p = (char *) strerror_s;
17794 rm -f conftest.$ac_objext
17795 if { (ac_try="$ac_compile"
17796 case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_compile") 2>conftest.er1
17803 grep -v '^ *+' conftest.er1 >conftest.err
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17809 { (case "(($ac_try" in
17810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811 *) ac_try_echo=$ac_try;;
17813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814 (eval "$ac_try") 2>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest.$ac_objext'
17819 { (case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_try") 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; }; then
17828 ac_cv_have_decl_strerror_s=yes
17830 echo "$as_me: failed program was:" >&5
17831 sed 's/^/| /' conftest.$ac_ext >&5
17833 ac_cv_have_decl_strerror_s=no
17836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17838 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17839 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17840 if test $ac_cv_have_decl_strerror_s = yes; then
17842 cat >>confdefs.h <<_ACEOF
17843 #define HAVE_DECL_STRERROR_S 1
17848 cat >>confdefs.h <<_ACEOF
17849 #define HAVE_DECL_STRERROR_S 0
17857 if test "$llvm_cv_os_type" = "MingW" ; then
17858 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17859 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17860 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 ac_check_lib_save_LIBS=$LIBS
17865 cat >conftest.$ac_ext <<_ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17872 /* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
17887 rm -f conftest.$ac_objext conftest$ac_exeext
17888 if { (ac_try="$ac_link"
17889 case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_link") 2>conftest.er1
17896 grep -v '^ *+' conftest.er1 >conftest.err
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } &&
17901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17902 { (case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_try") 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest$ac_exeext'
17912 { (case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_try") 2>&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; }; then
17921 ac_cv_lib_gcc__alloca=yes
17923 echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17926 ac_cv_lib_gcc__alloca=no
17929 rm -f core conftest.err conftest.$ac_objext \
17930 conftest$ac_exeext conftest.$ac_ext
17931 LIBS=$ac_check_lib_save_LIBS
17933 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17934 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17935 if test $ac_cv_lib_gcc__alloca = yes; then
17937 cat >>confdefs.h <<\_ACEOF
17938 #define HAVE__ALLOCA 1
17943 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17944 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17945 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 ac_check_lib_save_LIBS=$LIBS
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17957 /* Override any GCC internal prototype to avoid an error.
17958 Use char because int might match the return type of a GCC
17959 builtin and then its argument prototype would still apply. */
17967 return __alloca ();
17972 rm -f conftest.$ac_objext conftest$ac_exeext
17973 if { (ac_try="$ac_link"
17974 case "(($ac_try" in
17975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976 *) ac_try_echo=$ac_try;;
17978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17979 (eval "$ac_link") 2>conftest.er1
17981 grep -v '^ *+' conftest.er1 >conftest.err
17983 cat conftest.err >&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } &&
17986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17987 { (case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_try") 2>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; } &&
17996 { ac_try='test -s conftest$ac_exeext'
17997 { (case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_try") 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_lib_gcc___alloca=yes
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18011 ac_cv_lib_gcc___alloca=no
18014 rm -f core conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18016 LIBS=$ac_check_lib_save_LIBS
18018 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18019 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18020 if test $ac_cv_lib_gcc___alloca = yes; then
18022 cat >>confdefs.h <<\_ACEOF
18023 #define HAVE___ALLOCA 1
18028 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18029 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18030 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 ac_check_lib_save_LIBS=$LIBS
18035 cat >conftest.$ac_ext <<_ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h. */
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18052 return __chkstk ();
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_link") 2>conftest.er1
18066 grep -v '^ *+' conftest.er1 >conftest.err
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18072 { (case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_try") 2>&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try='test -s conftest$ac_exeext'
18082 { (case "(($ac_try" in
18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084 *) ac_try_echo=$ac_try;;
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087 (eval "$ac_try") 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 ac_cv_lib_gcc___chkstk=yes
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 ac_cv_lib_gcc___chkstk=no
18099 rm -f core conftest.err conftest.$ac_objext \
18100 conftest$ac_exeext conftest.$ac_ext
18101 LIBS=$ac_check_lib_save_LIBS
18103 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18104 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18105 if test $ac_cv_lib_gcc___chkstk = yes; then
18107 cat >>confdefs.h <<\_ACEOF
18108 #define HAVE___CHKSTK 1
18113 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18114 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18115 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18116 echo $ECHO_N "(cached) $ECHO_C" >&6
18118 ac_check_lib_save_LIBS=$LIBS
18120 cat >conftest.$ac_ext <<_ACEOF
18123 cat confdefs.h >>conftest.$ac_ext
18124 cat >>conftest.$ac_ext <<_ACEOF
18125 /* end confdefs.h. */
18127 /* Override any GCC internal prototype to avoid an error.
18128 Use char because int might match the return type of a GCC
18129 builtin and then its argument prototype would still apply. */
18137 return ___chkstk ();
18142 rm -f conftest.$ac_objext conftest$ac_exeext
18143 if { (ac_try="$ac_link"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_link") 2>conftest.er1
18151 grep -v '^ *+' conftest.er1 >conftest.err
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18157 { (case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_try") 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } &&
18166 { ac_try='test -s conftest$ac_exeext'
18167 { (case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_try") 2>&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
18176 ac_cv_lib_gcc____chkstk=yes
18178 echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18181 ac_cv_lib_gcc____chkstk=no
18184 rm -f core conftest.err conftest.$ac_objext \
18185 conftest$ac_exeext conftest.$ac_ext
18186 LIBS=$ac_check_lib_save_LIBS
18188 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18189 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18190 if test $ac_cv_lib_gcc____chkstk = yes; then
18192 cat >>confdefs.h <<\_ACEOF
18193 #define HAVE____CHKSTK 1
18199 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18200 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18201 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 ac_check_lib_save_LIBS=$LIBS
18206 cat >conftest.$ac_ext <<_ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18213 /* Override any GCC internal prototype to avoid an error.
18214 Use char because int might match the return type of a GCC
18215 builtin and then its argument prototype would still apply. */
18223 return __ashldi3 ();
18228 rm -f conftest.$ac_objext conftest$ac_exeext
18229 if { (ac_try="$ac_link"
18230 case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_link") 2>conftest.er1
18237 grep -v '^ *+' conftest.er1 >conftest.err
18239 cat conftest.err >&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } &&
18242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18243 { (case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248 (eval "$ac_try") 2>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; } &&
18252 { ac_try='test -s conftest$ac_exeext'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18262 ac_cv_lib_gcc___ashldi3=yes
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_cv_lib_gcc___ashldi3=no
18270 rm -f core conftest.err conftest.$ac_objext \
18271 conftest$ac_exeext conftest.$ac_ext
18272 LIBS=$ac_check_lib_save_LIBS
18274 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18275 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18276 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18278 cat >>confdefs.h <<\_ACEOF
18279 #define HAVE___ASHLDI3 1
18284 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18285 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18286 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 ac_check_lib_save_LIBS=$LIBS
18291 cat >conftest.$ac_ext <<_ACEOF
18294 cat confdefs.h >>conftest.$ac_ext
18295 cat >>conftest.$ac_ext <<_ACEOF
18296 /* end confdefs.h. */
18298 /* Override any GCC internal prototype to avoid an error.
18299 Use char because int might match the return type of a GCC
18300 builtin and then its argument prototype would still apply. */
18308 return __ashrdi3 ();
18313 rm -f conftest.$ac_objext conftest$ac_exeext
18314 if { (ac_try="$ac_link"
18315 case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_link") 2>conftest.er1
18322 grep -v '^ *+' conftest.er1 >conftest.err
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18328 { (case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_try") 2>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 ac_cv_lib_gcc___ashrdi3=yes
18349 echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18352 ac_cv_lib_gcc___ashrdi3=no
18355 rm -f core conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18359 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18360 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18361 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18363 cat >>confdefs.h <<\_ACEOF
18364 #define HAVE___ASHRDI3 1
18369 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18370 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18371 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18374 ac_check_lib_save_LIBS=$LIBS
18376 cat >conftest.$ac_ext <<_ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18383 /* Override any GCC internal prototype to avoid an error.
18384 Use char because int might match the return type of a GCC
18385 builtin and then its argument prototype would still apply. */
18393 return __divdi3 ();
18398 rm -f conftest.$ac_objext conftest$ac_exeext
18399 if { (ac_try="$ac_link"
18400 case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_link") 2>conftest.er1
18407 grep -v '^ *+' conftest.er1 >conftest.err
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
18412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18413 { (case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_try") 2>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; } &&
18422 { ac_try='test -s conftest$ac_exeext'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_cv_lib_gcc___divdi3=yes
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18437 ac_cv_lib_gcc___divdi3=no
18440 rm -f core conftest.err conftest.$ac_objext \
18441 conftest$ac_exeext conftest.$ac_ext
18442 LIBS=$ac_check_lib_save_LIBS
18444 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18445 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18446 if test $ac_cv_lib_gcc___divdi3 = yes; then
18448 cat >>confdefs.h <<\_ACEOF
18449 #define HAVE___DIVDI3 1
18454 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18455 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18456 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18459 ac_check_lib_save_LIBS=$LIBS
18461 cat >conftest.$ac_ext <<_ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h. */
18468 /* Override any GCC internal prototype to avoid an error.
18469 Use char because int might match the return type of a GCC
18470 builtin and then its argument prototype would still apply. */
18478 return __fixdfdi ();
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (ac_try="$ac_link"
18485 case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_link") 2>conftest.er1
18492 grep -v '^ *+' conftest.er1 >conftest.err
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } &&
18497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18498 { (case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_try") 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; } &&
18507 { ac_try='test -s conftest$ac_exeext'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 ac_cv_lib_gcc___fixdfdi=yes
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 ac_cv_lib_gcc___fixdfdi=no
18525 rm -f core conftest.err conftest.$ac_objext \
18526 conftest$ac_exeext conftest.$ac_ext
18527 LIBS=$ac_check_lib_save_LIBS
18529 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18530 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18531 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18533 cat >>confdefs.h <<\_ACEOF
18534 #define HAVE___FIXDFDI 1
18539 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18540 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18541 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 ac_check_lib_save_LIBS=$LIBS
18546 cat >conftest.$ac_ext <<_ACEOF
18549 cat confdefs.h >>conftest.$ac_ext
18550 cat >>conftest.$ac_ext <<_ACEOF
18551 /* end confdefs.h. */
18553 /* Override any GCC internal prototype to avoid an error.
18554 Use char because int might match the return type of a GCC
18555 builtin and then its argument prototype would still apply. */
18563 return __fixsfdi ();
18568 rm -f conftest.$ac_objext conftest$ac_exeext
18569 if { (ac_try="$ac_link"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_link") 2>conftest.er1
18577 grep -v '^ *+' conftest.er1 >conftest.err
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } &&
18582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18583 { (case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_try") 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; } &&
18592 { ac_try='test -s conftest$ac_exeext'
18593 { (case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_try") 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18602 ac_cv_lib_gcc___fixsfdi=yes
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 ac_cv_lib_gcc___fixsfdi=no
18610 rm -f core conftest.err conftest.$ac_objext \
18611 conftest$ac_exeext conftest.$ac_ext
18612 LIBS=$ac_check_lib_save_LIBS
18614 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18615 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18616 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18618 cat >>confdefs.h <<\_ACEOF
18619 #define HAVE___FIXSFDI 1
18624 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18625 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18626 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 ac_check_lib_save_LIBS=$LIBS
18631 cat >conftest.$ac_ext <<_ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18638 /* Override any GCC internal prototype to avoid an error.
18639 Use char because int might match the return type of a GCC
18640 builtin and then its argument prototype would still apply. */
18644 char __floatdidf ();
18648 return __floatdidf ();
18653 rm -f conftest.$ac_objext conftest$ac_exeext
18654 if { (ac_try="$ac_link"
18655 case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_link") 2>conftest.er1
18662 grep -v '^ *+' conftest.er1 >conftest.err
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
18667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18668 { (case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_try") 2>&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; } &&
18677 { ac_try='test -s conftest$ac_exeext'
18678 { (case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_try") 2>&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
18687 ac_cv_lib_gcc___floatdidf=yes
18689 echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18692 ac_cv_lib_gcc___floatdidf=no
18695 rm -f core conftest.err conftest.$ac_objext \
18696 conftest$ac_exeext conftest.$ac_ext
18697 LIBS=$ac_check_lib_save_LIBS
18699 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18700 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18701 if test $ac_cv_lib_gcc___floatdidf = yes; then
18703 cat >>confdefs.h <<\_ACEOF
18704 #define HAVE___FLOATDIDF 1
18709 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18710 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18711 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 ac_check_lib_save_LIBS=$LIBS
18716 cat >conftest.$ac_ext <<_ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18723 /* Override any GCC internal prototype to avoid an error.
18724 Use char because int might match the return type of a GCC
18725 builtin and then its argument prototype would still apply. */
18733 return __lshrdi3 ();
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (ac_try="$ac_link"
18740 case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_link") 2>conftest.er1
18747 grep -v '^ *+' conftest.er1 >conftest.err
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
18752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18753 { (case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_try") 2>&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; } &&
18762 { ac_try='test -s conftest$ac_exeext'
18763 { (case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_try") 2>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_lib_gcc___lshrdi3=yes
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 ac_cv_lib_gcc___lshrdi3=no
18780 rm -f core conftest.err conftest.$ac_objext \
18781 conftest$ac_exeext conftest.$ac_ext
18782 LIBS=$ac_check_lib_save_LIBS
18784 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18785 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18786 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE___LSHRDI3 1
18794 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18795 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18796 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 ac_check_lib_save_LIBS=$LIBS
18801 cat >conftest.$ac_ext <<_ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18818 return __moddi3 ();
18823 rm -f conftest.$ac_objext conftest$ac_exeext
18824 if { (ac_try="$ac_link"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_link") 2>conftest.er1
18832 grep -v '^ *+' conftest.er1 >conftest.err
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } &&
18837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18838 { (case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_try") 2>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest$ac_exeext'
18848 { (case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_try") 2>&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_lib_gcc___moddi3=yes
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_cv_lib_gcc___moddi3=no
18865 rm -f core conftest.err conftest.$ac_objext \
18866 conftest$ac_exeext conftest.$ac_ext
18867 LIBS=$ac_check_lib_save_LIBS
18869 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18870 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18871 if test $ac_cv_lib_gcc___moddi3 = yes; then
18873 cat >>confdefs.h <<\_ACEOF
18874 #define HAVE___MODDI3 1
18879 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18880 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18881 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 ac_check_lib_save_LIBS=$LIBS
18886 cat >conftest.$ac_ext <<_ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18893 /* Override any GCC internal prototype to avoid an error.
18894 Use char because int might match the return type of a GCC
18895 builtin and then its argument prototype would still apply. */
18903 return __udivdi3 ();
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (ac_try="$ac_link"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_link") 2>conftest.er1
18917 grep -v '^ *+' conftest.er1 >conftest.err
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } &&
18922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18923 { (case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_try") 2>&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; } &&
18932 { ac_try='test -s conftest$ac_exeext'
18933 { (case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_try") 2>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 ac_cv_lib_gcc___udivdi3=yes
18944 echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18947 ac_cv_lib_gcc___udivdi3=no
18950 rm -f core conftest.err conftest.$ac_objext \
18951 conftest$ac_exeext conftest.$ac_ext
18952 LIBS=$ac_check_lib_save_LIBS
18954 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18955 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18956 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18958 cat >>confdefs.h <<\_ACEOF
18959 #define HAVE___UDIVDI3 1
18964 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18965 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18966 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 ac_check_lib_save_LIBS=$LIBS
18971 cat >conftest.$ac_ext <<_ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18978 /* Override any GCC internal prototype to avoid an error.
18979 Use char because int might match the return type of a GCC
18980 builtin and then its argument prototype would still apply. */
18988 return __umoddi3 ();
18993 rm -f conftest.$ac_objext conftest$ac_exeext
18994 if { (ac_try="$ac_link"
18995 case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_link") 2>conftest.er1
19002 grep -v '^ *+' conftest.er1 >conftest.err
19004 cat conftest.err >&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } &&
19007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; } &&
19017 { ac_try='test -s conftest$ac_exeext'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; }; then
19027 ac_cv_lib_gcc___umoddi3=yes
19029 echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19032 ac_cv_lib_gcc___umoddi3=no
19035 rm -f core conftest.err conftest.$ac_objext \
19036 conftest$ac_exeext conftest.$ac_ext
19037 LIBS=$ac_check_lib_save_LIBS
19039 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19040 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19041 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19043 cat >>confdefs.h <<\_ACEOF
19044 #define HAVE___UMODDI3 1
19050 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19051 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19052 if test "${ac_cv_lib_gcc___main+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 ac_check_lib_save_LIBS=$LIBS
19057 cat >conftest.$ac_ext <<_ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19064 /* Override any GCC internal prototype to avoid an error.
19065 Use char because int might match the return type of a GCC
19066 builtin and then its argument prototype would still apply. */
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (ac_try="$ac_link"
19081 case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_link") 2>conftest.er1
19088 grep -v '^ *+' conftest.er1 >conftest.err
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } &&
19093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19094 { (case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_try") 2>&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; } &&
19103 { ac_try='test -s conftest$ac_exeext'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 ac_cv_lib_gcc___main=yes
19115 echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19118 ac_cv_lib_gcc___main=no
19121 rm -f core conftest.err conftest.$ac_objext \
19122 conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19125 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19126 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19127 if test $ac_cv_lib_gcc___main = yes; then
19129 cat >>confdefs.h <<\_ACEOF
19130 #define HAVE___MAIN 1
19135 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19136 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19137 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 ac_check_lib_save_LIBS=$LIBS
19142 cat >conftest.$ac_ext <<_ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19149 /* Override any GCC internal prototype to avoid an error.
19150 Use char because int might match the return type of a GCC
19151 builtin and then its argument prototype would still apply. */
19159 return __cmpdi2 ();
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (ac_try="$ac_link"
19166 case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_link") 2>conftest.er1
19173 grep -v '^ *+' conftest.er1 >conftest.err
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } &&
19178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19179 { (case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_try") 2>&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest$ac_exeext'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
19198 ac_cv_lib_gcc___cmpdi2=yes
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19203 ac_cv_lib_gcc___cmpdi2=no
19206 rm -f core conftest.err conftest.$ac_objext \
19207 conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19210 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19211 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19212 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19214 cat >>confdefs.h <<\_ACEOF
19215 #define HAVE___CMPDI2 1
19222 if test "$llvm_cv_os_type" = "MingW" ; then
19223 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19224 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19225 cat >conftest.$ac_ext <<_ACEOF
19226 #include <windows.h>
19227 #include <imagehlp.h>
19228 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19229 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19231 rm -f conftest.$ac_objext
19232 if { (ac_try="$ac_compile"
19233 case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_compile") 2>conftest.er1
19240 grep -v '^ *+' conftest.er1 >conftest.err
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19246 { (case "(($ac_try" in
19247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248 *) ac_try_echo=$ac_try;;
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251 (eval "$ac_try") 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_try") 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19266 { echo "$as_me:$LINENO: result: yes" >&5
19267 echo "${ECHO_T}yes" >&6; }
19268 llvm_cv_win32_elmcb_pcstr="PCSTR"
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19275 { echo "$as_me:$LINENO: result: no" >&5
19276 echo "${ECHO_T}no" >&6; }
19277 llvm_cv_win32_elmcb_pcstr="PSTR"
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 cat >>confdefs.h <<_ACEOF
19284 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19290 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19291 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19292 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 ac_cpp='$CXXCPP $CPPFLAGS'
19297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19301 cat >conftest.$ac_ext <<_ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_compile") 2>conftest.er1
19325 grep -v '^ *+' conftest.er1 >conftest.err
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
19330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19331 { (case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_try") 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
19341 { (case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_try") 2>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; }; then
19350 ac_cv_func_isnan_in_math_h=yes
19352 echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19355 ac_cv_func_isnan_in_math_h=no
19358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19360 ac_cpp='$CPP $CPPFLAGS'
19361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19366 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19367 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19370 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19372 cat >>confdefs.h <<\_ACEOF
19373 #define HAVE_ISNAN_IN_MATH_H 1
19378 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19379 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19380 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19384 ac_cpp='$CXXCPP $CPPFLAGS'
19385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19404 rm -f conftest.$ac_objext
19405 if { (ac_try="$ac_compile"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_compile") 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19419 { (case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_try") 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; } &&
19428 { ac_try='test -s conftest.$ac_objext'
19429 { (case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_try") 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_func_isnan_in_cmath=yes
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 ac_cv_func_isnan_in_cmath=no
19446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19448 ac_cpp='$CPP $CPPFLAGS'
19449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19454 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19455 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19457 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19459 cat >>confdefs.h <<\_ACEOF
19460 #define HAVE_ISNAN_IN_CMATH 1
19465 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19466 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19467 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 ac_cpp='$CXXCPP $CPPFLAGS'
19472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19476 cat >conftest.$ac_ext <<_ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19486 float f; std::isnan(f);
19491 rm -f conftest.$ac_objext
19492 if { (ac_try="$ac_compile"
19493 case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_compile") 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest.$ac_objext'
19516 { (case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_try") 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_func_std_isnan_in_cmath=yes
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_func_std_isnan_in_cmath=no
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535 ac_cpp='$CPP $CPPFLAGS'
19536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19541 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19542 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19544 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19546 cat >>confdefs.h <<\_ACEOF
19547 #define HAVE_STD_ISNAN_IN_CMATH 1
19553 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19554 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19555 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
19559 ac_cpp='$CXXCPP $CPPFLAGS'
19560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19564 cat >conftest.$ac_ext <<_ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19579 rm -f conftest.$ac_objext
19580 if { (ac_try="$ac_compile"
19581 case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_compile") 2>conftest.er1
19588 grep -v '^ *+' conftest.er1 >conftest.err
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
19593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_try") 2>&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_cv_func_isinf_in_math_h=yes
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 ac_cv_func_isinf_in_math_h=no
19621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19623 ac_cpp='$CPP $CPPFLAGS'
19624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19629 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19630 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19632 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE_ISINF_IN_MATH_H 1
19640 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19641 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19642 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 ac_cpp='$CXXCPP $CPPFLAGS'
19647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19651 cat >conftest.$ac_ext <<_ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19666 rm -f conftest.$ac_objext
19667 if { (ac_try="$ac_compile"
19668 case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_compile") 2>conftest.er1
19675 grep -v '^ *+' conftest.er1 >conftest.err
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
19680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19681 { (case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_try") 2>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest.$ac_objext'
19691 { (case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_try") 2>&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
19700 ac_cv_func_isinf_in_cmath=yes
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 ac_cv_func_isinf_in_cmath=no
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 ac_cpp='$CPP $CPPFLAGS'
19711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19716 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19717 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19719 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19721 cat >>confdefs.h <<\_ACEOF
19722 #define HAVE_ISINF_IN_CMATH 1
19727 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19728 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19729 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 ac_cpp='$CXXCPP $CPPFLAGS'
19734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19738 cat >conftest.$ac_ext <<_ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h. */
19748 float f; std::isinf(f)}
19753 rm -f conftest.$ac_objext
19754 if { (ac_try="$ac_compile"
19755 case "(($ac_try" in
19756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757 *) ac_try_echo=$ac_try;;
19759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19760 (eval "$ac_compile") 2>conftest.er1
19762 grep -v '^ *+' conftest.er1 >conftest.err
19764 cat conftest.err >&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19768 { (case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_try") 2>&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest.$ac_objext'
19778 { (case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_try") 2>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19787 ac_cv_func_std_isinf_in_cmath=yes
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_cv_func_std_isinf_in_cmath=no
19795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 ac_cpp='$CPP $CPPFLAGS'
19798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19803 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19804 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19806 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19808 cat >>confdefs.h <<\_ACEOF
19809 #define HAVE_STD_ISINF_IN_CMATH 1
19814 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19815 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19816 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 ac_cpp='$CXXCPP $CPPFLAGS'
19821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19825 cat >conftest.$ac_ext <<_ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 #include <ieeefp.h>
19835 float f; finite(f);
19840 rm -f conftest.$ac_objext
19841 if { (ac_try="$ac_compile"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847 (eval "$ac_compile") 2>conftest.er1
19849 grep -v '^ *+' conftest.er1 >conftest.err
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
19854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19855 { (case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_try") 2>&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; } &&
19864 { ac_try='test -s conftest.$ac_objext'
19865 { (case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_try") 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
19874 ac_cv_func_finite_in_ieeefp_h=yes
19876 echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ac_cv_func_finite_in_ieeefp_h=no
19882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19884 ac_cpp='$CPP $CPPFLAGS'
19885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19890 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19891 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19893 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19895 cat >>confdefs.h <<\_ACEOF
19896 #define HAVE_FINITE_IN_IEEEFP_H 1
19903 if test "$llvm_cv_platform_type" = "Unix" ; then
19906 for ac_header in stdlib.h unistd.h
19908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 ac_res=`eval echo '${'$as_ac_Header'}'`
19916 { echo "$as_me:$LINENO: result: $ac_res" >&5
19917 echo "${ECHO_T}$ac_res" >&6; }
19919 # Is the header compilable?
19920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19922 cat >conftest.$ac_ext <<_ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928 $ac_includes_default
19929 #include <$ac_header>
19931 rm -f conftest.$ac_objext
19932 if { (ac_try="$ac_compile"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_compile") 2>conftest.er1
19940 grep -v '^ *+' conftest.er1 >conftest.err
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } &&
19945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19946 { (case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951 (eval "$ac_try") 2>&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; } &&
19955 { ac_try='test -s conftest.$ac_objext'
19956 { (case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_try") 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; }; then
19965 ac_header_compiler=yes
19967 echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19970 ac_header_compiler=no
19973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19975 echo "${ECHO_T}$ac_header_compiler" >&6; }
19977 # Is the header present?
19978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19980 cat >conftest.$ac_ext <<_ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 #include <$ac_header>
19988 if { (ac_try="$ac_cpp conftest.$ac_ext"
19989 case "(($ac_try" in
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991 *) ac_try_echo=$ac_try;;
19993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19996 grep -v '^ *+' conftest.er1 >conftest.err
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } >/dev/null; then
20001 if test -s conftest.err; then
20002 ac_cpp_err=$ac_c_preproc_warn_flag
20003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20010 if test -z "$ac_cpp_err"; then
20011 ac_header_preproc=yes
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_header_preproc=no
20019 rm -f conftest.err conftest.$ac_ext
20020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20021 echo "${ECHO_T}$ac_header_preproc" >&6; }
20023 # So? What about this header?
20024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20030 ac_header_preproc=yes
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20046 ## ----------------------------------- ##
20047 ## Report this to llvmbugs@cs.uiuc.edu ##
20048 ## ----------------------------------- ##
20050 ) | sed "s/^/$as_me: WARNING: /" >&2
20053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20058 eval "$as_ac_Header=\$ac_header_preproc"
20060 ac_res=`eval echo '${'$as_ac_Header'}'`
20061 { echo "$as_me:$LINENO: result: $ac_res" >&5
20062 echo "${ECHO_T}$ac_res" >&6; }
20065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20066 cat >>confdefs.h <<_ACEOF
20067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20075 for ac_func in getpagesize
20077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20083 cat >conftest.$ac_ext <<_ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20091 #define $ac_func innocuous_$ac_func
20093 /* System header to define __stub macros and hopefully few prototypes,
20094 which can conflict with char $ac_func (); below.
20095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20096 <limits.h> exists even on freestanding compilers. */
20099 # include <limits.h>
20101 # include <assert.h>
20106 /* Override any GCC internal prototype to avoid an error.
20107 Use char because int might match the return type of a GCC
20108 builtin and then its argument prototype would still apply. */
20113 /* The GNU C library defines this for functions which it implements
20114 to always fail with ENOSYS. Some functions are actually named
20115 something starting with __ and the normal name is an alias. */
20116 #if defined __stub_$ac_func || defined __stub___$ac_func
20123 return $ac_func ();
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_link") 2>conftest.er1
20137 grep -v '^ *+' conftest.er1 >conftest.err
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143 { (case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_try") 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest$ac_exeext'
20153 { (case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_try") 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 eval "$as_ac_var=yes"
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 eval "$as_ac_var=no"
20170 rm -f core conftest.err conftest.$ac_objext \
20171 conftest$ac_exeext conftest.$ac_ext
20173 ac_res=`eval echo '${'$as_ac_var'}'`
20174 { echo "$as_me:$LINENO: result: $ac_res" >&5
20175 echo "${ECHO_T}$ac_res" >&6; }
20176 if test `eval echo '${'$as_ac_var'}'` = yes; then
20177 cat >>confdefs.h <<_ACEOF
20178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20184 { echo "$as_me:$LINENO: checking for working mmap" >&5
20185 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20186 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20189 if test "$cross_compiling" = yes; then
20190 ac_cv_func_mmap_fixed_mapped=no
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 $ac_includes_default
20199 /* malloc might have been renamed as rpl_malloc. */
20202 /* Thanks to Mike Haertel and Jim Avera for this test.
20203 Here is a matrix of mmap possibilities:
20204 mmap private not fixed
20205 mmap private fixed at somewhere currently unmapped
20206 mmap private fixed at somewhere already mapped
20207 mmap shared not fixed
20208 mmap shared fixed at somewhere currently unmapped
20209 mmap shared fixed at somewhere already mapped
20210 For private mappings, we should verify that changes cannot be read()
20211 back from the file, nor mmap's back from the file at a different
20212 address. (There have been systems where private was not correctly
20213 implemented like the infamous i386 svr4.0, and systems where the
20214 VM page cache was not coherent with the file system buffer cache
20215 like early versions of FreeBSD and possibly contemporary NetBSD.)
20216 For shared mappings, we should conversely verify that changes get
20217 propagated back to all the places they're supposed to be.
20219 Grep wants private fixed already mapped.
20220 The main things grep needs to know about mmap are:
20221 * does it exist and is it safe to write into the mmap'd area
20222 * how to use it (BSD variants) */
20225 #include <sys/mman.h>
20227 #if !STDC_HEADERS && !HAVE_STDLIB_H
20231 /* This mess was copied from the GNU getpagesize.h. */
20232 #if !HAVE_GETPAGESIZE
20233 /* Assume that all systems that can run configure have sys/param.h. */
20234 # if !HAVE_SYS_PARAM_H
20235 # define HAVE_SYS_PARAM_H 1
20238 # ifdef _SC_PAGESIZE
20239 # define getpagesize() sysconf(_SC_PAGESIZE)
20240 # else /* no _SC_PAGESIZE */
20241 # if HAVE_SYS_PARAM_H
20242 # include <sys/param.h>
20243 # ifdef EXEC_PAGESIZE
20244 # define getpagesize() EXEC_PAGESIZE
20245 # else /* no EXEC_PAGESIZE */
20247 # define getpagesize() NBPG * CLSIZE
20250 # endif /* no CLSIZE */
20251 # else /* no NBPG */
20253 # define getpagesize() NBPC
20254 # else /* no NBPC */
20256 # define getpagesize() PAGESIZE
20257 # endif /* PAGESIZE */
20258 # endif /* no NBPC */
20259 # endif /* no NBPG */
20260 # endif /* no EXEC_PAGESIZE */
20261 # else /* no HAVE_SYS_PARAM_H */
20262 # define getpagesize() 8192 /* punt totally */
20263 # endif /* no HAVE_SYS_PARAM_H */
20264 # endif /* no _SC_PAGESIZE */
20266 #endif /* no HAVE_GETPAGESIZE */
20271 char *data, *data2, *data3;
20275 pagesize = getpagesize ();
20277 /* First, make a file with some known garbage in it. */
20278 data = (char *) malloc (pagesize);
20281 for (i = 0; i < pagesize; ++i)
20282 *(data + i) = rand ();
20284 fd = creat ("conftest.mmap", 0600);
20287 if (write (fd, data, pagesize) != pagesize)
20291 /* Next, try to mmap the file at a fixed address which already has
20292 something else allocated at it. If we can, also make sure that
20293 we see the same garbage. */
20294 fd = open ("conftest.mmap", O_RDWR);
20297 data2 = (char *) malloc (2 * pagesize);
20300 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20301 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20302 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20304 for (i = 0; i < pagesize; ++i)
20305 if (*(data + i) != *(data2 + i))
20308 /* Finally, make sure that changes to the mapped area do not
20309 percolate back to the file as seen by read(). (This is a bug on
20310 some variants of i386 svr4.0.) */
20311 for (i = 0; i < pagesize; ++i)
20312 *(data2 + i) = *(data2 + i) + 1;
20313 data3 = (char *) malloc (pagesize);
20316 if (read (fd, data3, pagesize) != pagesize)
20318 for (i = 0; i < pagesize; ++i)
20319 if (*(data + i) != *(data3 + i))
20325 rm -f conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20336 { (case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_try") 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_cv_func_mmap_fixed_mapped=yes
20347 echo "$as_me: program exited with status $ac_status" >&5
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ( exit $ac_status )
20352 ac_cv_func_mmap_fixed_mapped=no
20354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20359 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20360 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20361 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20363 cat >>confdefs.h <<\_ACEOF
20364 #define HAVE_MMAP 1
20368 rm -f conftest.mmap
20370 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20371 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20372 if test "${ac_cv_func_mmap_file+set}" = set; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 ac_cpp='$CPP $CPPFLAGS'
20377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20381 if test "$cross_compiling" = yes; then
20382 ac_cv_func_mmap_file=no
20384 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20392 #include <sys/types.h>
20393 #include <sys/mman.h>
20401 fd = creat ("foo",0777);
20402 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20404 return (fd != (int) MAP_FAILED);
20409 rm -f conftest$ac_exeext
20410 if { (ac_try="$ac_link"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_link") 2>&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20420 { (case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_try") 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_cv_func_mmap_file=yes
20431 echo "$as_me: program exited with status $ac_status" >&5
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ( exit $ac_status )
20436 ac_cv_func_mmap_file=no
20438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20443 ac_cpp='$CPP $CPPFLAGS'
20444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20450 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20451 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20452 if test "$ac_cv_func_mmap_file" = yes; then
20454 cat >>confdefs.h <<\_ACEOF
20455 #define HAVE_MMAP_FILE
20462 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20463 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20464 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 if test "$llvm_cv_os_type" = "Interix" ; then
20468 ac_cv_need_dev_zero_for_mmap=yes
20470 ac_cv_need_dev_zero_for_mmap=no
20474 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20475 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20476 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20478 cat >>confdefs.h <<\_ACEOF
20479 #define NEED_DEV_ZERO_FOR_MMAP 1
20484 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20486 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20487 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20489 if test "$ac_cv_func_mmap_file" = "no"
20491 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20492 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20496 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20497 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20499 ac_cpp='$CXXCPP $CPPFLAGS'
20500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20511 volatile unsigned long val = 1;
20512 __sync_synchronize();
20513 __sync_val_compare_and_swap(&val, 1, 0);
20514 __sync_add_and_fetch(&val, 1);
20515 __sync_sub_and_fetch(&val, 1);
20520 rm -f conftest.$ac_objext conftest$ac_exeext
20521 if { (ac_try="$ac_link"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_link") 2>conftest.er1
20529 grep -v '^ *+' conftest.er1 >conftest.err
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } &&
20534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest$ac_exeext'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20555 ac_cpp='$CPP $CPPFLAGS'
20556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20560 { echo "$as_me:$LINENO: result: yes" >&5
20561 echo "${ECHO_T}yes" >&6; }
20563 cat >>confdefs.h <<\_ACEOF
20564 #define LLVM_HAS_ATOMICS 1
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20571 { echo "$as_me:$LINENO: result: no" >&5
20572 echo "${ECHO_T}no" >&6; }
20574 cat >>confdefs.h <<\_ACEOF
20575 #define LLVM_HAS_ATOMICS 0
20578 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20579 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20582 rm -f core conftest.err conftest.$ac_objext \
20583 conftest$ac_exeext conftest.$ac_ext
20586 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20587 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20588 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20589 if test "${llvm_cv_linux_mixed+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20593 ac_cpp='$CPP $CPPFLAGS'
20594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20598 cat >conftest.$ac_ext <<_ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20605 error: Not x86-64 even if uname says so!
20616 rm -f conftest.$ac_objext
20617 if { (ac_try="$ac_compile"
20618 case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_compile") 2>conftest.er1
20625 grep -v '^ *+' conftest.er1 >conftest.err
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } &&
20630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20631 { (case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_try") 2>&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; } &&
20640 { ac_try='test -s conftest.$ac_objext'
20641 { (case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_try") 2>&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20650 llvm_cv_linux_mixed=no
20652 echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 llvm_cv_linux_mixed=yes
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 ac_cpp='$CPP $CPPFLAGS'
20661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20667 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20668 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20670 if test "$llvm_cv_linux_mixed" = "yes"; then
20671 llvm_cv_target_arch="x86"
20677 for ac_func in __dso_handle
20679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
20685 cat >conftest.$ac_ext <<_ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20693 #define $ac_func innocuous_$ac_func
20695 /* System header to define __stub macros and hopefully few prototypes,
20696 which can conflict with char $ac_func (); below.
20697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20698 <limits.h> exists even on freestanding compilers. */
20701 # include <limits.h>
20703 # include <assert.h>
20708 /* Override any GCC internal prototype to avoid an error.
20709 Use char because int might match the return type of a GCC
20710 builtin and then its argument prototype would still apply. */
20715 /* The GNU C library defines this for functions which it implements
20716 to always fail with ENOSYS. Some functions are actually named
20717 something starting with __ and the normal name is an alias. */
20718 #if defined __stub_$ac_func || defined __stub___$ac_func
20725 return $ac_func ();
20730 rm -f conftest.$ac_objext conftest$ac_exeext
20731 if { (ac_try="$ac_link"
20732 case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_link") 2>conftest.er1
20739 grep -v '^ *+' conftest.er1 >conftest.err
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20745 { (case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_try") 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest$ac_exeext'
20755 { (case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_try") 2>&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20764 eval "$as_ac_var=yes"
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20769 eval "$as_ac_var=no"
20772 rm -f core conftest.err conftest.$ac_objext \
20773 conftest$ac_exeext conftest.$ac_ext
20775 ac_res=`eval echo '${'$as_ac_var'}'`
20776 { echo "$as_me:$LINENO: result: $ac_res" >&5
20777 echo "${ECHO_T}$ac_res" >&6; }
20778 if test `eval echo '${'$as_ac_var'}'` = yes; then
20779 cat >>confdefs.h <<_ACEOF
20780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20787 SHLIBEXT=$libltdl_cv_shlibext
20790 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20793 # Translate the various configuration directories and other basic
20794 # information into substitutions that will end up in Makefile.config.in
20795 # that these configured values can be used by the makefiles
20796 if test "${prefix}" = "NONE" ; then
20797 prefix="/usr/local"
20799 eval LLVM_PREFIX="${prefix}";
20800 eval LLVM_BINDIR="${prefix}/bin";
20801 eval LLVM_LIBDIR="${prefix}/lib";
20802 eval LLVM_DATADIR="${prefix}/share/llvm";
20803 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20804 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20805 eval LLVM_INCLUDEDIR="${prefix}/include";
20806 eval LLVM_INFODIR="${prefix}/info";
20807 eval LLVM_MANDIR="${prefix}/man";
20808 LLVM_CONFIGTIME=`date`
20820 # Place the various directores into the config.h file as #defines so that we
20821 # can know about the installation paths within LLVM.
20823 cat >>confdefs.h <<_ACEOF
20824 #define LLVM_PREFIX "$LLVM_PREFIX"
20828 cat >>confdefs.h <<_ACEOF
20829 #define LLVM_BINDIR "$LLVM_BINDIR"
20833 cat >>confdefs.h <<_ACEOF
20834 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20838 cat >>confdefs.h <<_ACEOF
20839 #define LLVM_DATADIR "$LLVM_DATADIR"
20843 cat >>confdefs.h <<_ACEOF
20844 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20848 cat >>confdefs.h <<_ACEOF
20849 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20853 cat >>confdefs.h <<_ACEOF
20854 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20858 cat >>confdefs.h <<_ACEOF
20859 #define LLVM_INFODIR "$LLVM_INFODIR"
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_MANDIR "$LLVM_MANDIR"
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_HOSTTRIPLE "$host"
20878 # Determine which bindings to build.
20879 if test "$BINDINGS_TO_BUILD" = auto ; then
20880 BINDINGS_TO_BUILD=""
20881 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20882 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20885 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20888 # This isn't really configurey, but it avoids having to repeat the list in
20893 # Do any work necessary to ensure that bindings have what they need.
20894 binding_prereqs_failed=0
20895 for a_binding in $BINDINGS_TO_BUILD ; do
20896 case "$a_binding" in
20898 if test "x$OCAMLC" = x ; then
20899 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20900 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20901 binding_prereqs_failed=1
20903 if test "x$OCAMLDEP" = x ; then
20904 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20905 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20906 binding_prereqs_failed=1
20908 if test "x$OCAMLOPT" = x ; then
20909 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20910 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20912 if test "x$with_ocaml_libdir" != xauto ; then
20913 OCAML_LIBDIR=$with_ocaml_libdir
20916 ocaml_stdlib="`"$OCAMLC" -where`"
20917 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20919 # ocaml stdlib is beneath our prefix; use stdlib
20920 OCAML_LIBDIR=$ocaml_stdlib
20923 # ocaml stdlib is outside our prefix; use libdir/ocaml
20924 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20931 if test "$binding_prereqs_failed" = 1 ; then
20932 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20933 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20934 { (exit 1); exit 1; }; }
20937 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20938 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20939 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948 oldcxxflags="$CXXFLAGS"
20949 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20965 rm -f conftest.$ac_objext
20966 if { (ac_try="$ac_compile"
20967 case "(($ac_try" in
20968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969 *) ac_try_echo=$ac_try;;
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972 (eval "$ac_compile") 2>conftest.er1
20974 grep -v '^ *+' conftest.er1 >conftest.err
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
20979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20980 { (case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_try") 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest.$ac_objext'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
20999 llvm_cv_cxx_visibility_inlines_hidden=yes
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 llvm_cv_cxx_visibility_inlines_hidden=no
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 CXXFLAGS="$oldcxxflags"
21010 ac_cpp='$CPP $CPPFLAGS'
21011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21017 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21018 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21019 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21020 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21023 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21028 if test "$llvm_cv_link_use_r" = "yes" ; then
21035 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21036 RDYNAMIC="-Wl,-export-dynamic"
21043 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21050 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21052 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21054 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21056 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21058 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21061 ac_config_files="$ac_config_files Makefile.config"
21063 ac_config_files="$ac_config_files llvm.spec"
21066 ac_config_files="$ac_config_files docs/doxygen.cfg"
21068 if test -f ${srcdir}/tools/clang/README.txt; then
21069 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21073 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21075 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21077 ac_config_commands="$ac_config_commands setup"
21079 ac_config_commands="$ac_config_commands Makefile"
21082 ac_config_commands="$ac_config_commands Makefile.common"
21085 ac_config_commands="$ac_config_commands examples/Makefile"
21088 ac_config_commands="$ac_config_commands lib/Makefile"
21091 ac_config_commands="$ac_config_commands runtime/Makefile"
21094 ac_config_commands="$ac_config_commands test/Makefile"
21097 ac_config_commands="$ac_config_commands test/Makefile.tests"
21100 ac_config_commands="$ac_config_commands unittests/Makefile"
21103 ac_config_commands="$ac_config_commands tools/Makefile"
21106 ac_config_commands="$ac_config_commands utils/Makefile"
21109 ac_config_commands="$ac_config_commands projects/Makefile"
21112 ac_config_commands="$ac_config_commands bindings/Makefile"
21115 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21119 cat >confcache <<\_ACEOF
21120 # This file is a shell script that caches the results of configure
21121 # tests run on this system so they can be shared between configure
21122 # scripts and configure runs, see configure's option --config-cache.
21123 # It is not useful on other systems. If it contains results you don't
21124 # want to keep, you may remove or edit it.
21126 # config.status only pays attention to the cache file if you give it
21127 # the --recheck option to rerun configure.
21129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21131 # following values.
21135 # The following way of writing the cache mishandles newlines in values,
21136 # but we know of no workaround that is simple, portable, and efficient.
21137 # So, we kill variables containing newlines.
21138 # Ultrix sh set writes to stderr and can't be redirected directly,
21139 # and sets the high bit in the cache file unless we assign to the vars.
21141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21142 eval ac_val=\$$ac_var
21146 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21147 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21150 _ | IFS | as_nl) ;; #(
21151 *) $as_unset $ac_var ;;
21157 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21158 *${as_nl}ac_space=\ *)
21159 # `set' does not quote correctly, so add quotes (double-quote
21160 # substitution turns \\\\ into \\, and sed turns \\ into \).
21163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21166 # `set' quotes correctly as required by POSIX, so do not add quotes.
21167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21180 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21181 if test -w "$cache_file"; then
21182 test "x$cache_file" != "x/dev/null" &&
21183 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21184 echo "$as_me: updating cache $cache_file" >&6;}
21185 cat confcache >$cache_file
21187 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21188 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21194 # Let make expand exec_prefix.
21195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21197 DEFS=-DHAVE_CONFIG_H
21201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21202 # 1. Remove the extension, and $U if already installed.
21203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21204 ac_i=`echo "$ac_i" | sed "$ac_script"`
21205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21206 # will be set to the directory where LIBOBJS objects are built.
21207 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21208 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21210 LIBOBJS=$ac_libobjs
21212 LTLIBOBJS=$ac_ltlibobjs
21215 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21216 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21217 Usually this means the macro was only invoked conditionally." >&5
21218 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21219 Usually this means the macro was only invoked conditionally." >&2;}
21220 { (exit 1); exit 1; }; }
21222 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21223 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21224 Usually this means the macro was only invoked conditionally." >&5
21225 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21226 Usually this means the macro was only invoked conditionally." >&2;}
21227 { (exit 1); exit 1; }; }
21230 : ${CONFIG_STATUS=./config.status}
21231 ac_clean_files_save=$ac_clean_files
21232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21233 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21234 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21235 cat >$CONFIG_STATUS <<_ACEOF
21237 # Generated by $as_me.
21238 # Run this file to recreate the current configuration.
21239 # Compiler output produced by configure, useful for debugging
21240 # configure, is in config.log if it exists.
21243 ac_cs_recheck=false
21245 SHELL=\${CONFIG_SHELL-$SHELL}
21248 cat >>$CONFIG_STATUS <<\_ACEOF
21249 ## --------------------- ##
21250 ## M4sh Initialization. ##
21251 ## --------------------- ##
21253 # Be Bourne compatible
21254 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21257 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21258 # is contrary to our usage. Disable this feature.
21259 alias -g '${1+"$@"}'='"$@"'
21260 setopt NO_GLOB_SUBST
21262 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21264 BIN_SH=xpg4; export BIN_SH # for Tru64
21265 DUALCASE=1; export DUALCASE # for MKS sh
21269 # Avoid depending upon Character Ranges.
21270 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21271 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21272 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21273 as_cr_digits='0123456789'
21274 as_cr_alnum=$as_cr_Letters$as_cr_digits
21276 # The user is always right.
21277 if test "${PATH_SEPARATOR+set}" != set; then
21278 echo "#! /bin/sh" >conf$$.sh
21279 echo "exit 0" >>conf$$.sh
21281 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21289 # Support unset when possible.
21290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21298 # We need space, tab and new line, in precisely that order. Quoting is
21299 # there to prevent editors from complaining about space-tab.
21300 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21301 # splitting by setting IFS to empty value.)
21306 # Find who we are. Look in the path if we contain no directory separator.
21308 *[\\/]* ) as_myself=$0 ;;
21309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21310 for as_dir in $PATH
21313 test -z "$as_dir" && as_dir=.
21314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21320 # We did not find ourselves, most probably we were run as `sh COMMAND'
21321 # in which case we are not to be found in the path.
21322 if test "x$as_myself" = x; then
21325 if test ! -f "$as_myself"; then
21326 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21327 { (exit 1); exit 1; }
21330 # Work around bugs in pre-3.0 UWIN ksh.
21331 for as_var in ENV MAIL MAILPATH
21332 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21340 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21341 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21342 LC_TELEPHONE LC_TIME
21344 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21345 eval $as_var=C; export $as_var
21347 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21351 # Required to use basename.
21352 if expr a : '\(a\)' >/dev/null 2>&1 &&
21353 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21359 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21360 as_basename=basename
21366 # Name of the executable.
21367 as_me=`$as_basename -- "$0" ||
21368 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21369 X"$0" : 'X\(//\)$' \| \
21370 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21372 sed '/^.*\/\([^/][^/]*\)\/*$/{
21391 as_lineno_1=$LINENO
21392 as_lineno_2=$LINENO
21393 test "x$as_lineno_1" != "x$as_lineno_2" &&
21394 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21396 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21397 # uniformly replaced by the line number. The first 'sed' inserts a
21398 # line-number line after each line using $LINENO; the second 'sed'
21399 # does the real work. The second script uses 'N' to pair each
21400 # line-number line with the line containing $LINENO, and appends
21401 # trailing '-' during substitution so that $LINENO is not a special
21402 # case at line end.
21403 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21404 # scripts with optimization help from Paolo Bonzini. Blame Lee
21405 # E. McMahon (1931-1989) for sed's syntax. :-)
21417 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21420 ' >$as_me.lineno &&
21421 chmod +x "$as_me.lineno" ||
21422 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21423 { (exit 1); exit 1; }; }
21425 # Don't try to exec as it changes $[0], causing all sort of problems
21426 # (the dirname of $[0] is not the place where we might find the
21427 # original and so on. Autoconf is especially sensitive to this).
21428 . "./$as_me.lineno"
21429 # Exit status is that of the last command.
21434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21440 ECHO_C= ECHO_N= ECHO_T=
21441 case `echo -n x` in
21443 case `echo 'x\c'` in
21444 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21451 if expr a : '\(a\)' >/dev/null 2>&1 &&
21452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21458 rm -f conf$$ conf$$.exe conf$$.file
21459 if test -d conf$$.dir; then
21460 rm -f conf$$.dir/conf$$.file
21466 if ln -s conf$$.file conf$$ 2>/dev/null; then
21468 # ... but there are two gotchas:
21469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21471 # In both cases, we have to default to `cp -p'.
21472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21474 elif ln conf$$.file conf$$ 2>/dev/null; then
21479 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21480 rmdir conf$$.dir 2>/dev/null
21482 if mkdir -p . 2>/dev/null; then
21485 test -d ./-p && rmdir ./-p
21489 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21490 # systems may use methods other than mode bits to determine executability.
21491 cat >conf$$.file <<_ASEOF
21495 chmod +x conf$$.file
21496 if test -x conf$$.file >/dev/null 2>&1; then
21497 as_executable_p="test -x"
21503 # Sed expression to map a string onto a valid CPP name.
21504 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21506 # Sed expression to map a string onto a valid variable name.
21507 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21512 # Save the log message, to keep $[0] and so on meaningful, and to
21513 # report actual input values of CONFIG_FILES etc. instead of their
21514 # values after options handling.
21516 This file was extended by llvm $as_me 3.1svn, which was
21517 generated by GNU Autoconf 2.60. Invocation command line was
21519 CONFIG_FILES = $CONFIG_FILES
21520 CONFIG_HEADERS = $CONFIG_HEADERS
21521 CONFIG_LINKS = $CONFIG_LINKS
21522 CONFIG_COMMANDS = $CONFIG_COMMANDS
21525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21530 cat >>$CONFIG_STATUS <<_ACEOF
21531 # Files that config.status was made for.
21532 config_files="$ac_config_files"
21533 config_headers="$ac_config_headers"
21534 config_commands="$ac_config_commands"
21538 cat >>$CONFIG_STATUS <<\_ACEOF
21540 \`$as_me' instantiates files from templates according to the
21541 current configuration.
21543 Usage: $0 [OPTIONS] [FILE]...
21545 -h, --help print this help, then exit
21546 -V, --version print version number, then exit
21547 -q, --quiet do not print progress messages
21548 -d, --debug don't remove temporary files
21549 --recheck update $as_me by reconfiguring in the same conditions
21550 --file=FILE[:TEMPLATE]
21551 instantiate the configuration file FILE
21552 --header=FILE[:TEMPLATE]
21553 instantiate the configuration header FILE
21555 Configuration files:
21558 Configuration headers:
21561 Configuration commands:
21564 Report bugs to <bug-autoconf@gnu.org>."
21567 cat >>$CONFIG_STATUS <<_ACEOF
21569 llvm config.status 3.1svn
21570 configured by $0, generated by GNU Autoconf 2.60,
21571 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21573 Copyright (C) 2006 Free Software Foundation, Inc.
21574 This config.status script is free software; the Free Software Foundation
21575 gives unlimited permission to copy, distribute and modify it."
21582 cat >>$CONFIG_STATUS <<\_ACEOF
21583 # If no file are specified by the user, then we need to provide default
21584 # value. By we need to know if files were specified by the user.
21590 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21591 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21602 # Handling of the options.
21603 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21605 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21606 echo "$ac_cs_version"; exit ;;
21607 --debug | --debu | --deb | --de | --d | -d )
21609 --file | --fil | --fi | --f )
21611 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21612 ac_need_defaults=false;;
21613 --header | --heade | --head | --hea )
21615 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21616 ac_need_defaults=false;;
21618 # Conflict between --help and --header
21619 { echo "$as_me: error: ambiguous option: $1
21620 Try \`$0 --help' for more information." >&2
21621 { (exit 1); exit 1; }; };;
21622 --help | --hel | -h )
21623 echo "$ac_cs_usage"; exit ;;
21624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21625 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21628 # This is an error.
21629 -*) { echo "$as_me: error: unrecognized option: $1
21630 Try \`$0 --help' for more information." >&2
21631 { (exit 1); exit 1; }; } ;;
21633 *) ac_config_targets="$ac_config_targets $1"
21634 ac_need_defaults=false ;;
21640 ac_configure_extra_args=
21642 if $ac_cs_silent; then
21644 ac_configure_extra_args="$ac_configure_extra_args --silent"
21648 cat >>$CONFIG_STATUS <<_ACEOF
21649 if \$ac_cs_recheck; then
21650 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21651 CONFIG_SHELL=$SHELL
21652 export CONFIG_SHELL
21653 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21657 cat >>$CONFIG_STATUS <<\_ACEOF
21661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21662 ## Running $as_me. ##
21668 cat >>$CONFIG_STATUS <<_ACEOF
21672 llvm_src="${srcdir}"
21676 cat >>$CONFIG_STATUS <<\_ACEOF
21678 # Handling of arguments.
21679 for ac_config_target in $ac_config_targets
21681 case $ac_config_target in
21682 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21683 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21684 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21685 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21686 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21687 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21688 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21689 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21690 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21691 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21692 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21693 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21694 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21695 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21696 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21697 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21698 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21699 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21700 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21701 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21702 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21703 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21704 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21705 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21706 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21707 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21709 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21710 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21711 { (exit 1); exit 1; }; };;
21716 # If the user did not use the arguments to specify the items to instantiate,
21717 # then the envvar interface is used. Set only those that are not.
21718 # We use the long form for the default assignment because of an extremely
21719 # bizarre bug on SunOS 4.1.3.
21720 if $ac_need_defaults; then
21721 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21722 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21723 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21726 # Have a temporary directory for convenience. Make it in the build tree
21727 # simply because there is no reason against having it here, and in addition,
21728 # creating and moving files from /tmp can sometimes cause problems.
21729 # Hook for its removal unless debugging.
21730 # Note that there is a small window in which the directory will not be cleaned:
21731 # after its creation but before its name has been assigned to `$tmp'.
21735 trap 'exit_status=$?
21736 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21738 trap '{ (exit 1); exit 1; }' 1 2 13 15
21740 # Create a (secure) tmp directory for tmp files.
21743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21744 test -n "$tmp" && test -d "$tmp"
21747 tmp=./conf$$-$RANDOM
21748 (umask 077 && mkdir "$tmp")
21751 echo "$me: cannot create a temporary directory in ." >&2
21752 { (exit 1); exit 1; }
21756 # Set up the sed scripts for CONFIG_FILES section.
21759 # No need to generate the scripts if there are no CONFIG_FILES.
21760 # This happens for instance when ./config.status config.h
21761 if test -n "$CONFIG_FILES"; then
21768 for ac_last_try in false false false false false :; do
21769 cat >conf$$subs.sed <<_ACEOF
21770 SHELL!$SHELL$ac_delim
21771 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21772 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21773 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21774 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21775 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21776 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21777 exec_prefix!$exec_prefix$ac_delim
21778 prefix!$prefix$ac_delim
21779 program_transform_name!$program_transform_name$ac_delim
21780 bindir!$bindir$ac_delim
21781 sbindir!$sbindir$ac_delim
21782 libexecdir!$libexecdir$ac_delim
21783 datarootdir!$datarootdir$ac_delim
21784 datadir!$datadir$ac_delim
21785 sysconfdir!$sysconfdir$ac_delim
21786 sharedstatedir!$sharedstatedir$ac_delim
21787 localstatedir!$localstatedir$ac_delim
21788 includedir!$includedir$ac_delim
21789 oldincludedir!$oldincludedir$ac_delim
21790 docdir!$docdir$ac_delim
21791 infodir!$infodir$ac_delim
21792 htmldir!$htmldir$ac_delim
21793 dvidir!$dvidir$ac_delim
21794 pdfdir!$pdfdir$ac_delim
21795 psdir!$psdir$ac_delim
21796 libdir!$libdir$ac_delim
21797 localedir!$localedir$ac_delim
21798 mandir!$mandir$ac_delim
21799 DEFS!$DEFS$ac_delim
21800 ECHO_C!$ECHO_C$ac_delim
21801 ECHO_N!$ECHO_N$ac_delim
21802 ECHO_T!$ECHO_T$ac_delim
21803 LIBS!$LIBS$ac_delim
21804 build_alias!$build_alias$ac_delim
21805 host_alias!$host_alias$ac_delim
21806 target_alias!$target_alias$ac_delim
21807 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21809 CFLAGS!$CFLAGS$ac_delim
21810 LDFLAGS!$LDFLAGS$ac_delim
21811 CPPFLAGS!$CPPFLAGS$ac_delim
21812 ac_ct_CC!$ac_ct_CC$ac_delim
21813 EXEEXT!$EXEEXT$ac_delim
21814 OBJEXT!$OBJEXT$ac_delim
21816 CXXFLAGS!$CXXFLAGS$ac_delim
21817 ac_ct_CXX!$ac_ct_CXX$ac_delim
21819 subdirs!$subdirs$ac_delim
21820 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21821 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21822 build!$build$ac_delim
21823 build_cpu!$build_cpu$ac_delim
21824 build_vendor!$build_vendor$ac_delim
21825 build_os!$build_os$ac_delim
21826 host!$host$ac_delim
21827 host_cpu!$host_cpu$ac_delim
21828 host_vendor!$host_vendor$ac_delim
21829 host_os!$host_os$ac_delim
21830 target!$target$ac_delim
21831 target_cpu!$target_cpu$ac_delim
21832 target_vendor!$target_vendor$ac_delim
21833 target_os!$target_os$ac_delim
21835 HOST_OS!$HOST_OS$ac_delim
21836 TARGET_OS!$TARGET_OS$ac_delim
21837 LINKALL!$LINKALL$ac_delim
21838 NOLINKALL!$NOLINKALL$ac_delim
21839 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21840 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21841 ARCH!$ARCH$ac_delim
21842 ENDIAN!$ENDIAN$ac_delim
21843 GREP!$GREP$ac_delim
21844 EGREP!$EGREP$ac_delim
21845 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21846 BUILD_CC!$BUILD_CC$ac_delim
21847 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21848 BUILD_CXX!$BUILD_CXX$ac_delim
21849 CVSBUILD!$CVSBUILD$ac_delim
21850 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21851 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21852 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21853 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21854 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21855 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21856 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21858 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21859 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21860 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21861 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21862 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21863 ENABLE_PIC!$ENABLE_PIC$ac_delim
21864 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21865 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21866 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21869 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21871 elif $ac_last_try; then
21872 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21873 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21874 { (exit 1); exit 1; }; }
21876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21880 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21881 if test -n "$ac_eof"; then
21882 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21883 ac_eof=`expr $ac_eof + 1`
21886 cat >>$CONFIG_STATUS <<_ACEOF
21887 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21891 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21892 s/^/s,@/; s/!/@,|#_!!_#|/
21895 s/'"$ac_delim"'$/,g/; t
21897 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21898 ' >>$CONFIG_STATUS <conf$$subs.sed
21899 rm -f conf$$subs.sed
21900 cat >>$CONFIG_STATUS <<_ACEOF
21906 for ac_last_try in false false false false false :; do
21907 cat >conf$$subs.sed <<_ACEOF
21908 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21909 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21910 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21911 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21912 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21913 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21914 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21915 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21916 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21917 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21918 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21920 ifGNUmake!$ifGNUmake$ac_delim
21921 LN_S!$LN_S$ac_delim
21924 DATE!$DATE$ac_delim
21925 FIND!$FIND$ac_delim
21926 MKDIR!$MKDIR$ac_delim
21928 RANLIB!$RANLIB$ac_delim
21933 BINPWD!$BINPWD$ac_delim
21934 GRAPHVIZ!$GRAPHVIZ$ac_delim
21937 NEATO!$NEATO$ac_delim
21938 TWOPI!$TWOPI$ac_delim
21939 CIRCO!$CIRCO$ac_delim
21941 DOTTY!$DOTTY$ac_delim
21942 XDOT_PY!$XDOT_PY$ac_delim
21943 PERL!$PERL$ac_delim
21944 HAVE_PERL!$HAVE_PERL$ac_delim
21945 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21946 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21947 INSTALL_DATA!$INSTALL_DATA$ac_delim
21948 BZIP2!$BZIP2$ac_delim
21950 DOXYGEN!$DOXYGEN$ac_delim
21951 GROFF!$GROFF$ac_delim
21952 GZIPBIN!$GZIPBIN$ac_delim
21953 POD2HTML!$POD2HTML$ac_delim
21954 POD2MAN!$POD2MAN$ac_delim
21955 PDFROFF!$PDFROFF$ac_delim
21956 RUNTEST!$RUNTEST$ac_delim
21957 TCLSH!$TCLSH$ac_delim
21959 OCAMLC!$OCAMLC$ac_delim
21960 OCAMLOPT!$OCAMLOPT$ac_delim
21961 OCAMLDEP!$OCAMLDEP$ac_delim
21962 OCAMLDOC!$OCAMLDOC$ac_delim
21964 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21965 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21966 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21967 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21968 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21969 LIBADD_DL!$LIBADD_DL$ac_delim
21970 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21971 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21972 USE_UDIS86!$USE_UDIS86$ac_delim
21973 USE_OPROFILE!$USE_OPROFILE$ac_delim
21974 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21975 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21976 MMAP_FILE!$MMAP_FILE$ac_delim
21977 SHLIBEXT!$SHLIBEXT$ac_delim
21978 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21979 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21980 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21981 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21982 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21983 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21984 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21985 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21986 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21987 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21988 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21989 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21990 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21991 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21992 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21993 RPATH!$RPATH$ac_delim
21994 RDYNAMIC!$RDYNAMIC$ac_delim
21995 LIBOBJS!$LIBOBJS$ac_delim
21996 LTLIBOBJS!$LTLIBOBJS$ac_delim
21999 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22001 elif $ac_last_try; then
22002 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22003 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22004 { (exit 1); exit 1; }; }
22006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22010 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22011 if test -n "$ac_eof"; then
22012 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22013 ac_eof=`expr $ac_eof + 1`
22016 cat >>$CONFIG_STATUS <<_ACEOF
22017 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22021 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22022 s/^/s,@/; s/!/@,|#_!!_#|/
22025 s/'"$ac_delim"'$/,g/; t
22027 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22028 ' >>$CONFIG_STATUS <conf$$subs.sed
22029 rm -f conf$$subs.sed
22030 cat >>$CONFIG_STATUS <<_ACEOF
22037 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22038 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22039 # trailing colons and then remove the whole line if VPATH becomes empty
22040 # (actually we leave an empty line to preserve line numbers).
22041 if test "x$srcdir" = x.; then
22042 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22043 s/:*\$(srcdir):*/:/
22044 s/:*\${srcdir}:*/:/
22046 s/^\([^=]*=[ ]*\):*/\1/
22052 cat >>$CONFIG_STATUS <<\_ACEOF
22053 fi # test -n "$CONFIG_FILES"
22056 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22059 :[FHLC]) ac_mode=$ac_tag; continue;;
22061 case $ac_mode$ac_tag in
22063 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22064 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22065 { (exit 1); exit 1; }; };;
22066 :[FH]-) ac_tag=-:-;;
22067 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22084 -) ac_f="$tmp/stdin";;
22085 *) # Look for the file first in the build tree, then in the source tree
22086 # (if the path is not absolute). The absolute path cannot be DOS-style,
22087 # because $ac_f cannot contain `:'.
22091 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22093 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22094 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22095 { (exit 1); exit 1; }; };;
22097 ac_file_inputs="$ac_file_inputs $ac_f"
22100 # Let's still pretend it is `configure' which instantiates (i.e., don't
22101 # use $as_me), people would be surprised to read:
22102 # /* config.h. Generated by config.status. */
22103 configure_input="Generated from "`IFS=:
22104 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22105 if test x"$ac_file" != x-; then
22106 configure_input="$ac_file. $configure_input"
22107 { echo "$as_me:$LINENO: creating $ac_file" >&5
22108 echo "$as_me: creating $ac_file" >&6;}
22112 *:-:* | *:-) cat >"$tmp/stdin";;
22117 ac_dir=`$as_dirname -- "$ac_file" ||
22118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22119 X"$ac_file" : 'X\(//\)[^/]' \| \
22120 X"$ac_file" : 'X\(//\)$' \| \
22121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22127 /^X\(\/\/\)[^/].*/{
22142 -*) as_dir=./$as_dir;;
22144 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22148 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22149 *) as_qdir=$as_dir;;
22151 as_dirs="'$as_qdir' $as_dirs"
22152 as_dir=`$as_dirname -- "$as_dir" ||
22153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22154 X"$as_dir" : 'X\(//\)[^/]' \| \
22155 X"$as_dir" : 'X\(//\)$' \| \
22156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22162 /^X\(\/\/\)[^/].*/{
22175 test -d "$as_dir" && break
22177 test -z "$as_dirs" || eval "mkdir $as_dirs"
22178 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22179 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22180 { (exit 1); exit 1; }; }; }
22184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22186 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22187 # A ".." for each directory in $ac_dir_suffix.
22188 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22189 case $ac_top_builddir_sub in
22190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22194 ac_abs_top_builddir=$ac_pwd
22195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22196 # for backward compatibility:
22197 ac_top_builddir=$ac_top_build_prefix
22200 .) # We are building in place.
22202 ac_top_srcdir=$ac_top_builddir_sub
22203 ac_abs_top_srcdir=$ac_pwd ;;
22204 [\\/]* | ?:[\\/]* ) # Absolute name.
22205 ac_srcdir=$srcdir$ac_dir_suffix;
22206 ac_top_srcdir=$srcdir
22207 ac_abs_top_srcdir=$srcdir ;;
22208 *) # Relative name.
22209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22210 ac_top_srcdir=$ac_top_build_prefix$srcdir
22211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22223 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22224 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22228 cat >>$CONFIG_STATUS <<\_ACEOF
22229 # If the template does not know about datarootdir, expand it.
22230 # FIXME: This hack should be removed a few years after 2.60.
22231 ac_datarootdir_hack=; ac_datarootdir_seen=
22233 case `sed -n '/datarootdir/ {
22242 ' $ac_file_inputs` in
22243 *datarootdir*) ac_datarootdir_seen=yes;;
22244 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22245 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22246 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22248 cat >>$CONFIG_STATUS <<_ACEOF
22249 ac_datarootdir_hack='
22250 s&@datadir@&$datadir&g
22251 s&@docdir@&$docdir&g
22252 s&@infodir@&$infodir&g
22253 s&@localedir@&$localedir&g
22254 s&@mandir@&$mandir&g
22255 s&\\\${datarootdir}&$datarootdir&g' ;;
22259 # Neutralize VPATH when `$srcdir' = `.'.
22260 # Shell code in configure.ac might set extrasub.
22261 # FIXME: do we really want to maintain this feature?
22262 cat >>$CONFIG_STATUS <<_ACEOF
22266 cat >>$CONFIG_STATUS <<\_ACEOF
22268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22269 s&@configure_input@&$configure_input&;t t
22270 s&@top_builddir@&$ac_top_builddir_sub&;t t
22271 s&@srcdir@&$ac_srcdir&;t t
22272 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22273 s&@top_srcdir@&$ac_top_srcdir&;t t
22274 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22275 s&@builddir@&$ac_builddir&;t t
22276 s&@abs_builddir@&$ac_abs_builddir&;t t
22277 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22278 s&@INSTALL@&$ac_INSTALL&;t t
22279 $ac_datarootdir_hack
22280 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22283 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22285 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22286 which seems to be undefined. Please make sure it is defined." >&5
22287 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22288 which seems to be undefined. Please make sure it is defined." >&2;}
22292 -) cat "$tmp/out"; rm -f "$tmp/out";;
22293 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22302 # Transform confdefs.h into a sed script `conftest.defines', that
22303 # substitutes the proper values into config.h.in to produce config.h.
22304 rm -f conftest.defines conftest.tail
22305 # First, append a space to every undef/define line, to ease matching.
22306 echo 's/$/ /' >conftest.defines
22307 # Then, protect against being on the right side of a sed subst, or in
22308 # an unquoted here document, in config.status. If some macros were
22309 # called several times there might be several #defines for the same
22310 # symbol, which is useless. But do not sort them, since the last
22311 # AC_DEFINE must be honored.
22312 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22313 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22314 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22315 # PARAMS is the parameter list in the macro definition--in most cases, it's
22316 # just an empty string.
22317 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22318 ac_dB='\\)[ (].*,\\1define\\2'
22326 s/^[ ]*#[ ]*define[ ][ ]*//
22331 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22332 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22333 ' >>conftest.defines
22335 # Remove the space that was appended to ease matching.
22336 # Then replace #undef with comments. This is necessary, for
22337 # example, in the case of _POSIX_SOURCE, which is predefined and required
22338 # on some systems where configure will not decide to define it.
22339 # (The regexp can be short, since the line contains either #define or #undef.)
22341 s,^[ #]*u.*,/* & */,' >>conftest.defines
22343 # Break up conftest.defines:
22344 ac_max_sed_lines=50
22346 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22347 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22348 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22350 ac_in='$ac_file_inputs'
22351 ac_out='"$tmp/out1"'
22352 ac_nxt='"$tmp/out2"'
22356 # Write a here document:
22357 cat >>$CONFIG_STATUS <<_ACEOF
22358 # First, check the format of the line:
22359 cat >"\$tmp/defines.sed" <<\\CEOF
22360 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22361 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22365 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22367 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22368 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22369 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22370 grep . conftest.tail >/dev/null || break
22371 rm -f conftest.defines
22372 mv conftest.tail conftest.defines
22374 rm -f conftest.defines conftest.tail
22376 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22377 cat >>$CONFIG_STATUS <<\_ACEOF
22378 if test x"$ac_file" != x-; then
22379 echo "/* $configure_input */" >"$tmp/config.h"
22380 cat "$ac_result" >>"$tmp/config.h"
22381 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22382 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22383 echo "$as_me: $ac_file is unchanged" >&6;}
22386 mv "$tmp/config.h" $ac_file
22389 echo "/* $configure_input */"
22395 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22396 echo "$as_me: executing $ac_file commands" >&6;}
22401 case $ac_file$ac_mode in
22402 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22403 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22404 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22405 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22406 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22407 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22408 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22409 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22410 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22411 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22412 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22414 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22416 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22418 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22420 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22422 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22424 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22426 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22427 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22433 { (exit 0); exit 0; }
22435 chmod +x $CONFIG_STATUS
22436 ac_clean_files=$ac_clean_files_save
22439 # configure is writing to config.log, and then calls config.status.
22440 # config.status does its own redirection, appending to config.log.
22441 # Unfortunately, on DOS this fails, as config.log is still kept open
22442 # by configure, so config.status won't be able to write to it; its
22443 # output is simply discarded. So we exec the FD to /dev/null,
22444 # effectively closing config.log, so it can be properly (re)opened and
22445 # appended to by config.status. When coming back to configure, we
22446 # need to make the FD available again.
22447 if test "$no_create" != yes; then
22449 ac_config_status_args=
22450 test "$silent" = yes &&
22451 ac_config_status_args="$ac_config_status_args --quiet"
22453 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22455 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22456 # would make configure fail if this is the last instruction.
22457 $ac_cs_success || { (exit 1); exit 1; }
22461 # CONFIG_SUBDIRS section.
22463 if test "$no_recursion" != yes; then
22465 # Remove --cache-file and --srcdir arguments so they do not pile up.
22466 ac_sub_configure_args=
22468 eval "set x $ac_configure_args"
22472 if test -n "$ac_prev"; then
22477 -cache-file | --cache-file | --cache-fil | --cache-fi \
22478 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22479 ac_prev=cache_file ;;
22480 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22481 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22484 --config-cache | -C)
22486 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22488 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22490 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22492 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22496 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22498 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22502 # Always prepend --prefix to ensure using the same prefix
22503 # in subdir configurations.
22504 ac_arg="--prefix=$prefix"
22506 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22508 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22511 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22513 # Do not complain, so a configure script can configure whichever
22514 # parts of a large source tree are present.
22515 test -d "$srcdir/$ac_dir" || continue
22517 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22518 echo "$as_me:$LINENO: $ac_msg" >&5
22522 -*) as_dir=./$as_dir;;
22524 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22528 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22529 *) as_qdir=$as_dir;;
22531 as_dirs="'$as_qdir' $as_dirs"
22532 as_dir=`$as_dirname -- "$as_dir" ||
22533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22534 X"$as_dir" : 'X\(//\)[^/]' \| \
22535 X"$as_dir" : 'X\(//\)$' \| \
22536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22542 /^X\(\/\/\)[^/].*/{
22555 test -d "$as_dir" && break
22557 test -z "$as_dirs" || eval "mkdir $as_dirs"
22558 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22559 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22560 { (exit 1); exit 1; }; }; }
22564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22566 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22567 # A ".." for each directory in $ac_dir_suffix.
22568 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22569 case $ac_top_builddir_sub in
22570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22574 ac_abs_top_builddir=$ac_pwd
22575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22576 # for backward compatibility:
22577 ac_top_builddir=$ac_top_build_prefix
22580 .) # We are building in place.
22582 ac_top_srcdir=$ac_top_builddir_sub
22583 ac_abs_top_srcdir=$ac_pwd ;;
22584 [\\/]* | ?:[\\/]* ) # Absolute name.
22585 ac_srcdir=$srcdir$ac_dir_suffix;
22586 ac_top_srcdir=$srcdir
22587 ac_abs_top_srcdir=$srcdir ;;
22588 *) # Relative name.
22589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22590 ac_top_srcdir=$ac_top_build_prefix$srcdir
22591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22598 # Check for guested configure; otherwise get Cygnus style configure.
22599 if test -f "$ac_srcdir/configure.gnu"; then
22600 ac_sub_configure=$ac_srcdir/configure.gnu
22601 elif test -f "$ac_srcdir/configure"; then
22602 ac_sub_configure=$ac_srcdir/configure
22603 elif test -f "$ac_srcdir/configure.in"; then
22604 # This should be Cygnus configure.
22605 ac_sub_configure=$ac_aux_dir/configure
22607 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22608 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22612 # The recursion is here.
22613 if test -n "$ac_sub_configure"; then
22614 # Make the cache file name correct relative to the subdirectory.
22615 case $cache_file in
22616 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22617 *) # Relative name.
22618 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22621 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22622 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22623 # The eval makes quoting arguments work.
22624 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22625 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22626 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22627 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22628 { (exit 1); exit 1; }; }