2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
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
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
772 NO_MISSING_FIELD_INITIALIZERS
784 LLVMCC_DISABLEOPT_FLAGS
800 ENABLE_VISIBILITY_INLINES_HIDDEN
806 ac_precious_vars='build_alias
817 ac_subdirs_all='projects/llvm-gcc
821 projects/llvm-poolalloc
824 projects/llvm-stacker
832 # Initialize some variables set by options.
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name=s,x,x,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-pic Build LLVM with Position Independent Code (default
1424 --enable-shared Build a shared library and link tools against it
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
1428 --enable-timestamps Enable embedding timestamp information in build
1430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
1439 --enable-libffi Check for the presence of libffi (default is NO)
1440 --enable-ltdl-install install libltdl
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1447 --with-llvmgcc Specify location of llvm-gcc driver (default
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1451 --with-clang Specify location of clang compiler (default is
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1464 --with-c-include-dirs Colon separated list of directories clang will
1466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org/bugs/)
1476 --with-tclinclude directory where tcl headers are
1477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
1479 --with-udis86=<path> Use udis86 external x86 disassembler library
1480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1497 Report bugs to <llvmbugs@cs.uiuc.edu>.
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" || continue
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1525 .) # We are building in place.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1558 llvm configure 3.0svn
1559 generated by GNU Autoconf 2.60
1561 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1562 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1566 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1574 It was created by llvm $as_me 3.0svn, which was
1575 generated by GNU Autoconf 2.60. Invocation command line was
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1600 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1635 ac_must_keep_next=false
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664 -* ) ac_must_keep_next=true ;;
1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log. We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1691 # The following way of writing the cache mishandles newlines in values,
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1728 for ac_var in $ac_subst_vars
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 echo "$ac_var='\''$ac_val'\''"
1738 if test -n "$ac_subst_files"; then
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1745 for ac_var in $ac_subst_files
1747 eval ac_val=\$$ac_var
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 echo "$ac_var='\''$ac_val'\''"
1756 if test -s confdefs.h; then
1766 test "$ac_signal" != 0 &&
1767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774 for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1782 # Predefined preprocessor variables.
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812 set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1830 if test -r "$cache_file"; then
1831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1847 # Check that the precious variables saved in the cache have kept the same
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
1855 case $ac_old_set,$ac_new_set in
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870 echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872 echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 *) ac_arg=$ac_var=$ac_new_val ;;
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1888 if $ac_cache_corrupted; then
1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938 if test -f "$ac_dir/install-sh"; then
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 elif test -f "$ac_dir/install.sh"; then
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 elif test -f "$ac_dir/shtool"; then
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 if test ${srcdir} != "." ; then
1969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982 for ac_prog in clang llvm-gcc gcc
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 { echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6; }
2016 { echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6; }
2021 test -n "$CC" && break
2024 if test -z "$CC"; then
2026 for ac_prog in clang llvm-gcc gcc
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2045 ac_cv_prog_ac_ct_CC="$ac_prog"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6; }
2060 { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2065 test -n "$ac_ct_CC" && break
2068 if test "x$ac_ct_CC" = x; then
2071 case $cross_compiling:$ac_tool_warned in
2073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet. If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&5
2076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2077 whose name does not start with the host triplet. If you think this
2078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2079 ac_tool_warned=yes ;;
2086 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: no acceptable C compiler found in \$PATH
2089 See \`config.log' for more details." >&2;}
2090 { (exit 1); exit 1; }; }
2092 # Provide some information about the compiler.
2093 echo "$as_me:$LINENO: checking for C compiler version" >&5
2094 ac_compiler=`set X $ac_compile; echo $2`
2095 { (ac_try="$ac_compiler --version >&5"
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler --version >&5") 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105 { (ac_try="$ac_compiler -v >&5"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -v >&5") 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (ac_try="$ac_compiler -V >&5"
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121 (eval "$ac_compiler -V >&5") 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2126 cat >conftest.$ac_ext <<_ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2146 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2147 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150 # List of possible output files, starting from the most likely.
2151 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2152 # only as a last resort. b.out is created by i960 compilers.
2153 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2155 # The IRIX 6 linker writes into existing files which may not be
2156 # executable, retaining their permissions. Remove them first so a
2157 # subsequent execution test works.
2159 for ac_file in $ac_files
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2163 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2168 if { (ac_try="$ac_link_default"
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2174 (eval "$ac_link_default") 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; then
2178 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2179 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2180 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2181 # so that the user can short-circuit this test for compilers unknown to
2183 for ac_file in $ac_files
2185 test -f "$ac_file" || continue
2187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2190 # We found the default executable, but exeext='' is most
2194 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 # We set ac_cv_exeext here because the later test for it is not
2199 # safe: cross compilers may not add the suffix if given an `-o'
2200 # argument, so we may need to know it at that point already.
2201 # Even if this section looks crufty: it has the advantage of
2208 test "$ac_cv_exeext" = no && ac_cv_exeext=
2211 echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2214 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: C compiler cannot create executables
2217 See \`config.log' for more details." >&2;}
2218 { (exit 77); exit 77; }; }
2221 ac_exeext=$ac_cv_exeext
2222 { echo "$as_me:$LINENO: result: $ac_file" >&5
2223 echo "${ECHO_T}$ac_file" >&6; }
2225 # Check that the compiler produces executables we can run. If not, either
2226 # the compiler is broken, or we cross compile.
2227 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2228 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2229 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2230 # If not cross compiling, check that we can run a simple program.
2231 if test "$cross_compiling" != yes; then
2232 if { ac_try='./$ac_file'
2233 { (case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_try") 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 if test "$cross_compiling" = maybe; then
2247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check that the compiler produces executables we can run. If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2266 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6; }
2269 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2271 if { (ac_try="$ac_link"
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_link") 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; then
2281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2285 for ac_file in conftest.exe conftest conftest.*; do
2286 test -f "$ac_file" || continue
2288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&2;}
2299 { (exit 1); exit 1; }; }
2302 rm -f conftest$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2306 rm -f conftest.$ac_ext
2307 EXEEXT=$ac_cv_exeext
2309 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2311 if test "${ac_cv_objext+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 cat >conftest.$ac_ext <<_ACEOF
2317 cat confdefs.h >>conftest.$ac_ext
2318 cat >>conftest.$ac_ext <<_ACEOF
2319 /* end confdefs.h. */
2329 rm -f conftest.o conftest.obj
2330 if { (ac_try="$ac_compile"
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336 (eval "$ac_compile") 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
2340 for ac_file in conftest.o conftest.obj conftest.*; do
2341 test -f "$ac_file" || continue;
2343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362 echo "${ECHO_T}$ac_cv_objext" >&6; }
2363 OBJEXT=$ac_cv_objext
2365 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2367 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat >conftest.$ac_ext <<_ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2388 rm -f conftest.$ac_objext
2389 if { (ac_try="$ac_compile"
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compile") 2>conftest.er1
2397 grep -v '^ *+' conftest.er1 >conftest.err
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_try") 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2434 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2436 GCC=`test $ac_compiler_gnu = yes && echo yes`
2437 ac_test_CFLAGS=${CFLAGS+set}
2438 ac_save_CFLAGS=$CFLAGS
2439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_cc_g+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 ac_save_c_werror_flag=$ac_c_werror_flag
2445 ac_c_werror_flag=yes
2448 cat >conftest.$ac_ext <<_ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2463 rm -f conftest.$ac_objext
2464 if { (ac_try="$ac_compile"
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_compile") 2>conftest.er1
2472 grep -v '^ *+' conftest.er1 >conftest.err
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; } &&
2487 { ac_try='test -s conftest.$ac_objext'
2488 { (case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_try") 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2503 cat >conftest.$ac_ext <<_ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h. */
2518 rm -f conftest.$ac_objext
2519 if { (ac_try="$ac_compile"
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_compile") 2>conftest.er1
2527 grep -v '^ *+' conftest.er1 >conftest.err
2529 cat conftest.err >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_try") 2>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 ac_c_werror_flag=$ac_save_c_werror_flag
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; }; then
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 ac_c_werror_flag=$ac_save_c_werror_flag
2625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2627 if test "$ac_test_CFLAGS" = set; then
2628 CFLAGS=$ac_save_CFLAGS
2629 elif test $ac_cv_prog_cc_g = yes; then
2630 if test "$GCC" = yes; then
2636 if test "$GCC" = yes; then
2642 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2643 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_cc_c89+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 ac_cv_prog_cc_c89=no
2649 cat >conftest.$ac_ext <<_ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2657 #include <sys/types.h>
2658 #include <sys/stat.h>
2659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2660 struct buf { int x; };
2661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662 static char *e (p, i)
2668 static char *f (char * (*g) (char **, int), char **p, ...)
2673 s = g (p, va_arg (v,int));
2678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2679 function prototypes and stuff, but not '\xHH' hex character constants.
2680 These don't provoke an error unfortunately, instead are silently treated
2681 as 'x'. The following induces an error, until -std is added to get
2682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2683 array size at least. It's necessary to write '\x00'==0 to get something
2684 that's true only with -std. */
2685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2688 inside strings and character constants. */
2690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2692 int test (int i, double x);
2693 struct s1 {int (*f) (int a);};
2694 struct s2 {int (*f) (double a);};
2695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2709 CC="$ac_save_CC $ac_arg"
2710 rm -f conftest.$ac_objext
2711 if { (ac_try="$ac_compile"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compile") 2>conftest.er1
2719 grep -v '^ *+' conftest.er1 >conftest.err
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_try") 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 ac_cv_prog_cc_c89=$ac_arg
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2752 rm -f core conftest.err conftest.$ac_objext
2753 test "x$ac_cv_prog_cc_c89" != "xno" && break
2755 rm -f conftest.$ac_ext
2760 case "x$ac_cv_prog_cc_c89" in
2762 { echo "$as_me:$LINENO: result: none needed" >&5
2763 echo "${ECHO_T}none needed" >&6; } ;;
2765 { echo "$as_me:$LINENO: result: unsupported" >&5
2766 echo "${ECHO_T}unsupported" >&6; } ;;
2768 CC="$CC $ac_cv_prog_cc_c89"
2769 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 ac_cpp='$CXXCPP $CPPFLAGS'
2782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2785 if test -z "$CXX"; then
2786 if test -n "$CCC"; then
2789 if test -n "$ac_tool_prefix"; then
2790 for ac_prog in clang++ llvm-g++ g++
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_CXX+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 if test -n "$CXX"; then
2800 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test -n "$CXX"; then
2821 { echo "$as_me:$LINENO: result: $CXX" >&5
2822 echo "${ECHO_T}$CXX" >&6; }
2824 { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2829 test -n "$CXX" && break
2832 if test -z "$CXX"; then
2834 for ac_prog in clang++ llvm-g++ g++
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 if test -n "$ac_ct_CXX"; then
2844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_ac_ct_CXX="$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2864 if test -n "$ac_ct_CXX"; then
2865 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2866 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2868 { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2873 test -n "$ac_ct_CXX" && break
2876 if test "x$ac_ct_CXX" = x; then
2879 case $cross_compiling:$ac_tool_warned in
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet. If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet. If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2897 ac_compiler=`set X $ac_compile; echo $2`
2898 { (ac_try="$ac_compiler --version >&5"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler --version >&5") 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908 { (ac_try="$ac_compiler -v >&5"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -v >&5") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918 { (ac_try="$ac_compiler -V >&5"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compiler -V >&5") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2961 grep -v '^ *+' conftest.er1 >conftest.err
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2998 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3000 GXX=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CXXFLAGS=${CXXFLAGS+set}
3002 ac_save_CXXFLAGS=$CXXFLAGS
3003 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3004 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cxx_g+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3009 ac_cxx_werror_flag=yes
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_prog_cxx_g=yes
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 ac_cv_prog_cxx_g=yes
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3191 if test "$ac_test_CXXFLAGS" = set; then
3192 CXXFLAGS=$ac_save_CXXFLAGS
3193 elif test $ac_cv_prog_cxx_g = yes; then
3194 if test "$GXX" = yes; then
3200 if test "$GXX" = yes; then
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3218 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3219 # On Suns, sometimes $CPP names a directory.
3220 if test -n "$CPP" && test -d "$CPP"; then
3223 if test -z "$CPP"; then
3224 if test "${ac_cv_prog_CPP+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 # Double quotes because CPP needs to be expanded
3228 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3231 for ac_c_preproc_warn_flag in '' yes
3233 # Use a header file that comes with gcc, so configuring glibc
3234 # with a fresh cross-compiler works.
3235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236 # <limits.h> exists even on freestanding compilers.
3237 # On the NeXT, cc -E runs the code through the compiler's parser,
3238 # not just through cpp. "Syntax error" is here to catch this case.
3239 cat >conftest.$ac_ext <<_ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3246 # include <limits.h>
3248 # include <assert.h>
3252 if { (ac_try="$ac_cpp conftest.$ac_ext"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3260 grep -v '^ *+' conftest.er1 >conftest.err
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } >/dev/null; then
3265 if test -s conftest.err; then
3266 ac_cpp_err=$ac_c_preproc_warn_flag
3267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3274 if test -z "$ac_cpp_err"; then
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 # Broken: fails on valid input.
3284 rm -f conftest.err conftest.$ac_ext
3286 # OK, works on sane cases. Now check whether nonexistent headers
3287 # can be detected and how.
3288 cat >conftest.$ac_ext <<_ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294 #include <ac_nonexistent.h>
3296 if { (ac_try="$ac_cpp conftest.$ac_ext"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3304 grep -v '^ *+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } >/dev/null; then
3309 if test -s conftest.err; then
3310 ac_cpp_err=$ac_c_preproc_warn_flag
3311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3318 if test -z "$ac_cpp_err"; then
3319 # Broken: success on invalid input.
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 # Passes both tests.
3330 rm -f conftest.err conftest.$ac_ext
3333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334 rm -f conftest.err conftest.$ac_ext
3335 if $ac_preproc_ok; then
3347 { echo "$as_me:$LINENO: result: $CPP" >&5
3348 echo "${ECHO_T}$CPP" >&6; }
3350 for ac_c_preproc_warn_flag in '' yes
3352 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser,
3357 # not just through cpp. "Syntax error" is here to catch this case.
3358 cat >conftest.$ac_ext <<_ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3365 # include <limits.h>
3367 # include <assert.h>
3371 if { (ac_try="$ac_cpp conftest.$ac_ext"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3379 grep -v '^ *+' conftest.er1 >conftest.err
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3393 if test -z "$ac_cpp_err"; then
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Broken: fails on valid input.
3403 rm -f conftest.err conftest.$ac_ext
3405 # OK, works on sane cases. Now check whether nonexistent headers
3406 # can be detected and how.
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <ac_nonexistent.h>
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423 grep -v '^ *+' conftest.er1 >conftest.err
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3437 if test -z "$ac_cpp_err"; then
3438 # Broken: success on invalid input.
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 # Passes both tests.
3449 rm -f conftest.err conftest.$ac_ext
3452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453 rm -f conftest.err conftest.$ac_ext
3454 if $ac_preproc_ok; then
3457 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&5
3459 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3460 See \`config.log' for more details." >&2;}
3461 { (exit 1); exit 1; }; }
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 if test -d ${srcdir}/projects/llvm-gcc ; then
3474 subdirs="$subdirs projects/llvm-gcc"
3478 if test -d ${srcdir}/projects/test-suite ; then
3479 subdirs="$subdirs projects/test-suite"
3483 if test -d ${srcdir}/projects/llvm-test ; then
3484 subdirs="$subdirs projects/llvm-test"
3488 if test -d ${srcdir}/projects/poolalloc ; then
3489 subdirs="$subdirs projects/poolalloc"
3493 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3494 subdirs="$subdirs projects/llvm-poolalloc"
3498 for i in `ls ${srcdir}/projects`
3500 if test -d ${srcdir}/projects/${i} ; then
3502 sample) subdirs="$subdirs projects/sample"
3504 privbracket) subdirs="$subdirs projects/privbracket"
3506 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3508 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3510 llvm-java) subdirs="$subdirs projects/llvm-java"
3512 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3514 safecode) subdirs="$subdirs projects/safecode"
3516 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3524 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3525 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3531 # Check whether --enable-polly was given.
3532 if test "${enable_polly+set}" = set; then
3533 enableval=$enable_polly;
3538 case "$enableval" in
3543 default) ENABLE_POLLY=1
3545 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3546 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3547 { (exit 1); exit 1; }; } ;;
3551 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3554 subdirs="$subdirs tools/polly"
3559 # Make sure we can run config.sub.
3560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3561 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3562 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3563 { (exit 1); exit 1; }; }
3565 { echo "$as_me:$LINENO: checking build system type" >&5
3566 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3567 if test "${ac_cv_build+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 ac_build_alias=$build_alias
3571 test "x$ac_build_alias" = x &&
3572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3573 test "x$ac_build_alias" = x &&
3574 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3575 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3576 { (exit 1); exit 1; }; }
3577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3578 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3579 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3580 { (exit 1); exit 1; }; }
3583 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3584 echo "${ECHO_T}$ac_cv_build" >&6; }
3585 case $ac_cv_build in
3587 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3588 echo "$as_me: error: invalid value of canonical build" >&2;}
3589 { (exit 1); exit 1; }; };;
3592 ac_save_IFS=$IFS; IFS='-'
3598 # Remember, the first character of IFS is used to create $*,
3599 # except with old shells:
3602 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3605 { echo "$as_me:$LINENO: checking host system type" >&5
3606 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3607 if test "${ac_cv_host+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 if test "x$host_alias" = x; then
3611 ac_cv_host=$ac_cv_build
3613 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3614 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3615 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3616 { (exit 1); exit 1; }; }
3620 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3621 echo "${ECHO_T}$ac_cv_host" >&6; }
3624 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3625 echo "$as_me: error: invalid value of canonical host" >&2;}
3626 { (exit 1); exit 1; }; };;
3629 ac_save_IFS=$IFS; IFS='-'
3635 # Remember, the first character of IFS is used to create $*,
3636 # except with old shells:
3639 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3642 { echo "$as_me:$LINENO: checking target system type" >&5
3643 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3644 if test "${ac_cv_target+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 if test "x$target_alias" = x; then
3648 ac_cv_target=$ac_cv_host
3650 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3651 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3652 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3653 { (exit 1); exit 1; }; }
3657 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3658 echo "${ECHO_T}$ac_cv_target" >&6; }
3659 case $ac_cv_target in
3661 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3662 echo "$as_me: error: invalid value of canonical target" >&2;}
3663 { (exit 1); exit 1; }; };;
3665 target=$ac_cv_target
3666 ac_save_IFS=$IFS; IFS='-'
3672 # Remember, the first character of IFS is used to create $*,
3673 # except with old shells:
3676 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3679 # The aliases save the names the user supplied, while $host etc.
3680 # will get canonicalized.
3681 test -n "$target_alias" &&
3682 test "$program_prefix$program_suffix$program_transform_name" = \
3684 program_prefix=${target_alias}-
3686 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3687 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3688 if test "${llvm_cv_os_type+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
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="AIX"
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="IRIX"
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="Cygwin"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,-all_load"
3709 llvm_cv_no_link_all_option="-Wl,-noall_load"
3710 llvm_cv_os_type="Darwin"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,-all_load"
3714 llvm_cv_no_link_all_option="-Wl,-noall_load"
3715 llvm_cv_os_type="Minix"
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="FreeBSD"
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="OpenBSD"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="NetBSD"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="DragonFly"
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="HP-UX"
3741 llvm_cv_platform_type="Unix" ;;
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="Interix"
3746 llvm_cv_platform_type="Unix" ;;
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="Linux"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,-z,allextract"
3754 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3755 llvm_cv_os_type="SunOS"
3756 llvm_cv_platform_type="Unix" ;;
3758 llvm_cv_link_all_option="-Wl,-z,allextract"
3759 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3760 llvm_cv_os_type="AuroraUX"
3761 llvm_cv_platform_type="Unix" ;;
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Win32"
3766 llvm_cv_platform_type="Win32" ;;
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="MingW"
3771 llvm_cv_platform_type="Win32" ;;
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Haiku"
3776 llvm_cv_platform_type="Unix" ;;
3778 llvm_cv_link_all_option="-Wl,--whole-archive"
3779 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780 llvm_cv_os_type="Freestanding"
3781 llvm_cv_platform_type="Unix" ;;
3783 llvm_cv_link_all_option="-Wl,--whole-archive"
3784 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3785 llvm_cv_os_type="Freestanding"
3786 llvm_cv_platform_type="Unix" ;;
3788 llvm_cv_link_all_option=""
3789 llvm_cv_no_link_all_option=""
3790 llvm_cv_os_type="Unknown"
3791 llvm_cv_platform_type="Unknown" ;;
3794 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3795 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3797 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3798 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3799 if test "${llvm_cv_target_os_type+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 llvm_cv_target_os_type="AIX" ;;
3806 llvm_cv_target_os_type="IRIX" ;;
3808 llvm_cv_target_os_type="Cygwin" ;;
3810 llvm_cv_target_os_type="Darwin" ;;
3812 llvm_cv_target_os_type="Minix" ;;
3814 llvm_cv_target_os_type="FreeBSD" ;;
3816 llvm_cv_target_os_type="OpenBSD" ;;
3818 llvm_cv_target_os_type="NetBSD" ;;
3820 llvm_cv_target_os_type="DragonFly" ;;
3822 llvm_cv_target_os_type="HP-UX" ;;
3824 llvm_cv_target_os_type="Interix" ;;
3826 llvm_cv_target_os_type="Linux" ;;
3828 llvm_cv_target_os_type="SunOS" ;;
3830 llvm_cv_target_os_type="AuroraUX" ;;
3832 llvm_cv_target_os_type="Win32" ;;
3834 llvm_cv_target_os_type="MingW" ;;
3836 llvm_cv_target_os_type="Haiku" ;;
3838 llvm_cv_target_os_type="RTEMS" ;;
3840 llvm_cv_target_os_type="NativeClient" ;;
3842 llvm_cv_target_os_type="Freestanding" ;;
3844 llvm_cv_target_os_type="Unknown" ;;
3847 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3848 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3850 if test "$llvm_cv_os_type" = "Unknown" ; then
3851 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3852 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3853 { (exit 1); exit 1; }; }
3858 HOST_OS=$llvm_cv_os_type
3860 TARGET_OS=$llvm_cv_target_os_type
3863 LINKALL=$llvm_cv_link_all_option
3865 NOLINKALL=$llvm_cv_no_link_all_option
3868 case $llvm_cv_platform_type in
3871 cat >>confdefs.h <<\_ACEOF
3872 #define LLVM_ON_UNIX 1
3882 cat >>confdefs.h <<\_ACEOF
3883 #define LLVM_ON_WIN32 1
3893 { echo "$as_me:$LINENO: checking target architecture" >&5
3894 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3895 if test "${llvm_cv_target_arch+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 i?86-*) llvm_cv_target_arch="x86" ;;
3900 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3901 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3902 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3903 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3904 arm*-*) llvm_cv_target_arch="ARM" ;;
3905 mips-*) llvm_cv_target_arch="Mips" ;;
3906 xcore-*) llvm_cv_target_arch="XCore" ;;
3907 msp430-*) llvm_cv_target_arch="MSP430" ;;
3908 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3909 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3910 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3911 ptx-*) llvm_cv_target_arch="PTX" ;;
3912 *) llvm_cv_target_arch="Unknown" ;;
3915 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3918 if test "$llvm_cv_target_arch" = "Unknown" ; then
3919 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3923 # Determine the LLVM native architecture for the target
3924 case "$llvm_cv_target_arch" in
3925 x86) LLVM_NATIVE_ARCH="X86" ;;
3926 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3927 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3930 ARCH=$llvm_cv_target_arch
3935 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3936 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3937 if test "${ac_cv_path_GREP+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 # Extract the first word of "grep ggrep" to use in msg output
3941 if test -z "$GREP"; then
3942 set dummy grep ggrep; ac_prog_name=$2
3943 if test "${ac_cv_path_GREP+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 ac_path_GREP_found=false
3947 # Loop through the user's path and test for each of PROGNAME-LIST
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3952 test -z "$as_dir" && as_dir=.
3953 for ac_prog in grep ggrep; do
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3956 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3957 # Check for GNU ac_path_GREP and select it if it is found.
3958 # Check for GNU $ac_path_GREP
3959 case `"$ac_path_GREP" --version 2>&1` in
3961 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3964 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3967 cat "conftest.in" "conftest.in" >"conftest.tmp"
3968 mv "conftest.tmp" "conftest.in"
3969 cp "conftest.in" "conftest.nl"
3970 echo 'GREP' >> "conftest.nl"
3971 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3973 ac_count=`expr $ac_count + 1`
3974 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3975 # Best one so far, save it but keep looking for a better one
3976 ac_cv_path_GREP="$ac_path_GREP"
3977 ac_path_GREP_max=$ac_count
3979 # 10*(2^10) chars as input seems more than enough
3980 test $ac_count -gt 10 && break
3982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986 $ac_path_GREP_found && break 3
3996 GREP="$ac_cv_path_GREP"
3997 if test -z "$GREP"; then
3998 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3999 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4000 { (exit 1); exit 1; }; }
4004 ac_cv_path_GREP=$GREP
4009 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4010 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4011 GREP="$ac_cv_path_GREP"
4014 { echo "$as_me:$LINENO: checking for egrep" >&5
4015 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4016 if test "${ac_cv_path_EGREP+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020 then ac_cv_path_EGREP="$GREP -E"
4022 # Extract the first word of "egrep" to use in msg output
4023 if test -z "$EGREP"; then
4024 set dummy egrep; ac_prog_name=$2
4025 if test "${ac_cv_path_EGREP+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_path_EGREP_found=false
4029 # Loop through the user's path and test for each of PROGNAME-LIST
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4034 test -z "$as_dir" && as_dir=.
4035 for ac_prog in egrep; do
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4038 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4039 # Check for GNU ac_path_EGREP and select it if it is found.
4040 # Check for GNU $ac_path_EGREP
4041 case `"$ac_path_EGREP" --version 2>&1` in
4043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4046 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4049 cat "conftest.in" "conftest.in" >"conftest.tmp"
4050 mv "conftest.tmp" "conftest.in"
4051 cp "conftest.in" "conftest.nl"
4052 echo 'EGREP' >> "conftest.nl"
4053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4055 ac_count=`expr $ac_count + 1`
4056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4057 # Best one so far, save it but keep looking for a better one
4058 ac_cv_path_EGREP="$ac_path_EGREP"
4059 ac_path_EGREP_max=$ac_count
4061 # 10*(2^10) chars as input seems more than enough
4062 test $ac_count -gt 10 && break
4064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 $ac_path_EGREP_found && break 3
4078 EGREP="$ac_cv_path_EGREP"
4079 if test -z "$EGREP"; then
4080 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4081 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4082 { (exit 1); exit 1; }; }
4086 ac_cv_path_EGREP=$EGREP
4092 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4093 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4094 EGREP="$ac_cv_path_EGREP"
4097 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4099 if test "${ac_cv_header_stdc+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 cat >conftest.$ac_ext <<_ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4130 grep -v '^ *+' conftest.er1 >conftest.err
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_header_stdc=yes
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 ac_cv_header_stdc=no
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 if test $ac_cv_header_stdc = yes; then
4166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177 $EGREP "memchr" >/dev/null 2>&1; then
4180 ac_cv_header_stdc=no
4186 if test $ac_cv_header_stdc = yes; then
4187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 $EGREP "free" >/dev/null 2>&1; then
4201 ac_cv_header_stdc=no
4207 if test $ac_cv_header_stdc = yes; then
4208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209 if test "$cross_compiling" = yes; then
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4220 #if ((' ' & 0x0FF) == 0x020)
4221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4224 # define ISLOWER(c) \
4225 (('a' <= (c) && (c) <= 'i') \
4226 || ('j' <= (c) && (c) <= 'r') \
4227 || ('s' <= (c) && (c) <= 'z'))
4228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4236 for (i = 0; i < 256; i++)
4237 if (XOR (islower (i), ISLOWER (i))
4238 || toupper (i) != TOUPPER (i))
4243 rm -f conftest$ac_exeext
4244 if { (ac_try="$ac_link"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_link") 2>&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254 { (case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_try") 2>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4265 echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4270 ac_cv_header_stdc=no
4272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4278 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4279 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4280 if test $ac_cv_header_stdc = yes; then
4282 cat >>confdefs.h <<\_ACEOF
4283 #define STDC_HEADERS 1
4288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4299 inttypes.h stdint.h unistd.h
4301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 $ac_includes_default
4315 #include <$ac_header>
4317 rm -f conftest.$ac_objext
4318 if { (ac_try="$ac_compile"
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_compile") 2>conftest.er1
4326 grep -v '^ *+' conftest.er1 >conftest.err
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest.$ac_objext'
4342 { (case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_try") 2>&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; }; then
4351 eval "$as_ac_Header=yes"
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 eval "$as_ac_Header=no"
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 ac_res=`eval echo '${'$as_ac_Header'}'`
4362 { echo "$as_me:$LINENO: result: $ac_res" >&5
4363 echo "${ECHO_T}$ac_res" >&6; }
4364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4365 cat >>confdefs.h <<_ACEOF
4366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4374 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4375 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4376 if test "${ac_cv_c_bigendian+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 # See if sys/param.h defines the BYTE_ORDER macro.
4380 cat >conftest.$ac_ext <<_ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 #include <sys/types.h>
4387 #include <sys/param.h>
4392 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4400 rm -f conftest.$ac_objext
4401 if { (ac_try="$ac_compile"
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_compile") 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4415 { (case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_try") 2>&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_try") 2>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 # It does; now see whether it defined to BIG_ENDIAN or not.
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 #include <sys/types.h>
4442 #include <sys/param.h>
4447 #if BYTE_ORDER != BIG_ENDIAN
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_compile") 2>conftest.er1
4464 grep -v '^ *+' conftest.er1 >conftest.err
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470 { (case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_try") 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_c_bigendian=yes
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 ac_cv_c_bigendian=no
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 # It does not; compile a test program.
4503 if test "$cross_compiling" = yes; then
4504 # try to guess the endianness by grepping values into an object file
4505 ac_cv_c_bigendian=unknown
4506 cat >conftest.$ac_ext <<_ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4513 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4514 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4515 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4516 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4517 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4521 _ascii (); _ebcdic ();
4526 rm -f conftest.$ac_objext
4527 if { (ac_try="$ac_compile"
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_compile") 2>conftest.er1
4535 grep -v '^ *+' conftest.er1 >conftest.err
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4541 { (case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_try") 2>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
4551 { (case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_try") 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4561 ac_cv_c_bigendian=yes
4563 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4564 if test "$ac_cv_c_bigendian" = unknown; then
4565 ac_cv_c_bigendian=no
4567 # finding both strings is unlikely to happen, but who knows?
4568 ac_cv_c_bigendian=unknown
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 cat >conftest.$ac_ext <<_ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 $ac_includes_default
4591 /* Are we little or big endian? From Harbison&Steele. */
4595 char c[sizeof (long int)];
4598 return u.c[sizeof (long int) - 1] == 1;
4604 rm -f conftest$ac_exeext
4605 if { (ac_try="$ac_link"
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_link") 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_cv_c_bigendian=no
4626 echo "$as_me: program exited with status $ac_status" >&5
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4631 ac_cv_c_bigendian=yes
4633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4642 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4643 case $ac_cv_c_bigendian in
4651 { { echo "$as_me:$LINENO: error: unknown endianness
4652 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4653 echo "$as_me: error: unknown endianness
4654 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4655 { (exit 1); exit 1; }; } ;;
4659 if test "$cross_compiling" = yes; then
4660 LLVM_CROSS_COMPILING=1
4663 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4664 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4665 if test "${ac_cv_build_exeext+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4669 ac_cv_build_exeext=.exe
4671 ac_build_prefix=${build_alias}-
4673 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4674 set dummy ${ac_build_prefix}gcc; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 if test -n "$BUILD_CC"; then
4681 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 BUILD_CC=$ac_cv_prog_BUILD_CC
4701 if test -n "$BUILD_CC"; then
4702 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4703 echo "${ECHO_T}$BUILD_CC" >&6; }
4705 { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4710 if test -z "$BUILD_CC"; then
4711 # Extract the first word of "gcc", so it can be a program name with args.
4712 set dummy gcc; ac_word=$2
4713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 if test -n "$BUILD_CC"; then
4719 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_BUILD_CC="gcc"
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 BUILD_CC=$ac_cv_prog_BUILD_CC
4739 if test -n "$BUILD_CC"; then
4740 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4741 echo "${ECHO_T}$BUILD_CC" >&6; }
4743 { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4748 if test -z "$BUILD_CC"; then
4749 # Extract the first word of "cc", so it can be a program name with args.
4750 set dummy cc; ac_word=$2
4751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4753 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 if test -n "$BUILD_CC"; then
4757 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4768 ac_prog_rejected=yes
4771 ac_cv_prog_BUILD_CC="cc"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 if test $ac_prog_rejected = yes; then
4780 # We found a bogon in the path, so make sure we never use it.
4781 set dummy $ac_cv_prog_BUILD_CC
4783 if test $# != 0; then
4784 # We chose a different compiler from the bogus one.
4785 # However, it has the same basename, so the bogon will be chosen
4786 # first if we set BUILD_CC to just the basename; use the full file name.
4788 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4793 BUILD_CC=$ac_cv_prog_BUILD_CC
4794 if test -n "$BUILD_CC"; then
4795 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4796 echo "${ECHO_T}$BUILD_CC" >&6; }
4798 { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4805 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4806 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4807 { (exit 1); exit 1; }; }
4808 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4810 echo 'int main () { return 0; }' > conftest.$ac_ext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4813 (eval $ac_build_link) 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; then
4817 for file in conftest.*; do
4819 *.c | *.o | *.obj | *.dSYM) ;;
4820 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4824 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4825 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4826 { (exit 1); exit 1; }; }
4829 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4834 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4835 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4836 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4837 ac_build_exeext=$BUILD_EXEEXT
4839 ac_build_prefix=${build_alias}-
4840 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4841 set dummy ${ac_build_prefix}g++; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 if test -n "$BUILD_CXX"; then
4848 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4868 if test -n "$BUILD_CXX"; then
4869 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4870 echo "${ECHO_T}$BUILD_CXX" >&6; }
4872 { echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6; }
4877 if test -z "$BUILD_CXX"; then
4878 # Extract the first word of "g++", so it can be a program name with args.
4879 set dummy g++; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 if test -n "$BUILD_CXX"; then
4886 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_BUILD_CXX="g++"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4906 if test -n "$BUILD_CXX"; then
4907 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4908 echo "${ECHO_T}$BUILD_CXX" >&6; }
4910 { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4915 if test -z "$BUILD_CXX"; then
4916 # Extract the first word of "c++", so it can be a program name with args.
4917 set dummy c++; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 if test -n "$BUILD_CXX"; then
4924 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4935 ac_prog_rejected=yes
4938 ac_cv_prog_BUILD_CXX="c++"
4939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 if test $ac_prog_rejected = yes; then
4947 # We found a bogon in the path, so make sure we never use it.
4948 set dummy $ac_cv_prog_BUILD_CXX
4950 if test $# != 0; then
4951 # We chose a different compiler from the bogus one.
4952 # However, it has the same basename, so the bogon will be chosen
4953 # first if we set BUILD_CXX to just the basename; use the full file name.
4955 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4960 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4961 if test -n "$BUILD_CXX"; then
4962 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4963 echo "${ECHO_T}$BUILD_CXX" >&6; }
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4973 LLVM_CROSS_COMPILING=0
4977 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4988 # Check whether --enable-optimized was given.
4989 if test "${enable_optimized+set}" = set; then
4990 enableval=$enable_optimized;
4995 if test ${enableval} = "no" ; then
4999 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5003 # Check whether --enable-profiling was given.
5004 if test "${enable_profiling+set}" = set; then
5005 enableval=$enable_profiling;
5010 if test ${enableval} = "no" ; then
5014 ENABLE_PROFILING=ENABLE_PROFILING=1
5018 # Check whether --enable-assertions was given.
5019 if test "${enable_assertions+set}" = set; then
5020 enableval=$enable_assertions;
5025 if test ${enableval} = "yes" ; then
5029 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5033 # Check whether --enable-expensive-checks was given.
5034 if test "${enable_expensive_checks+set}" = set; then
5035 enableval=$enable_expensive_checks;
5040 if test ${enableval} = "yes" ; then
5041 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043 EXPENSIVE_CHECKS=yes
5046 ENABLE_EXPENSIVE_CHECKS=
5052 # Check whether --enable-debug-runtime was given.
5053 if test "${enable_debug_runtime+set}" = set; then
5054 enableval=$enable_debug_runtime;
5059 if test ${enableval} = "no" ; then
5063 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5067 # Check whether --enable-debug-symbols was given.
5068 if test "${enable_debug_symbols+set}" = set; then
5069 enableval=$enable_debug_symbols;
5074 if test ${enableval} = "no" ; then
5078 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5082 # Check whether --enable-jit was given.
5083 if test "${enable_jit+set}" = set; then
5084 enableval=$enable_jit;
5089 if test ${enableval} = "no"
5094 case "$llvm_cv_target_arch" in
5095 x86) TARGET_HAS_JIT=1
5097 Sparc) TARGET_HAS_JIT=0
5099 PowerPC) TARGET_HAS_JIT=1
5101 x86_64) TARGET_HAS_JIT=1
5103 Alpha) TARGET_HAS_JIT=0
5105 ARM) TARGET_HAS_JIT=1
5107 Mips) TARGET_HAS_JIT=1
5109 XCore) TARGET_HAS_JIT=0
5111 MSP430) TARGET_HAS_JIT=0
5113 SystemZ) TARGET_HAS_JIT=0
5115 Blackfin) TARGET_HAS_JIT=0
5117 MBlaze) TARGET_HAS_JIT=0
5119 PTX) TARGET_HAS_JIT=0
5126 # Check whether --enable-docs was given.
5127 if test "${enable_docs+set}" = set; then
5128 enableval=$enable_docs;
5133 case "$enableval" in
5138 default) ENABLE_DOCS=1
5140 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5141 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5142 { (exit 1); exit 1; }; } ;;
5145 # Check whether --enable-doxygen was given.
5146 if test "${enable_doxygen+set}" = set; then
5147 enableval=$enable_doxygen;
5152 case "$enableval" in
5153 yes) ENABLE_DOXYGEN=1
5155 no) ENABLE_DOXYGEN=0
5157 default) ENABLE_DOXYGEN=0
5159 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5160 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5161 { (exit 1); exit 1; }; } ;;
5164 # Check whether --enable-threads was given.
5165 if test "${enable_threads+set}" = set; then
5166 enableval=$enable_threads;
5171 case "$enableval" in
5172 yes) ENABLE_THREADS=1
5174 no) ENABLE_THREADS=0
5176 default) ENABLE_THREADS=1
5178 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5183 cat >>confdefs.h <<_ACEOF
5184 #define ENABLE_THREADS $ENABLE_THREADS
5188 # Check whether --enable-pthreads was given.
5189 if test "${enable_pthreads+set}" = set; then
5190 enableval=$enable_pthreads;
5195 case "$enableval" in
5196 yes) ENABLE_PTHREADS=1
5198 no) ENABLE_PTHREADS=0
5200 default) ENABLE_PTHREADS=1
5202 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5207 # Check whether --enable-pic was given.
5208 if test "${enable_pic+set}" = set; then
5209 enableval=$enable_pic;
5214 case "$enableval" in
5219 default) ENABLE_PIC=1
5221 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5222 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5226 cat >>confdefs.h <<_ACEOF
5227 #define ENABLE_PIC $ENABLE_PIC
5231 # Check whether --enable-shared was given.
5232 if test "${enable_shared+set}" = set; then
5233 enableval=$enable_shared;
5238 case "$enableval" in
5239 yes) ENABLE_SHARED=1
5243 default) ENABLE_SHARED=0
5245 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5246 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5247 { (exit 1); exit 1; }; } ;;
5250 # Check whether --enable-embed-stdcxx was given.
5251 if test "${enable_embed_stdcxx+set}" = set; then
5252 enableval=$enable_embed_stdcxx;
5257 case "$enableval" in
5258 yes) ENABLE_EMBED_STDCXX=1
5260 no) ENABLE_EMBED_STDCXX=0
5262 default) ENABLE_EMBED_STDCXX=1
5264 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5265 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5269 # Check whether --enable-timestamps was given.
5270 if test "${enable_timestamps+set}" = set; then
5271 enableval=$enable_timestamps;
5276 case "$enableval" in
5277 yes) ENABLE_TIMESTAMPS=1
5279 no) ENABLE_TIMESTAMPS=0
5281 default) ENABLE_TIMESTAMPS=1
5283 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5284 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5288 cat >>confdefs.h <<_ACEOF
5289 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5294 # Check whether --enable-targets was given.
5295 if test "${enable_targets+set}" = set; then
5296 enableval=$enable_targets;
5301 if test "$enableval" = host-only ; then
5304 case "$enableval" in
5305 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5306 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5308 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5313 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5316 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5319 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5320 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5321 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5322 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5323 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5324 host) case "$llvm_cv_target_arch" in
5325 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5329 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5330 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5331 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5332 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5333 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5334 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5335 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5336 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5337 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5338 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5339 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5340 echo "$as_me: error: Can not set target to build" >&2;}
5341 { (exit 1); exit 1; }; } ;;
5343 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5344 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5345 { (exit 1); exit 1; }; } ;;
5350 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5353 # Determine whether we are building LLVM support for the native architecture.
5354 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5355 for a_target in $TARGETS_TO_BUILD; do
5356 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5362 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5363 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5364 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5365 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5366 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5367 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5370 cat >>confdefs.h <<_ACEOF
5371 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5389 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5399 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5400 # target feature def files.
5401 LLVM_ENUM_TARGETS=""
5402 LLVM_ENUM_ASM_PRINTERS=""
5403 LLVM_ENUM_ASM_PARSERS=""
5404 LLVM_ENUM_DISASSEMBLERS=""
5405 for target_to_build in $TARGETS_TO_BUILD; do
5406 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5407 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5408 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5410 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5411 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5413 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5414 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5422 # Check whether --enable-cbe-printf-a was given.
5423 if test "${enable_cbe_printf_a+set}" = set; then
5424 enableval=$enable_cbe_printf_a;
5429 case "$enableval" in
5430 yes) ENABLE_CBE_PRINTF_A=1
5432 no) ENABLE_CBE_PRINTF_A=0
5434 default) ENABLE_CBE_PRINTF_A=1
5436 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5437 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5438 { (exit 1); exit 1; }; } ;;
5441 cat >>confdefs.h <<_ACEOF
5442 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5447 # Check whether --with-llvmgccdir was given.
5448 if test "${with_llvmgccdir+set}" = set; then
5449 withval=$with_llvmgccdir;
5455 default) WITH_LLVMGCCDIR=default ;;
5456 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5457 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5458 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5459 { (exit 1); exit 1; }; } ;;
5463 # Check whether --with-llvmgcc was given.
5464 if test "${with_llvmgcc+set}" = set; then
5465 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5471 # Check whether --with-llvmgxx was given.
5472 if test "${with_llvmgxx+set}" = set; then
5473 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5478 if test -n "$LLVMGCC"; then
5479 LLVMGCCCOMMAND="$LLVMGCC"
5482 if test -n "$LLVMGXX"; then
5483 LLVMGXXCOMMAND="$LLVMGXX"
5486 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5487 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5488 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5489 { (exit 1); exit 1; }; };
5492 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5493 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5494 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5495 { (exit 1); exit 1; }; };
5499 # Check whether --with-clang was given.
5500 if test "${with_clang+set}" = set; then
5501 withval=$with_clang;
5508 # Check whether --with-built-clang was given.
5509 if test "${with_built_clang+set}" = set; then
5510 withval=$with_built_clang;
5512 with_built_clang=check
5516 { echo "$as_me:$LINENO: checking clang compiler" >&5
5517 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5520 if test "$with_clang" != "default"; then
5521 WITH_CLANGPATH="$with_clang"
5522 if ! test -x "$WITH_CLANGPATH"; then
5523 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5524 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5525 { (exit 1); exit 1; }; }
5527 elif test "$with_built_clang" = "yes"; then
5529 elif test "$with_built_clang" = "no"; then
5532 if test "$with_built_clang" != "check"; then
5533 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5534 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5535 { (exit 1); exit 1; }; }
5538 if test -f ${srcdir}/tools/clang/README.txt; then
5543 if ! test -z "$WITH_CLANGPATH"; then
5544 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5545 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5546 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5547 elif test "$WITH_BUILT_CLANG" = "1"; then
5548 { echo "$as_me:$LINENO: result: built" >&5
5549 echo "${ECHO_T}built" >&6; }
5551 { echo "$as_me:$LINENO: result: none" >&5
5552 echo "${ECHO_T}none" >&6; }
5554 CLANGPATH=$WITH_CLANGPATH
5556 CLANGXXPATH=$WITH_CLANGXXPATH
5558 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5562 # Check whether --with-optimize-option was given.
5563 if test "${with_optimize_option+set}" = set; then
5564 withval=$with_optimize_option;
5569 { echo "$as_me:$LINENO: checking optimization flags" >&5
5570 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5573 case "$llvm_cv_os_type" in
5574 FreeBSD) optimize_option=-O2 ;;
5575 MingW) optimize_option=-O2 ;;
5576 *) optimize_option=-O3 ;;
5578 *) optimize_option="$withval" ;;
5580 OPTIMIZE_OPTION=$optimize_option
5582 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5583 echo "${ECHO_T}$optimize_option" >&6; }
5586 # Check whether --with-extra-options was given.
5587 if test "${with_extra_options+set}" = set; then
5588 withval=$with_extra_options;
5594 default) EXTRA_OPTIONS= ;;
5595 *) EXTRA_OPTIONS=$withval ;;
5597 EXTRA_OPTIONS=$EXTRA_OPTIONS
5601 # Check whether --with-extra-ld-options was given.
5602 if test "${with_extra_ld_options+set}" = set; then
5603 withval=$with_extra_ld_options;
5609 default) EXTRA_LD_OPTIONS= ;;
5610 *) EXTRA_LD_OPTIONS=$withval ;;
5612 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5615 # Check whether --enable-bindings was given.
5616 if test "${enable_bindings+set}" = set; then
5617 enableval=$enable_bindings;
5622 BINDINGS_TO_BUILD=""
5623 case "$enableval" in
5624 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5625 all ) BINDINGS_TO_BUILD="ocaml" ;;
5626 none | no) BINDINGS_TO_BUILD="" ;;
5627 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5628 case "$a_binding" in
5629 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5630 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5631 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5632 { (exit 1); exit 1; }; } ;;
5639 # Check whether --with-ocaml-libdir was given.
5640 if test "${with_ocaml_libdir+set}" = set; then
5641 withval=$with_ocaml_libdir;
5647 auto) with_ocaml_libdir="$withval" ;;
5648 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5649 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5650 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5651 { (exit 1); exit 1; }; } ;;
5655 # Check whether --with-clang-resource-dir was given.
5656 if test "${with_clang_resource_dir+set}" = set; then
5657 withval=$with_clang_resource_dir;
5663 cat >>confdefs.h <<_ACEOF
5664 #define CLANG_RESOURCE_DIR "$withval"
5669 # Check whether --with-c-include-dirs was given.
5670 if test "${with_c_include_dirs+set}" = set; then
5671 withval=$with_c_include_dirs;
5677 cat >>confdefs.h <<_ACEOF
5678 #define C_INCLUDE_DIRS "$withval"
5683 # Check whether --with-cxx-include-root was given.
5684 if test "${with_cxx_include_root+set}" = set; then
5685 withval=$with_cxx_include_root;
5691 cat >>confdefs.h <<_ACEOF
5692 #define CXX_INCLUDE_ROOT "$withval"
5697 # Check whether --with-cxx-include-arch was given.
5698 if test "${with_cxx_include_arch+set}" = set; then
5699 withval=$with_cxx_include_arch;
5705 cat >>confdefs.h <<_ACEOF
5706 #define CXX_INCLUDE_ARCH "$withval"
5711 # Check whether --with-cxx-include-32bit-dir was given.
5712 if test "${with_cxx_include_32bit_dir+set}" = set; then
5713 withval=$with_cxx_include_32bit_dir;
5719 cat >>confdefs.h <<_ACEOF
5720 #define CXX_INCLUDE_32BIT_DIR "$withval"
5725 # Check whether --with-cxx-include-64bit-dir was given.
5726 if test "${with_cxx_include_64bit_dir+set}" = set; then
5727 withval=$with_cxx_include_64bit_dir;
5733 cat >>confdefs.h <<_ACEOF
5734 #define CXX_INCLUDE_64BIT_DIR "$withval"
5739 # Check whether --with-binutils-include was given.
5740 if test "${with_binutils_include+set}" = set; then
5741 withval=$with_binutils_include;
5747 default) WITH_BINUTILS_INCDIR=default ;;
5748 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5749 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5750 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5751 { (exit 1); exit 1; }; } ;;
5753 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5754 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5756 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5757 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5758 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5759 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5760 { (exit 1); exit 1; }; };
5765 # Check whether --with-bug-report-url was given.
5766 if test "${with_bug_report_url+set}" = set; then
5767 withval=$with_bug_report_url;
5769 withval="http://llvm.org/bugs/"
5773 cat >>confdefs.h <<_ACEOF
5774 #define BUG_REPORT_URL "$withval"
5778 # Check whether --enable-libffi was given.
5779 if test "${enable_libffi+set}" = set; then
5780 enableval=$enable_libffi; case "$enableval" in
5781 yes) llvm_cv_enable_libffi="yes" ;;
5782 no) llvm_cv_enable_libffi="no" ;;
5783 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5784 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5785 { (exit 1); exit 1; }; } ;;
5788 llvm_cv_enable_libffi=no
5794 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5795 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5796 if test "${lt_cv_path_NM+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 if test -n "$NM"; then
5800 # Let the user override the test.
5803 lt_nm_to_check="${ac_tool_prefix}nm"
5804 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5805 lt_nm_to_check="$lt_nm_to_check nm"
5807 for lt_tmp_nm in $lt_nm_to_check; do
5808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5809 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5811 test -z "$ac_dir" && ac_dir=.
5812 tmp_nm="$ac_dir/$lt_tmp_nm"
5813 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5814 # Check to see if the nm accepts a BSD-compat flag.
5815 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5816 # nm: unknown option "B" ignored
5817 # Tru64's nm complains that /dev/null is an invalid object file
5818 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5819 */dev/null* | *'Invalid file or object type'*)
5820 lt_cv_path_NM="$tmp_nm -B"
5824 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5826 lt_cv_path_NM="$tmp_nm -p"
5830 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5831 continue # so that we can try to find one that supports BSD flags
5840 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5843 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5844 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5849 { echo "$as_me:$LINENO: checking for GNU make" >&5
5850 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5851 if test "${llvm_cv_gnu_make_command+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 llvm_cv_gnu_make_command=''
5855 for a in "$MAKE" make gmake gnumake ; do
5856 if test -z "$a" ; then continue ; fi ;
5857 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5859 llvm_cv_gnu_make_command=$a ;
5864 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5865 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5866 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5870 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5871 echo "${ECHO_T}\"Not found\"" >&6; };
5875 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5876 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5878 if test "$LN_S" = "ln -s"; then
5879 { echo "$as_me:$LINENO: result: yes" >&5
5880 echo "${ECHO_T}yes" >&6; }
5882 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5883 echo "${ECHO_T}no, using $LN_S" >&6; }
5886 # Extract the first word of "cmp", so it can be a program name with args.
5887 set dummy cmp; ac_word=$2
5888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5890 if test "${ac_cv_path_CMP+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5905 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5918 if test -n "$CMP"; then
5919 { echo "$as_me:$LINENO: result: $CMP" >&5
5920 echo "${ECHO_T}$CMP" >&6; }
5922 { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5927 # Extract the first word of "cp", so it can be a program name with args.
5928 set dummy cp; ac_word=$2
5929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5931 if test "${ac_cv_path_CP+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5959 if test -n "$CP"; then
5960 { echo "$as_me:$LINENO: result: $CP" >&5
5961 echo "${ECHO_T}$CP" >&6; }
5963 { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5968 # Extract the first word of "date", so it can be a program name with args.
5969 set dummy date; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_path_DATE+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5999 DATE=$ac_cv_path_DATE
6000 if test -n "$DATE"; then
6001 { echo "$as_me:$LINENO: result: $DATE" >&5
6002 echo "${ECHO_T}$DATE" >&6; }
6004 { echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6; }
6009 # Extract the first word of "find", so it can be a program name with args.
6010 set dummy find; ac_word=$2
6011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6013 if test "${ac_cv_path_FIND+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6040 FIND=$ac_cv_path_FIND
6041 if test -n "$FIND"; then
6042 { echo "$as_me:$LINENO: result: $FIND" >&5
6043 echo "${ECHO_T}$FIND" >&6; }
6045 { echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6; }
6050 # Extract the first word of "grep", so it can be a program name with args.
6051 set dummy grep; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_path_GREP+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6081 GREP=$ac_cv_path_GREP
6082 if test -n "$GREP"; then
6083 { echo "$as_me:$LINENO: result: $GREP" >&5
6084 echo "${ECHO_T}$GREP" >&6; }
6086 { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6091 # Extract the first word of "mkdir", so it can be a program name with args.
6092 set dummy mkdir; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_path_MKDIR+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6122 MKDIR=$ac_cv_path_MKDIR
6123 if test -n "$MKDIR"; then
6124 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6125 echo "${ECHO_T}$MKDIR" >&6; }
6127 { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6132 # Extract the first word of "mv", so it can be a program name with args.
6133 set dummy mv; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_path_MV+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6164 if test -n "$MV"; then
6165 { echo "$as_me:$LINENO: result: $MV" >&5
6166 echo "${ECHO_T}$MV" >&6; }
6168 { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6173 if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_RANLIB+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 if test -n "$RANLIB"; then
6182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 RANLIB=$ac_cv_prog_RANLIB
6202 if test -n "$RANLIB"; then
6203 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6204 echo "${ECHO_T}$RANLIB" >&6; }
6206 { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6212 if test -z "$ac_cv_prog_RANLIB"; then
6213 ac_ct_RANLIB=$RANLIB
6214 # Extract the first word of "ranlib", so it can be a program name with args.
6215 set dummy ranlib; ac_word=$2
6216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 if test -n "$ac_ct_RANLIB"; then
6222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6231 ac_cv_prog_ac_ct_RANLIB="ranlib"
6232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6242 if test -n "$ac_ct_RANLIB"; then
6243 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6244 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6246 { echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6; }
6250 if test "x$ac_ct_RANLIB" = x; then
6253 case $cross_compiling:$ac_tool_warned in
6255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6256 whose name does not start with the host triplet. If you think this
6257 configuration is useful to you, please write to autoconf@gnu.org." >&5
6258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6259 whose name does not start with the host triplet. If you think this
6260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6261 ac_tool_warned=yes ;;
6263 RANLIB=$ac_ct_RANLIB
6266 RANLIB="$ac_cv_prog_RANLIB"
6269 if test -n "$ac_tool_prefix"; then
6270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6271 set dummy ${ac_tool_prefix}ar; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_prog_AR+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 if test -n "$AR"; then
6278 ac_cv_prog_AR="$AR" # Let the user override the test.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_AR="${ac_tool_prefix}ar"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 if test -n "$AR"; then
6299 { echo "$as_me:$LINENO: result: $AR" >&5
6300 echo "${ECHO_T}$AR" >&6; }
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6308 if test -z "$ac_cv_prog_AR"; then
6310 # Extract the first word of "ar", so it can be a program name with args.
6311 set dummy ar; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 if test -n "$ac_ct_AR"; then
6318 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_ac_ct_AR="ar"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6338 if test -n "$ac_ct_AR"; then
6339 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6340 echo "${ECHO_T}$ac_ct_AR" >&6; }
6342 { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6346 if test "x$ac_ct_AR" = x; then
6349 case $cross_compiling:$ac_tool_warned in
6351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6352 whose name does not start with the host triplet. If you think this
6353 configuration is useful to you, please write to autoconf@gnu.org." >&5
6354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6355 whose name does not start with the host triplet. If you think this
6356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6357 ac_tool_warned=yes ;;
6365 # Extract the first word of "rm", so it can be a program name with args.
6366 set dummy rm; ac_word=$2
6367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369 if test "${ac_cv_path_RM+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6397 if test -n "$RM"; then
6398 { echo "$as_me:$LINENO: result: $RM" >&5
6399 echo "${ECHO_T}$RM" >&6; }
6401 { echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6; }
6406 # Extract the first word of "sed", so it can be a program name with args.
6407 set dummy sed; ac_word=$2
6408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6410 if test "${ac_cv_path_SED+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6425 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6438 if test -n "$SED"; then
6439 { echo "$as_me:$LINENO: result: $SED" >&5
6440 echo "${ECHO_T}$SED" >&6; }
6442 { echo "$as_me:$LINENO: result: no" >&5
6443 echo "${ECHO_T}no" >&6; }
6447 # Extract the first word of "tar", so it can be a program name with args.
6448 set dummy tar; ac_word=$2
6449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451 if test "${ac_cv_path_TAR+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6479 if test -n "$TAR"; then
6480 { echo "$as_me:$LINENO: result: $TAR" >&5
6481 echo "${ECHO_T}$TAR" >&6; }
6483 { echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6; }
6488 # Extract the first word of "pwd", so it can be a program name with args.
6489 set dummy pwd; ac_word=$2
6490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492 if test "${ac_cv_path_BINPWD+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6507 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6519 BINPWD=$ac_cv_path_BINPWD
6520 if test -n "$BINPWD"; then
6521 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6522 echo "${ECHO_T}$BINPWD" >&6; }
6524 { echo "$as_me:$LINENO: result: no" >&5
6525 echo "${ECHO_T}no" >&6; }
6530 # Extract the first word of "Graphviz", so it can be a program name with args.
6531 set dummy Graphviz; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6561 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6562 if test -n "$GRAPHVIZ"; then
6563 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6564 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6566 { echo "$as_me:$LINENO: result: no" >&5
6567 echo "${ECHO_T}no" >&6; }
6571 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6573 cat >>confdefs.h <<\_ACEOF
6574 #define HAVE_GRAPHVIZ 1
6577 if test "$llvm_cv_os_type" = "MingW" ; then
6578 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6581 cat >>confdefs.h <<_ACEOF
6582 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6586 # Extract the first word of "dot", so it can be a program name with args.
6587 set dummy dot; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_path_DOT+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6618 if test -n "$DOT"; then
6619 { echo "$as_me:$LINENO: result: $DOT" >&5
6620 echo "${ECHO_T}$DOT" >&6; }
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6627 if test "$DOT" != "echo dot" ; then
6629 cat >>confdefs.h <<\_ACEOF
6633 if test "$llvm_cv_os_type" = "MingW" ; then
6634 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6637 cat >>confdefs.h <<_ACEOF
6638 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6642 # Extract the first word of "fdp", so it can be a program name with args.
6643 set dummy fdp; ac_word=$2
6644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646 if test "${ac_cv_path_FDP+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6674 if test -n "$FDP"; then
6675 { echo "$as_me:$LINENO: result: $FDP" >&5
6676 echo "${ECHO_T}$FDP" >&6; }
6678 { echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6; }
6683 if test "$FDP" != "echo fdp" ; then
6685 cat >>confdefs.h <<\_ACEOF
6689 if test "$llvm_cv_os_type" = "MingW" ; then
6690 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6693 cat >>confdefs.h <<_ACEOF
6694 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6698 # Extract the first word of "neato", so it can be a program name with args.
6699 set dummy neato; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_path_NEATO+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6729 NEATO=$ac_cv_path_NEATO
6730 if test -n "$NEATO"; then
6731 { echo "$as_me:$LINENO: result: $NEATO" >&5
6732 echo "${ECHO_T}$NEATO" >&6; }
6734 { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6739 if test "$NEATO" != "echo neato" ; then
6741 cat >>confdefs.h <<\_ACEOF
6742 #define HAVE_NEATO 1
6745 if test "$llvm_cv_os_type" = "MingW" ; then
6746 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6749 cat >>confdefs.h <<_ACEOF
6750 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6754 # Extract the first word of "twopi", so it can be a program name with args.
6755 set dummy twopi; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_TWOPI+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6785 TWOPI=$ac_cv_path_TWOPI
6786 if test -n "$TWOPI"; then
6787 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6788 echo "${ECHO_T}$TWOPI" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6795 if test "$TWOPI" != "echo twopi" ; then
6797 cat >>confdefs.h <<\_ACEOF
6798 #define HAVE_TWOPI 1
6801 if test "$llvm_cv_os_type" = "MingW" ; then
6802 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6805 cat >>confdefs.h <<_ACEOF
6806 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6810 # Extract the first word of "circo", so it can be a program name with args.
6811 set dummy circo; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_CIRCO+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6841 CIRCO=$ac_cv_path_CIRCO
6842 if test -n "$CIRCO"; then
6843 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6844 echo "${ECHO_T}$CIRCO" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6851 if test "$CIRCO" != "echo circo" ; then
6853 cat >>confdefs.h <<\_ACEOF
6854 #define HAVE_CIRCO 1
6857 if test "$llvm_cv_os_type" = "MingW" ; then
6858 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6861 cat >>confdefs.h <<_ACEOF
6862 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6866 for ac_prog in gv gsview32
6868 # Extract the first word of "$ac_prog", so it can be a program name with args.
6869 set dummy $ac_prog; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_path_GV+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 if test -n "$GV"; then
6900 { echo "$as_me:$LINENO: result: $GV" >&5
6901 echo "${ECHO_T}$GV" >&6; }
6903 { echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6; }
6908 test -n "$GV" && break
6910 test -n "$GV" || GV="echo gv"
6912 if test "$GV" != "echo gv" ; then
6914 cat >>confdefs.h <<\_ACEOF
6918 if test "$llvm_cv_os_type" = "MingW" ; then
6919 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6922 cat >>confdefs.h <<_ACEOF
6923 #define LLVM_PATH_GV "$GV${EXEEXT}"
6927 # Extract the first word of "dotty", so it can be a program name with args.
6928 set dummy dotty; ac_word=$2
6929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6931 if test "${ac_cv_path_DOTTY+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6958 DOTTY=$ac_cv_path_DOTTY
6959 if test -n "$DOTTY"; then
6960 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6961 echo "${ECHO_T}$DOTTY" >&6; }
6963 { echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6; }
6968 if test "$DOTTY" != "echo dotty" ; then
6970 cat >>confdefs.h <<\_ACEOF
6971 #define HAVE_DOTTY 1
6974 if test "$llvm_cv_os_type" = "MingW" ; then
6975 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6978 cat >>confdefs.h <<_ACEOF
6979 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6983 # Extract the first word of "xdot.py", so it can be a program name with args.
6984 set dummy xdot.py; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7014 XDOT_PY=$ac_cv_path_XDOT_PY
7015 if test -n "$XDOT_PY"; then
7016 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7017 echo "${ECHO_T}$XDOT_PY" >&6; }
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7024 if test "$XDOT_PY" != "echo xdot.py" ; then
7026 cat >>confdefs.h <<\_ACEOF
7027 #define HAVE_XDOT_PY 1
7030 if test "$llvm_cv_os_type" = "MingW" ; then
7031 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7034 cat >>confdefs.h <<_ACEOF
7035 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7041 # Extract the first word of "perl", so it can be a program name with args.
7042 set dummy perl; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_path_PERL+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7072 PERL=$ac_cv_path_PERL
7073 if test -n "$PERL"; then
7074 { echo "$as_me:$LINENO: result: $PERL" >&5
7075 echo "${ECHO_T}$PERL" >&6; }
7077 { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7082 if test "$PERL" != "none"; then
7083 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7084 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7085 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7086 { echo "$as_me:$LINENO: result: yes" >&5
7087 echo "${ECHO_T}yes" >&6; }
7090 { echo "$as_me:$LINENO: result: not found" >&5
7091 echo "${ECHO_T}not found" >&6; }
7096 if test x"$PERL" = xnone; then
7099 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7100 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7101 { (exit 1); exit 1; }; }
7107 # Find a good install program. We prefer a C program (faster),
7108 # so one script is as good as another. But avoid the broken or
7109 # incompatible versions:
7110 # SysV /etc/install, /usr/sbin/install
7111 # SunOS /usr/etc/install
7112 # IRIX /sbin/install
7114 # AmigaOS /C/install, which installs bootblocks on floppy discs
7115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7118 # OS/2's system install, which has a completely different semantic
7119 # ./install, which can be erroneously created by make from ./install.sh.
7120 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7122 if test -z "$INSTALL"; then
7123 if test "${ac_cv_path_install+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 # Account for people who put trailing slashes in PATH elements.
7133 ./ | .// | /cC/* | \
7134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7135 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7138 # OSF1 and SCO ODT 3.0 have their own names for install.
7139 # Don't use installbsd from OSF since it installs stuff as root
7141 for ac_prog in ginstall scoinst install; do
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7144 if test $ac_prog = install &&
7145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7146 # AIX install. It has an incompatible calling convention.
7148 elif test $ac_prog = install &&
7149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7150 # program-specific install script used by HP pwplus--don't use.
7153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7166 if test "${ac_cv_path_install+set}" = set; then
7167 INSTALL=$ac_cv_path_install
7169 # As a last resort, use the slow shell script. Don't cache a
7170 # value for INSTALL within a source directory, because that will
7171 # break other packages using the cache if that directory is
7172 # removed, or if the value is a relative name.
7173 INSTALL=$ac_install_sh
7176 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7177 echo "${ECHO_T}$INSTALL" >&6; }
7179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7180 # It thinks the first close brace ends the variable substitution.
7181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7188 [\\/$]* | ?:[\\/]* ) ;;
7189 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7192 # Extract the first word of "bzip2", so it can be a program name with args.
7193 set dummy bzip2; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_path_BZIP2+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 BZIP2=$ac_cv_path_BZIP2
7223 if test -n "$BZIP2"; then
7224 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7225 echo "${ECHO_T}$BZIP2" >&6; }
7227 { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7232 # Extract the first word of "cat", so it can be a program name with args.
7233 set dummy cat; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_CAT+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 if test -n "$CAT"; then
7264 { echo "$as_me:$LINENO: result: $CAT" >&5
7265 echo "${ECHO_T}$CAT" >&6; }
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7272 # Extract the first word of "doxygen", so it can be a program name with args.
7273 set dummy doxygen; ac_word=$2
7274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7291 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 DOXYGEN=$ac_cv_path_DOXYGEN
7303 if test -n "$DOXYGEN"; then
7304 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7305 echo "${ECHO_T}$DOXYGEN" >&6; }
7307 { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7312 # Extract the first word of "groff", so it can be a program name with args.
7313 set dummy groff; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_GROFF+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 GROFF=$ac_cv_path_GROFF
7343 if test -n "$GROFF"; then
7344 { echo "$as_me:$LINENO: result: $GROFF" >&5
7345 echo "${ECHO_T}$GROFF" >&6; }
7347 { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7352 # Extract the first word of "gzip", so it can be a program name with args.
7353 set dummy gzip; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 GZIPBIN=$ac_cv_path_GZIPBIN
7383 if test -n "$GZIPBIN"; then
7384 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7385 echo "${ECHO_T}$GZIPBIN" >&6; }
7387 { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7392 # Extract the first word of "pod2html", so it can be a program name with args.
7393 set dummy pod2html; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_POD2HTML+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 POD2HTML=$ac_cv_path_POD2HTML
7423 if test -n "$POD2HTML"; then
7424 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7425 echo "${ECHO_T}$POD2HTML" >&6; }
7427 { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7432 # Extract the first word of "pod2man", so it can be a program name with args.
7433 set dummy pod2man; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_POD2MAN+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 POD2MAN=$ac_cv_path_POD2MAN
7463 if test -n "$POD2MAN"; then
7464 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7465 echo "${ECHO_T}$POD2MAN" >&6; }
7467 { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7472 # Extract the first word of "pdfroff", so it can be a program name with args.
7473 set dummy pdfroff; ac_word=$2
7474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7476 if test "${ac_cv_path_PDFROFF+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 PDFROFF=$ac_cv_path_PDFROFF
7503 if test -n "$PDFROFF"; then
7504 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7505 echo "${ECHO_T}$PDFROFF" >&6; }
7507 { echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6; }
7512 # Extract the first word of "runtest", so it can be a program name with args.
7513 set dummy runtest; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_RUNTEST+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 RUNTEST=$ac_cv_path_RUNTEST
7543 if test -n "$RUNTEST"; then
7544 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7545 echo "${ECHO_T}$RUNTEST" >&6; }
7547 { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7554 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7555 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7557 # Check whether --with-tclinclude was given.
7558 if test "${with_tclinclude+set}" = set; then
7559 withval=$with_tclinclude; with_tclinclude=${withval}
7564 if test "${ac_cv_path_tclsh+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 if test x"${with_tclinclude}" != x ; then
7569 if test -f ${with_tclinclude}/tclsh ; then
7570 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7571 elif test -f ${with_tclinclude}/src/tclsh ; then
7572 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7574 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7575 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7576 { (exit 1); exit 1; }; }
7582 if test x"${ac_cv_path_tclsh}" = x ; then
7583 { echo "$as_me:$LINENO: result: none" >&5
7584 echo "${ECHO_T}none" >&6; }
7585 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
7587 # Extract the first word of "$ac_prog", so it can be a program name with args.
7588 set dummy $ac_prog; ac_word=$2
7589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591 if test "${ac_cv_path_TCLSH+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 TCLSH=$ac_cv_path_TCLSH
7618 if test -n "$TCLSH"; then
7619 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7620 echo "${ECHO_T}$TCLSH" >&6; }
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7627 test -n "$TCLSH" && break
7630 if test x"${TCLSH}" = x ; then
7631 ac_cv_path_tclsh='';
7633 ac_cv_path_tclsh="${TCLSH}";
7636 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7637 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7638 TCLSH="${ac_cv_path_tclsh}"
7642 # Extract the first word of "zip", so it can be a program name with args.
7643 set dummy zip; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_ZIP+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 if test -n "$ZIP"; then
7674 { echo "$as_me:$LINENO: result: $ZIP" >&5
7675 echo "${ECHO_T}$ZIP" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7682 for ac_prog in ocamlc
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_OCAMLC+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 ac_cv_path_OCAMLC="$OCAMLC" # 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_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 OCAMLC=$ac_cv_path_OCAMLC
7715 if test -n "$OCAMLC"; then
7716 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7717 echo "${ECHO_T}$OCAMLC" >&6; }
7719 { echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6; }
7724 test -n "$OCAMLC" && break
7727 for ac_prog in ocamlopt
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_OCAMLOPT+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 OCAMLOPT=$ac_cv_path_OCAMLOPT
7760 if test -n "$OCAMLOPT"; then
7761 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7762 echo "${ECHO_T}$OCAMLOPT" >&6; }
7764 { echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6; }
7769 test -n "$OCAMLOPT" && break
7772 for ac_prog in ocamldep
7774 # Extract the first word of "$ac_prog", so it can be a program name with args.
7775 set dummy $ac_prog; ac_word=$2
7776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7778 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7793 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 OCAMLDEP=$ac_cv_path_OCAMLDEP
7805 if test -n "$OCAMLDEP"; then
7806 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7807 echo "${ECHO_T}$OCAMLDEP" >&6; }
7809 { echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6; }
7814 test -n "$OCAMLDEP" && break
7817 for ac_prog in ocamldoc
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7823 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7838 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 OCAMLDOC=$ac_cv_path_OCAMLDOC
7850 if test -n "$OCAMLDOC"; then
7851 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7852 echo "${ECHO_T}$OCAMLDOC" >&6; }
7854 { echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6; }
7859 test -n "$OCAMLDOC" && break
7862 for ac_prog in gas as
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy $ac_prog; ac_word=$2
7866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7868 if test "${ac_cv_path_GAS+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 if test -n "$GAS"; then
7896 { echo "$as_me:$LINENO: result: $GAS" >&5
7897 echo "${ECHO_T}$GAS" >&6; }
7899 { echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6; }
7904 test -n "$GAS" && break
7908 { echo "$as_me:$LINENO: checking for linker version" >&5
7909 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7910 if test "${llvm_cv_link_version+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 version_string="$(ld -v 2>&1 | head -1)"
7917 if (echo "$version_string" | grep -q "ld64"); then
7918 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7920 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7924 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7925 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7927 cat >>confdefs.h <<_ACEOF
7928 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7933 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7934 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7935 if test "${llvm_cv_link_use_r+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 ac_cpp='$CPP $CPPFLAGS'
7940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7945 CFLAGS="$CFLAGS -Wl,-R."
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_link") 2>conftest.er1
7970 grep -v '^ *+' conftest.er1 >conftest.err
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest$ac_exeext'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 llvm_cv_link_use_r=yes
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 llvm_cv_link_use_r=no
8003 rm -f core conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
8007 ac_cpp='$CPP $CPPFLAGS'
8008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8014 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8015 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8016 if test "$llvm_cv_link_use_r" = yes ; then
8018 cat >>confdefs.h <<\_ACEOF
8019 #define HAVE_LINK_R 1
8025 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8026 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8027 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 ac_cpp='$CPP $CPPFLAGS'
8032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8038 cat >conftest.$ac_ext <<_ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8053 rm -f conftest.$ac_objext conftest$ac_exeext
8054 if { (ac_try="$ac_link"
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_link") 2>conftest.er1
8062 grep -v '^ *+' conftest.er1 >conftest.err
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8068 { (case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_try") 2>&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; } &&
8077 { ac_try='test -s conftest$ac_exeext'
8078 { (case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_try") 2>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 llvm_cv_link_use_export_dynamic=yes
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 llvm_cv_link_use_export_dynamic=no
8095 rm -f core conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8099 ac_cpp='$CPP $CPPFLAGS'
8100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8106 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8107 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8108 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8110 cat >>confdefs.h <<\_ACEOF
8111 #define HAVE_LINK_EXPORT_DYNAMIC 1
8117 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8118 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8119 if test "${llvm_cv_link_use_version_script+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 ac_cpp='$CPP $CPPFLAGS'
8124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8130 # The following code is from the autoconf manual,
8131 # "11.13: Limitations of Usual Tools".
8132 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8133 # Use mktemp if possible; otherwise fall back on mkdir,
8134 # with $RANDOM to make collisions less likely.
8138 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8140 test -n "$tmp" && test -d "$tmp"
8142 tmp=$TMPDIR/foo$$-$RANDOM
8143 (umask 077 && mkdir "$tmp")
8146 echo "{" > "$tmp/export.map"
8147 echo " global: main;" >> "$tmp/export.map"
8148 echo " local: *;" >> "$tmp/export.map"
8149 echo "};" >> "$tmp/export.map"
8151 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8152 cat >conftest.$ac_ext <<_ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_link") 2>conftest.er1
8176 grep -v '^ *+' conftest.er1 >conftest.err
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8182 { (case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_try") 2>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest$ac_exeext'
8192 { (case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_try") 2>&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 llvm_cv_link_use_version_script=yes
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8206 llvm_cv_link_use_version_script=no
8209 rm -f core conftest.err conftest.$ac_objext \
8210 conftest$ac_exeext conftest.$ac_ext
8211 rm "$tmp/export.map"
8215 ac_cpp='$CPP $CPPFLAGS'
8216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8222 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8223 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8224 if test "$llvm_cv_link_use_version_script" = yes ; then
8225 HAVE_LINK_VERSION_SCRIPT=1
8232 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8233 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8234 if test "${ac_cv_c_const+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 cat >conftest.$ac_ext <<_ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8247 /* FIXME: Include the comments suggested by Paul. */
8249 /* Ultrix mips cc rejects this. */
8250 typedef int charset[2];
8252 /* SunOS 4.1.1 cc rejects this. */
8253 char const *const *ccp;
8255 /* NEC SVR4.0.2 mips cc rejects this. */
8256 struct point {int x, y;};
8257 static struct point const zero = {0,0};
8258 /* AIX XL C 1.02.0.0 rejects this.
8259 It does not let you subtract one const X* pointer from another in
8260 an arm of an if-expression whose if-part is not a constant
8262 const char *g = "string";
8263 ccp = &g + (g ? g-g : 0);
8264 /* HPUX 7.0 cc rejects these. */
8267 ccp = (char const *const *) p;
8268 { /* SCO 3.2v4 cc rejects this. */
8270 char const *s = 0 ? (char *) 0 : (char const *) 0;
8275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8277 const int *foo = &x[0];
8280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8281 typedef const int *iptr;
8285 { /* AIX XL C 1.02.0.0 rejects this saying
8286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8287 struct s { int j; const int *ap[3]; };
8288 struct s *b; b->j = 5;
8290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8294 return !x[0] && !zero.x;
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8310 grep -v '^ *+' conftest.er1 >conftest.err
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8316 { (case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_try") 2>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; } &&
8325 { ac_try='test -s conftest.$ac_objext'
8326 { (case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_try") 2>&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8346 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8347 if test $ac_cv_c_const = no; then
8349 cat >>confdefs.h <<\_ACEOF
8361 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8362 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8363 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8364 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8368 cat >conftest.$ac_ext <<_ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 #include <sys/types.h>
8386 rm -f conftest.$ac_objext
8387 if { (ac_try="$ac_compile"
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_compile") 2>conftest.er1
8395 grep -v '^ *+' conftest.er1 >conftest.err
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest.$ac_objext'
8411 { (case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_try") 2>&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 eval "$as_ac_Header=yes"
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 eval "$as_ac_Header=no"
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 ac_res=`eval echo '${'$as_ac_Header'}'`
8431 { echo "$as_me:$LINENO: result: $ac_res" >&5
8432 echo "${ECHO_T}$ac_res" >&6; }
8433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8434 cat >>confdefs.h <<_ACEOF
8435 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8438 ac_header_dirent=$ac_hdr; break
8442 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8443 if test $ac_header_dirent = dirent.h; then
8444 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8445 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8446 if test "${ac_cv_search_opendir+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 ac_func_search_save_LIBS=$LIBS
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8457 /* Override any GCC internal prototype to avoid an error.
8458 Use char because int might match the return type of a GCC
8459 builtin and then its argument prototype would still apply. */
8472 for ac_lib in '' dir; do
8473 if test -z "$ac_lib"; then
8474 ac_res="none required"
8477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (ac_try="$ac_link"
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_link") 2>conftest.er1
8488 grep -v '^ *+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8494 { (case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_try") 2>&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (case "(($ac_try" in
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509 (eval "$ac_try") 2>&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_cv_search_opendir=$ac_res
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8521 rm -f core conftest.err conftest.$ac_objext \
8523 if test "${ac_cv_search_opendir+set}" = set; then
8527 if test "${ac_cv_search_opendir+set}" = set; then
8530 ac_cv_search_opendir=no
8533 LIBS=$ac_func_search_save_LIBS
8535 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8536 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8537 ac_res=$ac_cv_search_opendir
8538 if test "$ac_res" != no; then
8539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8544 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8545 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8546 if test "${ac_cv_search_opendir+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 ac_func_search_save_LIBS=$LIBS
8550 cat >conftest.$ac_ext <<_ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8557 /* Override any GCC internal prototype to avoid an error.
8558 Use char because int might match the return type of a GCC
8559 builtin and then its argument prototype would still apply. */
8572 for ac_lib in '' x; do
8573 if test -z "$ac_lib"; then
8574 ac_res="none required"
8577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (ac_try="$ac_link"
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586 (eval "$ac_link") 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8594 { (case "(($ac_try" in
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_try") 2>&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try='test -s conftest$ac_exeext'
8604 { (case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_try") 2>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_search_opendir=$ac_res
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8621 rm -f core conftest.err conftest.$ac_objext \
8623 if test "${ac_cv_search_opendir+set}" = set; then
8627 if test "${ac_cv_search_opendir+set}" = set; then
8630 ac_cv_search_opendir=no
8633 LIBS=$ac_func_search_save_LIBS
8635 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8636 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8637 ac_res=$ac_cv_search_opendir
8638 if test "$ac_res" != no; then
8639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8646 for ac_header in dlfcn.h
8648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 ac_res=`eval echo '${'$as_ac_Header'}'`
8656 { echo "$as_me:$LINENO: result: $ac_res" >&5
8657 echo "${ECHO_T}$ac_res" >&6; }
8659 # Is the header compilable?
8660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 $ac_includes_default
8669 #include <$ac_header>
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678 (eval "$ac_compile") 2>conftest.er1
8680 grep -v '^ *+' conftest.er1 >conftest.err
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686 { (case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_try") 2>&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_try") 2>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_header_compiler=yes
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8710 ac_header_compiler=no
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8715 echo "${ECHO_T}$ac_header_compiler" >&6; }
8717 # Is the header present?
8718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8720 cat >conftest.$ac_ext <<_ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8726 #include <$ac_header>
8728 if { (ac_try="$ac_cpp conftest.$ac_ext"
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8736 grep -v '^ *+' conftest.er1 >conftest.err
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } >/dev/null; then
8741 if test -s conftest.err; then
8742 ac_cpp_err=$ac_c_preproc_warn_flag
8743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8750 if test -z "$ac_cpp_err"; then
8751 ac_header_preproc=yes
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 ac_header_preproc=no
8759 rm -f conftest.err conftest.$ac_ext
8760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8761 echo "${ECHO_T}$ac_header_preproc" >&6; }
8763 # So? What about this header?
8764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8770 ac_header_preproc=yes
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8786 ## ----------------------------------- ##
8787 ## Report this to llvmbugs@cs.uiuc.edu ##
8788 ## ----------------------------------- ##
8790 ) | sed "s/^/$as_me: WARNING: /" >&2
8793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 eval "$as_ac_Header=\$ac_header_preproc"
8800 ac_res=`eval echo '${'$as_ac_Header'}'`
8801 { echo "$as_me:$LINENO: result: $ac_res" >&5
8802 echo "${ECHO_T}$ac_res" >&6; }
8805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8806 cat >>confdefs.h <<_ACEOF
8807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8814 # Check whether --enable-ltdl-install was given.
8815 if test "${enable_ltdl_install+set}" = set; then
8816 enableval=$enable_ltdl_install;
8822 if test x"${enable_ltdl_install-no}" != xno; then
8824 INSTALL_LTDL_FALSE='#'
8826 INSTALL_LTDL_TRUE='#'
8832 if test x"${enable_ltdl_convenience-no}" != xno; then
8833 CONVENIENCE_LTDL_TRUE=
8834 CONVENIENCE_LTDL_FALSE='#'
8836 CONVENIENCE_LTDL_TRUE='#'
8837 CONVENIENCE_LTDL_FALSE=
8841 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8844 libname_spec='lib$name'
8852 shlibpath_overrides_runpath=unknown
8854 dynamic_linker="$host_os ld.so"
8855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8856 if test "$GCC" = yes; then
8857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8858 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8859 # if the path contains ";" then we assume it to be the separator
8860 # otherwise default to the standard path separator (i.e. ":") - it is
8861 # assumed that no part of a normal pathname contains ";" but that should
8862 # okay in the real world where ";" in dirpaths is itself problematic.
8863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8870 need_lib_prefix=unknown
8871 hardcode_into_libs=no
8873 # when you set need_version to no, make sure it does not cause -set_version
8874 # flags to be left without arguments
8875 need_version=unknown
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8881 shlibpath_var=LIBPATH
8883 # AIX 3 has no versioning support, so we append a major version to the name.
8884 soname_spec='${libname}${release}${shared_ext}$major'
8891 hardcode_into_libs=yes
8892 if test "$host_cpu" = ia64; then
8893 # AIX 5 supports IA64
8894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8895 shlibpath_var=LD_LIBRARY_PATH
8897 # With GCC up to 2.95.x, collect2 would create an import file
8898 # for dependence libraries. The import file would start with
8899 # the line `#! .'. This would cause the generated library to
8900 # depend on `.', always an invalid library. This was fixed in
8901 # development snapshots of GCC prior to 3.0.
8903 aix4 | aix4.[01] | aix4.[01].*)
8904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8906 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8914 # soname into executable. Probably we can add versioning support to
8915 # collect2, so additional links can be useful in future.
8916 if test "$aix_use_runtimelinking" = yes; then
8917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8918 # instead of lib<name>.a to let people know that these are not
8919 # typical AIX shared libraries.
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 # We preserve .a as extension for shared libraries through AIX4.2
8923 # and later when we are not doing run time linking.
8924 library_names_spec='${libname}${release}.a $libname.a'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8927 shlibpath_var=LIBPATH
8932 library_names_spec='$libname.ixlibrary $libname.a'
8933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8934 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'
8938 library_names_spec='${libname}${shared_ext}'
8939 dynamic_linker="$host_os ld.so"
8940 shlibpath_var=LIBRARY_PATH
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8952 # the default ld.so.conf also contains /usr/contrib/lib and
8953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8954 # libtool to hard-code these into programs
8957 cygwin* | mingw* | pw32*)
8958 version_type=windows
8963 case $GCC,$host_os in
8964 yes,cygwin* | yes,mingw* | yes,pw32*)
8965 library_names_spec='$libname.dll.a'
8966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8967 postinstall_cmds='base_file=`basename \${file}`~
8968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8969 dldir=$destdir/`dirname \$dlpath`~
8970 test -d \$dldir || mkdir -p \$dldir~
8971 $install_prog $dir/$dlname \$dldir/$dlname~
8972 chmod a+x \$dldir/$dlname'
8973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8974 dlpath=$dir/\$dldll~
8976 shlibpath_overrides_runpath=yes
8980 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8982 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8985 # MinGW DLLs use traditional 'lib' prefix
8986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8988 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8989 # It is most probably a Windows format PATH printed by
8990 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8991 # path with ; separators, and with drive letters. We can handle the
8992 # drive letters (cygwin fileutils understands them), so leave them,
8993 # especially as we might pass files found there to a mingw objdump,
8994 # which wouldn't understand a cygwinified path. Ahh.
8995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9001 # pw32 DLLs use 'pw' prefix rather than 'lib'
9002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9011 dynamic_linker='Win32 ld.exe'
9012 # FIXME: first we should search . and the directory the executable is in
9016 darwin* | rhapsody*)
9017 dynamic_linker="$host_os dyld"
9021 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9022 soname_spec='${libname}${release}${major}$shared_ext'
9023 shlibpath_overrides_runpath=yes
9024 shlibpath_var=DYLD_LIBRARY_PATH
9025 shrext_cmds='.dylib'
9026 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9027 if test "$GCC" = yes; then
9028 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"`
9030 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 shlibpath_var=LD_LIBRARY_PATH
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 shlibpath_overrides_runpath=no
9056 hardcode_into_libs=yes
9057 dynamic_linker='GNU ld.so'
9060 freebsd* | dragonfly*)
9061 # DragonFly does not have aout. When/if they implement a new
9062 # versioning mechanism, adjust this.
9063 if test -x /usr/bin/objformat; then
9064 objformat=`/usr/bin/objformat`
9067 freebsd[123]*) objformat=aout ;;
9071 version_type=freebsd-$objformat
9072 case $version_type in
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9083 shlibpath_var=LD_LIBRARY_PATH
9086 shlibpath_overrides_runpath=yes
9088 freebsd3.[01]* | freebsdelf3.[01]*)
9089 shlibpath_overrides_runpath=yes
9090 hardcode_into_libs=yes
9092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9094 shlibpath_overrides_runpath=no
9095 hardcode_into_libs=yes
9097 freebsd*) # from 4.6 on
9098 shlibpath_overrides_runpath=yes
9099 hardcode_into_libs=yes
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 hardcode_into_libs=yes
9114 hpux9* | hpux10* | hpux11*)
9115 # Give a soname corresponding to the major version so that dld.sl refuses to
9116 # link against other versions.
9123 hardcode_into_libs=yes
9124 dynamic_linker="$host_os dld.so"
9125 shlibpath_var=LD_LIBRARY_PATH
9126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 if test "X$HPUX_IA64_MODE" = X32; then
9130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9138 hardcode_into_libs=yes
9139 dynamic_linker="$host_os dld.sl"
9140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9149 dynamic_linker="$host_os dld.sl"
9150 shlibpath_var=SHLIB_PATH
9151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9156 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9157 postinstall_cmds='chmod 555 $lib'
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=no
9169 hardcode_into_libs=yes
9172 irix5* | irix6* | nonstopux*)
9174 nonstopux*) version_type=nonstopux ;;
9176 if test "$lt_cv_prog_gnu_ld" = yes; then
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9187 irix5* | nonstopux*)
9191 case $LD in # libtool.m4 will add one of these switches to LD
9192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9193 libsuff= shlibsuff= libmagic=32-bit;;
9194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9195 libsuff=32 shlibsuff=N32 libmagic=N32;;
9196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9198 *) libsuff= shlibsuff= libmagic=never-match;;
9202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9203 shlibpath_overrides_runpath=no
9204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9206 hardcode_into_libs=yes
9209 # No shared lib support for Linux oldld, aout, or coff.
9210 linux*oldld* | linux*aout* | linux*coff*)
9214 # This must be Linux ELF.
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 shlibpath_overrides_runpath=no
9224 # This implies no fast_install, which is unacceptable.
9225 # Some rework will be needed to allow for fast_install
9226 # before this can be enabled.
9227 hardcode_into_libs=yes
9229 # Append ld.so.conf contents to the search path
9230 if test -f /etc/ld.so.conf; then
9231 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' ' '`
9232 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9235 # We used to test for /lib/ld.so.1 and disable shared libraries on
9236 # powerpc, because MkLinux only supported shared libraries with the
9237 # GNU dynamic linker. Since this was broken with cross compilers,
9238 # most powerpc-linux boxes support dynamic linking these days and
9239 # people can always --disable-shared, the test was removed, and we
9240 # assume the GNU/Linux dynamic linker is in use.
9241 dynamic_linker='GNU/Linux ld.so'
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=no
9252 hardcode_into_libs=yes
9253 dynamic_linker='GNU ld.so'
9260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9263 dynamic_linker='NetBSD (a.out) ld.so'
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 dynamic_linker='NetBSD ld.elf_so'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 shlibpath_overrides_runpath=yes
9271 hardcode_into_libs=yes
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 shlibpath_overrides_runpath=yes
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
9288 shlibpath_overrides_runpath=yes
9293 sys_lib_dlsearch_path_spec="/usr/lib"
9295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9297 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9298 *) need_version=no ;;
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9305 openbsd2.[89] | openbsd2.[89].*)
9306 shlibpath_overrides_runpath=no
9309 shlibpath_overrides_runpath=yes
9313 shlibpath_overrides_runpath=yes
9318 libname_spec='$name'
9321 library_names_spec='$libname${shared_ext} $libname.a'
9322 dynamic_linker='OS/2 ld.exe'
9323 shlibpath_var=LIBPATH
9326 osf3* | osf4* | osf5*)
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342 soname_spec='${libname}${release}${shared_ext}$major'
9343 shlibpath_var=LD_LIBRARY_PATH
9344 shlibpath_overrides_runpath=yes
9345 hardcode_into_libs=yes
9346 # ldd complains unless libraries are executable
9347 postinstall_cmds='chmod +x $lib'
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 shlibpath_overrides_runpath=yes
9356 if test "$with_gnu_ld" = yes; then
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 case $host_vendor in
9369 shlibpath_overrides_runpath=no
9371 export_dynamic_flag_spec='${wl}-Blargedynsym'
9372 runpath_var=LD_RUN_PATH
9380 shlibpath_overrides_runpath=no
9381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9387 if test -d /usr/nec ;then
9389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9390 soname_spec='$libname${shared_ext}.$major'
9391 shlibpath_var=LD_LIBRARY_PATH
9395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9396 version_type=freebsd-elf
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 hardcode_into_libs=yes
9403 if test "$with_gnu_ld" = yes; then
9404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9405 shlibpath_overrides_runpath=no
9407 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9408 shlibpath_overrides_runpath=yes
9411 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9415 sys_lib_dlsearch_path_spec='/usr/lib'
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 shlibpath_var=LD_LIBRARY_PATH
9429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9430 echo "${ECHO_T}$dynamic_linker" >&6; }
9431 test "$dynamic_linker" = no && can_build_shared=no
9433 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9434 if test "$GCC" = yes; then
9435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9439 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9440 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9441 if test "${libltdl_cv_shlibext+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 eval libltdl_cv_shlibext=$shrext_cmds
9449 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9450 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9451 if test -n "$libltdl_cv_shlibext"; then
9453 cat >>confdefs.h <<_ACEOF
9454 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9460 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9461 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9462 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 libltdl_cv_shlibpath_var="$shlibpath_var"
9467 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9468 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9469 if test -n "$libltdl_cv_shlibpath_var"; then
9471 cat >>confdefs.h <<_ACEOF
9472 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9478 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9479 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9480 if test "${libltdl_cv_sys_search_path+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9485 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9486 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9487 if test -n "$libltdl_cv_sys_search_path"; then
9489 for dir in $libltdl_cv_sys_search_path; do
9490 if test -z "$sys_search_path"; then
9491 sys_search_path="$dir"
9493 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9497 cat >>confdefs.h <<_ACEOF
9498 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9503 { echo "$as_me:$LINENO: checking for objdir" >&5
9504 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9505 if test "${libltdl_cv_objdir+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 libltdl_cv_objdir="$objdir"
9509 if test -n "$objdir"; then
9512 rm -f .libs 2>/dev/null
9513 mkdir .libs 2>/dev/null
9514 if test -d .libs; then
9515 libltdl_cv_objdir=.libs
9517 # MS-DOS does not allow filenames that begin with a dot.
9518 libltdl_cv_objdir=_libs
9520 rmdir .libs 2>/dev/null
9524 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9525 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9527 cat >>confdefs.h <<_ACEOF
9528 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9536 # Check for command to grab the raw symbol name followed by C symbol from nm.
9537 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9538 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9539 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 # These are sane defaults that work on at least a few old systems.
9544 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9546 # Character class describing NM global symbol codes.
9547 symcode='[BCDEGRST]'
9549 # Regexp to match symbols that can be accessed directly from C.
9550 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9552 # Transform an extracted symbol line into a proper C declaration
9553 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9555 # Transform an extracted symbol line into symbol name and symbol address
9556 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'"
9558 # Define system-specific variables.
9563 cygwin* | mingw* | pw32*)
9564 symcode='[ABCDGISTW]'
9566 hpux*) # Its linker distinguishes data from code symbols
9567 if test "$host_cpu" = ia64; then
9568 symcode='[ABCDEGRST]'
9570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9571 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'"
9574 if test "$host_cpu" = ia64; then
9575 symcode='[ABCDGIRSTW]'
9576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9577 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'"
9581 symcode='[BCDEGRST]'
9584 symcode='[BCDEGQRST]'
9595 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9603 # Handle CRLF in mingw tool chain
9607 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9611 # If we're using GNU nm, then use its standard symbol codes.
9612 case `$NM -V 2>&1` in
9613 *GNU* | *'with BFD'*)
9614 symcode='[ABCDGIRSTW]' ;;
9617 # Try without a prefix undercore, then with it.
9618 for ac_symprfx in "" "_"; do
9620 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9621 symxfrm="\\1 $ac_symprfx\\2 \\2"
9623 # Write the raw and C identifiers.
9624 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9626 # Check to see that the pipe works correctly.
9630 cat > conftest.$ac_ext <<EOF
9635 void nm_test_func(){}
9639 int main(){nm_test_var='a';nm_test_func();return(0);}
9642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643 (eval $ac_compile) 2>&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; then
9647 # Now try to grab the symbols.
9649 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9650 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } && test -s "$nlist"; then
9654 # Try sorting and uniquifying the output.
9655 if sort "$nlist" | uniq > "$nlist"T; then
9656 mv -f "$nlist"T "$nlist"
9661 # Make sure that we snagged all the symbols we need.
9662 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9663 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9664 cat <<EOF > conftest.$ac_ext
9670 # Now generate the symbol file.
9671 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9673 cat <<EOF >> conftest.$ac_ext
9674 #if defined (__STDC__) && __STDC__
9675 # define lt_ptr_t void *
9677 # define lt_ptr_t char *
9681 /* The mapping between symbol names and symbols. */
9686 lt_preloaded_symbols[] =
9689 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9690 cat <<\EOF >> conftest.$ac_ext
9698 # Now try linking the two files.
9699 mv conftest.$ac_objext conftstm.$ac_objext
9700 lt_save_LIBS="$LIBS"
9701 lt_save_CFLAGS="$CFLAGS"
9702 LIBS="conftstm.$ac_objext"
9703 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9705 (eval $ac_link) 2>&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9711 LIBS="$lt_save_LIBS"
9712 CFLAGS="$lt_save_CFLAGS"
9714 echo "cannot find nm_test_func in $nlist" >&5
9717 echo "cannot find nm_test_var in $nlist" >&5
9720 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9723 echo "$progname: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9726 rm -f conftest* conftst*
9728 # Do not use the global_symbol_pipe unless it works.
9729 if test "$pipe_works" = yes; then
9732 lt_cv_sys_global_symbol_pipe=
9738 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9739 lt_cv_sys_global_symbol_to_cdecl=
9741 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9742 { echo "$as_me:$LINENO: result: failed" >&5
9743 echo "${ECHO_T}failed" >&6; }
9745 { echo "$as_me:$LINENO: result: ok" >&5
9746 echo "${ECHO_T}ok" >&6; }
9750 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9751 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9752 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9756 libltdl_cv_preloaded_symbols=yes
9758 libltdl_cv_preloaded_symbols=no
9762 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9763 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9764 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9766 cat >>confdefs.h <<\_ACEOF
9767 #define HAVE_PRELOADED_SYMBOLS 1
9775 ac_cpp='$CPP $CPPFLAGS'
9776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9781 { echo "$as_me:$LINENO: checking for shl_load" >&5
9782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9783 if test "${ac_cv_func_shl_load+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9794 #define shl_load innocuous_shl_load
9796 /* System header to define __stub macros and hopefully few prototypes,
9797 which can conflict with char shl_load (); below.
9798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799 <limits.h> exists even on freestanding compilers. */
9802 # include <limits.h>
9804 # include <assert.h>
9809 /* Override any GCC internal prototype to avoid an error.
9810 Use char because int might match the return type of a GCC
9811 builtin and then its argument prototype would still apply. */
9816 /* The GNU C library defines this for functions which it implements
9817 to always fail with ENOSYS. Some functions are actually named
9818 something starting with __ and the normal name is an alias. */
9819 #if defined __stub_shl_load || defined __stub___shl_load
9831 rm -f conftest.$ac_objext conftest$ac_exeext
9832 if { (ac_try="$ac_link"
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_link") 2>conftest.er1
9840 grep -v '^ *+' conftest.er1 >conftest.err
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_try") 2>&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_func_shl_load=yes
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_cv_func_shl_load=no
9873 rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9876 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9877 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9878 if test $ac_cv_func_shl_load = yes; then
9880 cat >>confdefs.h <<\_ACEOF
9881 #define HAVE_SHL_LOAD 1
9885 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9886 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9887 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 ac_check_lib_save_LIBS=$LIBS
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9899 /* Override any GCC internal prototype to avoid an error.
9900 Use char because int might match the return type of a GCC
9901 builtin and then its argument prototype would still apply. */
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (ac_try="$ac_link"
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_link") 2>conftest.er1
9923 grep -v '^ *+' conftest.er1 >conftest.err
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9929 { (case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_try") 2>&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_try") 2>&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_lib_dld_shl_load=yes
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_cv_lib_dld_shl_load=no
9956 rm -f core conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 LIBS=$ac_check_lib_save_LIBS
9960 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9961 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9962 if test $ac_cv_lib_dld_shl_load = yes; then
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_SHL_LOAD 1
9968 LIBADD_DL="$LIBADD_DL -ldld"
9970 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9971 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9972 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 ac_check_lib_save_LIBS=$LIBS
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9984 /* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_link") 2>conftest.er1
10008 grep -v '^ *+' conftest.er1 >conftest.err
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_lib_dl_dlopen=yes
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_cv_lib_dl_dlopen=no
10041 rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 LIBS=$ac_check_lib_save_LIBS
10045 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10046 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10047 if test $ac_cv_lib_dl_dlopen = yes; then
10049 cat >>confdefs.h <<\_ACEOF
10050 #define HAVE_LIBDL 1
10053 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10055 cat >conftest.$ac_ext <<_ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10062 # include <dlfcn.h>
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (ac_try="$ac_link"
10075 case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_link") 2>conftest.er1
10082 grep -v '^ *+' conftest.er1 >conftest.err
10084 cat conftest.err >&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } &&
10087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10088 { (case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_try") 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_try") 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10108 cat >>confdefs.h <<\_ACEOF
10109 #define HAVE_LIBDL 1
10111 libltdl_cv_func_dlopen="yes"
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10117 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10118 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-lsvld $LIBS"
10123 cat >conftest.$ac_ext <<_ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10130 /* Override any GCC internal prototype to avoid an error.
10131 Use char because int might match the return type of a GCC
10132 builtin and then its argument prototype would still apply. */
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_link") 2>conftest.er1
10154 grep -v '^ *+' conftest.er1 >conftest.err
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ac_cv_lib_svld_dlopen=yes
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_lib_svld_dlopen=no
10187 rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10191 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10192 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10193 if test $ac_cv_lib_svld_dlopen = yes; then
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_LIBDL 1
10199 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10201 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10202 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10203 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 ac_check_lib_save_LIBS=$LIBS
10208 cat >conftest.$ac_ext <<_ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10215 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10225 return dld_link ();
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
10239 grep -v '^ *+' conftest.er1 >conftest.err
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_lib_dld_dld_link=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_cv_lib_dld_dld_link=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10277 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10278 if test $ac_cv_lib_dld_dld_link = yes; then
10280 cat >>confdefs.h <<\_ACEOF
10284 LIBADD_DL="$LIBADD_DL -ldld"
10286 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10287 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10288 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 cat >conftest.$ac_ext <<_ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10299 #define _dyld_func_lookup innocuous__dyld_func_lookup
10301 /* System header to define __stub macros and hopefully few prototypes,
10302 which can conflict with char _dyld_func_lookup (); below.
10303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10304 <limits.h> exists even on freestanding compilers. */
10307 # include <limits.h>
10309 # include <assert.h>
10312 #undef _dyld_func_lookup
10314 /* Override any GCC internal prototype to avoid an error.
10315 Use char because int might match the return type of a GCC
10316 builtin and then its argument prototype would still apply. */
10320 char _dyld_func_lookup ();
10321 /* The GNU C library defines this for functions which it implements
10322 to always fail with ENOSYS. Some functions are actually named
10323 something starting with __ and the normal name is an alias. */
10324 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10331 return _dyld_func_lookup ();
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (ac_try="$ac_link"
10338 case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_link") 2>conftest.er1
10345 grep -v '^ *+' conftest.er1 >conftest.err
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
10350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10351 { (case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_try") 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest$ac_exeext'
10361 { (case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366 (eval "$ac_try") 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 ac_cv_func__dyld_func_lookup=yes
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10375 ac_cv_func__dyld_func_lookup=no
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10381 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10382 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10383 if test $ac_cv_func__dyld_func_lookup = yes; then
10385 cat >>confdefs.h <<\_ACEOF
10386 #define HAVE_DYLD 1
10400 rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10412 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10414 lt_save_LIBS="$LIBS"
10415 LIBS="$LIBS $LIBADD_DL"
10417 for ac_func in dlerror
10419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 cat >conftest.$ac_ext <<_ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10433 #define $ac_func innocuous_$ac_func
10435 /* System header to define __stub macros and hopefully few prototypes,
10436 which can conflict with char $ac_func (); below.
10437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10438 <limits.h> exists even on freestanding compilers. */
10441 # include <limits.h>
10443 # include <assert.h>
10448 /* Override any GCC internal prototype to avoid an error.
10449 Use char because int might match the return type of a GCC
10450 builtin and then its argument prototype would still apply. */
10455 /* The GNU C library defines this for functions which it implements
10456 to always fail with ENOSYS. Some functions are actually named
10457 something starting with __ and the normal name is an alias. */
10458 #if defined __stub_$ac_func || defined __stub___$ac_func
10465 return $ac_func ();
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (ac_try="$ac_link"
10472 case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_link") 2>conftest.er1
10479 grep -v '^ *+' conftest.er1 >conftest.err
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } &&
10484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10485 { (case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_try") 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; } &&
10494 { ac_try='test -s conftest$ac_exeext'
10495 { (case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_try") 2>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
10504 eval "$as_ac_var=yes"
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 eval "$as_ac_var=no"
10512 rm -f core conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10515 ac_res=`eval echo '${'$as_ac_var'}'`
10516 { echo "$as_me:$LINENO: result: $ac_res" >&5
10517 echo "${ECHO_T}$ac_res" >&6; }
10518 if test `eval echo '${'$as_ac_var'}'` = yes; then
10519 cat >>confdefs.h <<_ACEOF
10520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10526 LIBS="$lt_save_LIBS"
10529 ac_cpp='$CPP $CPPFLAGS'
10530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10536 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10537 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10538 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 ac_cv_sys_symbol_underscore=no
10542 cat > conftest.$ac_ext <<EOF
10543 void nm_test_func(){}
10544 int main(){nm_test_func;return 0;}
10546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10547 (eval $ac_compile) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; then
10551 # Now try to grab the symbols.
10552 ac_nlist=conftest.nm
10553 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && test -s "$ac_nlist"; then
10558 # See whether the symbols have a leading underscore.
10559 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10560 ac_cv_sys_symbol_underscore=yes
10562 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10565 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10569 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10572 echo "configure: failed program was:" >&5
10578 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10579 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10582 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10583 if test x"$libltdl_cv_func_dlopen" = xyes ||
10584 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10585 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10586 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10587 if test "${libltdl_cv_need_uscore+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 libltdl_cv_need_uscore=unknown
10592 LIBS="$LIBS $LIBADD_DL"
10593 if test "$cross_compiling" = yes; then :
10594 libltdl_cv_need_uscore=cross
10596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10597 lt_status=$lt_dlunknown
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10599 "configure"
10600 #include "confdefs.h"
10609 # define LT_DLGLOBAL RTLD_GLOBAL
10612 # define LT_DLGLOBAL DL_GLOBAL
10614 # define LT_DLGLOBAL 0
10618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10619 find out it does not work in some platform. */
10620 #ifndef LT_DLLAZY_OR_NOW
10622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10625 # define LT_DLLAZY_OR_NOW DL_LAZY
10628 # define LT_DLLAZY_OR_NOW RTLD_NOW
10631 # define LT_DLLAZY_OR_NOW DL_NOW
10633 # define LT_DLLAZY_OR_NOW 0
10641 extern "C" void exit (int);
10644 void fnord() { int i=42;}
10647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10648 int status = $lt_dlunknown;
10652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10654 /* dlclose (self); */
10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663 (eval $ac_link) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10667 (./conftest; exit; ) >&5 2>/dev/null
10669 case x$lt_status in
10670 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10671 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10672 x$lt_dlunknown|x*) ;;
10675 # compilation failed
10684 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10685 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10689 if test x"$libltdl_cv_need_uscore" = xyes; then
10691 cat >>confdefs.h <<\_ACEOF
10692 #define NEED_USCORE 1
10698 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10699 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10700 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 # PORTME does your system automatically load deplibs for dlopen?
10704 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10705 # For now, we just catch OSes we know something about -- in the
10706 # future, we'll try test this programmatically.
10707 libltdl_cv_sys_dlopen_deplibs=unknown
10709 aix3*|aix4.1.*|aix4.2.*)
10710 # Unknown whether this is true for these versions of AIX, but
10711 # we want this `case' here to explicitly catch those versions.
10712 libltdl_cv_sys_dlopen_deplibs=unknown
10715 libltdl_cv_sys_dlopen_deplibs=yes
10718 # Assuming the user has installed a libdl from somewhere, this is true
10719 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10720 libltdl_cv_sys_dlopen_deplibs=yes
10722 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10723 # GNU and its variants, using gnu ld.so (Glibc)
10724 libltdl_cv_sys_dlopen_deplibs=yes
10727 libltdl_cv_sys_dlopen_deplibs=yes
10730 libltdl_cv_sys_dlopen_deplibs=yes
10732 irix[12345]*|irix6.[01]*)
10733 # Catch all versions of IRIX before 6.2, and indicate that we don't
10734 # know how it worked for any of those versions.
10735 libltdl_cv_sys_dlopen_deplibs=unknown
10738 # The case above catches anything before 6.2, and it's known that
10739 # at 6.2 and later dlopen does load deplibs.
10740 libltdl_cv_sys_dlopen_deplibs=yes
10743 libltdl_cv_sys_dlopen_deplibs=yes
10746 libltdl_cv_sys_dlopen_deplibs=yes
10749 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10750 # it did *not* use an RPATH in a shared library to find objects the
10751 # library depends on, so we explicitly say `no'.
10752 libltdl_cv_sys_dlopen_deplibs=no
10754 osf5.0|osf5.0a|osf5.1)
10755 # dlopen *does* load deplibs and with the right loader patch applied
10756 # it even uses RPATH in a shared library to search for shared objects
10757 # that the library depends on, but there's no easy way to know if that
10758 # patch is installed. Since this is the case, all we can really
10759 # say is unknown -- it depends on the patch being installed. If
10760 # it is, this changes to `yes'. Without it, it would be `no'.
10761 libltdl_cv_sys_dlopen_deplibs=unknown
10764 # the two cases above should catch all versions of osf <= 5.1. Read
10765 # the comments above for what we know about them.
10766 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10767 # is used to find them so we can finally say `yes'.
10768 libltdl_cv_sys_dlopen_deplibs=yes
10771 libltdl_cv_sys_dlopen_deplibs=yes
10773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10774 libltdl_cv_sys_dlopen_deplibs=yes
10779 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10780 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10781 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10783 cat >>confdefs.h <<\_ACEOF
10784 #define LTDL_DLOPEN_DEPLIBS 1
10790 for ac_header in argz.h
10792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 ac_res=`eval echo '${'$as_ac_Header'}'`
10800 { echo "$as_me:$LINENO: result: $ac_res" >&5
10801 echo "${ECHO_T}$ac_res" >&6; }
10803 # Is the header compilable?
10804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10806 cat >conftest.$ac_ext <<_ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 $ac_includes_default
10813 #include <$ac_header>
10815 rm -f conftest.$ac_objext
10816 if { (ac_try="$ac_compile"
10817 case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_compile") 2>conftest.er1
10824 grep -v '^ *+' conftest.er1 >conftest.err
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10830 { (case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_try") 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; } &&
10839 { ac_try='test -s conftest.$ac_objext'
10840 { (case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_try") 2>&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_header_compiler=yes
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 ac_header_compiler=no
10857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10859 echo "${ECHO_T}$ac_header_compiler" >&6; }
10861 # Is the header present?
10862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 #include <$ac_header>
10872 if { (ac_try="$ac_cpp conftest.$ac_ext"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10880 grep -v '^ *+' conftest.er1 >conftest.err
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } >/dev/null; then
10885 if test -s conftest.err; then
10886 ac_cpp_err=$ac_c_preproc_warn_flag
10887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10894 if test -z "$ac_cpp_err"; then
10895 ac_header_preproc=yes
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10900 ac_header_preproc=no
10903 rm -f conftest.err conftest.$ac_ext
10904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10905 echo "${ECHO_T}$ac_header_preproc" >&6; }
10907 # So? What about this header?
10908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10914 ac_header_preproc=yes
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10930 ## ----------------------------------- ##
10931 ## Report this to llvmbugs@cs.uiuc.edu ##
10932 ## ----------------------------------- ##
10934 ) | sed "s/^/$as_me: WARNING: /" >&2
10937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 eval "$as_ac_Header=\$ac_header_preproc"
10944 ac_res=`eval echo '${'$as_ac_Header'}'`
10945 { echo "$as_me:$LINENO: result: $ac_res" >&5
10946 echo "${ECHO_T}$ac_res" >&6; }
10949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10950 cat >>confdefs.h <<_ACEOF
10951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10959 { echo "$as_me:$LINENO: checking for error_t" >&5
10960 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10961 if test "${ac_cv_type_error_t+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 cat >conftest.$ac_ext <<_ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10974 typedef error_t ac__type_new_;
10978 if ((ac__type_new_ *) 0)
10980 if (sizeof (ac__type_new_))
10986 rm -f conftest.$ac_objext
10987 if { (ac_try="$ac_compile"
10988 case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_compile") 2>conftest.er1
10995 grep -v '^ *+' conftest.er1 >conftest.err
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } &&
11000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11001 { (case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_try") 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
11010 { ac_try='test -s conftest.$ac_objext'
11011 { (case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_try") 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_type_error_t=yes
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_cv_type_error_t=no
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11031 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11032 if test $ac_cv_type_error_t = yes; then
11034 cat >>confdefs.h <<_ACEOF
11035 #define HAVE_ERROR_T 1
11041 cat >>confdefs.h <<\_ACEOF
11042 #define error_t int
11053 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11069 #define $ac_func innocuous_$ac_func
11071 /* System header to define __stub macros and hopefully few prototypes,
11072 which can conflict with char $ac_func (); below.
11073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11074 <limits.h> exists even on freestanding compilers. */
11077 # include <limits.h>
11079 # include <assert.h>
11084 /* Override any GCC internal prototype to avoid an error.
11085 Use char because int might match the return type of a GCC
11086 builtin and then its argument prototype would still apply. */
11091 /* The GNU C library defines this for functions which it implements
11092 to always fail with ENOSYS. Some functions are actually named
11093 something starting with __ and the normal name is an alias. */
11094 #if defined __stub_$ac_func || defined __stub___$ac_func
11101 return $ac_func ();
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (ac_try="$ac_link"
11108 case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_link") 2>conftest.er1
11115 grep -v '^ *+' conftest.er1 >conftest.err
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_try") 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; } &&
11130 { ac_try='test -s conftest$ac_exeext'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 eval "$as_ac_var=yes"
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 eval "$as_ac_var=no"
11148 rm -f core conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext conftest.$ac_ext
11151 ac_res=`eval echo '${'$as_ac_var'}'`
11152 { echo "$as_me:$LINENO: result: $ac_res" >&5
11153 echo "${ECHO_T}$ac_res" >&6; }
11154 if test `eval echo '${'$as_ac_var'}'` = yes; then
11155 cat >>confdefs.h <<_ACEOF
11156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11189 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 ac_res=`eval echo '${'$as_ac_Header'}'`
11200 { echo "$as_me:$LINENO: result: $ac_res" >&5
11201 echo "${ECHO_T}$ac_res" >&6; }
11203 # Is the header compilable?
11204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11206 cat >conftest.$ac_ext <<_ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 $ac_includes_default
11213 #include <$ac_header>
11215 rm -f conftest.$ac_objext
11216 if { (ac_try="$ac_compile"
11217 case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222 (eval "$ac_compile") 2>conftest.er1
11224 grep -v '^ *+' conftest.er1 >conftest.err
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11230 { (case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_try") 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
11240 { (case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245 (eval "$ac_try") 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 ac_header_compiler=yes
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 ac_header_compiler=no
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11259 echo "${ECHO_T}$ac_header_compiler" >&6; }
11261 # Is the header present?
11262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11264 cat >conftest.$ac_ext <<_ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11270 #include <$ac_header>
11272 if { (ac_try="$ac_cpp conftest.$ac_ext"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11280 grep -v '^ *+' conftest.er1 >conftest.err
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } >/dev/null; then
11285 if test -s conftest.err; then
11286 ac_cpp_err=$ac_c_preproc_warn_flag
11287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11294 if test -z "$ac_cpp_err"; then
11295 ac_header_preproc=yes
11297 echo "$as_me: failed program was:" >&5
11298 sed 's/^/| /' conftest.$ac_ext >&5
11300 ac_header_preproc=no
11303 rm -f conftest.err conftest.$ac_ext
11304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11305 echo "${ECHO_T}$ac_header_preproc" >&6; }
11307 # So? What about this header?
11308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11314 ac_header_preproc=yes
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11330 ## ----------------------------------- ##
11331 ## Report this to llvmbugs@cs.uiuc.edu ##
11332 ## ----------------------------------- ##
11334 ) | sed "s/^/$as_me: WARNING: /" >&2
11337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 eval "$as_ac_Header=\$ac_header_preproc"
11344 ac_res=`eval echo '${'$as_ac_Header'}'`
11345 { echo "$as_me:$LINENO: result: $ac_res" >&5
11346 echo "${ECHO_T}$ac_res" >&6; }
11349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11350 cat >>confdefs.h <<_ACEOF
11351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11362 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 ac_res=`eval echo '${'$as_ac_Header'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373 echo "${ECHO_T}$ac_res" >&6; }
11375 # Is the header compilable?
11376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11378 cat >conftest.$ac_ext <<_ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 $ac_includes_default
11385 #include <$ac_header>
11387 rm -f conftest.$ac_objext
11388 if { (ac_try="$ac_compile"
11389 case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394 (eval "$ac_compile") 2>conftest.er1
11396 grep -v '^ *+' conftest.er1 >conftest.err
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11402 { (case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_try") 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; } &&
11411 { ac_try='test -s conftest.$ac_objext'
11412 { (case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_try") 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 ac_header_compiler=yes
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_header_compiler=no
11429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11431 echo "${ECHO_T}$ac_header_compiler" >&6; }
11433 # Is the header present?
11434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <$ac_header>
11444 if { (ac_try="$ac_cpp conftest.$ac_ext"
11445 case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11452 grep -v '^ *+' conftest.er1 >conftest.err
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } >/dev/null; then
11457 if test -s conftest.err; then
11458 ac_cpp_err=$ac_c_preproc_warn_flag
11459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11466 if test -z "$ac_cpp_err"; then
11467 ac_header_preproc=yes
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11472 ac_header_preproc=no
11475 rm -f conftest.err conftest.$ac_ext
11476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11477 echo "${ECHO_T}$ac_header_preproc" >&6; }
11479 # So? What about this header?
11480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11486 ac_header_preproc=yes
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11502 ## ----------------------------------- ##
11503 ## Report this to llvmbugs@cs.uiuc.edu ##
11504 ## ----------------------------------- ##
11506 ) | sed "s/^/$as_me: WARNING: /" >&2
11509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 eval "$as_ac_Header=\$ac_header_preproc"
11516 ac_res=`eval echo '${'$as_ac_Header'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518 echo "${ECHO_T}$ac_res" >&6; }
11521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11522 cat >>confdefs.h <<_ACEOF
11523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11532 for ac_header in string.h strings.h
11534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 ac_res=`eval echo '${'$as_ac_Header'}'`
11542 { echo "$as_me:$LINENO: result: $ac_res" >&5
11543 echo "${ECHO_T}$ac_res" >&6; }
11545 # Is the header compilable?
11546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11548 cat >conftest.$ac_ext <<_ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 $ac_includes_default
11555 #include <$ac_header>
11557 rm -f conftest.$ac_objext
11558 if { (ac_try="$ac_compile"
11559 case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_compile") 2>conftest.er1
11566 grep -v '^ *+' conftest.er1 >conftest.err
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11572 { (case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_try") 2>&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; } &&
11581 { ac_try='test -s conftest.$ac_objext'
11582 { (case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_try") 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }; then
11591 ac_header_compiler=yes
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ac_header_compiler=no
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11601 echo "${ECHO_T}$ac_header_compiler" >&6; }
11603 # Is the header present?
11604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 #include <$ac_header>
11614 if { (ac_try="$ac_cpp conftest.$ac_ext"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11622 grep -v '^ *+' conftest.er1 >conftest.err
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } >/dev/null; then
11627 if test -s conftest.err; then
11628 ac_cpp_err=$ac_c_preproc_warn_flag
11629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11636 if test -z "$ac_cpp_err"; then
11637 ac_header_preproc=yes
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ac_header_preproc=no
11645 rm -f conftest.err conftest.$ac_ext
11646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11647 echo "${ECHO_T}$ac_header_preproc" >&6; }
11649 # So? What about this header?
11650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11656 ac_header_preproc=yes
11659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11672 ## ----------------------------------- ##
11673 ## Report this to llvmbugs@cs.uiuc.edu ##
11674 ## ----------------------------------- ##
11676 ) | sed "s/^/$as_me: WARNING: /" >&2
11679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11684 eval "$as_ac_Header=\$ac_header_preproc"
11686 ac_res=`eval echo '${'$as_ac_Header'}'`
11687 { echo "$as_me:$LINENO: result: $ac_res" >&5
11688 echo "${ECHO_T}$ac_res" >&6; }
11691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11692 cat >>confdefs.h <<_ACEOF
11693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11703 for ac_func in strchr index
11705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11719 #define $ac_func innocuous_$ac_func
11721 /* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11727 # include <limits.h>
11729 # include <assert.h>
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11741 /* The GNU C library defines this for functions which it implements
11742 to always fail with ENOSYS. Some functions are actually named
11743 something starting with __ and the normal name is an alias. */
11744 #if defined __stub_$ac_func || defined __stub___$ac_func
11751 return $ac_func ();
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (ac_try="$ac_link"
11758 case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_link") 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771 { (case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_try") 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_try") 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 eval "$as_ac_var=no"
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11801 ac_res=`eval echo '${'$as_ac_var'}'`
11802 { echo "$as_me:$LINENO: result: $ac_res" >&5
11803 echo "${ECHO_T}$ac_res" >&6; }
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11814 for ac_func in strrchr rindex
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830 #define $ac_func innocuous_$ac_func
11832 /* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11838 # include <limits.h>
11840 # include <assert.h>
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined __stub_$ac_func || defined __stub___$ac_func
11862 return $ac_func ();
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 eval "$as_ac_var=yes"
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 eval "$as_ac_var=no"
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11912 ac_res=`eval echo '${'$as_ac_var'}'`
11913 { echo "$as_me:$LINENO: result: $ac_res" >&5
11914 echo "${ECHO_T}$ac_res" >&6; }
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11925 for ac_func in memcpy bcopy
11927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11941 #define $ac_func innocuous_$ac_func
11943 /* System header to define __stub macros and hopefully few prototypes,
11944 which can conflict with char $ac_func (); below.
11945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11946 <limits.h> exists even on freestanding compilers. */
11949 # include <limits.h>
11951 # include <assert.h>
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11963 /* The GNU C library defines this for functions which it implements
11964 to always fail with ENOSYS. Some functions are actually named
11965 something starting with __ and the normal name is an alias. */
11966 #if defined __stub_$ac_func || defined __stub___$ac_func
11973 return $ac_func ();
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (ac_try="$ac_link"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_link") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 eval "$as_ac_var=yes"
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 eval "$as_ac_var=no"
12020 rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12023 ac_res=`eval echo '${'$as_ac_var'}'`
12024 { echo "$as_me:$LINENO: result: $ac_res" >&5
12025 echo "${ECHO_T}$ac_res" >&6; }
12026 if test `eval echo '${'$as_ac_var'}'` = yes; then
12027 cat >>confdefs.h <<_ACEOF
12028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12036 for ac_func in memmove strcmp
12038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12052 #define $ac_func innocuous_$ac_func
12054 /* System header to define __stub macros and hopefully few prototypes,
12055 which can conflict with char $ac_func (); below.
12056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12057 <limits.h> exists even on freestanding compilers. */
12060 # include <limits.h>
12062 # include <assert.h>
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12074 /* The GNU C library defines this for functions which it implements
12075 to always fail with ENOSYS. Some functions are actually named
12076 something starting with __ and the normal name is an alias. */
12077 #if defined __stub_$ac_func || defined __stub___$ac_func
12084 return $ac_func ();
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12098 grep -v '^ *+' conftest.er1 >conftest.err
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12104 { (case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_try") 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; } &&
12113 { ac_try='test -s conftest$ac_exeext'
12114 { (case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_try") 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 eval "$as_ac_var=yes"
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 eval "$as_ac_var=no"
12131 rm -f core conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12134 ac_res=`eval echo '${'$as_ac_var'}'`
12135 { echo "$as_me:$LINENO: result: $ac_res" >&5
12136 echo "${ECHO_T}$ac_res" >&6; }
12137 if test `eval echo '${'$as_ac_var'}'` = yes; then
12138 cat >>confdefs.h <<_ACEOF
12139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12148 for ac_func in closedir opendir readdir
12150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12164 #define $ac_func innocuous_$ac_func
12166 /* System header to define __stub macros and hopefully few prototypes,
12167 which can conflict with char $ac_func (); below.
12168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12169 <limits.h> exists even on freestanding compilers. */
12172 # include <limits.h>
12174 # include <assert.h>
12179 /* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
12186 /* The GNU C library defines this for functions which it implements
12187 to always fail with ENOSYS. Some functions are actually named
12188 something starting with __ and the normal name is an alias. */
12189 #if defined __stub_$ac_func || defined __stub___$ac_func
12196 return $ac_func ();
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_link") 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_try") 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest$ac_exeext'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 eval "$as_ac_var=yes"
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 eval "$as_ac_var=no"
12243 rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12246 ac_res=`eval echo '${'$as_ac_var'}'`
12247 { echo "$as_me:$LINENO: result: $ac_res" >&5
12248 echo "${ECHO_T}$ac_res" >&6; }
12249 if test `eval echo '${'$as_ac_var'}'` = yes; then
12250 cat >>confdefs.h <<_ACEOF
12251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12259 if test "$WITH_LLVMGCCDIR" = "default" ; then
12260 LLVMGCC="llvm-gcc${EXEEXT}"
12261 LLVMGXX="llvm-g++${EXEEXT}"
12262 LLVMGCCCOMMAND="$LLVMGCC"
12263 LLVMGXXCOMMAND="$LLVMGXX"
12264 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12266 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12268 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12269 set dummy $LLVMGCC; ac_word=$2
12270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12272 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12287 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 LLVMGCC=$ac_cv_path_LLVMGCC
12299 if test -n "$LLVMGCC"; then
12300 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12301 echo "${ECHO_T}$LLVMGCC" >&6; }
12303 { echo "$as_me:$LINENO: result: no" >&5
12304 echo "${ECHO_T}no" >&6; }
12308 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12309 set dummy $LLVMGXX; ac_word=$2
12310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12312 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12327 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 LLVMGXX=$ac_cv_path_LLVMGXX
12339 if test -n "$LLVMGXX"; then
12340 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12341 echo "${ECHO_T}$LLVMGXX" >&6; }
12343 { echo "$as_me:$LINENO: result: no" >&5
12344 echo "${ECHO_T}no" >&6; }
12349 if test -z "$LLVMGCC"; then
12350 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12351 LLVMGCCCOMMAND="$LLVMGCC"
12353 if test -z "$LLVMGXX"; then
12354 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12355 LLVMGXXCOMMAND="$LLVMGXX"
12362 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12364 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12369 # Check whether --with-llvmcc was given.
12370 if test "${with_llvmcc+set}" = set; then
12371 withval=$with_llvmcc;
12376 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12377 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12378 if test "$with_llvmcc" != "check"; then
12379 if (test "$with_llvmcc" != "llvm-gcc" &&
12380 test "$with_llvmcc" != "clang" &&
12381 test "$with_llvmcc" != "none"); then
12382 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12383 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12384 { (exit 1); exit 1; }; }
12386 WITH_LLVMCC="$with_llvmcc"
12387 elif test -n "$LLVMGCC"; then
12388 WITH_LLVMCC=llvm-gcc
12389 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12394 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12395 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12396 LLVMCC_OPTION=$WITH_LLVMCC
12399 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12400 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12413 if test "$GCC" != "yes" && test "$ICC" != "yes"
12415 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12416 echo "$as_me: error: gcc|icc required but not found" >&2;}
12417 { (exit 1); exit 1; }; }
12420 if test "$GXX" != "yes" && test "$IXX" != "yes"
12422 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12423 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12424 { (exit 1); exit 1; }; }
12427 if test "$GCC" = "yes"
12429 cat >conftest.$ac_ext <<_ACEOF
12430 #if !defined(__GNUC__) || __GNUC__ < 3
12431 #error Unsupported GCC version
12435 rm -f conftest.$ac_objext
12436 if { (ac_try="$ac_compile"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_compile") 2>conftest.er1
12444 grep -v '^ *+' conftest.er1 >conftest.err
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_try") 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12474 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12475 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12476 { (exit 1); exit 1; }; }
12479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 if test -z "$llvm_cv_gnu_make_command"
12484 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12485 echo "$as_me: error: GNU Make required but not found" >&2;}
12486 { (exit 1); exit 1; }; }
12489 { echo "$as_me:$LINENO: result: ok" >&5
12490 echo "${ECHO_T}ok" >&6; }
12492 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12493 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12494 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12496 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12498 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12499 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12503 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12504 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12505 if test "${ac_cv_lib_m_sin+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 ac_check_lib_save_LIBS=$LIBS
12510 cat >conftest.$ac_ext <<_ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12517 /* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12532 rm -f conftest.$ac_objext conftest$ac_exeext
12533 if { (ac_try="$ac_link"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_link") 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest$ac_exeext'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_cv_lib_m_sin=yes
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12578 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12579 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12580 if test $ac_cv_lib_m_sin = yes; then
12581 cat >>confdefs.h <<_ACEOF
12582 #define HAVE_LIBM 1
12589 if test "$llvm_cv_os_type" = "MingW" ; then
12591 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12592 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12593 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 ac_check_lib_save_LIBS=$LIBS
12597 LIBS="-limagehlp $LIBS"
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_link") 2>conftest.er1
12623 grep -v '^ *+' conftest.er1 >conftest.err
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } &&
12628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12629 { (case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_try") 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest$ac_exeext'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 ac_cv_lib_imagehlp_main=yes
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12653 ac_cv_lib_imagehlp_main=no
12656 rm -f core conftest.err conftest.$ac_objext \
12657 conftest$ac_exeext conftest.$ac_ext
12658 LIBS=$ac_check_lib_save_LIBS
12660 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12661 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12662 if test $ac_cv_lib_imagehlp_main = yes; then
12663 cat >>confdefs.h <<_ACEOF
12664 #define HAVE_LIBIMAGEHLP 1
12667 LIBS="-limagehlp $LIBS"
12672 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12673 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12674 if test "${ac_cv_lib_psapi_main+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-lpsapi $LIBS"
12679 cat >conftest.$ac_ext <<_ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12695 rm -f conftest.$ac_objext conftest$ac_exeext
12696 if { (ac_try="$ac_link"
12697 case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_link") 2>conftest.er1
12704 grep -v '^ *+' conftest.er1 >conftest.err
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; } &&
12719 { ac_try='test -s conftest$ac_exeext'
12720 { (case "(($ac_try" in
12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722 *) ac_try_echo=$ac_try;;
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_try") 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_cv_lib_psapi_main=yes
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12734 ac_cv_lib_psapi_main=no
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12739 LIBS=$ac_check_lib_save_LIBS
12741 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12742 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12743 if test $ac_cv_lib_psapi_main = yes; then
12744 cat >>confdefs.h <<_ACEOF
12745 #define HAVE_LIBPSAPI 1
12748 LIBS="-lpsapi $LIBS"
12754 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12755 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12756 if test "${ac_cv_search_dlopen+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 ac_func_search_save_LIBS=$LIBS
12760 cat >conftest.$ac_ext <<_ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12767 /* Override any GCC internal prototype to avoid an error.
12768 Use char because int might match the return type of a GCC
12769 builtin and then its argument prototype would still apply. */
12782 for ac_lib in '' dl; do
12783 if test -z "$ac_lib"; then
12784 ac_res="none required"
12787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12789 rm -f conftest.$ac_objext conftest$ac_exeext
12790 if { (ac_try="$ac_link"
12791 case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_link") 2>conftest.er1
12798 grep -v '^ *+' conftest.er1 >conftest.err
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12804 { (case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; } &&
12813 { ac_try='test -s conftest$ac_exeext'
12814 { (case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_try") 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_cv_search_dlopen=$ac_res
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12831 rm -f core conftest.err conftest.$ac_objext \
12833 if test "${ac_cv_search_dlopen+set}" = set; then
12837 if test "${ac_cv_search_dlopen+set}" = set; then
12840 ac_cv_search_dlopen=no
12842 rm conftest.$ac_ext
12843 LIBS=$ac_func_search_save_LIBS
12845 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12846 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12847 ac_res=$ac_cv_search_dlopen
12848 if test "$ac_res" != no; then
12849 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12851 cat >>confdefs.h <<\_ACEOF
12852 #define HAVE_DLOPEN 1
12856 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12857 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12861 if test "$llvm_cv_enable_libffi" = "yes" ; then
12862 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12863 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12864 if test "${ac_cv_search_ffi_call+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12867 ac_func_search_save_LIBS=$LIBS
12868 cat >conftest.$ac_ext <<_ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12875 /* Override any GCC internal prototype to avoid an error.
12876 Use char because int might match the return type of a GCC
12877 builtin and then its argument prototype would still apply. */
12885 return ffi_call ();
12890 for ac_lib in '' ffi; do
12891 if test -z "$ac_lib"; then
12892 ac_res="none required"
12895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12897 rm -f conftest.$ac_objext conftest$ac_exeext
12898 if { (ac_try="$ac_link"
12899 case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_link") 2>conftest.er1
12906 grep -v '^ *+' conftest.er1 >conftest.err
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest$ac_exeext'
12922 { (case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_try") 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12931 ac_cv_search_ffi_call=$ac_res
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12939 rm -f core conftest.err conftest.$ac_objext \
12941 if test "${ac_cv_search_ffi_call+set}" = set; then
12945 if test "${ac_cv_search_ffi_call+set}" = set; then
12948 ac_cv_search_ffi_call=no
12950 rm conftest.$ac_ext
12951 LIBS=$ac_func_search_save_LIBS
12953 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12954 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12955 ac_res=$ac_cv_search_ffi_call
12956 if test "$ac_res" != no; then
12957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12959 cat >>confdefs.h <<\_ACEOF
12960 #define HAVE_FFI_CALL 1
12964 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12965 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12966 { (exit 1); exit 1; }; }
12971 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12972 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12973 if test "${ac_cv_search_mallinfo+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 ac_func_search_save_LIBS=$LIBS
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12984 /* Override any GCC internal prototype to avoid an error.
12985 Use char because int might match the return type of a GCC
12986 builtin and then its argument prototype would still apply. */
12994 return mallinfo ();
12999 for ac_lib in '' malloc; do
13000 if test -z "$ac_lib"; then
13001 ac_res="none required"
13004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13006 rm -f conftest.$ac_objext conftest$ac_exeext
13007 if { (ac_try="$ac_link"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_link") 2>conftest.er1
13015 grep -v '^ *+' conftest.er1 >conftest.err
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13021 { (case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_try") 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } &&
13030 { ac_try='test -s conftest$ac_exeext'
13031 { (case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_try") 2>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; }; then
13040 ac_cv_search_mallinfo=$ac_res
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13048 rm -f core conftest.err conftest.$ac_objext \
13050 if test "${ac_cv_search_mallinfo+set}" = set; then
13054 if test "${ac_cv_search_mallinfo+set}" = set; then
13057 ac_cv_search_mallinfo=no
13059 rm conftest.$ac_ext
13060 LIBS=$ac_func_search_save_LIBS
13062 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13063 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13064 ac_res=$ac_cv_search_mallinfo
13065 if test "$ac_res" != no; then
13066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13068 cat >>confdefs.h <<\_ACEOF
13069 #define HAVE_MALLINFO 1
13075 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13077 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13078 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13079 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 ac_check_lib_save_LIBS=$LIBS
13083 LIBS="-lpthread $LIBS"
13084 cat >conftest.$ac_ext <<_ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13091 /* Override any GCC internal prototype to avoid an error.
13092 Use char because int might match the return type of a GCC
13093 builtin and then its argument prototype would still apply. */
13097 char pthread_mutex_init ();
13101 return pthread_mutex_init ();
13106 rm -f conftest.$ac_objext conftest$ac_exeext
13107 if { (ac_try="$ac_link"
13108 case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_link") 2>conftest.er1
13115 grep -v '^ *+' conftest.er1 >conftest.err
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13121 { (case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_try") 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13140 ac_cv_lib_pthread_pthread_mutex_init=yes
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13145 ac_cv_lib_pthread_pthread_mutex_init=no
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13152 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13153 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13154 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13155 cat >>confdefs.h <<_ACEOF
13156 #define HAVE_LIBPTHREAD 1
13159 LIBS="-lpthread $LIBS"
13163 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13164 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13165 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 ac_func_search_save_LIBS=$LIBS
13169 cat >conftest.$ac_ext <<_ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13176 /* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
13182 char pthread_mutex_lock ();
13186 return pthread_mutex_lock ();
13191 for ac_lib in '' pthread; do
13192 if test -z "$ac_lib"; then
13193 ac_res="none required"
13196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (ac_try="$ac_link"
13200 case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_link") 2>conftest.er1
13207 grep -v '^ *+' conftest.er1 >conftest.err
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13213 { (case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest$ac_exeext'
13223 { (case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_try") 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_search_pthread_mutex_lock=$ac_res
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13240 rm -f core conftest.err conftest.$ac_objext \
13242 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13246 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13249 ac_cv_search_pthread_mutex_lock=no
13251 rm conftest.$ac_ext
13252 LIBS=$ac_func_search_save_LIBS
13254 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13255 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13256 ac_res=$ac_cv_search_pthread_mutex_lock
13257 if test "$ac_res" != no; then
13258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13260 cat >>confdefs.h <<\_ACEOF
13261 #define HAVE_PTHREAD_MUTEX_LOCK 1
13266 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13267 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13268 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 ac_func_search_save_LIBS=$LIBS
13272 cat >conftest.$ac_ext <<_ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13285 char pthread_rwlock_init ();
13289 return pthread_rwlock_init ();
13294 for ac_lib in '' pthread; do
13295 if test -z "$ac_lib"; then
13296 ac_res="none required"
13299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13301 rm -f conftest.$ac_objext conftest$ac_exeext
13302 if { (ac_try="$ac_link"
13303 case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_link") 2>conftest.er1
13310 grep -v '^ *+' conftest.er1 >conftest.err
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316 { (case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_try") 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_try") 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_cv_search_pthread_rwlock_init=$ac_res
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13343 rm -f core conftest.err conftest.$ac_objext \
13345 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13349 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13352 ac_cv_search_pthread_rwlock_init=no
13354 rm conftest.$ac_ext
13355 LIBS=$ac_func_search_save_LIBS
13357 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13358 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13359 ac_res=$ac_cv_search_pthread_rwlock_init
13360 if test "$ac_res" != no; then
13361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13363 cat >>confdefs.h <<\_ACEOF
13364 #define HAVE_PTHREAD_RWLOCK_INIT 1
13369 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13370 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13371 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 ac_func_search_save_LIBS=$LIBS
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13382 /* Override any GCC internal prototype to avoid an error.
13383 Use char because int might match the return type of a GCC
13384 builtin and then its argument prototype would still apply. */
13388 char pthread_getspecific ();
13392 return pthread_getspecific ();
13397 for ac_lib in '' pthread; do
13398 if test -z "$ac_lib"; then
13399 ac_res="none required"
13402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13404 rm -f conftest.$ac_objext conftest$ac_exeext
13405 if { (ac_try="$ac_link"
13406 case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_link") 2>conftest.er1
13413 grep -v '^ *+' conftest.er1 >conftest.err
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest$ac_exeext'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_cv_search_pthread_getspecific=$ac_res
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13446 rm -f core conftest.err conftest.$ac_objext \
13448 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13452 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13455 ac_cv_search_pthread_getspecific=no
13457 rm conftest.$ac_ext
13458 LIBS=$ac_func_search_save_LIBS
13460 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13461 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13462 ac_res=$ac_cv_search_pthread_getspecific
13463 if test "$ac_res" != no; then
13464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_PTHREAD_GETSPECIFIC 1
13475 # Check whether --with-udis86 was given.
13476 if test "${with_udis86+set}" = set; then
13477 withval=$with_udis86;
13482 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13485 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13486 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13487 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 ac_check_lib_save_LIBS=$LIBS
13491 LIBS="-ludis86 $LIBS"
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (ac_try="$ac_link"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_link") 2>conftest.er1
13523 grep -v '^ *+' conftest.er1 >conftest.err
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest$ac_exeext'
13539 { (case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_try") 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_cv_lib_udis86_ud_init=yes
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ac_cv_lib_udis86_ud_init=no
13556 rm -f core conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
13558 LIBS=$ac_check_lib_save_LIBS
13560 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13561 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13562 if test $ac_cv_lib_udis86_ud_init = yes; then
13563 cat >>confdefs.h <<_ACEOF
13564 #define HAVE_LIBUDIS86 1
13567 LIBS="-ludis86 $LIBS"
13571 echo "Error! You need to have libudis86 around."
13583 cat >>confdefs.h <<_ACEOF
13584 #define USE_UDIS86 $USE_UDIS86
13589 # Check whether --with-oprofile was given.
13590 if test "${with_oprofile+set}" = set; then
13591 withval=$with_oprofile;
13595 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13596 no) llvm_cv_oppath=
13599 *) llvm_cv_oppath="${withval}/lib/oprofile"
13600 CPPFLAGS="-I${withval}/include";;
13602 if test -n "$llvm_cv_oppath" ; then
13603 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13604 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13605 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13606 if test "${ac_cv_search_bfd_init+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 ac_func_search_save_LIBS=$LIBS
13610 cat >conftest.$ac_ext <<_ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13617 /* Override any GCC internal prototype to avoid an error.
13618 Use char because int might match the return type of a GCC
13619 builtin and then its argument prototype would still apply. */
13627 return bfd_init ();
13632 for ac_lib in '' bfd; do
13633 if test -z "$ac_lib"; then
13634 ac_res="none required"
13637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13639 rm -f conftest.$ac_objext conftest$ac_exeext
13640 if { (ac_try="$ac_link"
13641 case "(($ac_try" in
13642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_link") 2>conftest.er1
13648 grep -v '^ *+' conftest.er1 >conftest.err
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13654 { (case "(($ac_try" in
13655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656 *) ac_try_echo=$ac_try;;
13658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659 (eval "$ac_try") 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; } &&
13663 { ac_try='test -s conftest$ac_exeext'
13664 { (case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_try") 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_cv_search_bfd_init=$ac_res
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13681 rm -f core conftest.err conftest.$ac_objext \
13683 if test "${ac_cv_search_bfd_init+set}" = set; then
13687 if test "${ac_cv_search_bfd_init+set}" = set; then
13690 ac_cv_search_bfd_init=no
13692 rm conftest.$ac_ext
13693 LIBS=$ac_func_search_save_LIBS
13695 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13696 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13697 ac_res=$ac_cv_search_bfd_init
13698 if test "$ac_res" != no; then
13699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13703 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13704 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13705 if test "${ac_cv_search_op_open_agent+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 ac_func_search_save_LIBS=$LIBS
13709 cat >conftest.$ac_ext <<_ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13716 /* Override any GCC internal prototype to avoid an error.
13717 Use char because int might match the return type of a GCC
13718 builtin and then its argument prototype would still apply. */
13722 char op_open_agent ();
13726 return op_open_agent ();
13731 for ac_lib in '' opagent; do
13732 if test -z "$ac_lib"; then
13733 ac_res="none required"
13736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13738 rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (ac_try="$ac_link"
13740 case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_link") 2>conftest.er1
13747 grep -v '^ *+' conftest.er1 >conftest.err
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753 { (case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_try") 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest$ac_exeext'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_cv_search_op_open_agent=$ac_res
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13780 rm -f core conftest.err conftest.$ac_objext \
13782 if test "${ac_cv_search_op_open_agent+set}" = set; then
13786 if test "${ac_cv_search_op_open_agent+set}" = set; then
13789 ac_cv_search_op_open_agent=no
13791 rm conftest.$ac_ext
13792 LIBS=$ac_func_search_save_LIBS
13794 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13795 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13796 ac_res=$ac_cv_search_op_open_agent
13797 if test "$ac_res" != no; then
13798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13802 echo "Error! You need to have libopagent around."
13807 if test "${ac_cv_header_opagent_h+set}" = set; then
13808 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13809 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13810 if test "${ac_cv_header_opagent_h+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13814 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13816 # Is the header compilable?
13817 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13818 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13819 cat >conftest.$ac_ext <<_ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 $ac_includes_default
13826 #include <opagent.h>
13828 rm -f conftest.$ac_objext
13829 if { (ac_try="$ac_compile"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_compile") 2>conftest.er1
13837 grep -v '^ *+' conftest.er1 >conftest.err
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843 { (case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_try") 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest.$ac_objext'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_header_compiler=yes
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13867 ac_header_compiler=no
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13872 echo "${ECHO_T}$ac_header_compiler" >&6; }
13874 # Is the header present?
13875 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13876 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13877 cat >conftest.$ac_ext <<_ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 #include <opagent.h>
13885 if { (ac_try="$ac_cpp conftest.$ac_ext"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } >/dev/null; then
13898 if test -s conftest.err; then
13899 ac_cpp_err=$ac_c_preproc_warn_flag
13900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13907 if test -z "$ac_cpp_err"; then
13908 ac_header_preproc=yes
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ac_header_preproc=no
13916 rm -f conftest.err conftest.$ac_ext
13917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13918 echo "${ECHO_T}$ac_header_preproc" >&6; }
13920 # So? What about this header?
13921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13923 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13924 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13926 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13927 ac_header_preproc=yes
13930 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13931 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13932 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13933 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13935 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13937 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13939 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13940 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13941 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13943 ## ----------------------------------- ##
13944 ## Report this to llvmbugs@cs.uiuc.edu ##
13945 ## ----------------------------------- ##
13947 ) | sed "s/^/$as_me: WARNING: /" >&2
13950 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13951 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13952 if test "${ac_cv_header_opagent_h+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 ac_cv_header_opagent_h=$ac_header_preproc
13957 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13958 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13961 if test $ac_cv_header_opagent_h = yes; then
13965 echo "Error! You need to have opagent.h around."
13981 cat >>confdefs.h <<_ACEOF
13982 #define USE_OPROFILE $USE_OPROFILE
13992 ac_header_dirent=no
13993 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13994 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13995 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13996 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 #include <sys/types.h>
14018 rm -f conftest.$ac_objext
14019 if { (ac_try="$ac_compile"
14020 case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_compile") 2>conftest.er1
14027 grep -v '^ *+' conftest.er1 >conftest.err
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14033 { (case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_try") 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; } &&
14042 { ac_try='test -s conftest.$ac_objext'
14043 { (case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_try") 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 eval "$as_ac_Header=yes"
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 eval "$as_ac_Header=no"
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062 ac_res=`eval echo '${'$as_ac_Header'}'`
14063 { echo "$as_me:$LINENO: result: $ac_res" >&5
14064 echo "${ECHO_T}$ac_res" >&6; }
14065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14066 cat >>confdefs.h <<_ACEOF
14067 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14070 ac_header_dirent=$ac_hdr; break
14074 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14075 if test $ac_header_dirent = dirent.h; then
14076 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14077 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14078 if test "${ac_cv_search_opendir+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 ac_func_search_save_LIBS=$LIBS
14082 cat >conftest.$ac_ext <<_ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14089 /* Override any GCC internal prototype to avoid an error.
14090 Use char because int might match the return type of a GCC
14091 builtin and then its argument prototype would still apply. */
14104 for ac_lib in '' dir; do
14105 if test -z "$ac_lib"; then
14106 ac_res="none required"
14109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (ac_try="$ac_link"
14113 case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_link") 2>conftest.er1
14120 grep -v '^ *+' conftest.er1 >conftest.err
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14126 { (case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_try") 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } &&
14135 { ac_try='test -s conftest$ac_exeext'
14136 { (case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_try") 2>&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; }; then
14145 ac_cv_search_opendir=$ac_res
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14153 rm -f core conftest.err conftest.$ac_objext \
14155 if test "${ac_cv_search_opendir+set}" = set; then
14159 if test "${ac_cv_search_opendir+set}" = set; then
14162 ac_cv_search_opendir=no
14164 rm conftest.$ac_ext
14165 LIBS=$ac_func_search_save_LIBS
14167 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14168 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14169 ac_res=$ac_cv_search_opendir
14170 if test "$ac_res" != no; then
14171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14176 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14177 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14178 if test "${ac_cv_search_opendir+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 ac_func_search_save_LIBS=$LIBS
14182 cat >conftest.$ac_ext <<_ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14189 /* Override any GCC internal prototype to avoid an error.
14190 Use char because int might match the return type of a GCC
14191 builtin and then its argument prototype would still apply. */
14204 for ac_lib in '' x; do
14205 if test -z "$ac_lib"; then
14206 ac_res="none required"
14209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14211 rm -f conftest.$ac_objext conftest$ac_exeext
14212 if { (ac_try="$ac_link"
14213 case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_link") 2>conftest.er1
14220 grep -v '^ *+' conftest.er1 >conftest.err
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest$ac_exeext'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_cv_search_opendir=$ac_res
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14253 rm -f core conftest.err conftest.$ac_objext \
14255 if test "${ac_cv_search_opendir+set}" = set; then
14259 if test "${ac_cv_search_opendir+set}" = set; then
14262 ac_cv_search_opendir=no
14264 rm conftest.$ac_ext
14265 LIBS=$ac_func_search_save_LIBS
14267 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14268 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14269 ac_res=$ac_cv_search_opendir
14270 if test "$ac_res" != no; then
14271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14277 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14278 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14279 if test "${ac_cv_header_mmap_anon+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14283 ac_cpp='$CPP $CPPFLAGS'
14284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14288 cat >conftest.$ac_ext <<_ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 #include <sys/mman.h>
14295 #include <unistd.h>
14300 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14305 rm -f conftest.$ac_objext
14306 if { (ac_try="$ac_compile"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_compile") 2>conftest.er1
14314 grep -v '^ *+' conftest.er1 >conftest.err
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest.$ac_objext'
14330 { (case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_try") 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_header_mmap_anon=yes
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 ac_cv_header_mmap_anon=no
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14349 ac_cpp='$CPP $CPPFLAGS'
14350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14356 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14357 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14358 if test "$ac_cv_header_mmap_anon" = yes; then
14360 cat >>confdefs.h <<\_ACEOF
14361 #define HAVE_MMAP_ANONYMOUS 1
14366 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14367 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14368 if test "${ac_cv_header_stat_broken+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 cat >conftest.$ac_ext <<_ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 #include <sys/types.h>
14378 #include <sys/stat.h>
14380 #if defined S_ISBLK && defined S_IFDIR
14381 # if S_ISBLK (S_IFDIR)
14386 #if defined S_ISBLK && defined S_IFCHR
14387 # if S_ISBLK (S_IFCHR)
14392 #if defined S_ISLNK && defined S_IFREG
14393 # if S_ISLNK (S_IFREG)
14398 #if defined S_ISSOCK && defined S_IFREG
14399 # if S_ISSOCK (S_IFREG)
14405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14406 $EGREP "You lose" >/dev/null 2>&1; then
14407 ac_cv_header_stat_broken=yes
14409 ac_cv_header_stat_broken=no
14414 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14415 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14416 if test $ac_cv_header_stat_broken = yes; then
14418 cat >>confdefs.h <<\_ACEOF
14419 #define STAT_MACROS_BROKEN 1
14424 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14425 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14426 if test "${ac_cv_header_stdc+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 cat >conftest.$ac_ext <<_ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 #include <stdlib.h>
14436 #include <stdarg.h>
14437 #include <string.h>
14448 rm -f conftest.$ac_objext
14449 if { (ac_try="$ac_compile"
14450 case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455 (eval "$ac_compile") 2>conftest.er1
14457 grep -v '^ *+' conftest.er1 >conftest.err
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14463 { (case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_try") 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
14473 { (case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_try") 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_header_stdc=yes
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_cv_header_stdc=no
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 if test $ac_cv_header_stdc = yes; then
14493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14494 cat >conftest.$ac_ext <<_ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 #include <string.h>
14503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14504 $EGREP "memchr" >/dev/null 2>&1; then
14507 ac_cv_header_stdc=no
14513 if test $ac_cv_header_stdc = yes; then
14514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <stdlib.h>
14524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14525 $EGREP "free" >/dev/null 2>&1; then
14528 ac_cv_header_stdc=no
14534 if test $ac_cv_header_stdc = yes; then
14535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14536 if test "$cross_compiling" = yes; then
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14546 #include <stdlib.h>
14547 #if ((' ' & 0x0FF) == 0x020)
14548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14551 # define ISLOWER(c) \
14552 (('a' <= (c) && (c) <= 'i') \
14553 || ('j' <= (c) && (c) <= 'r') \
14554 || ('s' <= (c) && (c) <= 'z'))
14555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14563 for (i = 0; i < 256; i++)
14564 if (XOR (islower (i), ISLOWER (i))
14565 || toupper (i) != TOUPPER (i))
14570 rm -f conftest$ac_exeext
14571 if { (ac_try="$ac_link"
14572 case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577 (eval "$ac_link") 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14581 { (case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586 (eval "$ac_try") 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14592 echo "$as_me: program exited with status $ac_status" >&5
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 ( exit $ac_status )
14597 ac_cv_header_stdc=no
14599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14605 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14606 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14607 if test $ac_cv_header_stdc = yes; then
14609 cat >>confdefs.h <<\_ACEOF
14610 #define STDC_HEADERS 1
14615 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14616 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14617 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 cat >conftest.$ac_ext <<_ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <sys/types.h>
14627 #include <sys/wait.h>
14628 #ifndef WEXITSTATUS
14629 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14632 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14645 rm -f conftest.$ac_objext
14646 if { (ac_try="$ac_compile"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_compile") 2>conftest.er1
14654 grep -v '^ *+' conftest.er1 >conftest.err
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14660 { (case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_try") 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; } &&
14669 { ac_try='test -s conftest.$ac_objext'
14670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 ac_cv_header_sys_wait_h=yes
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14684 ac_cv_header_sys_wait_h=no
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14690 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14691 if test $ac_cv_header_sys_wait_h = yes; then
14693 cat >>confdefs.h <<\_ACEOF
14694 #define HAVE_SYS_WAIT_H 1
14699 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14700 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14701 if test "${ac_cv_header_time+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 cat >conftest.$ac_ext <<_ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 #include <sys/types.h>
14711 #include <sys/time.h>
14717 if ((struct tm *) 0)
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730 (eval "$ac_compile") 2>conftest.er1
14732 grep -v '^ *+' conftest.er1 >conftest.err
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
14737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_cv_header_time=yes
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14762 ac_cv_header_time=no
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14768 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14769 if test $ac_cv_header_time = yes; then
14771 cat >>confdefs.h <<\_ACEOF
14772 #define TIME_WITH_SYS_TIME 1
14784 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 ac_res=`eval echo '${'$as_ac_Header'}'`
14794 { echo "$as_me:$LINENO: result: $ac_res" >&5
14795 echo "${ECHO_T}$ac_res" >&6; }
14797 # Is the header compilable?
14798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14800 cat >conftest.$ac_ext <<_ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 $ac_includes_default
14807 #include <$ac_header>
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
14818 grep -v '^ *+' conftest.er1 >conftest.err
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14824 { (case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_try") 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; } &&
14833 { ac_try='test -s conftest.$ac_objext'
14834 { (case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_try") 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_header_compiler=yes
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_header_compiler=no
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14853 echo "${ECHO_T}$ac_header_compiler" >&6; }
14855 # Is the header present?
14856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14858 cat >conftest.$ac_ext <<_ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 #include <$ac_header>
14866 if { (ac_try="$ac_cpp conftest.$ac_ext"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14874 grep -v '^ *+' conftest.er1 >conftest.err
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } >/dev/null; then
14879 if test -s conftest.err; then
14880 ac_cpp_err=$ac_c_preproc_warn_flag
14881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14888 if test -z "$ac_cpp_err"; then
14889 ac_header_preproc=yes
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_header_preproc=no
14897 rm -f conftest.err conftest.$ac_ext
14898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14899 echo "${ECHO_T}$ac_header_preproc" >&6; }
14901 # So? What about this header?
14902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14908 ac_header_preproc=yes
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14924 ## ----------------------------------- ##
14925 ## Report this to llvmbugs@cs.uiuc.edu ##
14926 ## ----------------------------------- ##
14928 ) | sed "s/^/$as_me: WARNING: /" >&2
14931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 eval "$as_ac_Header=\$ac_header_preproc"
14938 ac_res=`eval echo '${'$as_ac_Header'}'`
14939 { echo "$as_me:$LINENO: result: $ac_res" >&5
14940 echo "${ECHO_T}$ac_res" >&6; }
14943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14944 cat >>confdefs.h <<_ACEOF
14945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14958 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 ac_res=`eval echo '${'$as_ac_Header'}'`
14968 { echo "$as_me:$LINENO: result: $ac_res" >&5
14969 echo "${ECHO_T}$ac_res" >&6; }
14971 # Is the header compilable?
14972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14974 cat >conftest.$ac_ext <<_ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 $ac_includes_default
14981 #include <$ac_header>
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_compile") 2>conftest.er1
14992 grep -v '^ *+' conftest.er1 >conftest.err
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_header_compiler=yes
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 ac_header_compiler=no
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15027 echo "${ECHO_T}$ac_header_compiler" >&6; }
15029 # Is the header present?
15030 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15032 cat >conftest.$ac_ext <<_ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038 #include <$ac_header>
15040 if { (ac_try="$ac_cpp conftest.$ac_ext"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15048 grep -v '^ *+' conftest.er1 >conftest.err
15050 cat conftest.err >&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } >/dev/null; then
15053 if test -s conftest.err; then
15054 ac_cpp_err=$ac_c_preproc_warn_flag
15055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15062 if test -z "$ac_cpp_err"; then
15063 ac_header_preproc=yes
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_header_preproc=no
15071 rm -f conftest.err conftest.$ac_ext
15072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15073 echo "${ECHO_T}$ac_header_preproc" >&6; }
15075 # So? What about this header?
15076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15082 ac_header_preproc=yes
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15098 ## ----------------------------------- ##
15099 ## Report this to llvmbugs@cs.uiuc.edu ##
15100 ## ----------------------------------- ##
15102 ) | sed "s/^/$as_me: WARNING: /" >&2
15105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 eval "$as_ac_Header=\$ac_header_preproc"
15112 ac_res=`eval echo '${'$as_ac_Header'}'`
15113 { echo "$as_me:$LINENO: result: $ac_res" >&5
15114 echo "${ECHO_T}$ac_res" >&6; }
15117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15118 cat >>confdefs.h <<_ACEOF
15119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15128 for ac_header in utime.h windows.h
15130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 ac_res=`eval echo '${'$as_ac_Header'}'`
15138 { echo "$as_me:$LINENO: result: $ac_res" >&5
15139 echo "${ECHO_T}$ac_res" >&6; }
15141 # Is the header compilable?
15142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15144 cat >conftest.$ac_ext <<_ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15150 $ac_includes_default
15151 #include <$ac_header>
15153 rm -f conftest.$ac_objext
15154 if { (ac_try="$ac_compile"
15155 case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_compile") 2>conftest.er1
15162 grep -v '^ *+' conftest.er1 >conftest.err
15164 cat conftest.err >&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
15167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15168 { (case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_try") 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_try") 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_header_compiler=yes
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_header_compiler=no
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197 echo "${ECHO_T}$ac_header_compiler" >&6; }
15199 # Is the header present?
15200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #include <$ac_header>
15210 if { (ac_try="$ac_cpp conftest.$ac_ext"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15218 grep -v '^ *+' conftest.er1 >conftest.err
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } >/dev/null; then
15223 if test -s conftest.err; then
15224 ac_cpp_err=$ac_c_preproc_warn_flag
15225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15232 if test -z "$ac_cpp_err"; then
15233 ac_header_preproc=yes
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_header_preproc=no
15241 rm -f conftest.err conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15243 echo "${ECHO_T}$ac_header_preproc" >&6; }
15245 # So? What about this header?
15246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15252 ac_header_preproc=yes
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15268 ## ----------------------------------- ##
15269 ## Report this to llvmbugs@cs.uiuc.edu ##
15270 ## ----------------------------------- ##
15272 ) | sed "s/^/$as_me: WARNING: /" >&2
15275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 eval "$as_ac_Header=\$ac_header_preproc"
15282 ac_res=`eval echo '${'$as_ac_Header'}'`
15283 { echo "$as_me:$LINENO: result: $ac_res" >&5
15284 echo "${ECHO_T}$ac_res" >&6; }
15287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15288 cat >>confdefs.h <<_ACEOF
15289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15301 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 ac_res=`eval echo '${'$as_ac_Header'}'`
15311 { echo "$as_me:$LINENO: result: $ac_res" >&5
15312 echo "${ECHO_T}$ac_res" >&6; }
15314 # Is the header compilable?
15315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15317 cat >conftest.$ac_ext <<_ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 $ac_includes_default
15324 #include <$ac_header>
15326 rm -f conftest.$ac_objext
15327 if { (ac_try="$ac_compile"
15328 case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_compile") 2>conftest.er1
15335 grep -v '^ *+' conftest.er1 >conftest.err
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } &&
15340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15341 { (case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346 (eval "$ac_try") 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; } &&
15350 { ac_try='test -s conftest.$ac_objext'
15351 { (case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_try") 2>&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_header_compiler=yes
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 ac_header_compiler=no
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15370 echo "${ECHO_T}$ac_header_compiler" >&6; }
15372 # Is the header present?
15373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 #include <$ac_header>
15383 if { (ac_try="$ac_cpp conftest.$ac_ext"
15384 case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15391 grep -v '^ *+' conftest.er1 >conftest.err
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } >/dev/null; then
15396 if test -s conftest.err; then
15397 ac_cpp_err=$ac_c_preproc_warn_flag
15398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15405 if test -z "$ac_cpp_err"; then
15406 ac_header_preproc=yes
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15411 ac_header_preproc=no
15414 rm -f conftest.err conftest.$ac_ext
15415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15416 echo "${ECHO_T}$ac_header_preproc" >&6; }
15418 # So? What about this header?
15419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15425 ac_header_preproc=yes
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15441 ## ----------------------------------- ##
15442 ## Report this to llvmbugs@cs.uiuc.edu ##
15443 ## ----------------------------------- ##
15445 ) | sed "s/^/$as_me: WARNING: /" >&2
15448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 eval "$as_ac_Header=\$ac_header_preproc"
15455 ac_res=`eval echo '${'$as_ac_Header'}'`
15456 { echo "$as_me:$LINENO: result: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15461 cat >>confdefs.h <<_ACEOF
15462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15473 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 ac_res=`eval echo '${'$as_ac_Header'}'`
15483 { echo "$as_me:$LINENO: result: $ac_res" >&5
15484 echo "${ECHO_T}$ac_res" >&6; }
15486 # Is the header compilable?
15487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15489 cat >conftest.$ac_ext <<_ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15495 $ac_includes_default
15496 #include <$ac_header>
15498 rm -f conftest.$ac_objext
15499 if { (ac_try="$ac_compile"
15500 case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_compile") 2>conftest.er1
15507 grep -v '^ *+' conftest.er1 >conftest.err
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } &&
15512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15513 { (case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_try") 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try='test -s conftest.$ac_objext'
15523 { (case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_try") 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_header_compiler=yes
15534 echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 ac_header_compiler=no
15540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15542 echo "${ECHO_T}$ac_header_compiler" >&6; }
15544 # Is the header present?
15545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15547 cat >conftest.$ac_ext <<_ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h. */
15553 #include <$ac_header>
15555 if { (ac_try="$ac_cpp conftest.$ac_ext"
15556 case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15563 grep -v '^ *+' conftest.er1 >conftest.err
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } >/dev/null; then
15568 if test -s conftest.err; then
15569 ac_cpp_err=$ac_c_preproc_warn_flag
15570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15577 if test -z "$ac_cpp_err"; then
15578 ac_header_preproc=yes
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15583 ac_header_preproc=no
15586 rm -f conftest.err conftest.$ac_ext
15587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15588 echo "${ECHO_T}$ac_header_preproc" >&6; }
15590 # So? What about this header?
15591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15597 ac_header_preproc=yes
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15613 ## ----------------------------------- ##
15614 ## Report this to llvmbugs@cs.uiuc.edu ##
15615 ## ----------------------------------- ##
15617 ) | sed "s/^/$as_me: WARNING: /" >&2
15620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 eval "$as_ac_Header=\$ac_header_preproc"
15627 ac_res=`eval echo '${'$as_ac_Header'}'`
15628 { echo "$as_me:$LINENO: result: $ac_res" >&5
15629 echo "${ECHO_T}$ac_res" >&6; }
15632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15633 cat >>confdefs.h <<_ACEOF
15634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15642 for ac_header in valgrind/valgrind.h
15644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 ac_res=`eval echo '${'$as_ac_Header'}'`
15652 { echo "$as_me:$LINENO: result: $ac_res" >&5
15653 echo "${ECHO_T}$ac_res" >&6; }
15655 # Is the header compilable?
15656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15658 cat >conftest.$ac_ext <<_ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 $ac_includes_default
15665 #include <$ac_header>
15667 rm -f conftest.$ac_objext
15668 if { (ac_try="$ac_compile"
15669 case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_compile") 2>conftest.er1
15676 grep -v '^ *+' conftest.er1 >conftest.err
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15682 { (case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_try") 2>&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try='test -s conftest.$ac_objext'
15692 { (case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_try") 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_header_compiler=yes
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 ac_header_compiler=no
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15711 echo "${ECHO_T}$ac_header_compiler" >&6; }
15713 # Is the header present?
15714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15716 cat >conftest.$ac_ext <<_ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722 #include <$ac_header>
15724 if { (ac_try="$ac_cpp conftest.$ac_ext"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1 >conftest.err
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } >/dev/null; then
15737 if test -s conftest.err; then
15738 ac_cpp_err=$ac_c_preproc_warn_flag
15739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15746 if test -z "$ac_cpp_err"; then
15747 ac_header_preproc=yes
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 ac_header_preproc=no
15755 rm -f conftest.err conftest.$ac_ext
15756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15757 echo "${ECHO_T}$ac_header_preproc" >&6; }
15759 # So? What about this header?
15760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15766 ac_header_preproc=yes
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15782 ## ----------------------------------- ##
15783 ## Report this to llvmbugs@cs.uiuc.edu ##
15784 ## ----------------------------------- ##
15786 ) | sed "s/^/$as_me: WARNING: /" >&2
15789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 eval "$as_ac_Header=\$ac_header_preproc"
15796 ac_res=`eval echo '${'$as_ac_Header'}'`
15797 { echo "$as_me:$LINENO: result: $ac_res" >&5
15798 echo "${ECHO_T}$ac_res" >&6; }
15801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15802 cat >>confdefs.h <<_ACEOF
15803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15811 for ac_header in fenv.h
15813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 ac_res=`eval echo '${'$as_ac_Header'}'`
15821 { echo "$as_me:$LINENO: result: $ac_res" >&5
15822 echo "${ECHO_T}$ac_res" >&6; }
15824 # Is the header compilable?
15825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15827 cat >conftest.$ac_ext <<_ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 $ac_includes_default
15834 #include <$ac_header>
15836 rm -f conftest.$ac_objext
15837 if { (ac_try="$ac_compile"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_compile") 2>conftest.er1
15845 grep -v '^ *+' conftest.er1 >conftest.err
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15851 { (case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_try") 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest.$ac_objext'
15861 { (case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_try") 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870 ac_header_compiler=yes
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 ac_header_compiler=no
15878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15880 echo "${ECHO_T}$ac_header_compiler" >&6; }
15882 # Is the header present?
15883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15885 cat >conftest.$ac_ext <<_ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 #include <$ac_header>
15893 if { (ac_try="$ac_cpp conftest.$ac_ext"
15894 case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15901 grep -v '^ *+' conftest.er1 >conftest.err
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } >/dev/null; then
15906 if test -s conftest.err; then
15907 ac_cpp_err=$ac_c_preproc_warn_flag
15908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15915 if test -z "$ac_cpp_err"; then
15916 ac_header_preproc=yes
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 ac_header_preproc=no
15924 rm -f conftest.err conftest.$ac_ext
15925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15926 echo "${ECHO_T}$ac_header_preproc" >&6; }
15928 # So? What about this header?
15929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15935 ac_header_preproc=yes
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15951 ## ----------------------------------- ##
15952 ## Report this to llvmbugs@cs.uiuc.edu ##
15953 ## ----------------------------------- ##
15955 ) | sed "s/^/$as_me: WARNING: /" >&2
15958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 eval "$as_ac_Header=\$ac_header_preproc"
15965 ac_res=`eval echo '${'$as_ac_Header'}'`
15966 { echo "$as_me:$LINENO: result: $ac_res" >&5
15967 echo "${ECHO_T}$ac_res" >&6; }
15970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15971 cat >>confdefs.h <<_ACEOF
15972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15979 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15981 for ac_header in pthread.h
15983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 ac_res=`eval echo '${'$as_ac_Header'}'`
15991 { echo "$as_me:$LINENO: result: $ac_res" >&5
15992 echo "${ECHO_T}$ac_res" >&6; }
15994 # Is the header compilable?
15995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 $ac_includes_default
16004 #include <$ac_header>
16006 rm -f conftest.$ac_objext
16007 if { (ac_try="$ac_compile"
16008 case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_compile") 2>conftest.er1
16015 grep -v '^ *+' conftest.er1 >conftest.err
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16021 { (case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_try") 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; } &&
16030 { ac_try='test -s conftest.$ac_objext'
16031 { (case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_try") 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_header_compiler=yes
16042 echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16045 ac_header_compiler=no
16048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16050 echo "${ECHO_T}$ac_header_compiler" >&6; }
16052 # Is the header present?
16053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16055 cat >conftest.$ac_ext <<_ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 #include <$ac_header>
16063 if { (ac_try="$ac_cpp conftest.$ac_ext"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } >/dev/null; then
16076 if test -s conftest.err; then
16077 ac_cpp_err=$ac_c_preproc_warn_flag
16078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16085 if test -z "$ac_cpp_err"; then
16086 ac_header_preproc=yes
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_header_preproc=no
16094 rm -f conftest.err conftest.$ac_ext
16095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16096 echo "${ECHO_T}$ac_header_preproc" >&6; }
16098 # So? What about this header?
16099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16105 ac_header_preproc=yes
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16121 ## ----------------------------------- ##
16122 ## Report this to llvmbugs@cs.uiuc.edu ##
16123 ## ----------------------------------- ##
16125 ) | sed "s/^/$as_me: WARNING: /" >&2
16128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 eval "$as_ac_Header=\$ac_header_preproc"
16135 ac_res=`eval echo '${'$as_ac_Header'}'`
16136 { echo "$as_me:$LINENO: result: $ac_res" >&5
16137 echo "${ECHO_T}$ac_res" >&6; }
16140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16141 cat >>confdefs.h <<_ACEOF
16142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16158 if test "$llvm_cv_enable_libffi" = "yes" ; then
16161 for ac_header in ffi.h ffi/ffi.h
16163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 ac_res=`eval echo '${'$as_ac_Header'}'`
16171 { echo "$as_me:$LINENO: result: $ac_res" >&5
16172 echo "${ECHO_T}$ac_res" >&6; }
16174 # Is the header compilable?
16175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16177 cat >conftest.$ac_ext <<_ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h. */
16183 $ac_includes_default
16184 #include <$ac_header>
16186 rm -f conftest.$ac_objext
16187 if { (ac_try="$ac_compile"
16188 case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_compile") 2>conftest.er1
16195 grep -v '^ *+' conftest.er1 >conftest.err
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } &&
16200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest.$ac_objext'
16211 { (case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_try") 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 ac_header_compiler=yes
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 ac_header_compiler=no
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16230 echo "${ECHO_T}$ac_header_compiler" >&6; }
16232 # Is the header present?
16233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16235 cat >conftest.$ac_ext <<_ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 #include <$ac_header>
16243 if { (ac_try="$ac_cpp conftest.$ac_ext"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16251 grep -v '^ *+' conftest.er1 >conftest.err
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } >/dev/null; then
16256 if test -s conftest.err; then
16257 ac_cpp_err=$ac_c_preproc_warn_flag
16258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16265 if test -z "$ac_cpp_err"; then
16266 ac_header_preproc=yes
16268 echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16271 ac_header_preproc=no
16274 rm -f conftest.err conftest.$ac_ext
16275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16276 echo "${ECHO_T}$ac_header_preproc" >&6; }
16278 # So? What about this header?
16279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16285 ac_header_preproc=yes
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16301 ## ----------------------------------- ##
16302 ## Report this to llvmbugs@cs.uiuc.edu ##
16303 ## ----------------------------------- ##
16305 ) | sed "s/^/$as_me: WARNING: /" >&2
16308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16313 eval "$as_ac_Header=\$ac_header_preproc"
16315 ac_res=`eval echo '${'$as_ac_Header'}'`
16316 { echo "$as_me:$LINENO: result: $ac_res" >&5
16317 echo "${ECHO_T}$ac_res" >&6; }
16320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16321 cat >>confdefs.h <<_ACEOF
16322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16332 for ac_header in CrashReporterClient.h
16334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16341 ac_res=`eval echo '${'$as_ac_Header'}'`
16342 { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16345 # Is the header compilable?
16346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16348 cat >conftest.$ac_ext <<_ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16354 $ac_includes_default
16355 #include <$ac_header>
16357 rm -f conftest.$ac_objext
16358 if { (ac_try="$ac_compile"
16359 case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_compile") 2>conftest.er1
16366 grep -v '^ *+' conftest.er1 >conftest.err
16368 cat conftest.err >&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } &&
16371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16372 { (case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_try") 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_try") 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_header_compiler=yes
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 ac_header_compiler=no
16399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16401 echo "${ECHO_T}$ac_header_compiler" >&6; }
16403 # Is the header present?
16404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16412 #include <$ac_header>
16414 if { (ac_try="$ac_cpp conftest.$ac_ext"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16422 grep -v '^ *+' conftest.er1 >conftest.err
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } >/dev/null; then
16427 if test -s conftest.err; then
16428 ac_cpp_err=$ac_c_preproc_warn_flag
16429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16436 if test -z "$ac_cpp_err"; then
16437 ac_header_preproc=yes
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16442 ac_header_preproc=no
16445 rm -f conftest.err conftest.$ac_ext
16446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16447 echo "${ECHO_T}$ac_header_preproc" >&6; }
16449 # So? What about this header?
16450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16456 ac_header_preproc=yes
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16472 ## ----------------------------------- ##
16473 ## Report this to llvmbugs@cs.uiuc.edu ##
16474 ## ----------------------------------- ##
16476 ) | sed "s/^/$as_me: WARNING: /" >&2
16479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 eval "$as_ac_Header=\$ac_header_preproc"
16486 ac_res=`eval echo '${'$as_ac_Header'}'`
16487 { echo "$as_me:$LINENO: result: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16492 cat >>confdefs.h <<_ACEOF
16493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16501 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16502 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 extern const char *__crashreporter_info__;
16511 __crashreporter_info__ = "test";
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_link") 2>conftest.er1
16525 grep -v '^ *+' conftest.er1 >conftest.err
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
16530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16531 { (case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_try") 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; } &&
16540 { ac_try='test -s conftest$ac_exeext'
16541 { (case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_try") 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 { echo "$as_me:$LINENO: result: yes" >&5
16551 echo "${ECHO_T}yes" >&6; }
16553 cat >>confdefs.h <<\_ACEOF
16554 #define HAVE_CRASHREPORTER_INFO 1
16558 echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16561 { echo "$as_me:$LINENO: result: no" >&5
16562 echo "${ECHO_T}no" >&6; }
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_CRASHREPORTER_INFO 0
16570 rm -f core conftest.err conftest.$ac_objext \
16571 conftest$ac_exeext conftest.$ac_ext
16576 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16577 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16578 if test "${ac_cv_huge_val_sanity+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16583 ac_cpp='$CXXCPP $CPPFLAGS'
16584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16588 ac_save_CXXFLAGS=$CXXFLAGS
16590 if test "$cross_compiling" = yes; then
16591 ac_cv_huge_val_sanity=yes
16593 cat >conftest.$ac_ext <<_ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h. */
16603 double x = HUGE_VAL; return x != x;
16608 rm -f conftest$ac_exeext
16609 if { (ac_try="$ac_link"
16610 case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_link") 2>&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16619 { (case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_try") 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_huge_val_sanity=yes
16630 echo "$as_me: program exited with status $ac_status" >&5
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16634 ( exit $ac_status )
16635 ac_cv_huge_val_sanity=no
16637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16641 CXXFLAGS=$ac_save_CXXFLAGS
16643 ac_cpp='$CPP $CPPFLAGS'
16644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16650 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16651 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16652 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16655 { echo "$as_me:$LINENO: checking for pid_t" >&5
16656 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16657 if test "${ac_cv_type_pid_t+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 $ac_includes_default
16667 typedef pid_t ac__type_new_;
16671 if ((ac__type_new_ *) 0)
16673 if (sizeof (ac__type_new_))
16679 rm -f conftest.$ac_objext
16680 if { (ac_try="$ac_compile"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_compile") 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
16693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694 { (case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_try") 2>&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest.$ac_objext'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; }; then
16713 ac_cv_type_pid_t=yes
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16718 ac_cv_type_pid_t=no
16721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16724 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16725 if test $ac_cv_type_pid_t = yes; then
16729 cat >>confdefs.h <<_ACEOF
16735 { echo "$as_me:$LINENO: checking for size_t" >&5
16736 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16737 if test "${ac_cv_type_size_t+set}" = set; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 cat >conftest.$ac_ext <<_ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h. */
16746 $ac_includes_default
16747 typedef size_t ac__type_new_;
16751 if ((ac__type_new_ *) 0)
16753 if (sizeof (ac__type_new_))
16759 rm -f conftest.$ac_objext
16760 if { (ac_try="$ac_compile"
16761 case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_compile") 2>conftest.er1
16768 grep -v '^ *+' conftest.er1 >conftest.err
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
16773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16774 { (case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_try") 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; } &&
16783 { ac_try='test -s conftest.$ac_objext'
16784 { (case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_try") 2>&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; }; then
16793 ac_cv_type_size_t=yes
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16798 ac_cv_type_size_t=no
16801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16803 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16804 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16805 if test $ac_cv_type_size_t = yes; then
16809 cat >>confdefs.h <<_ACEOF
16810 #define size_t unsigned int
16816 cat >>confdefs.h <<_ACEOF
16817 #define RETSIGTYPE void
16820 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16821 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16822 if test "${ac_cv_struct_tm+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 cat >conftest.$ac_ext <<_ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 #include <sys/types.h>
16837 struct tm *tp; tp->tm_sec;
16842 rm -f conftest.$ac_objext
16843 if { (ac_try="$ac_compile"
16844 case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_compile") 2>conftest.er1
16851 grep -v '^ *+' conftest.er1 >conftest.err
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857 { (case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_try") 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest.$ac_objext'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_cv_struct_tm=time.h
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16881 ac_cv_struct_tm=sys/time.h
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16887 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16888 if test $ac_cv_struct_tm = sys/time.h; then
16890 cat >>confdefs.h <<\_ACEOF
16891 #define TM_IN_SYS_TIME 1
16896 { echo "$as_me:$LINENO: checking for int64_t" >&5
16897 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16898 if test "${ac_cv_type_int64_t+set}" = set; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16901 cat >conftest.$ac_ext <<_ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 $ac_includes_default
16908 typedef int64_t ac__type_new_;
16912 if ((ac__type_new_ *) 0)
16914 if (sizeof (ac__type_new_))
16920 rm -f conftest.$ac_objext
16921 if { (ac_try="$ac_compile"
16922 case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_compile") 2>conftest.er1
16929 grep -v '^ *+' conftest.er1 >conftest.err
16931 cat conftest.err >&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } &&
16934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16935 { (case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940 (eval "$ac_try") 2>&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; } &&
16944 { ac_try='test -s conftest.$ac_objext'
16945 { (case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_try") 2>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_cv_type_int64_t=yes
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16959 ac_cv_type_int64_t=no
16962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16965 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16966 if test $ac_cv_type_int64_t = yes; then
16968 cat >>confdefs.h <<_ACEOF
16969 #define HAVE_INT64_T 1
16974 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16975 echo "$as_me: error: Type int64_t required but not found" >&2;}
16976 { (exit 1); exit 1; }; }
16979 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16980 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16981 if test "${ac_cv_type_uint64_t+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 $ac_includes_default
16991 typedef uint64_t ac__type_new_;
16995 if ((ac__type_new_ *) 0)
16997 if (sizeof (ac__type_new_))
17003 rm -f conftest.$ac_objext
17004 if { (ac_try="$ac_compile"
17005 case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_compile") 2>conftest.er1
17012 grep -v '^ *+' conftest.er1 >conftest.err
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
17017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17018 { (case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023 (eval "$ac_try") 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } &&
17027 { ac_try='test -s conftest.$ac_objext'
17028 { (case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_try") 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037 ac_cv_type_uint64_t=yes
17039 echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17042 ac_cv_type_uint64_t=no
17045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17047 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17048 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17049 if test $ac_cv_type_uint64_t = yes; then
17051 cat >>confdefs.h <<_ACEOF
17052 #define HAVE_UINT64_T 1
17057 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17058 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17059 if test "${ac_cv_type_u_int64_t+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 cat >conftest.$ac_ext <<_ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 $ac_includes_default
17069 typedef u_int64_t ac__type_new_;
17073 if ((ac__type_new_ *) 0)
17075 if (sizeof (ac__type_new_))
17081 rm -f conftest.$ac_objext
17082 if { (ac_try="$ac_compile"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_compile") 2>conftest.er1
17090 grep -v '^ *+' conftest.er1 >conftest.err
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest.$ac_objext'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ac_cv_type_u_int64_t=yes
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 ac_cv_type_u_int64_t=no
17123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17125 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17126 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17127 if test $ac_cv_type_u_int64_t = yes; then
17129 cat >>confdefs.h <<_ACEOF
17130 #define HAVE_U_INT64_T 1
17135 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17136 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17137 { (exit 1); exit 1; }; }
17151 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17159 cat >conftest.$ac_ext <<_ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17167 #define $ac_func innocuous_$ac_func
17169 /* System header to define __stub macros and hopefully few prototypes,
17170 which can conflict with char $ac_func (); below.
17171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17172 <limits.h> exists even on freestanding compilers. */
17175 # include <limits.h>
17177 # include <assert.h>
17182 /* Override any GCC internal prototype to avoid an error.
17183 Use char because int might match the return type of a GCC
17184 builtin and then its argument prototype would still apply. */
17189 /* The GNU C library defines this for functions which it implements
17190 to always fail with ENOSYS. Some functions are actually named
17191 something starting with __ and the normal name is an alias. */
17192 #if defined __stub_$ac_func || defined __stub___$ac_func
17199 return $ac_func ();
17204 rm -f conftest.$ac_objext conftest$ac_exeext
17205 if { (ac_try="$ac_link"
17206 case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_link") 2>conftest.er1
17213 grep -v '^ *+' conftest.er1 >conftest.err
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17219 { (case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_try") 2>&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; } &&
17228 { ac_try='test -s conftest$ac_exeext'
17229 { (case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_try") 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 eval "$as_ac_var=yes"
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17243 eval "$as_ac_var=no"
17246 rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17249 ac_res=`eval echo '${'$as_ac_var'}'`
17250 { echo "$as_me:$LINENO: result: $ac_res" >&5
17251 echo "${ECHO_T}$ac_res" >&6; }
17252 if test `eval echo '${'$as_ac_var'}'` = yes; then
17253 cat >>confdefs.h <<_ACEOF
17254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17264 for ac_func in powf fmodf strtof round
17266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 cat >conftest.$ac_ext <<_ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17280 #define $ac_func innocuous_$ac_func
17282 /* System header to define __stub macros and hopefully few prototypes,
17283 which can conflict with char $ac_func (); below.
17284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17285 <limits.h> exists even on freestanding compilers. */
17288 # include <limits.h>
17290 # include <assert.h>
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17302 /* The GNU C library defines this for functions which it implements
17303 to always fail with ENOSYS. Some functions are actually named
17304 something starting with __ and the normal name is an alias. */
17305 #if defined __stub_$ac_func || defined __stub___$ac_func
17312 return $ac_func ();
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
17331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17332 { (case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_try") 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; } &&
17341 { ac_try='test -s conftest$ac_exeext'
17342 { (case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_try") 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; }; then
17351 eval "$as_ac_var=yes"
17353 echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17356 eval "$as_ac_var=no"
17359 rm -f core conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
17362 ac_res=`eval echo '${'$as_ac_var'}'`
17363 { echo "$as_me:$LINENO: result: $ac_res" >&5
17364 echo "${ECHO_T}$ac_res" >&6; }
17365 if test `eval echo '${'$as_ac_var'}'` = yes; then
17366 cat >>confdefs.h <<_ACEOF
17367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17378 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17384 echo $ECHO_N "(cached) $ECHO_C" >&6
17386 cat >conftest.$ac_ext <<_ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h. */
17392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17394 #define $ac_func innocuous_$ac_func
17396 /* System header to define __stub macros and hopefully few prototypes,
17397 which can conflict with char $ac_func (); below.
17398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17399 <limits.h> exists even on freestanding compilers. */
17402 # include <limits.h>
17404 # include <assert.h>
17409 /* Override any GCC internal prototype to avoid an error.
17410 Use char because int might match the return type of a GCC
17411 builtin and then its argument prototype would still apply. */
17416 /* The GNU C library defines this for functions which it implements
17417 to always fail with ENOSYS. Some functions are actually named
17418 something starting with __ and the normal name is an alias. */
17419 #if defined __stub_$ac_func || defined __stub___$ac_func
17426 return $ac_func ();
17431 rm -f conftest.$ac_objext conftest$ac_exeext
17432 if { (ac_try="$ac_link"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_link") 2>conftest.er1
17440 grep -v '^ *+' conftest.er1 >conftest.err
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
17445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17446 { (case "(($ac_try" in
17447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448 *) ac_try_echo=$ac_try;;
17450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451 (eval "$ac_try") 2>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest$ac_exeext'
17456 { (case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_try") 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 eval "$as_ac_var=yes"
17467 echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17470 eval "$as_ac_var=no"
17473 rm -f core conftest.err conftest.$ac_objext \
17474 conftest$ac_exeext conftest.$ac_ext
17476 ac_res=`eval echo '${'$as_ac_var'}'`
17477 { echo "$as_me:$LINENO: result: $ac_res" >&5
17478 echo "${ECHO_T}$ac_res" >&6; }
17479 if test `eval echo '${'$as_ac_var'}'` = yes; then
17480 cat >>confdefs.h <<_ACEOF
17481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17490 for ac_func in isatty mkdtemp mkstemp
17492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 cat >conftest.$ac_ext <<_ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17506 #define $ac_func innocuous_$ac_func
17508 /* System header to define __stub macros and hopefully few prototypes,
17509 which can conflict with char $ac_func (); below.
17510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17511 <limits.h> exists even on freestanding compilers. */
17514 # include <limits.h>
17516 # include <assert.h>
17521 /* Override any GCC internal prototype to avoid an error.
17522 Use char because int might match the return type of a GCC
17523 builtin and then its argument prototype would still apply. */
17528 /* The GNU C library defines this for functions which it implements
17529 to always fail with ENOSYS. Some functions are actually named
17530 something starting with __ and the normal name is an alias. */
17531 #if defined __stub_$ac_func || defined __stub___$ac_func
17538 return $ac_func ();
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (ac_try="$ac_link"
17545 case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_link") 2>conftest.er1
17552 grep -v '^ *+' conftest.er1 >conftest.err
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17558 { (case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_try") 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest$ac_exeext'
17568 { (case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_try") 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 eval "$as_ac_var=yes"
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 eval "$as_ac_var=no"
17585 rm -f core conftest.err conftest.$ac_objext \
17586 conftest$ac_exeext conftest.$ac_ext
17588 ac_res=`eval echo '${'$as_ac_var'}'`
17589 { echo "$as_me:$LINENO: result: $ac_res" >&5
17590 echo "${ECHO_T}$ac_res" >&6; }
17591 if test `eval echo '${'$as_ac_var'}'` = yes; then
17592 cat >>confdefs.h <<_ACEOF
17593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17605 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 cat >conftest.$ac_ext <<_ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17621 #define $ac_func innocuous_$ac_func
17623 /* System header to define __stub macros and hopefully few prototypes,
17624 which can conflict with char $ac_func (); below.
17625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626 <limits.h> exists even on freestanding compilers. */
17629 # include <limits.h>
17631 # include <assert.h>
17636 /* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply. */
17643 /* The GNU C library defines this for functions which it implements
17644 to always fail with ENOSYS. Some functions are actually named
17645 something starting with __ and the normal name is an alias. */
17646 #if defined __stub_$ac_func || defined __stub___$ac_func
17653 return $ac_func ();
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } &&
17672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17673 { (case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_try") 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; } &&
17682 { ac_try='test -s conftest$ac_exeext'
17683 { (case "(($ac_try" in
17684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685 *) ac_try_echo=$ac_try;;
17687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17688 (eval "$ac_try") 2>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; }; then
17692 eval "$as_ac_var=yes"
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 eval "$as_ac_var=no"
17700 rm -f core conftest.err conftest.$ac_objext \
17701 conftest$ac_exeext conftest.$ac_ext
17703 ac_res=`eval echo '${'$as_ac_var'}'`
17704 { echo "$as_me:$LINENO: result: $ac_res" >&5
17705 echo "${ECHO_T}$ac_res" >&6; }
17706 if test `eval echo '${'$as_ac_var'}'` = yes; then
17707 cat >>confdefs.h <<_ACEOF
17708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17717 for ac_func in strerror strerror_r setenv
17719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 cat >conftest.$ac_ext <<_ACEOF
17728 cat confdefs.h >>conftest.$ac_ext
17729 cat >>conftest.$ac_ext <<_ACEOF
17730 /* end confdefs.h. */
17731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17733 #define $ac_func innocuous_$ac_func
17735 /* System header to define __stub macros and hopefully few prototypes,
17736 which can conflict with char $ac_func (); below.
17737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17738 <limits.h> exists even on freestanding compilers. */
17741 # include <limits.h>
17743 # include <assert.h>
17748 /* Override any GCC internal prototype to avoid an error.
17749 Use char because int might match the return type of a GCC
17750 builtin and then its argument prototype would still apply. */
17755 /* The GNU C library defines this for functions which it implements
17756 to always fail with ENOSYS. Some functions are actually named
17757 something starting with __ and the normal name is an alias. */
17758 #if defined __stub_$ac_func || defined __stub___$ac_func
17765 return $ac_func ();
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (ac_try="$ac_link"
17772 case "(($ac_try" in
17773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17774 *) ac_try_echo=$ac_try;;
17776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17777 (eval "$ac_link") 2>conftest.er1
17779 grep -v '^ *+' conftest.er1 >conftest.err
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17785 { (case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_try") 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest$ac_exeext'
17795 { (case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_try") 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 eval "$as_ac_var=yes"
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 eval "$as_ac_var=no"
17812 rm -f core conftest.err conftest.$ac_objext \
17813 conftest$ac_exeext conftest.$ac_ext
17815 ac_res=`eval echo '${'$as_ac_var'}'`
17816 { echo "$as_me:$LINENO: result: $ac_res" >&5
17817 echo "${ECHO_T}$ac_res" >&6; }
17818 if test `eval echo '${'$as_ac_var'}'` = yes; then
17819 cat >>confdefs.h <<_ACEOF
17820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17830 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17846 #define $ac_func innocuous_$ac_func
17848 /* System header to define __stub macros and hopefully few prototypes,
17849 which can conflict with char $ac_func (); below.
17850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17851 <limits.h> exists even on freestanding compilers. */
17854 # include <limits.h>
17856 # include <assert.h>
17861 /* Override any GCC internal prototype to avoid an error.
17862 Use char because int might match the return type of a GCC
17863 builtin and then its argument prototype would still apply. */
17868 /* The GNU C library defines this for functions which it implements
17869 to always fail with ENOSYS. Some functions are actually named
17870 something starting with __ and the normal name is an alias. */
17871 #if defined __stub_$ac_func || defined __stub___$ac_func
17878 return $ac_func ();
17883 rm -f conftest.$ac_objext conftest$ac_exeext
17884 if { (ac_try="$ac_link"
17885 case "(($ac_try" in
17886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887 *) ac_try_echo=$ac_try;;
17889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890 (eval "$ac_link") 2>conftest.er1
17892 grep -v '^ *+' conftest.er1 >conftest.err
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } &&
17897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17898 { (case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_try") 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; } &&
17907 { ac_try='test -s conftest$ac_exeext'
17908 { (case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_try") 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 eval "$as_ac_var=yes"
17919 echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17922 eval "$as_ac_var=no"
17925 rm -f core conftest.err conftest.$ac_objext \
17926 conftest$ac_exeext conftest.$ac_ext
17928 ac_res=`eval echo '${'$as_ac_var'}'`
17929 { echo "$as_me:$LINENO: result: $ac_res" >&5
17930 echo "${ECHO_T}$ac_res" >&6; }
17931 if test `eval echo '${'$as_ac_var'}'` = yes; then
17932 cat >>confdefs.h <<_ACEOF
17933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17944 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17950 echo $ECHO_N "(cached) $ECHO_C" >&6
17952 cat >conftest.$ac_ext <<_ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h. */
17958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17960 #define $ac_func innocuous_$ac_func
17962 /* System header to define __stub macros and hopefully few prototypes,
17963 which can conflict with char $ac_func (); below.
17964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17965 <limits.h> exists even on freestanding compilers. */
17968 # include <limits.h>
17970 # include <assert.h>
17975 /* Override any GCC internal prototype to avoid an error.
17976 Use char because int might match the return type of a GCC
17977 builtin and then its argument prototype would still apply. */
17982 /* The GNU C library defines this for functions which it implements
17983 to always fail with ENOSYS. Some functions are actually named
17984 something starting with __ and the normal name is an alias. */
17985 #if defined __stub_$ac_func || defined __stub___$ac_func
17992 return $ac_func ();
17997 rm -f conftest.$ac_objext conftest$ac_exeext
17998 if { (ac_try="$ac_link"
17999 case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_link") 2>conftest.er1
18006 grep -v '^ *+' conftest.er1 >conftest.err
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest$ac_exeext'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 eval "$as_ac_var=yes"
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18036 eval "$as_ac_var=no"
18039 rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18042 ac_res=`eval echo '${'$as_ac_var'}'`
18043 { echo "$as_me:$LINENO: result: $ac_res" >&5
18044 echo "${ECHO_T}$ac_res" >&6; }
18045 if test `eval echo '${'$as_ac_var'}'` = yes; then
18046 cat >>confdefs.h <<_ACEOF
18047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18053 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18054 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18055 if test "${llvm_cv_c_printf_a+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18059 ac_cpp='$CPP $CPPFLAGS'
18060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18064 if test "$cross_compiling" = yes; then
18065 llvmac_cv_c_printf_a=no
18067 cat >conftest.$ac_ext <<_ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18076 #include <stdlib.h>
18082 volatile double A, B;
18086 sprintf(Buffer, "%a", A);
18090 if (A != 0x1.999999999999ap-4)
18097 rm -f conftest$ac_exeext
18098 if { (ac_try="$ac_link"
18099 case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_link") 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18108 { (case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_try") 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 llvm_cv_c_printf_a=yes
18119 echo "$as_me: program exited with status $ac_status" >&5
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18123 ( exit $ac_status )
18124 llvmac_cv_c_printf_a=no
18126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18131 ac_cpp='$CPP $CPPFLAGS'
18132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18137 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18138 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18139 if test "$llvm_cv_c_printf_a" = "yes"; then
18141 cat >>confdefs.h <<\_ACEOF
18142 #define HAVE_PRINTF_A 1
18148 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18149 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18150 if test "${ac_cv_func_rand48+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 ac_cpp='$CXXCPP $CPPFLAGS'
18155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18159 cat >conftest.$ac_ext <<_ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 #include <stdlib.h>
18169 srand48(0);lrand48();drand48();
18174 rm -f conftest.$ac_objext
18175 if { (ac_try="$ac_compile"
18176 case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_compile") 2>conftest.er1
18183 grep -v '^ *+' conftest.er1 >conftest.err
18185 cat conftest.err >&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } &&
18188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18189 { (case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_try") 2>&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; } &&
18198 { ac_try='test -s conftest.$ac_objext'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
18208 ac_cv_func_rand48=yes
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18213 ac_cv_func_rand48=no
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218 ac_cpp='$CPP $CPPFLAGS'
18219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18224 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18225 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18227 if test "$ac_cv_func_rand48" = "yes" ; then
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_RAND48 1
18236 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18237 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18238 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 cat >conftest.$ac_ext <<_ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h. */
18247 $ac_includes_default
18252 char *p = (char *) strerror_s;
18260 rm -f conftest.$ac_objext
18261 if { (ac_try="$ac_compile"
18262 case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_compile") 2>conftest.er1
18269 grep -v '^ *+' conftest.er1 >conftest.err
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 ac_cv_have_decl_strerror_s=yes
18296 echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18299 ac_cv_have_decl_strerror_s=no
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18305 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18306 if test $ac_cv_have_decl_strerror_s = yes; then
18308 cat >>confdefs.h <<_ACEOF
18309 #define HAVE_DECL_STRERROR_S 1
18314 cat >>confdefs.h <<_ACEOF
18315 #define HAVE_DECL_STRERROR_S 0
18323 if test "$llvm_cv_os_type" = "MingW" ; then
18324 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18325 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18326 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 ac_check_lib_save_LIBS=$LIBS
18331 cat >conftest.$ac_ext <<_ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18338 /* Override any GCC internal prototype to avoid an error.
18339 Use char because int might match the return type of a GCC
18340 builtin and then its argument prototype would still apply. */
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (ac_try="$ac_link"
18355 case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_link") 2>conftest.er1
18362 grep -v '^ *+' conftest.er1 >conftest.err
18364 cat conftest.err >&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18368 { (case "(($ac_try" in
18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370 *) ac_try_echo=$ac_try;;
18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373 (eval "$ac_try") 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try='test -s conftest$ac_exeext'
18378 { (case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_try") 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 ac_cv_lib_gcc__alloca=yes
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18392 ac_cv_lib_gcc__alloca=no
18395 rm -f core conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18397 LIBS=$ac_check_lib_save_LIBS
18399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18400 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18401 if test $ac_cv_lib_gcc__alloca = yes; then
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE__ALLOCA 1
18409 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18410 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18411 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
18414 ac_check_lib_save_LIBS=$LIBS
18416 cat >conftest.$ac_ext <<_ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18423 /* Override any GCC internal prototype to avoid an error.
18424 Use char because int might match the return type of a GCC
18425 builtin and then its argument prototype would still apply. */
18433 return __alloca ();
18438 rm -f conftest.$ac_objext conftest$ac_exeext
18439 if { (ac_try="$ac_link"
18440 case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_link") 2>conftest.er1
18447 grep -v '^ *+' conftest.er1 >conftest.err
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest$ac_exeext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_lib_gcc___alloca=yes
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 ac_cv_lib_gcc___alloca=no
18480 rm -f core conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18482 LIBS=$ac_check_lib_save_LIBS
18484 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18485 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18486 if test $ac_cv_lib_gcc___alloca = yes; then
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE___ALLOCA 1
18494 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18495 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18496 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18499 ac_check_lib_save_LIBS=$LIBS
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18508 /* Override any GCC internal prototype to avoid an error.
18509 Use char because int might match the return type of a GCC
18510 builtin and then its argument prototype would still apply. */
18518 return __chkstk ();
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_lib_gcc___chkstk=yes
18559 echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18562 ac_cv_lib_gcc___chkstk=no
18565 rm -f core conftest.err conftest.$ac_objext \
18566 conftest$ac_exeext conftest.$ac_ext
18567 LIBS=$ac_check_lib_save_LIBS
18569 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18570 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18571 if test $ac_cv_lib_gcc___chkstk = yes; then
18573 cat >>confdefs.h <<\_ACEOF
18574 #define HAVE___CHKSTK 1
18579 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18580 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18581 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 ac_check_lib_save_LIBS=$LIBS
18586 cat >conftest.$ac_ext <<_ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18593 /* Override any GCC internal prototype to avoid an error.
18594 Use char because int might match the return type of a GCC
18595 builtin and then its argument prototype would still apply. */
18603 return ___chkstk ();
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18617 grep -v '^ *+' conftest.er1 >conftest.err
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18623 { (case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_try") 2>&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; } &&
18632 { ac_try='test -s conftest$ac_exeext'
18633 { (case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_try") 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_cv_lib_gcc____chkstk=yes
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 ac_cv_lib_gcc____chkstk=no
18650 rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18654 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18655 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18656 if test $ac_cv_lib_gcc____chkstk = yes; then
18658 cat >>confdefs.h <<\_ACEOF
18659 #define HAVE____CHKSTK 1
18665 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18666 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18667 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 ac_check_lib_save_LIBS=$LIBS
18672 cat >conftest.$ac_ext <<_ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18679 /* Override any GCC internal prototype to avoid an error.
18680 Use char because int might match the return type of a GCC
18681 builtin and then its argument prototype would still apply. */
18689 return __ashldi3 ();
18694 rm -f conftest.$ac_objext conftest$ac_exeext
18695 if { (ac_try="$ac_link"
18696 case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_link") 2>conftest.er1
18703 grep -v '^ *+' conftest.er1 >conftest.err
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } &&
18708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18709 { (case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_try") 2>&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; } &&
18718 { ac_try='test -s conftest$ac_exeext'
18719 { (case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_try") 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; }; then
18728 ac_cv_lib_gcc___ashldi3=yes
18730 echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18733 ac_cv_lib_gcc___ashldi3=no
18736 rm -f core conftest.err conftest.$ac_objext \
18737 conftest$ac_exeext conftest.$ac_ext
18738 LIBS=$ac_check_lib_save_LIBS
18740 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18741 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18742 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18744 cat >>confdefs.h <<\_ACEOF
18745 #define HAVE___ASHLDI3 1
18750 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18751 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18752 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18755 ac_check_lib_save_LIBS=$LIBS
18757 cat >conftest.$ac_ext <<_ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h. */
18764 /* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18774 return __ashrdi3 ();
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (ac_try="$ac_link"
18781 case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_link") 2>conftest.er1
18788 grep -v '^ *+' conftest.er1 >conftest.err
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18794 { (case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_try") 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_try") 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_cv_lib_gcc___ashrdi3=yes
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 ac_cv_lib_gcc___ashrdi3=no
18821 rm -f core conftest.err conftest.$ac_objext \
18822 conftest$ac_exeext conftest.$ac_ext
18823 LIBS=$ac_check_lib_save_LIBS
18825 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18826 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18827 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18829 cat >>confdefs.h <<\_ACEOF
18830 #define HAVE___ASHRDI3 1
18835 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18836 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18837 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 ac_check_lib_save_LIBS=$LIBS
18842 cat >conftest.$ac_ext <<_ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18859 return __divdi3 ();
18864 rm -f conftest.$ac_objext conftest$ac_exeext
18865 if { (ac_try="$ac_link"
18866 case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest$ac_exeext'
18889 { (case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_try") 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_lib_gcc___divdi3=yes
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_cv_lib_gcc___divdi3=no
18906 rm -f core conftest.err conftest.$ac_objext \
18907 conftest$ac_exeext conftest.$ac_ext
18908 LIBS=$ac_check_lib_save_LIBS
18910 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18911 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18912 if test $ac_cv_lib_gcc___divdi3 = yes; then
18914 cat >>confdefs.h <<\_ACEOF
18915 #define HAVE___DIVDI3 1
18920 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18921 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18922 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 ac_check_lib_save_LIBS=$LIBS
18927 cat >conftest.$ac_ext <<_ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18934 /* Override any GCC internal prototype to avoid an error.
18935 Use char because int might match the return type of a GCC
18936 builtin and then its argument prototype would still apply. */
18944 return __fixdfdi ();
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_link") 2>conftest.er1
18958 grep -v '^ *+' conftest.er1 >conftest.err
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
18963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18964 { (case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_try") 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest$ac_exeext'
18974 { (case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_try") 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_cv_lib_gcc___fixdfdi=yes
18985 echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18988 ac_cv_lib_gcc___fixdfdi=no
18991 rm -f core conftest.err conftest.$ac_objext \
18992 conftest$ac_exeext conftest.$ac_ext
18993 LIBS=$ac_check_lib_save_LIBS
18995 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18996 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18997 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE___FIXDFDI 1
19005 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19006 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19007 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 ac_check_lib_save_LIBS=$LIBS
19012 cat >conftest.$ac_ext <<_ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19019 /* Override any GCC internal prototype to avoid an error.
19020 Use char because int might match the return type of a GCC
19021 builtin and then its argument prototype would still apply. */
19029 return __fixsfdi ();
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (ac_try="$ac_link"
19036 case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_link") 2>conftest.er1
19043 grep -v '^ *+' conftest.er1 >conftest.err
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } &&
19048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19049 { (case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_try") 2>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest$ac_exeext'
19059 { (case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_try") 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_cv_lib_gcc___fixsfdi=yes
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 ac_cv_lib_gcc___fixsfdi=no
19076 rm -f core conftest.err conftest.$ac_objext \
19077 conftest$ac_exeext conftest.$ac_ext
19078 LIBS=$ac_check_lib_save_LIBS
19080 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19081 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19082 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19084 cat >>confdefs.h <<\_ACEOF
19085 #define HAVE___FIXSFDI 1
19090 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19091 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19092 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 ac_check_lib_save_LIBS=$LIBS
19097 cat >conftest.$ac_ext <<_ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19104 /* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19110 char __floatdidf ();
19114 return __floatdidf ();
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>conftest.er1
19128 grep -v '^ *+' conftest.er1 >conftest.err
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19134 { (case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_try") 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest$ac_exeext'
19144 { (case "(($ac_try" in
19145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146 *) ac_try_echo=$ac_try;;
19148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149 (eval "$ac_try") 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_cv_lib_gcc___floatdidf=yes
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 ac_cv_lib_gcc___floatdidf=no
19161 rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163 LIBS=$ac_check_lib_save_LIBS
19165 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19166 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19167 if test $ac_cv_lib_gcc___floatdidf = yes; then
19169 cat >>confdefs.h <<\_ACEOF
19170 #define HAVE___FLOATDIDF 1
19175 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19176 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19177 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 ac_check_lib_save_LIBS=$LIBS
19182 cat >conftest.$ac_ext <<_ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19189 /* Override any GCC internal prototype to avoid an error.
19190 Use char because int might match the return type of a GCC
19191 builtin and then its argument prototype would still apply. */
19199 return __lshrdi3 ();
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (ac_try="$ac_link"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_link") 2>conftest.er1
19213 grep -v '^ *+' conftest.er1 >conftest.err
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19219 { (case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_try") 2>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest$ac_exeext'
19229 { (case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_try") 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_lib_gcc___lshrdi3=yes
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_cv_lib_gcc___lshrdi3=no
19246 rm -f core conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
19248 LIBS=$ac_check_lib_save_LIBS
19250 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19251 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19252 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19254 cat >>confdefs.h <<\_ACEOF
19255 #define HAVE___LSHRDI3 1
19260 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19261 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19262 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 ac_check_lib_save_LIBS=$LIBS
19267 cat >conftest.$ac_ext <<_ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19274 /* Override any GCC internal prototype to avoid an error.
19275 Use char because int might match the return type of a GCC
19276 builtin and then its argument prototype would still apply. */
19284 return __moddi3 ();
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (ac_try="$ac_link"
19291 case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19298 grep -v '^ *+' conftest.er1 >conftest.err
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } &&
19303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19304 { (case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19309 (eval "$ac_try") 2>&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; } &&
19313 { ac_try='test -s conftest$ac_exeext'
19314 { (case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_try") 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 ac_cv_lib_gcc___moddi3=yes
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ac_cv_lib_gcc___moddi3=no
19331 rm -f core conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext conftest.$ac_ext
19333 LIBS=$ac_check_lib_save_LIBS
19335 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19336 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19337 if test $ac_cv_lib_gcc___moddi3 = yes; then
19339 cat >>confdefs.h <<\_ACEOF
19340 #define HAVE___MODDI3 1
19345 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19346 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19347 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 ac_check_lib_save_LIBS=$LIBS
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19359 /* Override any GCC internal prototype to avoid an error.
19360 Use char because int might match the return type of a GCC
19361 builtin and then its argument prototype would still apply. */
19369 return __udivdi3 ();
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (ac_try="$ac_link"
19376 case "(($ac_try" in
19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_link") 2>conftest.er1
19383 grep -v '^ *+' conftest.er1 >conftest.err
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19389 { (case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_try") 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; } &&
19398 { ac_try='test -s conftest$ac_exeext'
19399 { (case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404 (eval "$ac_try") 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408 ac_cv_lib_gcc___udivdi3=yes
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 ac_cv_lib_gcc___udivdi3=no
19416 rm -f core conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext conftest.$ac_ext
19418 LIBS=$ac_check_lib_save_LIBS
19420 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19421 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19422 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19424 cat >>confdefs.h <<\_ACEOF
19425 #define HAVE___UDIVDI3 1
19430 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19431 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19432 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 ac_check_lib_save_LIBS=$LIBS
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19444 /* Override any GCC internal prototype to avoid an error.
19445 Use char because int might match the return type of a GCC
19446 builtin and then its argument prototype would still apply. */
19454 return __umoddi3 ();
19459 rm -f conftest.$ac_objext conftest$ac_exeext
19460 if { (ac_try="$ac_link"
19461 case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_link") 2>conftest.er1
19468 grep -v '^ *+' conftest.er1 >conftest.err
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
19473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19474 { (case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_try") 2>&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; } &&
19483 { ac_try='test -s conftest$ac_exeext'
19484 { (case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_try") 2>&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 ac_cv_lib_gcc___umoddi3=yes
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19498 ac_cv_lib_gcc___umoddi3=no
19501 rm -f core conftest.err conftest.$ac_objext \
19502 conftest$ac_exeext conftest.$ac_ext
19503 LIBS=$ac_check_lib_save_LIBS
19505 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19506 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19507 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19509 cat >>confdefs.h <<\_ACEOF
19510 #define HAVE___UMODDI3 1
19516 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19517 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19518 if test "${ac_cv_lib_gcc___main+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 ac_check_lib_save_LIBS=$LIBS
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19530 /* Override any GCC internal prototype to avoid an error.
19531 Use char because int might match the return type of a GCC
19532 builtin and then its argument prototype would still apply. */
19545 rm -f conftest.$ac_objext conftest$ac_exeext
19546 if { (ac_try="$ac_link"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_link") 2>conftest.er1
19554 grep -v '^ *+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19560 { (case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_try") 2>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest$ac_exeext'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_cv_lib_gcc___main=yes
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 ac_cv_lib_gcc___main=no
19587 rm -f core conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19592 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19593 if test $ac_cv_lib_gcc___main = yes; then
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE___MAIN 1
19601 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19602 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19603 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 ac_check_lib_save_LIBS=$LIBS
19608 cat >conftest.$ac_ext <<_ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19615 /* Override any GCC internal prototype to avoid an error.
19616 Use char because int might match the return type of a GCC
19617 builtin and then its argument prototype would still apply. */
19625 return __cmpdi2 ();
19630 rm -f conftest.$ac_objext conftest$ac_exeext
19631 if { (ac_try="$ac_link"
19632 case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_link") 2>conftest.er1
19639 grep -v '^ *+' conftest.er1 >conftest.err
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
19644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19645 { (case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_try") 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest$ac_exeext'
19655 { (case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_try") 2>&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_cv_lib_gcc___cmpdi2=yes
19666 echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 ac_cv_lib_gcc___cmpdi2=no
19672 rm -f core conftest.err conftest.$ac_objext \
19673 conftest$ac_exeext conftest.$ac_ext
19674 LIBS=$ac_check_lib_save_LIBS
19676 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19677 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19678 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE___CMPDI2 1
19688 if test "$llvm_cv_os_type" = "MingW" ; then
19689 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19690 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19691 cat >conftest.$ac_ext <<_ACEOF
19692 #include <windows.h>
19693 #include <imagehlp.h>
19694 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19695 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19697 rm -f conftest.$ac_objext
19698 if { (ac_try="$ac_compile"
19699 case "(($ac_try" in
19700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701 *) ac_try_echo=$ac_try;;
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704 (eval "$ac_compile") 2>conftest.er1
19706 grep -v '^ *+' conftest.er1 >conftest.err
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
19711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19712 { (case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_try") 2>&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest.$ac_objext'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19732 { echo "$as_me:$LINENO: result: yes" >&5
19733 echo "${ECHO_T}yes" >&6; }
19734 llvm_cv_win32_elmcb_pcstr="PCSTR"
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19741 { echo "$as_me:$LINENO: result: no" >&5
19742 echo "${ECHO_T}no" >&6; }
19743 llvm_cv_win32_elmcb_pcstr="PSTR"
19747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19749 cat >>confdefs.h <<_ACEOF
19750 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19756 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19757 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19758 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 ac_cpp='$CXXCPP $CPPFLAGS'
19763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } &&
19806 { ac_try='test -s conftest.$ac_objext'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_cv_func_isnan_in_math_h=yes
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_cv_func_isnan_in_math_h=no
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 ac_cpp='$CPP $CPPFLAGS'
19827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19832 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19833 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19836 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19838 cat >>confdefs.h <<\_ACEOF
19839 #define HAVE_ISNAN_IN_MATH_H 1
19844 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19845 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19846 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19850 ac_cpp='$CXXCPP $CPPFLAGS'
19851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19870 rm -f conftest.$ac_objext
19871 if { (ac_try="$ac_compile"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_compile") 2>conftest.er1
19879 grep -v '^ *+' conftest.er1 >conftest.err
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19885 { (case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; }; then
19904 ac_cv_func_isnan_in_cmath=yes
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19909 ac_cv_func_isnan_in_cmath=no
19912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19914 ac_cpp='$CPP $CPPFLAGS'
19915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19920 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19921 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19923 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE_ISNAN_IN_CMATH 1
19931 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19932 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19933 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
19937 ac_cpp='$CXXCPP $CPPFLAGS'
19938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19942 cat >conftest.$ac_ext <<_ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19952 float f; std::isnan(f);
19957 rm -f conftest.$ac_objext
19958 if { (ac_try="$ac_compile"
19959 case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_compile") 2>conftest.er1
19966 grep -v '^ *+' conftest.er1 >conftest.err
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19972 { (case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_try") 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest.$ac_objext'
19982 { (case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_try") 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_cv_func_std_isnan_in_cmath=yes
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19996 ac_cv_func_std_isnan_in_cmath=no
19999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20001 ac_cpp='$CPP $CPPFLAGS'
20002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20007 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20008 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20010 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20012 cat >>confdefs.h <<\_ACEOF
20013 #define HAVE_STD_ISNAN_IN_CMATH 1
20019 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20020 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20021 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 ac_cpp='$CXXCPP $CPPFLAGS'
20026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20045 rm -f conftest.$ac_objext
20046 if { (ac_try="$ac_compile"
20047 case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_compile") 2>conftest.er1
20054 grep -v '^ *+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } &&
20059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20060 { (case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_try") 2>&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; } &&
20069 { ac_try='test -s conftest.$ac_objext'
20070 { (case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_try") 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; }; then
20079 ac_cv_func_isinf_in_math_h=yes
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20084 ac_cv_func_isinf_in_math_h=no
20087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20089 ac_cpp='$CPP $CPPFLAGS'
20090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20095 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20096 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20098 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20100 cat >>confdefs.h <<\_ACEOF
20101 #define HAVE_ISINF_IN_MATH_H 1
20106 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20107 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20108 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20112 ac_cpp='$CXXCPP $CPPFLAGS'
20113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20117 cat >conftest.$ac_ext <<_ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20132 rm -f conftest.$ac_objext
20133 if { (ac_try="$ac_compile"
20134 case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_compile") 2>conftest.er1
20141 grep -v '^ *+' conftest.er1 >conftest.err
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
20146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20147 { (case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_try") 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } &&
20156 { ac_try='test -s conftest.$ac_objext'
20157 { (case "(($ac_try" in
20158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159 *) ac_try_echo=$ac_try;;
20161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20162 (eval "$ac_try") 2>&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166 ac_cv_func_isinf_in_cmath=yes
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_cv_func_isinf_in_cmath=no
20174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20176 ac_cpp='$CPP $CPPFLAGS'
20177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20182 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20183 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20185 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20187 cat >>confdefs.h <<\_ACEOF
20188 #define HAVE_ISINF_IN_CMATH 1
20193 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20194 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20195 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20199 ac_cpp='$CXXCPP $CPPFLAGS'
20200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20204 cat >conftest.$ac_ext <<_ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20214 float f; std::isinf(f)}
20219 rm -f conftest.$ac_objext
20220 if { (ac_try="$ac_compile"
20221 case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_compile") 2>conftest.er1
20228 grep -v '^ *+' conftest.er1 >conftest.err
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20234 { (case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_try") 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest.$ac_objext'
20244 { (case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_try") 2>&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
20253 ac_cv_func_std_isinf_in_cmath=yes
20255 echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20258 ac_cv_func_std_isinf_in_cmath=no
20261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20263 ac_cpp='$CPP $CPPFLAGS'
20264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20269 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20270 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20272 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20274 cat >>confdefs.h <<\_ACEOF
20275 #define HAVE_STD_ISINF_IN_CMATH 1
20280 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20281 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20282 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20286 ac_cpp='$CXXCPP $CPPFLAGS'
20287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20291 cat >conftest.$ac_ext <<_ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20297 #include <ieeefp.h>
20301 float f; finite(f);
20306 rm -f conftest.$ac_objext
20307 if { (ac_try="$ac_compile"
20308 case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_compile") 2>conftest.er1
20315 grep -v '^ *+' conftest.er1 >conftest.err
20317 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20321 { (case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_try") 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try='test -s conftest.$ac_objext'
20331 { (case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_try") 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_cv_func_finite_in_ieeefp_h=yes
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 ac_cv_func_finite_in_ieeefp_h=no
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 ac_cpp='$CPP $CPPFLAGS'
20351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20356 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20357 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20359 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20361 cat >>confdefs.h <<\_ACEOF
20362 #define HAVE_FINITE_IN_IEEEFP_H 1
20369 if test "$llvm_cv_platform_type" = "Unix" ; then
20372 for ac_header in stdlib.h unistd.h
20374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 ac_res=`eval echo '${'$as_ac_Header'}'`
20382 { echo "$as_me:$LINENO: result: $ac_res" >&5
20383 echo "${ECHO_T}$ac_res" >&6; }
20385 # Is the header compilable?
20386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 $ac_includes_default
20395 #include <$ac_header>
20397 rm -f conftest.$ac_objext
20398 if { (ac_try="$ac_compile"
20399 case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_compile") 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20412 { (case "(($ac_try" in
20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414 *) ac_try_echo=$ac_try;;
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417 (eval "$ac_try") 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; } &&
20421 { ac_try='test -s conftest.$ac_objext'
20422 { (case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_try") 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; }; then
20431 ac_header_compiler=yes
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20436 ac_header_compiler=no
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20441 echo "${ECHO_T}$ac_header_compiler" >&6; }
20443 # Is the header present?
20444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20452 #include <$ac_header>
20454 if { (ac_try="$ac_cpp conftest.$ac_ext"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } >/dev/null; then
20467 if test -s conftest.err; then
20468 ac_cpp_err=$ac_c_preproc_warn_flag
20469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20476 if test -z "$ac_cpp_err"; then
20477 ac_header_preproc=yes
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ac_header_preproc=no
20485 rm -f conftest.err conftest.$ac_ext
20486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20487 echo "${ECHO_T}$ac_header_preproc" >&6; }
20489 # So? What about this header?
20490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20496 ac_header_preproc=yes
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20512 ## ----------------------------------- ##
20513 ## Report this to llvmbugs@cs.uiuc.edu ##
20514 ## ----------------------------------- ##
20516 ) | sed "s/^/$as_me: WARNING: /" >&2
20519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20524 eval "$as_ac_Header=\$ac_header_preproc"
20526 ac_res=`eval echo '${'$as_ac_Header'}'`
20527 { echo "$as_me:$LINENO: result: $ac_res" >&5
20528 echo "${ECHO_T}$ac_res" >&6; }
20531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20532 cat >>confdefs.h <<_ACEOF
20533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20541 for ac_func in getpagesize
20543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20557 #define $ac_func innocuous_$ac_func
20559 /* System header to define __stub macros and hopefully few prototypes,
20560 which can conflict with char $ac_func (); below.
20561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20562 <limits.h> exists even on freestanding compilers. */
20565 # include <limits.h>
20567 # include <assert.h>
20572 /* Override any GCC internal prototype to avoid an error.
20573 Use char because int might match the return type of a GCC
20574 builtin and then its argument prototype would still apply. */
20579 /* The GNU C library defines this for functions which it implements
20580 to always fail with ENOSYS. Some functions are actually named
20581 something starting with __ and the normal name is an alias. */
20582 #if defined __stub_$ac_func || defined __stub___$ac_func
20589 return $ac_func ();
20594 rm -f conftest.$ac_objext conftest$ac_exeext
20595 if { (ac_try="$ac_link"
20596 case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_link") 2>conftest.er1
20603 grep -v '^ *+' conftest.er1 >conftest.err
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } &&
20608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20609 { (case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_try") 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest$ac_exeext'
20619 { (case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_try") 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 eval "$as_ac_var=yes"
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20633 eval "$as_ac_var=no"
20636 rm -f core conftest.err conftest.$ac_objext \
20637 conftest$ac_exeext conftest.$ac_ext
20639 ac_res=`eval echo '${'$as_ac_var'}'`
20640 { echo "$as_me:$LINENO: result: $ac_res" >&5
20641 echo "${ECHO_T}$ac_res" >&6; }
20642 if test `eval echo '${'$as_ac_var'}'` = yes; then
20643 cat >>confdefs.h <<_ACEOF
20644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20650 { echo "$as_me:$LINENO: checking for working mmap" >&5
20651 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20652 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 if test "$cross_compiling" = yes; then
20656 ac_cv_func_mmap_fixed_mapped=no
20658 cat >conftest.$ac_ext <<_ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 $ac_includes_default
20665 /* malloc might have been renamed as rpl_malloc. */
20668 /* Thanks to Mike Haertel and Jim Avera for this test.
20669 Here is a matrix of mmap possibilities:
20670 mmap private not fixed
20671 mmap private fixed at somewhere currently unmapped
20672 mmap private fixed at somewhere already mapped
20673 mmap shared not fixed
20674 mmap shared fixed at somewhere currently unmapped
20675 mmap shared fixed at somewhere already mapped
20676 For private mappings, we should verify that changes cannot be read()
20677 back from the file, nor mmap's back from the file at a different
20678 address. (There have been systems where private was not correctly
20679 implemented like the infamous i386 svr4.0, and systems where the
20680 VM page cache was not coherent with the file system buffer cache
20681 like early versions of FreeBSD and possibly contemporary NetBSD.)
20682 For shared mappings, we should conversely verify that changes get
20683 propagated back to all the places they're supposed to be.
20685 Grep wants private fixed already mapped.
20686 The main things grep needs to know about mmap are:
20687 * does it exist and is it safe to write into the mmap'd area
20688 * how to use it (BSD variants) */
20691 #include <sys/mman.h>
20693 #if !STDC_HEADERS && !HAVE_STDLIB_H
20697 /* This mess was copied from the GNU getpagesize.h. */
20698 #if !HAVE_GETPAGESIZE
20699 /* Assume that all systems that can run configure have sys/param.h. */
20700 # if !HAVE_SYS_PARAM_H
20701 # define HAVE_SYS_PARAM_H 1
20704 # ifdef _SC_PAGESIZE
20705 # define getpagesize() sysconf(_SC_PAGESIZE)
20706 # else /* no _SC_PAGESIZE */
20707 # if HAVE_SYS_PARAM_H
20708 # include <sys/param.h>
20709 # ifdef EXEC_PAGESIZE
20710 # define getpagesize() EXEC_PAGESIZE
20711 # else /* no EXEC_PAGESIZE */
20713 # define getpagesize() NBPG * CLSIZE
20716 # endif /* no CLSIZE */
20717 # else /* no NBPG */
20719 # define getpagesize() NBPC
20720 # else /* no NBPC */
20722 # define getpagesize() PAGESIZE
20723 # endif /* PAGESIZE */
20724 # endif /* no NBPC */
20725 # endif /* no NBPG */
20726 # endif /* no EXEC_PAGESIZE */
20727 # else /* no HAVE_SYS_PARAM_H */
20728 # define getpagesize() 8192 /* punt totally */
20729 # endif /* no HAVE_SYS_PARAM_H */
20730 # endif /* no _SC_PAGESIZE */
20732 #endif /* no HAVE_GETPAGESIZE */
20737 char *data, *data2, *data3;
20741 pagesize = getpagesize ();
20743 /* First, make a file with some known garbage in it. */
20744 data = (char *) malloc (pagesize);
20747 for (i = 0; i < pagesize; ++i)
20748 *(data + i) = rand ();
20750 fd = creat ("conftest.mmap", 0600);
20753 if (write (fd, data, pagesize) != pagesize)
20757 /* Next, try to mmap the file at a fixed address which already has
20758 something else allocated at it. If we can, also make sure that
20759 we see the same garbage. */
20760 fd = open ("conftest.mmap", O_RDWR);
20763 data2 = (char *) malloc (2 * pagesize);
20766 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20767 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20768 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20770 for (i = 0; i < pagesize; ++i)
20771 if (*(data + i) != *(data2 + i))
20774 /* Finally, make sure that changes to the mapped area do not
20775 percolate back to the file as seen by read(). (This is a bug on
20776 some variants of i386 svr4.0.) */
20777 for (i = 0; i < pagesize; ++i)
20778 *(data2 + i) = *(data2 + i) + 1;
20779 data3 = (char *) malloc (pagesize);
20782 if (read (fd, data3, pagesize) != pagesize)
20784 for (i = 0; i < pagesize; ++i)
20785 if (*(data + i) != *(data3 + i))
20791 rm -f conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20802 { (case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_try") 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ac_cv_func_mmap_fixed_mapped=yes
20813 echo "$as_me: program exited with status $ac_status" >&5
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20817 ( exit $ac_status )
20818 ac_cv_func_mmap_fixed_mapped=no
20820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20825 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20826 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_MMAP 1
20834 rm -f conftest.mmap
20836 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20837 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20838 if test "${ac_cv_func_mmap_file+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 ac_cpp='$CPP $CPPFLAGS'
20843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20847 if test "$cross_compiling" = yes; then
20848 ac_cv_func_mmap_file=no
20850 cat >conftest.$ac_ext <<_ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20858 #include <sys/types.h>
20859 #include <sys/mman.h>
20867 fd = creat ("foo",0777);
20868 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20870 return (fd != (int) MAP_FAILED);
20875 rm -f conftest$ac_exeext
20876 if { (ac_try="$ac_link"
20877 case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_link") 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20886 { (case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 ac_cv_func_mmap_file=yes
20897 echo "$as_me: program exited with status $ac_status" >&5
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20901 ( exit $ac_status )
20902 ac_cv_func_mmap_file=no
20904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20909 ac_cpp='$CPP $CPPFLAGS'
20910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20916 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20917 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20918 if test "$ac_cv_func_mmap_file" = yes; then
20920 cat >>confdefs.h <<\_ACEOF
20921 #define HAVE_MMAP_FILE
20928 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20929 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20930 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20933 if test "$llvm_cv_os_type" = "Interix" ; then
20934 ac_cv_need_dev_zero_for_mmap=yes
20936 ac_cv_need_dev_zero_for_mmap=no
20940 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20941 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20942 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20944 cat >>confdefs.h <<\_ACEOF
20945 #define NEED_DEV_ZERO_FOR_MMAP 1
20950 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20952 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20953 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20955 if test "$ac_cv_func_mmap_file" = "no"
20957 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20958 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20962 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20963 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20965 ac_cpp='$CXXCPP $CPPFLAGS'
20966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20970 cat >conftest.$ac_ext <<_ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20977 volatile unsigned long val = 1;
20978 __sync_synchronize();
20979 __sync_val_compare_and_swap(&val, 1, 0);
20980 __sync_add_and_fetch(&val, 1);
20981 __sync_sub_and_fetch(&val, 1);
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } &&
21000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21001 { (case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_try") 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; } &&
21010 { ac_try='test -s conftest$ac_exeext'
21011 { (case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_try") 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
21021 ac_cpp='$CPP $CPPFLAGS'
21022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21026 { echo "$as_me:$LINENO: result: yes" >&5
21027 echo "${ECHO_T}yes" >&6; }
21029 cat >>confdefs.h <<\_ACEOF
21030 #define LLVM_MULTITHREADED 1
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21037 { echo "$as_me:$LINENO: result: no" >&5
21038 echo "${ECHO_T}no" >&6; }
21040 cat >>confdefs.h <<\_ACEOF
21041 #define LLVM_MULTITHREADED 0
21044 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21045 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21048 rm -f core conftest.err conftest.$ac_objext \
21049 conftest$ac_exeext conftest.$ac_ext
21052 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21053 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21054 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21055 if test "${llvm_cv_linux_mixed+set}" = set; then
21056 echo $ECHO_N "(cached) $ECHO_C" >&6
21059 ac_cpp='$CPP $CPPFLAGS'
21060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21064 cat >conftest.$ac_ext <<_ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h. */
21071 error: Not x86-64 even if uname says so!
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_compile") 2>conftest.er1
21091 grep -v '^ *+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21097 { (case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_try") 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest.$ac_objext'
21107 { (case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_try") 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 llvm_cv_linux_mixed=no
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 llvm_cv_linux_mixed=yes
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126 ac_cpp='$CPP $CPPFLAGS'
21127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21133 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21134 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21136 if test "$llvm_cv_linux_mixed" = "yes"; then
21137 llvm_cv_target_arch="x86"
21143 for ac_func in __dso_handle
21145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 cat >conftest.$ac_ext <<_ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21159 #define $ac_func innocuous_$ac_func
21161 /* System header to define __stub macros and hopefully few prototypes,
21162 which can conflict with char $ac_func (); below.
21163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21164 <limits.h> exists even on freestanding compilers. */
21167 # include <limits.h>
21169 # include <assert.h>
21174 /* Override any GCC internal prototype to avoid an error.
21175 Use char because int might match the return type of a GCC
21176 builtin and then its argument prototype would still apply. */
21181 /* The GNU C library defines this for functions which it implements
21182 to always fail with ENOSYS. Some functions are actually named
21183 something starting with __ and the normal name is an alias. */
21184 #if defined __stub_$ac_func || defined __stub___$ac_func
21191 return $ac_func ();
21196 rm -f conftest.$ac_objext conftest$ac_exeext
21197 if { (ac_try="$ac_link"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_link") 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21211 { (case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_try") 2>&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; } &&
21220 { ac_try='test -s conftest$ac_exeext'
21221 { (case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_try") 2>&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 eval "$as_ac_var=yes"
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 eval "$as_ac_var=no"
21238 rm -f core conftest.err conftest.$ac_objext \
21239 conftest$ac_exeext conftest.$ac_ext
21241 ac_res=`eval echo '${'$as_ac_var'}'`
21242 { echo "$as_me:$LINENO: result: $ac_res" >&5
21243 echo "${ECHO_T}$ac_res" >&6; }
21244 if test `eval echo '${'$as_ac_var'}'` = yes; then
21245 cat >>confdefs.h <<_ACEOF
21246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21253 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
21254 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
21255 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21258 llvm_cv_llvmgcc_dragonegg="no"
21259 if test -n "$LLVMGCC" ; then
21260 cp /dev/null conftest.c
21261 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
21262 if test $? -eq 0 ; then
21263 llvm_cv_llvmgcc_dragonegg="yes"
21268 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
21269 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
21271 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
21272 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
21273 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
21275 LLVMCC_EMITIR_FLAG="-emit-llvm"
21276 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
21281 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21282 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
21283 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21286 llvm_cv_llvmgcc_sanity="no"
21287 if test -n "$LLVMGCC" ; then
21288 cp /dev/null conftest.c
21289 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
21290 grep 'target datalayout =' > /dev/null 2>&1
21291 if test $? -eq 0 ; then
21292 llvm_cv_llvmgcc_sanity="yes"
21297 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
21298 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
21300 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
21301 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
21302 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
21303 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
21304 LLVMCC1=$llvmcc1path
21306 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
21307 LLVMCC1PLUS=$llvmcc1pluspath
21309 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
21310 LLVMGCCDIR=$llvmgccdir
21312 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
21313 LLVMGCC_LANGS=$llvmgcclangs
21315 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
21318 { echo "$as_me:$LINENO: result: ok" >&5
21319 echo "${ECHO_T}ok" >&6; }
21322 SHLIBEXT=$libltdl_cv_shlibext
21325 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21328 # Translate the various configuration directories and other basic
21329 # information into substitutions that will end up in Makefile.config.in
21330 # that these configured values can be used by the makefiles
21331 if test "${prefix}" = "NONE" ; then
21332 prefix="/usr/local"
21334 eval LLVM_PREFIX="${prefix}";
21335 eval LLVM_BINDIR="${prefix}/bin";
21336 eval LLVM_LIBDIR="${prefix}/lib";
21337 eval LLVM_DATADIR="${prefix}/share/llvm";
21338 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21339 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21340 eval LLVM_INCLUDEDIR="${prefix}/include";
21341 eval LLVM_INFODIR="${prefix}/info";
21342 eval LLVM_MANDIR="${prefix}/man";
21343 LLVM_CONFIGTIME=`date`
21355 # Place the various directores into the config.h file as #defines so that we
21356 # can know about the installation paths within LLVM.
21358 cat >>confdefs.h <<_ACEOF
21359 #define LLVM_PREFIX "$LLVM_PREFIX"
21363 cat >>confdefs.h <<_ACEOF
21364 #define LLVM_BINDIR "$LLVM_BINDIR"
21368 cat >>confdefs.h <<_ACEOF
21369 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21373 cat >>confdefs.h <<_ACEOF
21374 #define LLVM_DATADIR "$LLVM_DATADIR"
21378 cat >>confdefs.h <<_ACEOF
21379 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21383 cat >>confdefs.h <<_ACEOF
21384 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21388 cat >>confdefs.h <<_ACEOF
21389 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21393 cat >>confdefs.h <<_ACEOF
21394 #define LLVM_INFODIR "$LLVM_INFODIR"
21398 cat >>confdefs.h <<_ACEOF
21399 #define LLVM_MANDIR "$LLVM_MANDIR"
21403 cat >>confdefs.h <<_ACEOF
21404 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21408 cat >>confdefs.h <<_ACEOF
21409 #define LLVM_HOSTTRIPLE "$host"
21413 # Determine which bindings to build.
21414 if test "$BINDINGS_TO_BUILD" = auto ; then
21415 BINDINGS_TO_BUILD=""
21416 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21417 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21420 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21423 # This isn't really configurey, but it avoids having to repeat the list in
21428 # Do any work necessary to ensure that bindings have what they need.
21429 binding_prereqs_failed=0
21430 for a_binding in $BINDINGS_TO_BUILD ; do
21431 case "$a_binding" in
21433 if test "x$OCAMLC" = x ; then
21434 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21435 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21436 binding_prereqs_failed=1
21438 if test "x$OCAMLDEP" = x ; then
21439 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21440 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21441 binding_prereqs_failed=1
21443 if test "x$OCAMLOPT" = x ; then
21444 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21445 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21447 if test "x$with_ocaml_libdir" != xauto ; then
21448 OCAML_LIBDIR=$with_ocaml_libdir
21451 ocaml_stdlib="`"$OCAMLC" -where`"
21452 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21454 # ocaml stdlib is beneath our prefix; use stdlib
21455 OCAML_LIBDIR=$ocaml_stdlib
21458 # ocaml stdlib is outside our prefix; use libdir/ocaml
21459 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21466 if test "$binding_prereqs_failed" = 1 ; then
21467 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21468 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21469 { (exit 1); exit 1; }; }
21472 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21473 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21474 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 ac_cpp='$CXXCPP $CPPFLAGS'
21479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21483 oldcxxflags="$CXXFLAGS"
21484 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
21485 cat >conftest.$ac_ext <<_ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21500 rm -f conftest.$ac_objext
21501 if { (ac_try="$ac_compile"
21502 case "(($ac_try" in
21503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504 *) ac_try_echo=$ac_try;;
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_compile") 2>conftest.er1
21509 grep -v '^ *+' conftest.er1 >conftest.err
21511 cat conftest.err >&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); } &&
21514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21515 { (case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_try") 2>&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; } &&
21524 { ac_try='test -s conftest.$ac_objext'
21525 { (case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_try") 2>&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; }; then
21534 llvm_cv_cxx_visibility_inlines_hidden=yes
21536 echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21539 llvm_cv_cxx_visibility_inlines_hidden=no
21542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 CXXFLAGS="$oldcxxflags"
21545 ac_cpp='$CPP $CPPFLAGS'
21546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21552 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21553 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21554 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21555 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21558 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21563 if test "$llvm_cv_link_use_r" = "yes" ; then
21570 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21571 RDYNAMIC="-Wl,-export-dynamic"
21578 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21585 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21587 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21589 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21591 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21593 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21596 ac_config_files="$ac_config_files Makefile.config"
21599 ac_config_files="$ac_config_files llvm.spec"
21602 ac_config_files="$ac_config_files docs/doxygen.cfg"
21604 if test -f ${srcdir}/tools/clang/README.txt; then
21605 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21609 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
21612 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21615 ac_config_commands="$ac_config_commands setup"
21617 ac_config_commands="$ac_config_commands Makefile"
21620 ac_config_commands="$ac_config_commands Makefile.common"
21623 ac_config_commands="$ac_config_commands examples/Makefile"
21626 ac_config_commands="$ac_config_commands lib/Makefile"
21629 ac_config_commands="$ac_config_commands runtime/Makefile"
21632 ac_config_commands="$ac_config_commands test/Makefile"
21635 ac_config_commands="$ac_config_commands test/Makefile.tests"
21638 ac_config_commands="$ac_config_commands unittests/Makefile"
21641 ac_config_commands="$ac_config_commands tools/Makefile"
21644 ac_config_commands="$ac_config_commands utils/Makefile"
21647 ac_config_commands="$ac_config_commands projects/Makefile"
21650 ac_config_commands="$ac_config_commands bindings/Makefile"
21653 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21657 cat >confcache <<\_ACEOF
21658 # This file is a shell script that caches the results of configure
21659 # tests run on this system so they can be shared between configure
21660 # scripts and configure runs, see configure's option --config-cache.
21661 # It is not useful on other systems. If it contains results you don't
21662 # want to keep, you may remove or edit it.
21664 # config.status only pays attention to the cache file if you give it
21665 # the --recheck option to rerun configure.
21667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21669 # following values.
21673 # The following way of writing the cache mishandles newlines in values,
21674 # but we know of no workaround that is simple, portable, and efficient.
21675 # So, we kill variables containing newlines.
21676 # Ultrix sh set writes to stderr and can't be redirected directly,
21677 # and sets the high bit in the cache file unless we assign to the vars.
21679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21680 eval ac_val=\$$ac_var
21684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21688 _ | IFS | as_nl) ;; #(
21689 *) $as_unset $ac_var ;;
21695 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21696 *${as_nl}ac_space=\ *)
21697 # `set' does not quote correctly, so add quotes (double-quote
21698 # substitution turns \\\\ into \\, and sed turns \\ into \).
21701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21704 # `set' quotes correctly as required by POSIX, so do not add quotes.
21705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21716 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21719 if test -w "$cache_file"; then
21720 test "x$cache_file" != "x/dev/null" &&
21721 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21722 echo "$as_me: updating cache $cache_file" >&6;}
21723 cat confcache >$cache_file
21725 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21726 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21732 # Let make expand exec_prefix.
21733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21735 DEFS=-DHAVE_CONFIG_H
21739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21740 # 1. Remove the extension, and $U if already installed.
21741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21742 ac_i=`echo "$ac_i" | sed "$ac_script"`
21743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21744 # will be set to the directory where LIBOBJS objects are built.
21745 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21746 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21748 LIBOBJS=$ac_libobjs
21750 LTLIBOBJS=$ac_ltlibobjs
21753 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21754 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21755 Usually this means the macro was only invoked conditionally." >&5
21756 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21757 Usually this means the macro was only invoked conditionally." >&2;}
21758 { (exit 1); exit 1; }; }
21760 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21761 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21762 Usually this means the macro was only invoked conditionally." >&5
21763 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21764 Usually this means the macro was only invoked conditionally." >&2;}
21765 { (exit 1); exit 1; }; }
21768 : ${CONFIG_STATUS=./config.status}
21769 ac_clean_files_save=$ac_clean_files
21770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21771 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21772 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21773 cat >$CONFIG_STATUS <<_ACEOF
21775 # Generated by $as_me.
21776 # Run this file to recreate the current configuration.
21777 # Compiler output produced by configure, useful for debugging
21778 # configure, is in config.log if it exists.
21781 ac_cs_recheck=false
21783 SHELL=\${CONFIG_SHELL-$SHELL}
21786 cat >>$CONFIG_STATUS <<\_ACEOF
21787 ## --------------------- ##
21788 ## M4sh Initialization. ##
21789 ## --------------------- ##
21791 # Be Bourne compatible
21792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21796 # is contrary to our usage. Disable this feature.
21797 alias -g '${1+"$@"}'='"$@"'
21798 setopt NO_GLOB_SUBST
21800 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21802 BIN_SH=xpg4; export BIN_SH # for Tru64
21803 DUALCASE=1; export DUALCASE # for MKS sh
21807 # Avoid depending upon Character Ranges.
21808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21811 as_cr_digits='0123456789'
21812 as_cr_alnum=$as_cr_Letters$as_cr_digits
21814 # The user is always right.
21815 if test "${PATH_SEPARATOR+set}" != set; then
21816 echo "#! /bin/sh" >conf$$.sh
21817 echo "exit 0" >>conf$$.sh
21819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21827 # Support unset when possible.
21828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21836 # We need space, tab and new line, in precisely that order. Quoting is
21837 # there to prevent editors from complaining about space-tab.
21838 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21839 # splitting by setting IFS to empty value.)
21844 # Find who we are. Look in the path if we contain no directory separator.
21846 *[\\/]* ) as_myself=$0 ;;
21847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21848 for as_dir in $PATH
21851 test -z "$as_dir" && as_dir=.
21852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21858 # We did not find ourselves, most probably we were run as `sh COMMAND'
21859 # in which case we are not to be found in the path.
21860 if test "x$as_myself" = x; then
21863 if test ! -f "$as_myself"; then
21864 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21865 { (exit 1); exit 1; }
21868 # Work around bugs in pre-3.0 UWIN ksh.
21869 for as_var in ENV MAIL MAILPATH
21870 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21878 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21879 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21880 LC_TELEPHONE LC_TIME
21882 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21883 eval $as_var=C; export $as_var
21885 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21889 # Required to use basename.
21890 if expr a : '\(a\)' >/dev/null 2>&1 &&
21891 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21898 as_basename=basename
21904 # Name of the executable.
21905 as_me=`$as_basename -- "$0" ||
21906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21907 X"$0" : 'X\(//\)$' \| \
21908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21910 sed '/^.*\/\([^/][^/]*\)\/*$/{
21929 as_lineno_1=$LINENO
21930 as_lineno_2=$LINENO
21931 test "x$as_lineno_1" != "x$as_lineno_2" &&
21932 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21934 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21935 # uniformly replaced by the line number. The first 'sed' inserts a
21936 # line-number line after each line using $LINENO; the second 'sed'
21937 # does the real work. The second script uses 'N' to pair each
21938 # line-number line with the line containing $LINENO, and appends
21939 # trailing '-' during substitution so that $LINENO is not a special
21940 # case at line end.
21941 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21942 # scripts with optimization help from Paolo Bonzini. Blame Lee
21943 # E. McMahon (1931-1989) for sed's syntax. :-)
21955 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21958 ' >$as_me.lineno &&
21959 chmod +x "$as_me.lineno" ||
21960 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21961 { (exit 1); exit 1; }; }
21963 # Don't try to exec as it changes $[0], causing all sort of problems
21964 # (the dirname of $[0] is not the place where we might find the
21965 # original and so on. Autoconf is especially sensitive to this).
21966 . "./$as_me.lineno"
21967 # Exit status is that of the last command.
21972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21978 ECHO_C= ECHO_N= ECHO_T=
21979 case `echo -n x` in
21981 case `echo 'x\c'` in
21982 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21989 if expr a : '\(a\)' >/dev/null 2>&1 &&
21990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21996 rm -f conf$$ conf$$.exe conf$$.file
21997 if test -d conf$$.dir; then
21998 rm -f conf$$.dir/conf$$.file
22004 if ln -s conf$$.file conf$$ 2>/dev/null; then
22006 # ... but there are two gotchas:
22007 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22008 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22009 # In both cases, we have to default to `cp -p'.
22010 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22012 elif ln conf$$.file conf$$ 2>/dev/null; then
22017 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22018 rmdir conf$$.dir 2>/dev/null
22020 if mkdir -p . 2>/dev/null; then
22023 test -d ./-p && rmdir ./-p
22027 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22028 # systems may use methods other than mode bits to determine executability.
22029 cat >conf$$.file <<_ASEOF
22033 chmod +x conf$$.file
22034 if test -x conf$$.file >/dev/null 2>&1; then
22035 as_executable_p="test -x"
22041 # Sed expression to map a string onto a valid CPP name.
22042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22044 # Sed expression to map a string onto a valid variable name.
22045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22050 # Save the log message, to keep $[0] and so on meaningful, and to
22051 # report actual input values of CONFIG_FILES etc. instead of their
22052 # values after options handling.
22054 This file was extended by llvm $as_me 3.0svn, which was
22055 generated by GNU Autoconf 2.60. Invocation command line was
22057 CONFIG_FILES = $CONFIG_FILES
22058 CONFIG_HEADERS = $CONFIG_HEADERS
22059 CONFIG_LINKS = $CONFIG_LINKS
22060 CONFIG_COMMANDS = $CONFIG_COMMANDS
22063 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22068 cat >>$CONFIG_STATUS <<_ACEOF
22069 # Files that config.status was made for.
22070 config_files="$ac_config_files"
22071 config_headers="$ac_config_headers"
22072 config_commands="$ac_config_commands"
22076 cat >>$CONFIG_STATUS <<\_ACEOF
22078 \`$as_me' instantiates files from templates according to the
22079 current configuration.
22081 Usage: $0 [OPTIONS] [FILE]...
22083 -h, --help print this help, then exit
22084 -V, --version print version number, then exit
22085 -q, --quiet do not print progress messages
22086 -d, --debug don't remove temporary files
22087 --recheck update $as_me by reconfiguring in the same conditions
22088 --file=FILE[:TEMPLATE]
22089 instantiate the configuration file FILE
22090 --header=FILE[:TEMPLATE]
22091 instantiate the configuration header FILE
22093 Configuration files:
22096 Configuration headers:
22099 Configuration commands:
22102 Report bugs to <bug-autoconf@gnu.org>."
22105 cat >>$CONFIG_STATUS <<_ACEOF
22107 llvm config.status 3.0svn
22108 configured by $0, generated by GNU Autoconf 2.60,
22109 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22111 Copyright (C) 2006 Free Software Foundation, Inc.
22112 This config.status script is free software; the Free Software Foundation
22113 gives unlimited permission to copy, distribute and modify it."
22120 cat >>$CONFIG_STATUS <<\_ACEOF
22121 # If no file are specified by the user, then we need to provide default
22122 # value. By we need to know if files were specified by the user.
22128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22129 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22140 # Handling of the options.
22141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22144 echo "$ac_cs_version"; exit ;;
22145 --debug | --debu | --deb | --de | --d | -d )
22147 --file | --fil | --fi | --f )
22149 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22150 ac_need_defaults=false;;
22151 --header | --heade | --head | --hea )
22153 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22154 ac_need_defaults=false;;
22156 # Conflict between --help and --header
22157 { echo "$as_me: error: ambiguous option: $1
22158 Try \`$0 --help' for more information." >&2
22159 { (exit 1); exit 1; }; };;
22160 --help | --hel | -h )
22161 echo "$ac_cs_usage"; exit ;;
22162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22163 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22166 # This is an error.
22167 -*) { echo "$as_me: error: unrecognized option: $1
22168 Try \`$0 --help' for more information." >&2
22169 { (exit 1); exit 1; }; } ;;
22171 *) ac_config_targets="$ac_config_targets $1"
22172 ac_need_defaults=false ;;
22178 ac_configure_extra_args=
22180 if $ac_cs_silent; then
22182 ac_configure_extra_args="$ac_configure_extra_args --silent"
22186 cat >>$CONFIG_STATUS <<_ACEOF
22187 if \$ac_cs_recheck; then
22188 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22189 CONFIG_SHELL=$SHELL
22190 export CONFIG_SHELL
22191 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22195 cat >>$CONFIG_STATUS <<\_ACEOF
22199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22200 ## Running $as_me. ##
22206 cat >>$CONFIG_STATUS <<_ACEOF
22210 llvm_src="${srcdir}"
22214 cat >>$CONFIG_STATUS <<\_ACEOF
22216 # Handling of arguments.
22217 for ac_config_target in $ac_config_targets
22219 case $ac_config_target in
22220 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22221 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22222 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22223 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22224 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22225 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22226 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22227 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22228 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22229 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22230 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
22231 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
22232 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
22233 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22234 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22235 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22236 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22237 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22238 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22239 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22240 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22241 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22242 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22243 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22244 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22245 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22246 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22248 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22249 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22250 { (exit 1); exit 1; }; };;
22255 # If the user did not use the arguments to specify the items to instantiate,
22256 # then the envvar interface is used. Set only those that are not.
22257 # We use the long form for the default assignment because of an extremely
22258 # bizarre bug on SunOS 4.1.3.
22259 if $ac_need_defaults; then
22260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22265 # Have a temporary directory for convenience. Make it in the build tree
22266 # simply because there is no reason against having it here, and in addition,
22267 # creating and moving files from /tmp can sometimes cause problems.
22268 # Hook for its removal unless debugging.
22269 # Note that there is a small window in which the directory will not be cleaned:
22270 # after its creation but before its name has been assigned to `$tmp'.
22274 trap 'exit_status=$?
22275 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22277 trap '{ (exit 1); exit 1; }' 1 2 13 15
22279 # Create a (secure) tmp directory for tmp files.
22282 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22283 test -n "$tmp" && test -d "$tmp"
22286 tmp=./conf$$-$RANDOM
22287 (umask 077 && mkdir "$tmp")
22290 echo "$me: cannot create a temporary directory in ." >&2
22291 { (exit 1); exit 1; }
22295 # Set up the sed scripts for CONFIG_FILES section.
22298 # No need to generate the scripts if there are no CONFIG_FILES.
22299 # This happens for instance when ./config.status config.h
22300 if test -n "$CONFIG_FILES"; then
22307 for ac_last_try in false false false false false :; do
22308 cat >conf$$subs.sed <<_ACEOF
22309 SHELL!$SHELL$ac_delim
22310 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22311 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22312 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22313 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22314 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22315 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22316 exec_prefix!$exec_prefix$ac_delim
22317 prefix!$prefix$ac_delim
22318 program_transform_name!$program_transform_name$ac_delim
22319 bindir!$bindir$ac_delim
22320 sbindir!$sbindir$ac_delim
22321 libexecdir!$libexecdir$ac_delim
22322 datarootdir!$datarootdir$ac_delim
22323 datadir!$datadir$ac_delim
22324 sysconfdir!$sysconfdir$ac_delim
22325 sharedstatedir!$sharedstatedir$ac_delim
22326 localstatedir!$localstatedir$ac_delim
22327 includedir!$includedir$ac_delim
22328 oldincludedir!$oldincludedir$ac_delim
22329 docdir!$docdir$ac_delim
22330 infodir!$infodir$ac_delim
22331 htmldir!$htmldir$ac_delim
22332 dvidir!$dvidir$ac_delim
22333 pdfdir!$pdfdir$ac_delim
22334 psdir!$psdir$ac_delim
22335 libdir!$libdir$ac_delim
22336 localedir!$localedir$ac_delim
22337 mandir!$mandir$ac_delim
22338 DEFS!$DEFS$ac_delim
22339 ECHO_C!$ECHO_C$ac_delim
22340 ECHO_N!$ECHO_N$ac_delim
22341 ECHO_T!$ECHO_T$ac_delim
22342 LIBS!$LIBS$ac_delim
22343 build_alias!$build_alias$ac_delim
22344 host_alias!$host_alias$ac_delim
22345 target_alias!$target_alias$ac_delim
22346 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22348 CFLAGS!$CFLAGS$ac_delim
22349 LDFLAGS!$LDFLAGS$ac_delim
22350 CPPFLAGS!$CPPFLAGS$ac_delim
22351 ac_ct_CC!$ac_ct_CC$ac_delim
22352 EXEEXT!$EXEEXT$ac_delim
22353 OBJEXT!$OBJEXT$ac_delim
22355 CXXFLAGS!$CXXFLAGS$ac_delim
22356 ac_ct_CXX!$ac_ct_CXX$ac_delim
22358 subdirs!$subdirs$ac_delim
22359 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22360 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22361 build!$build$ac_delim
22362 build_cpu!$build_cpu$ac_delim
22363 build_vendor!$build_vendor$ac_delim
22364 build_os!$build_os$ac_delim
22365 host!$host$ac_delim
22366 host_cpu!$host_cpu$ac_delim
22367 host_vendor!$host_vendor$ac_delim
22368 host_os!$host_os$ac_delim
22369 target!$target$ac_delim
22370 target_cpu!$target_cpu$ac_delim
22371 target_vendor!$target_vendor$ac_delim
22372 target_os!$target_os$ac_delim
22374 HOST_OS!$HOST_OS$ac_delim
22375 TARGET_OS!$TARGET_OS$ac_delim
22376 LINKALL!$LINKALL$ac_delim
22377 NOLINKALL!$NOLINKALL$ac_delim
22378 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22379 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22380 ARCH!$ARCH$ac_delim
22381 ENDIAN!$ENDIAN$ac_delim
22382 GREP!$GREP$ac_delim
22383 EGREP!$EGREP$ac_delim
22384 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22385 BUILD_CC!$BUILD_CC$ac_delim
22386 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22387 BUILD_CXX!$BUILD_CXX$ac_delim
22388 CVSBUILD!$CVSBUILD$ac_delim
22389 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22390 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22391 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22392 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22393 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22394 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22395 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22397 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22398 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22399 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22400 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22401 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22402 ENABLE_PIC!$ENABLE_PIC$ac_delim
22403 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22404 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22405 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22408 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22410 elif $ac_last_try; then
22411 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22412 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22413 { (exit 1); exit 1; }; }
22415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22419 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22420 if test -n "$ac_eof"; then
22421 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22422 ac_eof=`expr $ac_eof + 1`
22425 cat >>$CONFIG_STATUS <<_ACEOF
22426 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22430 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22431 s/^/s,@/; s/!/@,|#_!!_#|/
22434 s/'"$ac_delim"'$/,g/; t
22436 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22437 ' >>$CONFIG_STATUS <conf$$subs.sed
22438 rm -f conf$$subs.sed
22439 cat >>$CONFIG_STATUS <<_ACEOF
22445 for ac_last_try in false false false false false :; do
22446 cat >conf$$subs.sed <<_ACEOF
22447 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22448 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22449 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22450 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22451 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22452 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22453 CLANGPATH!$CLANGPATH$ac_delim
22454 CLANGXXPATH!$CLANGXXPATH$ac_delim
22455 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
22456 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22457 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22458 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22459 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22461 ifGNUmake!$ifGNUmake$ac_delim
22462 LN_S!$LN_S$ac_delim
22465 DATE!$DATE$ac_delim
22466 FIND!$FIND$ac_delim
22467 MKDIR!$MKDIR$ac_delim
22469 RANLIB!$RANLIB$ac_delim
22474 BINPWD!$BINPWD$ac_delim
22475 GRAPHVIZ!$GRAPHVIZ$ac_delim
22478 NEATO!$NEATO$ac_delim
22479 TWOPI!$TWOPI$ac_delim
22480 CIRCO!$CIRCO$ac_delim
22482 DOTTY!$DOTTY$ac_delim
22483 XDOT_PY!$XDOT_PY$ac_delim
22484 PERL!$PERL$ac_delim
22485 HAVE_PERL!$HAVE_PERL$ac_delim
22486 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22487 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22488 INSTALL_DATA!$INSTALL_DATA$ac_delim
22489 BZIP2!$BZIP2$ac_delim
22491 DOXYGEN!$DOXYGEN$ac_delim
22492 GROFF!$GROFF$ac_delim
22493 GZIPBIN!$GZIPBIN$ac_delim
22494 POD2HTML!$POD2HTML$ac_delim
22495 POD2MAN!$POD2MAN$ac_delim
22496 PDFROFF!$PDFROFF$ac_delim
22497 RUNTEST!$RUNTEST$ac_delim
22498 TCLSH!$TCLSH$ac_delim
22500 OCAMLC!$OCAMLC$ac_delim
22501 OCAMLOPT!$OCAMLOPT$ac_delim
22502 OCAMLDEP!$OCAMLDEP$ac_delim
22503 OCAMLDOC!$OCAMLDOC$ac_delim
22505 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22506 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22507 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22508 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22509 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22510 LIBADD_DL!$LIBADD_DL$ac_delim
22511 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
22512 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
22513 LLVMGCC!$LLVMGCC$ac_delim
22514 LLVMGXX!$LLVMGXX$ac_delim
22515 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
22516 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22517 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22518 USE_UDIS86!$USE_UDIS86$ac_delim
22519 USE_OPROFILE!$USE_OPROFILE$ac_delim
22520 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22521 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22522 MMAP_FILE!$MMAP_FILE$ac_delim
22523 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
22524 LLVMCC1!$LLVMCC1$ac_delim
22525 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
22526 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
22527 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
22528 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
22529 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
22530 SHLIBEXT!$SHLIBEXT$ac_delim
22531 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22532 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22533 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22534 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22535 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22536 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22537 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22538 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22539 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22540 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22541 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22542 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22543 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22546 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22548 elif $ac_last_try; then
22549 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22550 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22551 { (exit 1); exit 1; }; }
22553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22557 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22558 if test -n "$ac_eof"; then
22559 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22560 ac_eof=`expr $ac_eof + 1`
22563 cat >>$CONFIG_STATUS <<_ACEOF
22564 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22568 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22569 s/^/s,@/; s/!/@,|#_!!_#|/
22572 s/'"$ac_delim"'$/,g/; t
22574 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22575 ' >>$CONFIG_STATUS <conf$$subs.sed
22576 rm -f conf$$subs.sed
22577 cat >>$CONFIG_STATUS <<_ACEOF
22583 for ac_last_try in false false false false false :; do
22584 cat >conf$$subs.sed <<_ACEOF
22585 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22586 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22587 RPATH!$RPATH$ac_delim
22588 RDYNAMIC!$RDYNAMIC$ac_delim
22589 LIBOBJS!$LIBOBJS$ac_delim
22590 LTLIBOBJS!$LTLIBOBJS$ac_delim
22593 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
22595 elif $ac_last_try; then
22596 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22597 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22598 { (exit 1); exit 1; }; }
22600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22604 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22605 if test -n "$ac_eof"; then
22606 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22607 ac_eof=`expr $ac_eof + 1`
22610 cat >>$CONFIG_STATUS <<_ACEOF
22611 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22615 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22616 s/^/s,@/; s/!/@,|#_!!_#|/
22619 s/'"$ac_delim"'$/,g/; t
22621 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22622 ' >>$CONFIG_STATUS <conf$$subs.sed
22623 rm -f conf$$subs.sed
22624 cat >>$CONFIG_STATUS <<_ACEOF
22631 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22633 # trailing colons and then remove the whole line if VPATH becomes empty
22634 # (actually we leave an empty line to preserve line numbers).
22635 if test "x$srcdir" = x.; then
22636 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22637 s/:*\$(srcdir):*/:/
22638 s/:*\${srcdir}:*/:/
22640 s/^\([^=]*=[ ]*\):*/\1/
22646 cat >>$CONFIG_STATUS <<\_ACEOF
22647 fi # test -n "$CONFIG_FILES"
22650 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22653 :[FHLC]) ac_mode=$ac_tag; continue;;
22655 case $ac_mode$ac_tag in
22657 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22658 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22659 { (exit 1); exit 1; }; };;
22660 :[FH]-) ac_tag=-:-;;
22661 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22678 -) ac_f="$tmp/stdin";;
22679 *) # Look for the file first in the build tree, then in the source tree
22680 # (if the path is not absolute). The absolute path cannot be DOS-style,
22681 # because $ac_f cannot contain `:'.
22685 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22687 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22688 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22689 { (exit 1); exit 1; }; };;
22691 ac_file_inputs="$ac_file_inputs $ac_f"
22694 # Let's still pretend it is `configure' which instantiates (i.e., don't
22695 # use $as_me), people would be surprised to read:
22696 # /* config.h. Generated by config.status. */
22697 configure_input="Generated from "`IFS=:
22698 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22699 if test x"$ac_file" != x-; then
22700 configure_input="$ac_file. $configure_input"
22701 { echo "$as_me:$LINENO: creating $ac_file" >&5
22702 echo "$as_me: creating $ac_file" >&6;}
22706 *:-:* | *:-) cat >"$tmp/stdin";;
22711 ac_dir=`$as_dirname -- "$ac_file" ||
22712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22713 X"$ac_file" : 'X\(//\)[^/]' \| \
22714 X"$ac_file" : 'X\(//\)$' \| \
22715 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22721 /^X\(\/\/\)[^/].*/{
22736 -*) as_dir=./$as_dir;;
22738 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22742 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22743 *) as_qdir=$as_dir;;
22745 as_dirs="'$as_qdir' $as_dirs"
22746 as_dir=`$as_dirname -- "$as_dir" ||
22747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22748 X"$as_dir" : 'X\(//\)[^/]' \| \
22749 X"$as_dir" : 'X\(//\)$' \| \
22750 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22756 /^X\(\/\/\)[^/].*/{
22769 test -d "$as_dir" && break
22771 test -z "$as_dirs" || eval "mkdir $as_dirs"
22772 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22773 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22774 { (exit 1); exit 1; }; }; }
22778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22781 # A ".." for each directory in $ac_dir_suffix.
22782 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22783 case $ac_top_builddir_sub in
22784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22788 ac_abs_top_builddir=$ac_pwd
22789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22790 # for backward compatibility:
22791 ac_top_builddir=$ac_top_build_prefix
22794 .) # We are building in place.
22796 ac_top_srcdir=$ac_top_builddir_sub
22797 ac_abs_top_srcdir=$ac_pwd ;;
22798 [\\/]* | ?:[\\/]* ) # Absolute name.
22799 ac_srcdir=$srcdir$ac_dir_suffix;
22800 ac_top_srcdir=$srcdir
22801 ac_abs_top_srcdir=$srcdir ;;
22802 *) # Relative name.
22803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22804 ac_top_srcdir=$ac_top_build_prefix$srcdir
22805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22817 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22818 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22822 cat >>$CONFIG_STATUS <<\_ACEOF
22823 # If the template does not know about datarootdir, expand it.
22824 # FIXME: This hack should be removed a few years after 2.60.
22825 ac_datarootdir_hack=; ac_datarootdir_seen=
22827 case `sed -n '/datarootdir/ {
22836 ' $ac_file_inputs` in
22837 *datarootdir*) ac_datarootdir_seen=yes;;
22838 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22839 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22840 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22842 cat >>$CONFIG_STATUS <<_ACEOF
22843 ac_datarootdir_hack='
22844 s&@datadir@&$datadir&g
22845 s&@docdir@&$docdir&g
22846 s&@infodir@&$infodir&g
22847 s&@localedir@&$localedir&g
22848 s&@mandir@&$mandir&g
22849 s&\\\${datarootdir}&$datarootdir&g' ;;
22853 # Neutralize VPATH when `$srcdir' = `.'.
22854 # Shell code in configure.ac might set extrasub.
22855 # FIXME: do we really want to maintain this feature?
22856 cat >>$CONFIG_STATUS <<_ACEOF
22860 cat >>$CONFIG_STATUS <<\_ACEOF
22862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22863 s&@configure_input@&$configure_input&;t t
22864 s&@top_builddir@&$ac_top_builddir_sub&;t t
22865 s&@srcdir@&$ac_srcdir&;t t
22866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22867 s&@top_srcdir@&$ac_top_srcdir&;t t
22868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22869 s&@builddir@&$ac_builddir&;t t
22870 s&@abs_builddir@&$ac_abs_builddir&;t t
22871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22872 s&@INSTALL@&$ac_INSTALL&;t t
22873 $ac_datarootdir_hack
22874 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22877 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22879 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22880 which seems to be undefined. Please make sure it is defined." >&5
22881 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22882 which seems to be undefined. Please make sure it is defined." >&2;}
22886 -) cat "$tmp/out"; rm -f "$tmp/out";;
22887 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22896 # Transform confdefs.h into a sed script `conftest.defines', that
22897 # substitutes the proper values into config.h.in to produce config.h.
22898 rm -f conftest.defines conftest.tail
22899 # First, append a space to every undef/define line, to ease matching.
22900 echo 's/$/ /' >conftest.defines
22901 # Then, protect against being on the right side of a sed subst, or in
22902 # an unquoted here document, in config.status. If some macros were
22903 # called several times there might be several #defines for the same
22904 # symbol, which is useless. But do not sort them, since the last
22905 # AC_DEFINE must be honored.
22906 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22907 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22908 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22909 # PARAMS is the parameter list in the macro definition--in most cases, it's
22910 # just an empty string.
22911 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22912 ac_dB='\\)[ (].*,\\1define\\2'
22920 s/^[ ]*#[ ]*define[ ][ ]*//
22925 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22926 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22927 ' >>conftest.defines
22929 # Remove the space that was appended to ease matching.
22930 # Then replace #undef with comments. This is necessary, for
22931 # example, in the case of _POSIX_SOURCE, which is predefined and required
22932 # on some systems where configure will not decide to define it.
22933 # (The regexp can be short, since the line contains either #define or #undef.)
22935 s,^[ #]*u.*,/* & */,' >>conftest.defines
22937 # Break up conftest.defines:
22938 ac_max_sed_lines=50
22940 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22941 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22942 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22944 ac_in='$ac_file_inputs'
22945 ac_out='"$tmp/out1"'
22946 ac_nxt='"$tmp/out2"'
22950 # Write a here document:
22951 cat >>$CONFIG_STATUS <<_ACEOF
22952 # First, check the format of the line:
22953 cat >"\$tmp/defines.sed" <<\\CEOF
22954 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22955 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22959 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22961 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22962 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22963 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22964 grep . conftest.tail >/dev/null || break
22965 rm -f conftest.defines
22966 mv conftest.tail conftest.defines
22968 rm -f conftest.defines conftest.tail
22970 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22971 cat >>$CONFIG_STATUS <<\_ACEOF
22972 if test x"$ac_file" != x-; then
22973 echo "/* $configure_input */" >"$tmp/config.h"
22974 cat "$ac_result" >>"$tmp/config.h"
22975 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22976 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22977 echo "$as_me: $ac_file is unchanged" >&6;}
22980 mv "$tmp/config.h" $ac_file
22983 echo "/* $configure_input */"
22989 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22990 echo "$as_me: executing $ac_file commands" >&6;}
22995 case $ac_file$ac_mode in
22996 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22998 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23000 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23002 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23004 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23006 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23008 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23010 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23012 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23014 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23016 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23018 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23020 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23027 { (exit 0); exit 0; }
23029 chmod +x $CONFIG_STATUS
23030 ac_clean_files=$ac_clean_files_save
23033 # configure is writing to config.log, and then calls config.status.
23034 # config.status does its own redirection, appending to config.log.
23035 # Unfortunately, on DOS this fails, as config.log is still kept open
23036 # by configure, so config.status won't be able to write to it; its
23037 # output is simply discarded. So we exec the FD to /dev/null,
23038 # effectively closing config.log, so it can be properly (re)opened and
23039 # appended to by config.status. When coming back to configure, we
23040 # need to make the FD available again.
23041 if test "$no_create" != yes; then
23043 ac_config_status_args=
23044 test "$silent" = yes &&
23045 ac_config_status_args="$ac_config_status_args --quiet"
23047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23050 # would make configure fail if this is the last instruction.
23051 $ac_cs_success || { (exit 1); exit 1; }
23055 # CONFIG_SUBDIRS section.
23057 if test "$no_recursion" != yes; then
23059 # Remove --cache-file and --srcdir arguments so they do not pile up.
23060 ac_sub_configure_args=
23062 eval "set x $ac_configure_args"
23066 if test -n "$ac_prev"; then
23071 -cache-file | --cache-file | --cache-fil | --cache-fi \
23072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23073 ac_prev=cache_file ;;
23074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23078 --config-cache | -C)
23080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23090 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23092 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23096 # Always prepend --prefix to ensure using the same prefix
23097 # in subdir configurations.
23098 ac_arg="--prefix=$prefix"
23100 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23102 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23105 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23107 # Do not complain, so a configure script can configure whichever
23108 # parts of a large source tree are present.
23109 test -d "$srcdir/$ac_dir" || continue
23111 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23112 echo "$as_me:$LINENO: $ac_msg" >&5
23116 -*) as_dir=./$as_dir;;
23118 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23122 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23123 *) as_qdir=$as_dir;;
23125 as_dirs="'$as_qdir' $as_dirs"
23126 as_dir=`$as_dirname -- "$as_dir" ||
23127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23128 X"$as_dir" : 'X\(//\)[^/]' \| \
23129 X"$as_dir" : 'X\(//\)$' \| \
23130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23136 /^X\(\/\/\)[^/].*/{
23149 test -d "$as_dir" && break
23151 test -z "$as_dirs" || eval "mkdir $as_dirs"
23152 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23153 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23154 { (exit 1); exit 1; }; }; }
23158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23161 # A ".." for each directory in $ac_dir_suffix.
23162 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23163 case $ac_top_builddir_sub in
23164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23168 ac_abs_top_builddir=$ac_pwd
23169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23170 # for backward compatibility:
23171 ac_top_builddir=$ac_top_build_prefix
23174 .) # We are building in place.
23176 ac_top_srcdir=$ac_top_builddir_sub
23177 ac_abs_top_srcdir=$ac_pwd ;;
23178 [\\/]* | ?:[\\/]* ) # Absolute name.
23179 ac_srcdir=$srcdir$ac_dir_suffix;
23180 ac_top_srcdir=$srcdir
23181 ac_abs_top_srcdir=$srcdir ;;
23182 *) # Relative name.
23183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23184 ac_top_srcdir=$ac_top_build_prefix$srcdir
23185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23192 # Check for guested configure; otherwise get Cygnus style configure.
23193 if test -f "$ac_srcdir/configure.gnu"; then
23194 ac_sub_configure=$ac_srcdir/configure.gnu
23195 elif test -f "$ac_srcdir/configure"; then
23196 ac_sub_configure=$ac_srcdir/configure
23197 elif test -f "$ac_srcdir/configure.in"; then
23198 # This should be Cygnus configure.
23199 ac_sub_configure=$ac_aux_dir/configure
23201 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23202 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23206 # The recursion is here.
23207 if test -n "$ac_sub_configure"; then
23208 # Make the cache file name correct relative to the subdirectory.
23209 case $cache_file in
23210 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23211 *) # Relative name.
23212 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23215 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23216 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23217 # The eval makes quoting arguments work.
23218 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23219 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23220 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23221 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23222 { (exit 1); exit 1; }; }