2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.1svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='llvm 3.1svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
767 NO_MISSING_FIELD_INITIALIZERS
788 ENABLE_VISIBILITY_INLINES_HIDDEN
794 ac_precious_vars='build_alias
805 ac_subdirs_all='projects/llvm-gcc
809 projects/llvm-poolalloc
812 projects/llvm-stacker
820 # Initialize some variables set by options.
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name=s,x,x,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1110 -site=* | --site=* | --sit=*)
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
1203 # Be sure to have absolute directory names.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of llvm 3.1svn:";;
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1393 --enable-polly Use polly if available (default is YES)
1394 --enable-libcpp Use libc++ if available (default is NO)
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-docs Build documents (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pthreads Use pthreads if available (default is YES)
1411 --enable-pic Build LLVM with Position Independent Code (default
1413 --enable-shared Build a shared library and link tools against it
1415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1416 Win32 DLL (default is NO)
1417 --enable-timestamps Enable embedding timestamp information in build
1419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, arm, mips, spu, xcore,
1422 hexagon, msp430, ptx, cbe, and cpp (default=all)
1423 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1425 --enable-bindings Build specific language bindings:
1426 all,auto,none,{binding-name} (default=auto)
1427 --enable-libffi Check for the presence of libffi (default is NO)
1428 --enable-ltdl-install install libltdl
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-optimize-option Select the compiler options to use for optimized
1435 --with-extra-options Specify additional options to compile LLVM with
1436 --with-extra-ld-options Specify additional options to link LLVM with
1437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1439 --with-clang-srcdir Directory to the out-of-tree Clang source
1440 --with-clang-resource-dir
1441 Relative directory from the Clang binary for
1443 --with-c-include-dirs Colon separated list of directories clang will
1445 --with-cxx-include-root Directory with the libstdc++ headers.
1446 --with-cxx-include-arch Architecture of the libstdc++ headers.
1447 --with-cxx-include-32bit-dir
1448 32 bit multilib dir.
1449 --with-cxx-include-64bit-dir
1450 64 bit multilib directory.
1451 --with-binutils-include Specify path to binutils/include/ containing
1452 plugin-api.h file for gold plugin.
1453 --with-bug-report-url Specify the URL where bug reports should be
1454 submitted (default=http://llvm.org/bugs/)
1455 --with-internal-prefix Installation directory for internal files
1456 --with-tclinclude directory where tcl headers are
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure 3.1svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 3.1svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960 for ac_prog in clang llvm-gcc gcc
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CC"; then
1991 { echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6; }
1994 { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1999 test -n "$CC" && break
2002 if test -z "$CC"; then
2004 for ac_prog in clang llvm-gcc gcc
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_ac_ct_CC="$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2038 { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2043 test -n "$ac_ct_CC" && break
2046 if test "x$ac_ct_CC" = x; then
2049 case $cross_compiling:$ac_tool_warned in
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet. If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet. If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO: checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (ac_try="$ac_compiler --version >&5"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_compiler --version >&5") 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (ac_try="$ac_compiler -v >&5"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler -v >&5") 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (ac_try="$ac_compiler -V >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -V >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2104 cat >conftest.$ac_ext <<_ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2119 ac_clean_files_save=$ac_clean_files
2120 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121 # Try to create an executable without -o first, disregard a.out.
2122 # It will help us diagnose broken compilers, and finding out an intuition
2124 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2128 # List of possible output files, starting from the most likely.
2129 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130 # only as a last resort. b.out is created by i960 compilers.
2131 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2133 # The IRIX 6 linker writes into existing files which may not be
2134 # executable, retaining their permissions. Remove them first so a
2135 # subsequent execution test works.
2137 for ac_file in $ac_files
2140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2146 if { (ac_try="$ac_link_default"
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152 (eval "$ac_link_default") 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
2156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2159 # so that the user can short-circuit this test for compilers unknown to
2161 for ac_file in $ac_files
2163 test -f "$ac_file" || continue
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2168 # We found the default executable, but exeext='' is most
2172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 # We set ac_cv_exeext here because the later test for it is not
2177 # safe: cross compilers may not add the suffix if given an `-o'
2178 # argument, so we may need to know it at that point already.
2179 # Even if this section looks crufty: it has the advantage of
2186 test "$ac_cv_exeext" = no && ac_cv_exeext=
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
2199 ac_exeext=$ac_cv_exeext
2200 { echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6; }
2203 # Check that the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216 (eval "$ac_try") 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 if test "$cross_compiling" = maybe; then
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check that the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6; }
2247 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249 if { (ac_try="$ac_link"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_link") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2263 for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
2266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2280 rm -f conftest$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2287 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289 if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 cat >conftest.$ac_ext <<_ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.o conftest.obj
2308 if { (ac_try="$ac_compile"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314 (eval "$ac_compile") 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
2318 for ac_file in conftest.o conftest.obj conftest.*; do
2319 test -f "$ac_file" || continue;
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6; }
2341 OBJEXT=$ac_cv_objext
2343 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.$ac_ext <<_ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_try") 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 ac_save_c_werror_flag=$ac_c_werror_flag
2423 ac_c_werror_flag=yes
2426 cat >conftest.$ac_ext <<_ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2450 grep -v '^ *+' conftest.er1 >conftest.err
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456 { (case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_try") 2>&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2505 grep -v '^ *+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 ac_c_werror_flag=$ac_save_c_werror_flag
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2561 grep -v '^ *+' conftest.er1 >conftest.err
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 ac_c_werror_flag=$ac_save_c_werror_flag
2603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2605 if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2614 if test "$GCC" = yes; then
2620 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_cc_c89+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 ac_cv_prog_cc_c89=no
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2651 s = g (p, va_arg (v,int));
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
2659 as 'x'. The following induces an error, until -std is added to get
2660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
2662 that's true only with -std. */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666 inside strings and character constants. */
2668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2687 CC="$ac_save_CC $ac_arg"
2688 rm -f conftest.$ac_objext
2689 if { (ac_try="$ac_compile"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_try") 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_cv_prog_cc_c89=$ac_arg
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2730 rm -f core conftest.err conftest.$ac_objext
2731 test "x$ac_cv_prog_cc_c89" != "xno" && break
2733 rm -f conftest.$ac_ext
2738 case "x$ac_cv_prog_cc_c89" in
2740 { echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6; } ;;
2743 { echo "$as_me:$LINENO: result: unsupported" >&5
2744 echo "${ECHO_T}unsupported" >&6; } ;;
2746 CC="$CC $ac_cv_prog_cc_c89"
2747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759 ac_cpp='$CXXCPP $CPPFLAGS'
2760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763 if test -z "$CXX"; then
2764 if test -n "$CCC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in clang++ llvm-g++ g++
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CXX"; then
2799 { echo "$as_me:$LINENO: result: $CXX" >&5
2800 echo "${ECHO_T}$CXX" >&6; }
2802 { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2807 test -n "$CXX" && break
2810 if test -z "$CXX"; then
2812 for ac_prog in clang++ llvm-g++ g++
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test -n "$ac_ct_CXX"; then
2822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CXX="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842 if test -n "$ac_ct_CXX"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2851 test -n "$ac_ct_CXX" && break
2854 if test "x$ac_ct_CXX" = x; then
2857 case $cross_compiling:$ac_tool_warned in
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet. If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2873 # Provide some information about the compiler.
2874 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875 ac_compiler=`set X $ac_compile; echo $2`
2876 { (ac_try="$ac_compiler --version >&5"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler --version >&5") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886 { (ac_try="$ac_compiler -v >&5"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -v >&5") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896 { (ac_try="$ac_compiler -V >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -V >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978 GXX=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CXXFLAGS=${CXXFLAGS+set}
2980 ac_save_CXXFLAGS=$CXXFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cxx_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987 ac_cxx_werror_flag=yes
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cxx_g=yes
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cxx_g=yes
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169 if test "$ac_test_CXXFLAGS" = set; then
3170 CXXFLAGS=$ac_save_CXXFLAGS
3171 elif test $ac_cv_prog_cxx_g = yes; then
3172 if test "$GXX" = yes; then
3178 if test "$GXX" = yes; then
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3201 if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3209 for ac_c_preproc_warn_flag in '' yes
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3224 # include <limits.h>
3226 # include <assert.h>
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252 if test -z "$ac_cpp_err"; then
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 # Broken: fails on valid input.
3262 rm -f conftest.err conftest.$ac_ext
3264 # OK, works on sane cases. Now check whether nonexistent headers
3265 # can be detected and how.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #include <ac_nonexistent.h>
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296 if test -z "$ac_cpp_err"; then
3297 # Broken: success on invalid input.
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Passes both tests.
3308 rm -f conftest.err conftest.$ac_ext
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3325 { echo "$as_me:$LINENO: result: $CPP" >&5
3326 echo "${ECHO_T}$CPP" >&6; }
3328 for ac_c_preproc_warn_flag in '' yes
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3343 # include <limits.h>
3345 # include <assert.h>
3349 if { (ac_try="$ac_cpp conftest.$ac_ext"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371 if test -z "$ac_cpp_err"; then
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Broken: fails on valid input.
3381 rm -f conftest.err conftest.$ac_ext
3383 # OK, works on sane cases. Now check whether nonexistent headers
3384 # can be detected and how.
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <ac_nonexistent.h>
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3427 rm -f conftest.err conftest.$ac_ext
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -d ${srcdir}/projects/llvm-gcc ; then
3452 subdirs="$subdirs projects/llvm-gcc"
3456 if test -d ${srcdir}/projects/test-suite ; then
3457 subdirs="$subdirs projects/test-suite"
3461 if test -d ${srcdir}/projects/llvm-test ; then
3462 subdirs="$subdirs projects/llvm-test"
3466 if test -d ${srcdir}/projects/poolalloc ; then
3467 subdirs="$subdirs projects/poolalloc"
3471 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472 subdirs="$subdirs projects/llvm-poolalloc"
3476 for i in `ls ${srcdir}/projects`
3478 if test -d ${srcdir}/projects/${i} ; then
3480 sample) subdirs="$subdirs projects/sample"
3482 privbracket) subdirs="$subdirs projects/privbracket"
3484 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3486 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3488 llvm-java) subdirs="$subdirs projects/llvm-java"
3490 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3492 safecode) subdirs="$subdirs projects/safecode"
3494 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3503 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3510 # Check whether --enable-polly was given.
3511 if test "${enable_polly+set}" = set; then
3512 enableval=$enable_polly;
3517 case "$enableval" in
3522 default) ENABLE_POLLY=1
3524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526 { (exit 1); exit 1; }; } ;;
3530 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3533 subdirs="$subdirs tools/polly"
3538 # Make sure we can run config.sub.
3539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542 { (exit 1); exit 1; }; }
3544 { echo "$as_me:$LINENO: checking build system type" >&5
3545 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_build+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 ac_build_alias=$build_alias
3550 test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552 test "x$ac_build_alias" = x &&
3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555 { (exit 1); exit 1; }; }
3556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559 { (exit 1); exit 1; }; }
3562 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563 echo "${ECHO_T}$ac_cv_build" >&6; }
3564 case $ac_cv_build in
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567 echo "$as_me: error: invalid value of canonical build" >&2;}
3568 { (exit 1); exit 1; }; };;
3571 ac_save_IFS=$IFS; IFS='-'
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3584 { echo "$as_me:$LINENO: checking host system type" >&5
3585 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_host+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test "x$host_alias" = x; then
3590 ac_cv_host=$ac_cv_build
3592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3599 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600 echo "${ECHO_T}$ac_cv_host" >&6; }
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604 echo "$as_me: error: invalid value of canonical host" >&2;}
3605 { (exit 1); exit 1; }; };;
3608 ac_save_IFS=$IFS; IFS='-'
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3621 { echo "$as_me:$LINENO: checking target system type" >&5
3622 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623 if test "${ac_cv_target+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 if test "x$target_alias" = x; then
3627 ac_cv_target=$ac_cv_host
3629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632 { (exit 1); exit 1; }; }
3636 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637 echo "${ECHO_T}$ac_cv_target" >&6; }
3638 case $ac_cv_target in
3640 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641 echo "$as_me: error: invalid value of canonical target" >&2;}
3642 { (exit 1); exit 1; }; };;
3644 target=$ac_cv_target
3645 ac_save_IFS=$IFS; IFS='-'
3651 # Remember, the first character of IFS is used to create $*,
3652 # except with old shells:
3655 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3658 # The aliases save the names the user supplied, while $host etc.
3659 # will get canonicalized.
3660 test -n "$target_alias" &&
3661 test "$program_prefix$program_suffix$program_transform_name" = \
3663 program_prefix=${target_alias}-
3665 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667 if test "${llvm_cv_os_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="AIX"
3675 llvm_cv_platform_type="Unix" ;;
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="IRIX"
3680 llvm_cv_platform_type="Unix" ;;
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Cygwin"
3685 llvm_cv_platform_type="Unix" ;;
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Darwin"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Minix"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="FreeBSD"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="OpenBSD"
3705 llvm_cv_platform_type="Unix" ;;
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="NetBSD"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="DragonFly"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="HP-UX"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Interix"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Linux"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,-z,allextract"
3733 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3734 llvm_cv_os_type="SunOS"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,-z,allextract"
3738 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3739 llvm_cv_os_type="AuroraUX"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Win32"
3745 llvm_cv_platform_type="Win32" ;;
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="MingW"
3750 llvm_cv_platform_type="Win32" ;;
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Haiku"
3755 llvm_cv_platform_type="Unix" ;;
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Freestanding"
3760 llvm_cv_platform_type="Unix" ;;
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Freestanding"
3765 llvm_cv_platform_type="Unix" ;;
3767 llvm_cv_link_all_option=""
3768 llvm_cv_no_link_all_option=""
3769 llvm_cv_os_type="Unknown"
3770 llvm_cv_platform_type="Unknown" ;;
3773 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3774 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3776 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3777 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3778 if test "${llvm_cv_target_os_type+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 llvm_cv_target_os_type="AIX" ;;
3785 llvm_cv_target_os_type="IRIX" ;;
3787 llvm_cv_target_os_type="Cygwin" ;;
3789 llvm_cv_target_os_type="Darwin" ;;
3791 llvm_cv_target_os_type="Minix" ;;
3793 llvm_cv_target_os_type="FreeBSD" ;;
3795 llvm_cv_target_os_type="OpenBSD" ;;
3797 llvm_cv_target_os_type="NetBSD" ;;
3799 llvm_cv_target_os_type="DragonFly" ;;
3801 llvm_cv_target_os_type="HP-UX" ;;
3803 llvm_cv_target_os_type="Interix" ;;
3805 llvm_cv_target_os_type="Linux" ;;
3807 llvm_cv_target_os_type="SunOS" ;;
3809 llvm_cv_target_os_type="AuroraUX" ;;
3811 llvm_cv_target_os_type="Win32" ;;
3813 llvm_cv_target_os_type="MingW" ;;
3815 llvm_cv_target_os_type="Haiku" ;;
3817 llvm_cv_target_os_type="RTEMS" ;;
3819 llvm_cv_target_os_type="NativeClient" ;;
3821 llvm_cv_target_os_type="Freestanding" ;;
3823 llvm_cv_target_os_type="Unknown" ;;
3826 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3827 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3829 if test "$llvm_cv_os_type" = "Unknown" ; then
3830 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3831 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3832 { (exit 1); exit 1; }; }
3837 HOST_OS=$llvm_cv_os_type
3839 TARGET_OS=$llvm_cv_target_os_type
3842 LINKALL=$llvm_cv_link_all_option
3844 NOLINKALL=$llvm_cv_no_link_all_option
3847 case $llvm_cv_platform_type in
3850 cat >>confdefs.h <<\_ACEOF
3851 #define LLVM_ON_UNIX 1
3861 cat >>confdefs.h <<\_ACEOF
3862 #define LLVM_ON_WIN32 1
3872 { echo "$as_me:$LINENO: checking target architecture" >&5
3873 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3874 if test "${llvm_cv_target_arch+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 i?86-*) llvm_cv_target_arch="x86" ;;
3879 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3880 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3881 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3882 arm*-*) llvm_cv_target_arch="ARM" ;;
3883 mips-*) llvm_cv_target_arch="Mips" ;;
3884 xcore-*) llvm_cv_target_arch="XCore" ;;
3885 msp430-*) llvm_cv_target_arch="MSP430" ;;
3886 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3887 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3888 ptx-*) llvm_cv_target_arch="PTX" ;;
3889 *) llvm_cv_target_arch="Unknown" ;;
3892 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3893 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3895 if test "$llvm_cv_target_arch" = "Unknown" ; then
3896 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3897 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3900 # Determine the LLVM native architecture for the target
3901 case "$llvm_cv_target_arch" in
3902 x86) LLVM_NATIVE_ARCH="X86" ;;
3903 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3904 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3907 ARCH=$llvm_cv_target_arch
3912 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3913 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3914 if test "${ac_cv_path_GREP+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 # Extract the first word of "grep ggrep" to use in msg output
3918 if test -z "$GREP"; then
3919 set dummy grep ggrep; ac_prog_name=$2
3920 if test "${ac_cv_path_GREP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 ac_path_GREP_found=false
3924 # Loop through the user's path and test for each of PROGNAME-LIST
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3929 test -z "$as_dir" && as_dir=.
3930 for ac_prog in grep ggrep; do
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3933 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3934 # Check for GNU ac_path_GREP and select it if it is found.
3935 # Check for GNU $ac_path_GREP
3936 case `"$ac_path_GREP" --version 2>&1` in
3938 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3941 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3944 cat "conftest.in" "conftest.in" >"conftest.tmp"
3945 mv "conftest.tmp" "conftest.in"
3946 cp "conftest.in" "conftest.nl"
3947 echo 'GREP' >> "conftest.nl"
3948 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3950 ac_count=`expr $ac_count + 1`
3951 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3952 # Best one so far, save it but keep looking for a better one
3953 ac_cv_path_GREP="$ac_path_GREP"
3954 ac_path_GREP_max=$ac_count
3956 # 10*(2^10) chars as input seems more than enough
3957 test $ac_count -gt 10 && break
3959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963 $ac_path_GREP_found && break 3
3973 GREP="$ac_cv_path_GREP"
3974 if test -z "$GREP"; then
3975 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3976 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3977 { (exit 1); exit 1; }; }
3981 ac_cv_path_GREP=$GREP
3986 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3987 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3988 GREP="$ac_cv_path_GREP"
3991 { echo "$as_me:$LINENO: checking for egrep" >&5
3992 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3993 if test "${ac_cv_path_EGREP+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3997 then ac_cv_path_EGREP="$GREP -E"
3999 # Extract the first word of "egrep" to use in msg output
4000 if test -z "$EGREP"; then
4001 set dummy egrep; ac_prog_name=$2
4002 if test "${ac_cv_path_EGREP+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 ac_path_EGREP_found=false
4006 # Loop through the user's path and test for each of PROGNAME-LIST
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4011 test -z "$as_dir" && as_dir=.
4012 for ac_prog in egrep; do
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4015 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4016 # Check for GNU ac_path_EGREP and select it if it is found.
4017 # Check for GNU $ac_path_EGREP
4018 case `"$ac_path_EGREP" --version 2>&1` in
4020 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4023 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4026 cat "conftest.in" "conftest.in" >"conftest.tmp"
4027 mv "conftest.tmp" "conftest.in"
4028 cp "conftest.in" "conftest.nl"
4029 echo 'EGREP' >> "conftest.nl"
4030 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4032 ac_count=`expr $ac_count + 1`
4033 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4034 # Best one so far, save it but keep looking for a better one
4035 ac_cv_path_EGREP="$ac_path_EGREP"
4036 ac_path_EGREP_max=$ac_count
4038 # 10*(2^10) chars as input seems more than enough
4039 test $ac_count -gt 10 && break
4041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045 $ac_path_EGREP_found && break 3
4055 EGREP="$ac_cv_path_EGREP"
4056 if test -z "$EGREP"; then
4057 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4058 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4059 { (exit 1); exit 1; }; }
4063 ac_cv_path_EGREP=$EGREP
4069 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4070 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4071 EGREP="$ac_cv_path_EGREP"
4074 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4075 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4076 if test "${ac_cv_header_stdc+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 cat >conftest.$ac_ext <<_ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4098 rm -f conftest.$ac_objext
4099 if { (ac_try="$ac_compile"
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_compile") 2>conftest.er1
4107 grep -v '^ *+' conftest.er1 >conftest.err
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4113 { (case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_try") 2>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (case "(($ac_try" in
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_try") 2>&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_cv_header_stdc=yes
4134 echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4137 ac_cv_header_stdc=no
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 if test $ac_cv_header_stdc = yes; then
4143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4144 cat >conftest.$ac_ext <<_ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154 $EGREP "memchr" >/dev/null 2>&1; then
4157 ac_cv_header_stdc=no
4163 if test $ac_cv_header_stdc = yes; then
4164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175 $EGREP "free" >/dev/null 2>&1; then
4178 ac_cv_header_stdc=no
4184 if test $ac_cv_header_stdc = yes; then
4185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4186 if test "$cross_compiling" = yes; then
4189 cat >conftest.$ac_ext <<_ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4197 #if ((' ' & 0x0FF) == 0x020)
4198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4201 # define ISLOWER(c) \
4202 (('a' <= (c) && (c) <= 'i') \
4203 || ('j' <= (c) && (c) <= 'r') \
4204 || ('s' <= (c) && (c) <= 'z'))
4205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4213 for (i = 0; i < 256; i++)
4214 if (XOR (islower (i), ISLOWER (i))
4215 || toupper (i) != TOUPPER (i))
4220 rm -f conftest$ac_exeext
4221 if { (ac_try="$ac_link"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_link") 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4242 echo "$as_me: program exited with status $ac_status" >&5
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4247 ac_cv_header_stdc=no
4249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4255 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4256 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4257 if test $ac_cv_header_stdc = yes; then
4259 cat >>confdefs.h <<\_ACEOF
4260 #define STDC_HEADERS 1
4265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4276 inttypes.h stdint.h unistd.h
4278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 cat >conftest.$ac_ext <<_ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 $ac_includes_default
4292 #include <$ac_header>
4294 rm -f conftest.$ac_objext
4295 if { (ac_try="$ac_compile"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_compile") 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } &&
4308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4309 { (case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_try") 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (case "(($ac_try" in
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_try") 2>&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 eval "$as_ac_Header=yes"
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4333 eval "$as_ac_Header=no"
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_res=`eval echo '${'$as_ac_Header'}'`
4339 { echo "$as_me:$LINENO: result: $ac_res" >&5
4340 echo "${ECHO_T}$ac_res" >&6; }
4341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4342 cat >>confdefs.h <<_ACEOF
4343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4351 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4352 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4353 if test "${ac_cv_c_bigendian+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 # See if sys/param.h defines the BYTE_ORDER macro.
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <sys/types.h>
4364 #include <sys/param.h>
4369 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4377 rm -f conftest.$ac_objext
4378 if { (ac_try="$ac_compile"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392 { (case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_try") 2>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (case "(($ac_try" in
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_try") 2>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 # It does; now see whether it defined to BIG_ENDIAN or not.
4412 cat >conftest.$ac_ext <<_ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 #include <sys/types.h>
4419 #include <sys/param.h>
4424 #if BYTE_ORDER != BIG_ENDIAN
4432 rm -f conftest.$ac_objext
4433 if { (ac_try="$ac_compile"
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_compile") 2>conftest.er1
4441 grep -v '^ *+' conftest.er1 >conftest.err
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (case "(($ac_try" in
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_try") 2>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_cv_c_bigendian=yes
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 ac_cv_c_bigendian=no
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 # It does not; compile a test program.
4480 if test "$cross_compiling" = yes; then
4481 # try to guess the endianness by grepping values into an object file
4482 ac_cv_c_bigendian=unknown
4483 cat >conftest.$ac_ext <<_ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4489 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4490 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4491 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4492 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4493 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4494 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4498 _ascii (); _ebcdic ();
4503 rm -f conftest.$ac_objext
4504 if { (ac_try="$ac_compile"
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 (eval "$ac_compile") 2>conftest.er1
4512 grep -v '^ *+' conftest.er1 >conftest.err
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4518 { (case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523 (eval "$ac_try") 2>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (case "(($ac_try" in
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_try") 2>&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4538 ac_cv_c_bigendian=yes
4540 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4541 if test "$ac_cv_c_bigendian" = unknown; then
4542 ac_cv_c_bigendian=no
4544 # finding both strings is unlikely to happen, but who knows?
4545 ac_cv_c_bigendian=unknown
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 cat >conftest.$ac_ext <<_ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 $ac_includes_default
4568 /* Are we little or big endian? From Harbison&Steele. */
4572 char c[sizeof (long int)];
4575 return u.c[sizeof (long int) - 1] == 1;
4581 rm -f conftest$ac_exeext
4582 if { (ac_try="$ac_link"
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_link") 2>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4592 { (case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_try") 2>&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 ac_cv_c_bigendian=no
4603 echo "$as_me: program exited with status $ac_status" >&5
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4608 ac_cv_c_bigendian=yes
4610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4619 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4620 case $ac_cv_c_bigendian in
4628 { { echo "$as_me:$LINENO: error: unknown endianness
4629 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4630 echo "$as_me: error: unknown endianness
4631 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4632 { (exit 1); exit 1; }; } ;;
4636 if test "$cross_compiling" = yes; then
4637 LLVM_CROSS_COMPILING=1
4640 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4641 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4642 if test "${ac_cv_build_exeext+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4646 ac_cv_build_exeext=.exe
4648 ac_build_prefix=${build_alias}-
4650 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4651 set dummy ${ac_build_prefix}gcc; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test -n "$BUILD_CC"; then
4658 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 BUILD_CC=$ac_cv_prog_BUILD_CC
4678 if test -n "$BUILD_CC"; then
4679 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680 echo "${ECHO_T}$BUILD_CC" >&6; }
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4687 if test -z "$BUILD_CC"; then
4688 # Extract the first word of "gcc", so it can be a program name with args.
4689 set dummy gcc; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 if test -n "$BUILD_CC"; then
4696 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_BUILD_CC="gcc"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 BUILD_CC=$ac_cv_prog_BUILD_CC
4716 if test -n "$BUILD_CC"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4718 echo "${ECHO_T}$BUILD_CC" >&6; }
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4725 if test -z "$BUILD_CC"; then
4726 # Extract the first word of "cc", so it can be a program name with args.
4727 set dummy cc; ac_word=$2
4728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 if test -n "$BUILD_CC"; then
4734 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4745 ac_prog_rejected=yes
4748 ac_cv_prog_BUILD_CC="cc"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 if test $ac_prog_rejected = yes; then
4757 # We found a bogon in the path, so make sure we never use it.
4758 set dummy $ac_cv_prog_BUILD_CC
4760 if test $# != 0; then
4761 # We chose a different compiler from the bogus one.
4762 # However, it has the same basename, so the bogon will be chosen
4763 # first if we set BUILD_CC to just the basename; use the full file name.
4765 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4770 BUILD_CC=$ac_cv_prog_BUILD_CC
4771 if test -n "$BUILD_CC"; then
4772 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4773 echo "${ECHO_T}$BUILD_CC" >&6; }
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4782 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4783 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4784 { (exit 1); exit 1; }; }
4785 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4787 echo 'int main () { return 0; }' > conftest.$ac_ext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4790 (eval $ac_build_link) 2>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; then
4794 for file in conftest.*; do
4796 *.c | *.o | *.obj | *.dSYM) ;;
4797 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4801 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4802 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4803 { (exit 1); exit 1; }; }
4806 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4811 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4812 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4813 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4814 ac_build_exeext=$BUILD_EXEEXT
4816 ac_build_prefix=${build_alias}-
4817 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4818 set dummy ${ac_build_prefix}g++; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 if test -n "$BUILD_CXX"; then
4825 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845 if test -n "$BUILD_CXX"; then
4846 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847 echo "${ECHO_T}$BUILD_CXX" >&6; }
4849 { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4854 if test -z "$BUILD_CXX"; then
4855 # Extract the first word of "g++", so it can be a program name with args.
4856 set dummy g++; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 if test -n "$BUILD_CXX"; then
4863 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_BUILD_CXX="g++"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4883 if test -n "$BUILD_CXX"; then
4884 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4885 echo "${ECHO_T}$BUILD_CXX" >&6; }
4887 { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4892 if test -z "$BUILD_CXX"; then
4893 # Extract the first word of "c++", so it can be a program name with args.
4894 set dummy c++; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 if test -n "$BUILD_CXX"; then
4901 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4912 ac_prog_rejected=yes
4915 ac_cv_prog_BUILD_CXX="c++"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 if test $ac_prog_rejected = yes; then
4924 # We found a bogon in the path, so make sure we never use it.
4925 set dummy $ac_cv_prog_BUILD_CXX
4927 if test $# != 0; then
4928 # We chose a different compiler from the bogus one.
4929 # However, it has the same basename, so the bogon will be chosen
4930 # first if we set BUILD_CXX to just the basename; use the full file name.
4932 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4937 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4938 if test -n "$BUILD_CXX"; then
4939 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4940 echo "${ECHO_T}$BUILD_CXX" >&6; }
4942 { echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6; }
4950 LLVM_CROSS_COMPILING=0
4954 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4965 # Check whether --enable-libcpp was given.
4966 if test "${enable_libcpp+set}" = set; then
4967 enableval=$enable_libcpp;
4972 case "$enableval" in
4973 yes) ENABLE_LIBCPP=1
4977 default) ENABLE_LIBCPP=0
4979 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4980 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4981 { (exit 1); exit 1; }; } ;;
4984 # Check whether --enable-optimized was given.
4985 if test "${enable_optimized+set}" = set; then
4986 enableval=$enable_optimized;
4991 if test ${enableval} = "no" ; then
4995 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4999 # Check whether --enable-profiling was given.
5000 if test "${enable_profiling+set}" = set; then
5001 enableval=$enable_profiling;
5006 if test ${enableval} = "no" ; then
5010 ENABLE_PROFILING=ENABLE_PROFILING=1
5014 # Check whether --enable-assertions was given.
5015 if test "${enable_assertions+set}" = set; then
5016 enableval=$enable_assertions;
5021 if test ${enableval} = "yes" ; then
5025 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5029 # Check whether --enable-expensive-checks was given.
5030 if test "${enable_expensive_checks+set}" = set; then
5031 enableval=$enable_expensive_checks;
5036 if test ${enableval} = "yes" ; then
5037 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5039 EXPENSIVE_CHECKS=yes
5042 ENABLE_EXPENSIVE_CHECKS=
5048 # Check whether --enable-debug-runtime was given.
5049 if test "${enable_debug_runtime+set}" = set; then
5050 enableval=$enable_debug_runtime;
5055 if test ${enableval} = "no" ; then
5059 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5063 # Check whether --enable-debug-symbols was given.
5064 if test "${enable_debug_symbols+set}" = set; then
5065 enableval=$enable_debug_symbols;
5070 if test ${enableval} = "no" ; then
5074 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5078 # Check whether --enable-jit was given.
5079 if test "${enable_jit+set}" = set; then
5080 enableval=$enable_jit;
5085 if test ${enableval} = "no"
5090 case "$llvm_cv_target_arch" in
5091 x86) TARGET_HAS_JIT=1
5093 Sparc) TARGET_HAS_JIT=0
5095 PowerPC) TARGET_HAS_JIT=1
5097 x86_64) TARGET_HAS_JIT=1
5099 ARM) TARGET_HAS_JIT=1
5101 Mips) TARGET_HAS_JIT=1
5103 XCore) TARGET_HAS_JIT=0
5105 MSP430) TARGET_HAS_JIT=0
5107 Hexagon) TARGET_HAS_JIT=0
5109 MBlaze) TARGET_HAS_JIT=0
5111 PTX) TARGET_HAS_JIT=0
5118 # Check whether --enable-docs was given.
5119 if test "${enable_docs+set}" = set; then
5120 enableval=$enable_docs;
5125 case "$enableval" in
5130 default) ENABLE_DOCS=1
5132 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5133 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5134 { (exit 1); exit 1; }; } ;;
5137 # Check whether --enable-doxygen was given.
5138 if test "${enable_doxygen+set}" = set; then
5139 enableval=$enable_doxygen;
5144 case "$enableval" in
5145 yes) ENABLE_DOXYGEN=1
5147 no) ENABLE_DOXYGEN=0
5149 default) ENABLE_DOXYGEN=0
5151 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5156 # Check whether --enable-threads was given.
5157 if test "${enable_threads+set}" = set; then
5158 enableval=$enable_threads;
5163 case "$enableval" in
5164 yes) LLVM_ENABLE_THREADS=1
5166 no) LLVM_ENABLE_THREADS=0
5168 default) LLVM_ENABLE_THREADS=1
5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5175 cat >>confdefs.h <<_ACEOF
5176 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5180 # Check whether --enable-pthreads was given.
5181 if test "${enable_pthreads+set}" = set; then
5182 enableval=$enable_pthreads;
5187 case "$enableval" in
5188 yes) ENABLE_PTHREADS=1
5190 no) ENABLE_PTHREADS=0
5192 default) ENABLE_PTHREADS=1
5194 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5195 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5196 { (exit 1); exit 1; }; } ;;
5199 # Check whether --enable-pic was given.
5200 if test "${enable_pic+set}" = set; then
5201 enableval=$enable_pic;
5206 case "$enableval" in
5211 default) ENABLE_PIC=1
5213 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5215 { (exit 1); exit 1; }; } ;;
5218 cat >>confdefs.h <<_ACEOF
5219 #define ENABLE_PIC $ENABLE_PIC
5223 # Check whether --enable-shared was given.
5224 if test "${enable_shared+set}" = set; then
5225 enableval=$enable_shared;
5230 case "$enableval" in
5231 yes) ENABLE_SHARED=1
5235 default) ENABLE_SHARED=0
5237 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5238 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5242 # Check whether --enable-embed-stdcxx was given.
5243 if test "${enable_embed_stdcxx+set}" = set; then
5244 enableval=$enable_embed_stdcxx;
5249 case "$enableval" in
5250 yes) ENABLE_EMBED_STDCXX=1
5252 no) ENABLE_EMBED_STDCXX=0
5254 default) ENABLE_EMBED_STDCXX=0
5256 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5257 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5258 { (exit 1); exit 1; }; } ;;
5261 # Check whether --enable-timestamps was given.
5262 if test "${enable_timestamps+set}" = set; then
5263 enableval=$enable_timestamps;
5268 case "$enableval" in
5269 yes) ENABLE_TIMESTAMPS=1
5271 no) ENABLE_TIMESTAMPS=0
5273 default) ENABLE_TIMESTAMPS=1
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5280 cat >>confdefs.h <<_ACEOF
5281 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5286 # Check whether --enable-targets was given.
5287 if test "${enable_targets+set}" = set; then
5288 enableval=$enable_targets;
5293 if test "$enableval" = host-only ; then
5296 case "$enableval" in
5297 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5298 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5300 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5301 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5302 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5303 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5304 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5305 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5306 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5307 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5308 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5309 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5310 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5311 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5312 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5313 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5314 host) case "$llvm_cv_target_arch" in
5315 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5316 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5318 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5319 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5320 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5321 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5322 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5323 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5324 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5325 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5326 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5327 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5328 echo "$as_me: error: Can not set target to build" >&2;}
5329 { (exit 1); exit 1; }; } ;;
5331 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5332 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5333 { (exit 1); exit 1; }; } ;;
5338 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5341 # Determine whether we are building LLVM support for the native architecture.
5342 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5343 for a_target in $TARGETS_TO_BUILD; do
5344 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5346 cat >>confdefs.h <<_ACEOF
5347 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5350 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5351 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5352 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5353 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5354 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5355 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5368 cat >>confdefs.h <<_ACEOF
5369 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5373 cat >>confdefs.h <<_ACEOF
5374 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5377 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5387 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5388 # target feature def files.
5389 LLVM_ENUM_TARGETS=""
5390 LLVM_ENUM_ASM_PRINTERS=""
5391 LLVM_ENUM_ASM_PARSERS=""
5392 LLVM_ENUM_DISASSEMBLERS=""
5393 for target_to_build in $TARGETS_TO_BUILD; do
5394 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5395 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5396 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5398 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5399 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5401 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5402 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5410 # Check whether --enable-cbe-printf-a was given.
5411 if test "${enable_cbe_printf_a+set}" = set; then
5412 enableval=$enable_cbe_printf_a;
5417 case "$enableval" in
5418 yes) ENABLE_CBE_PRINTF_A=1
5420 no) ENABLE_CBE_PRINTF_A=0
5422 default) ENABLE_CBE_PRINTF_A=1
5424 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5425 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5426 { (exit 1); exit 1; }; } ;;
5429 cat >>confdefs.h <<_ACEOF
5430 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5435 # Check whether --with-optimize-option was given.
5436 if test "${with_optimize_option+set}" = set; then
5437 withval=$with_optimize_option;
5442 { echo "$as_me:$LINENO: checking optimization flags" >&5
5443 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5446 case "$llvm_cv_os_type" in
5447 FreeBSD) optimize_option=-O2 ;;
5448 MingW) optimize_option=-O2 ;;
5449 *) optimize_option=-O3 ;;
5451 *) optimize_option="$withval" ;;
5453 OPTIMIZE_OPTION=$optimize_option
5455 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5456 echo "${ECHO_T}$optimize_option" >&6; }
5459 # Check whether --with-extra-options was given.
5460 if test "${with_extra_options+set}" = set; then
5461 withval=$with_extra_options;
5467 default) EXTRA_OPTIONS= ;;
5468 *) EXTRA_OPTIONS=$withval ;;
5470 EXTRA_OPTIONS=$EXTRA_OPTIONS
5474 # Check whether --with-extra-ld-options was given.
5475 if test "${with_extra_ld_options+set}" = set; then
5476 withval=$with_extra_ld_options;
5482 default) EXTRA_LD_OPTIONS= ;;
5483 *) EXTRA_LD_OPTIONS=$withval ;;
5485 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5488 # Check whether --enable-bindings was given.
5489 if test "${enable_bindings+set}" = set; then
5490 enableval=$enable_bindings;
5495 BINDINGS_TO_BUILD=""
5496 case "$enableval" in
5497 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5498 all ) BINDINGS_TO_BUILD="ocaml" ;;
5499 none | no) BINDINGS_TO_BUILD="" ;;
5500 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5501 case "$a_binding" in
5502 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5503 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5504 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5505 { (exit 1); exit 1; }; } ;;
5512 # Check whether --with-ocaml-libdir was given.
5513 if test "${with_ocaml_libdir+set}" = set; then
5514 withval=$with_ocaml_libdir;
5520 auto) with_ocaml_libdir="$withval" ;;
5521 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5522 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5523 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5524 { (exit 1); exit 1; }; } ;;
5528 # Check whether --with-clang-srcdir was given.
5529 if test "${with_clang_srcdir+set}" = set; then
5530 withval=$with_clang_srcdir;
5536 -) clang_src_root="" ;;
5537 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5538 *) clang_src_root="$ac_pwd/$withval" ;;
5540 CLANG_SRC_ROOT=$clang_src_root
5544 # Check whether --with-clang-resource-dir was given.
5545 if test "${with_clang_resource_dir+set}" = set; then
5546 withval=$with_clang_resource_dir;
5552 cat >>confdefs.h <<_ACEOF
5553 #define CLANG_RESOURCE_DIR "$withval"
5558 # Check whether --with-c-include-dirs was given.
5559 if test "${with_c_include_dirs+set}" = set; then
5560 withval=$with_c_include_dirs;
5566 cat >>confdefs.h <<_ACEOF
5567 #define C_INCLUDE_DIRS "$withval"
5572 # Check whether --with-cxx-include-root was given.
5573 if test "${with_cxx_include_root+set}" = set; then
5574 withval=$with_cxx_include_root;
5580 cat >>confdefs.h <<_ACEOF
5581 #define CXX_INCLUDE_ROOT "$withval"
5586 # Check whether --with-cxx-include-arch was given.
5587 if test "${with_cxx_include_arch+set}" = set; then
5588 withval=$with_cxx_include_arch;
5594 cat >>confdefs.h <<_ACEOF
5595 #define CXX_INCLUDE_ARCH "$withval"
5600 # Check whether --with-cxx-include-32bit-dir was given.
5601 if test "${with_cxx_include_32bit_dir+set}" = set; then
5602 withval=$with_cxx_include_32bit_dir;
5608 cat >>confdefs.h <<_ACEOF
5609 #define CXX_INCLUDE_32BIT_DIR "$withval"
5614 # Check whether --with-cxx-include-64bit-dir was given.
5615 if test "${with_cxx_include_64bit_dir+set}" = set; then
5616 withval=$with_cxx_include_64bit_dir;
5622 cat >>confdefs.h <<_ACEOF
5623 #define CXX_INCLUDE_64BIT_DIR "$withval"
5628 # Check whether --with-binutils-include was given.
5629 if test "${with_binutils_include+set}" = set; then
5630 withval=$with_binutils_include;
5636 default) WITH_BINUTILS_INCDIR=default ;;
5637 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5638 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5639 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5640 { (exit 1); exit 1; }; } ;;
5642 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5643 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5645 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5646 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5647 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5648 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5649 { (exit 1); exit 1; }; };
5654 # Check whether --with-bug-report-url was given.
5655 if test "${with_bug_report_url+set}" = set; then
5656 withval=$with_bug_report_url;
5658 withval="http://llvm.org/bugs/"
5662 cat >>confdefs.h <<_ACEOF
5663 #define BUG_REPORT_URL "$withval"
5667 # Check whether --enable-libffi was given.
5668 if test "${enable_libffi+set}" = set; then
5669 enableval=$enable_libffi; case "$enableval" in
5670 yes) llvm_cv_enable_libffi="yes" ;;
5671 no) llvm_cv_enable_libffi="no" ;;
5672 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5673 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5674 { (exit 1); exit 1; }; } ;;
5677 llvm_cv_enable_libffi=no
5682 # Check whether --with-internal-prefix was given.
5683 if test "${with_internal_prefix+set}" = set; then
5684 withval=$with_internal_prefix;
5689 INTERNAL_PREFIX=$withval
5693 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5694 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5695 if test "${lt_cv_path_NM+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 if test -n "$NM"; then
5699 # Let the user override the test.
5702 lt_nm_to_check="${ac_tool_prefix}nm"
5703 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5704 lt_nm_to_check="$lt_nm_to_check nm"
5706 for lt_tmp_nm in $lt_nm_to_check; do
5707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5708 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5710 test -z "$ac_dir" && ac_dir=.
5711 tmp_nm="$ac_dir/$lt_tmp_nm"
5712 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5713 # Check to see if the nm accepts a BSD-compat flag.
5714 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5715 # nm: unknown option "B" ignored
5716 # Tru64's nm complains that /dev/null is an invalid object file
5717 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5718 */dev/null* | *'Invalid file or object type'*)
5719 lt_cv_path_NM="$tmp_nm -B"
5723 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5725 lt_cv_path_NM="$tmp_nm -p"
5729 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5730 continue # so that we can try to find one that supports BSD flags
5739 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5742 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5743 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5748 { echo "$as_me:$LINENO: checking for GNU make" >&5
5749 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5750 if test "${llvm_cv_gnu_make_command+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 llvm_cv_gnu_make_command=''
5754 for a in "$MAKE" make gmake gnumake ; do
5755 if test -z "$a" ; then continue ; fi ;
5756 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5758 llvm_cv_gnu_make_command=$a ;
5763 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5764 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5765 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5769 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5770 echo "${ECHO_T}\"Not found\"" >&6; };
5774 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5775 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5777 if test "$LN_S" = "ln -s"; then
5778 { echo "$as_me:$LINENO: result: yes" >&5
5779 echo "${ECHO_T}yes" >&6; }
5781 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5782 echo "${ECHO_T}no, using $LN_S" >&6; }
5785 # Extract the first word of "cmp", so it can be a program name with args.
5786 set dummy cmp; ac_word=$2
5787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5789 if test "${ac_cv_path_CMP+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5817 if test -n "$CMP"; then
5818 { echo "$as_me:$LINENO: result: $CMP" >&5
5819 echo "${ECHO_T}$CMP" >&6; }
5821 { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5826 # Extract the first word of "cp", so it can be a program name with args.
5827 set dummy cp; ac_word=$2
5828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830 if test "${ac_cv_path_CP+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5845 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5858 if test -n "$CP"; then
5859 { echo "$as_me:$LINENO: result: $CP" >&5
5860 echo "${ECHO_T}$CP" >&6; }
5862 { echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6; }
5867 # Extract the first word of "date", so it can be a program name with args.
5868 set dummy date; ac_word=$2
5869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871 if test "${ac_cv_path_DATE+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5898 DATE=$ac_cv_path_DATE
5899 if test -n "$DATE"; then
5900 { echo "$as_me:$LINENO: result: $DATE" >&5
5901 echo "${ECHO_T}$DATE" >&6; }
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5908 # Extract the first word of "find", so it can be a program name with args.
5909 set dummy find; ac_word=$2
5910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5912 if test "${ac_cv_path_FIND+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5939 FIND=$ac_cv_path_FIND
5940 if test -n "$FIND"; then
5941 { echo "$as_me:$LINENO: result: $FIND" >&5
5942 echo "${ECHO_T}$FIND" >&6; }
5944 { echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6; }
5949 # Extract the first word of "grep", so it can be a program name with args.
5950 set dummy grep; ac_word=$2
5951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5953 if test "${ac_cv_path_GREP+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5968 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5980 GREP=$ac_cv_path_GREP
5981 if test -n "$GREP"; then
5982 { echo "$as_me:$LINENO: result: $GREP" >&5
5983 echo "${ECHO_T}$GREP" >&6; }
5985 { echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6; }
5990 # Extract the first word of "mkdir", so it can be a program name with args.
5991 set dummy mkdir; ac_word=$2
5992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5994 if test "${ac_cv_path_MKDIR+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6009 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6021 MKDIR=$ac_cv_path_MKDIR
6022 if test -n "$MKDIR"; then
6023 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6024 echo "${ECHO_T}$MKDIR" >&6; }
6026 { echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6; }
6031 # Extract the first word of "mv", so it can be a program name with args.
6032 set dummy mv; ac_word=$2
6033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035 if test "${ac_cv_path_MV+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6063 if test -n "$MV"; then
6064 { echo "$as_me:$LINENO: result: $MV" >&5
6065 echo "${ECHO_T}$MV" >&6; }
6067 { echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6; }
6072 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_RANLIB+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 if test -n "$RANLIB"; then
6081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 RANLIB=$ac_cv_prog_RANLIB
6101 if test -n "$RANLIB"; then
6102 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6103 echo "${ECHO_T}$RANLIB" >&6; }
6105 { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6111 if test -z "$ac_cv_prog_RANLIB"; then
6112 ac_ct_RANLIB=$RANLIB
6113 # Extract the first word of "ranlib", so it can be a program name with args.
6114 set dummy ranlib; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 if test -n "$ac_ct_RANLIB"; then
6121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_ac_ct_RANLIB="ranlib"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6141 if test -n "$ac_ct_RANLIB"; then
6142 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6143 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6149 if test "x$ac_ct_RANLIB" = x; then
6152 case $cross_compiling:$ac_tool_warned in
6154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6155 whose name does not start with the host triplet. If you think this
6156 configuration is useful to you, please write to autoconf@gnu.org." >&5
6157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6158 whose name does not start with the host triplet. If you think this
6159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6160 ac_tool_warned=yes ;;
6162 RANLIB=$ac_ct_RANLIB
6165 RANLIB="$ac_cv_prog_RANLIB"
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ar; ac_word=$2
6171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173 if test "${ac_cv_prog_AR+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 if test -n "$AR"; then
6177 ac_cv_prog_AR="$AR" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_AR="${ac_tool_prefix}ar"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 if test -n "$AR"; then
6198 { echo "$as_me:$LINENO: result: $AR" >&5
6199 echo "${ECHO_T}$AR" >&6; }
6201 { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6207 if test -z "$ac_cv_prog_AR"; then
6209 # Extract the first word of "ar", so it can be a program name with args.
6210 set dummy ar; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 if test -n "$ac_ct_AR"; then
6217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_AR="ar"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6237 if test -n "$ac_ct_AR"; then
6238 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6239 echo "${ECHO_T}$ac_ct_AR" >&6; }
6241 { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6245 if test "x$ac_ct_AR" = x; then
6248 case $cross_compiling:$ac_tool_warned in
6250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251 whose name does not start with the host triplet. If you think this
6252 configuration is useful to you, please write to autoconf@gnu.org." >&5
6253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6254 whose name does not start with the host triplet. If you think this
6255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6256 ac_tool_warned=yes ;;
6264 # Extract the first word of "rm", so it can be a program name with args.
6265 set dummy rm; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_path_RM+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6296 if test -n "$RM"; then
6297 { echo "$as_me:$LINENO: result: $RM" >&5
6298 echo "${ECHO_T}$RM" >&6; }
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6305 # Extract the first word of "sed", so it can be a program name with args.
6306 set dummy sed; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_SED+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6337 if test -n "$SED"; then
6338 { echo "$as_me:$LINENO: result: $SED" >&5
6339 echo "${ECHO_T}$SED" >&6; }
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6346 # Extract the first word of "tar", so it can be a program name with args.
6347 set dummy tar; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_path_TAR+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6378 if test -n "$TAR"; then
6379 { echo "$as_me:$LINENO: result: $TAR" >&5
6380 echo "${ECHO_T}$TAR" >&6; }
6382 { echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6; }
6387 # Extract the first word of "pwd", so it can be a program name with args.
6388 set dummy pwd; ac_word=$2
6389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6391 if test "${ac_cv_path_BINPWD+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6418 BINPWD=$ac_cv_path_BINPWD
6419 if test -n "$BINPWD"; then
6420 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6421 echo "${ECHO_T}$BINPWD" >&6; }
6423 { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6429 # Extract the first word of "Graphviz", so it can be a program name with args.
6430 set dummy Graphviz; ac_word=$2
6431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6433 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6460 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6461 if test -n "$GRAPHVIZ"; then
6462 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6463 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6465 { echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6; }
6470 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6472 cat >>confdefs.h <<\_ACEOF
6473 #define HAVE_GRAPHVIZ 1
6476 if test "$llvm_cv_os_type" = "MingW" ; then
6477 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6480 cat >>confdefs.h <<_ACEOF
6481 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6485 # Extract the first word of "dot", so it can be a program name with args.
6486 set dummy dot; ac_word=$2
6487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489 if test "${ac_cv_path_DOT+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6517 if test -n "$DOT"; then
6518 { echo "$as_me:$LINENO: result: $DOT" >&5
6519 echo "${ECHO_T}$DOT" >&6; }
6521 { echo "$as_me:$LINENO: result: no" >&5
6522 echo "${ECHO_T}no" >&6; }
6526 if test "$DOT" != "echo dot" ; then
6528 cat >>confdefs.h <<\_ACEOF
6532 if test "$llvm_cv_os_type" = "MingW" ; then
6533 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6536 cat >>confdefs.h <<_ACEOF
6537 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6541 # Extract the first word of "fdp", so it can be a program name with args.
6542 set dummy fdp; ac_word=$2
6543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6545 if test "${ac_cv_path_FDP+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6573 if test -n "$FDP"; then
6574 { echo "$as_me:$LINENO: result: $FDP" >&5
6575 echo "${ECHO_T}$FDP" >&6; }
6577 { echo "$as_me:$LINENO: result: no" >&5
6578 echo "${ECHO_T}no" >&6; }
6582 if test "$FDP" != "echo fdp" ; then
6584 cat >>confdefs.h <<\_ACEOF
6588 if test "$llvm_cv_os_type" = "MingW" ; then
6589 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6592 cat >>confdefs.h <<_ACEOF
6593 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6597 # Extract the first word of "neato", so it can be a program name with args.
6598 set dummy neato; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_path_NEATO+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6628 NEATO=$ac_cv_path_NEATO
6629 if test -n "$NEATO"; then
6630 { echo "$as_me:$LINENO: result: $NEATO" >&5
6631 echo "${ECHO_T}$NEATO" >&6; }
6633 { echo "$as_me:$LINENO: result: no" >&5
6634 echo "${ECHO_T}no" >&6; }
6638 if test "$NEATO" != "echo neato" ; then
6640 cat >>confdefs.h <<\_ACEOF
6641 #define HAVE_NEATO 1
6644 if test "$llvm_cv_os_type" = "MingW" ; then
6645 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6648 cat >>confdefs.h <<_ACEOF
6649 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6653 # Extract the first word of "twopi", so it can be a program name with args.
6654 set dummy twopi; ac_word=$2
6655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657 if test "${ac_cv_path_TWOPI+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6684 TWOPI=$ac_cv_path_TWOPI
6685 if test -n "$TWOPI"; then
6686 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6687 echo "${ECHO_T}$TWOPI" >&6; }
6689 { echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6; }
6694 if test "$TWOPI" != "echo twopi" ; then
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_TWOPI 1
6700 if test "$llvm_cv_os_type" = "MingW" ; then
6701 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6704 cat >>confdefs.h <<_ACEOF
6705 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6709 # Extract the first word of "circo", so it can be a program name with args.
6710 set dummy circo; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_path_CIRCO+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6728 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6740 CIRCO=$ac_cv_path_CIRCO
6741 if test -n "$CIRCO"; then
6742 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6743 echo "${ECHO_T}$CIRCO" >&6; }
6745 { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6750 if test "$CIRCO" != "echo circo" ; then
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_CIRCO 1
6756 if test "$llvm_cv_os_type" = "MingW" ; then
6757 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6760 cat >>confdefs.h <<_ACEOF
6761 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6765 for ac_prog in gv gsview32
6767 # Extract the first word of "$ac_prog", so it can be a program name with args.
6768 set dummy $ac_prog; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_path_GV+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 if test -n "$GV"; then
6799 { echo "$as_me:$LINENO: result: $GV" >&5
6800 echo "${ECHO_T}$GV" >&6; }
6802 { echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6; }
6807 test -n "$GV" && break
6809 test -n "$GV" || GV="echo gv"
6811 if test "$GV" != "echo gv" ; then
6813 cat >>confdefs.h <<\_ACEOF
6817 if test "$llvm_cv_os_type" = "MingW" ; then
6818 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6821 cat >>confdefs.h <<_ACEOF
6822 #define LLVM_PATH_GV "$GV${EXEEXT}"
6826 # Extract the first word of "dotty", so it can be a program name with args.
6827 set dummy dotty; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_path_DOTTY+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6857 DOTTY=$ac_cv_path_DOTTY
6858 if test -n "$DOTTY"; then
6859 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6860 echo "${ECHO_T}$DOTTY" >&6; }
6862 { echo "$as_me:$LINENO: result: no" >&5
6863 echo "${ECHO_T}no" >&6; }
6867 if test "$DOTTY" != "echo dotty" ; then
6869 cat >>confdefs.h <<\_ACEOF
6870 #define HAVE_DOTTY 1
6873 if test "$llvm_cv_os_type" = "MingW" ; then
6874 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6877 cat >>confdefs.h <<_ACEOF
6878 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6882 # Extract the first word of "xdot.py", so it can be a program name with args.
6883 set dummy xdot.py; ac_word=$2
6884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6913 XDOT_PY=$ac_cv_path_XDOT_PY
6914 if test -n "$XDOT_PY"; then
6915 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6916 echo "${ECHO_T}$XDOT_PY" >&6; }
6918 { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6923 if test "$XDOT_PY" != "echo xdot.py" ; then
6925 cat >>confdefs.h <<\_ACEOF
6926 #define HAVE_XDOT_PY 1
6929 if test "$llvm_cv_os_type" = "MingW" ; then
6930 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6933 cat >>confdefs.h <<_ACEOF
6934 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6940 # Extract the first word of "perl", so it can be a program name with args.
6941 set dummy perl; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_path_PERL+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6971 PERL=$ac_cv_path_PERL
6972 if test -n "$PERL"; then
6973 { echo "$as_me:$LINENO: result: $PERL" >&5
6974 echo "${ECHO_T}$PERL" >&6; }
6976 { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6981 if test "$PERL" != "none"; then
6982 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6983 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6984 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6985 { echo "$as_me:$LINENO: result: yes" >&5
6986 echo "${ECHO_T}yes" >&6; }
6989 { echo "$as_me:$LINENO: result: not found" >&5
6990 echo "${ECHO_T}not found" >&6; }
6995 if test x"$PERL" = xnone; then
6998 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6999 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7000 { (exit 1); exit 1; }; }
7006 # Find a good install program. We prefer a C program (faster),
7007 # so one script is as good as another. But avoid the broken or
7008 # incompatible versions:
7009 # SysV /etc/install, /usr/sbin/install
7010 # SunOS /usr/etc/install
7011 # IRIX /sbin/install
7013 # AmigaOS /C/install, which installs bootblocks on floppy discs
7014 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7017 # OS/2's system install, which has a completely different semantic
7018 # ./install, which can be erroneously created by make from ./install.sh.
7019 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7020 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7021 if test -z "$INSTALL"; then
7022 if test "${ac_cv_path_install+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 test -z "$as_dir" && as_dir=.
7030 # Account for people who put trailing slashes in PATH elements.
7032 ./ | .// | /cC/* | \
7033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7034 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7037 # OSF1 and SCO ODT 3.0 have their own names for install.
7038 # Don't use installbsd from OSF since it installs stuff as root
7040 for ac_prog in ginstall scoinst install; do
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7043 if test $ac_prog = install &&
7044 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7045 # AIX install. It has an incompatible calling convention.
7047 elif test $ac_prog = install &&
7048 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7049 # program-specific install script used by HP pwplus--don't use.
7052 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7065 if test "${ac_cv_path_install+set}" = set; then
7066 INSTALL=$ac_cv_path_install
7068 # As a last resort, use the slow shell script. Don't cache a
7069 # value for INSTALL within a source directory, because that will
7070 # break other packages using the cache if that directory is
7071 # removed, or if the value is a relative name.
7072 INSTALL=$ac_install_sh
7075 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7076 echo "${ECHO_T}$INSTALL" >&6; }
7078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7079 # It thinks the first close brace ends the variable substitution.
7080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7084 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7087 [\\/$]* | ?:[\\/]* ) ;;
7088 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7091 # Extract the first word of "bzip2", so it can be a program name with args.
7092 set dummy bzip2; ac_word=$2
7093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095 if test "${ac_cv_path_BZIP2+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 BZIP2=$ac_cv_path_BZIP2
7122 if test -n "$BZIP2"; then
7123 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7124 echo "${ECHO_T}$BZIP2" >&6; }
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7131 # Extract the first word of "cat", so it can be a program name with args.
7132 set dummy cat; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_CAT+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 if test -n "$CAT"; then
7163 { echo "$as_me:$LINENO: result: $CAT" >&5
7164 echo "${ECHO_T}$CAT" >&6; }
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7171 # Extract the first word of "doxygen", so it can be a program name with args.
7172 set dummy doxygen; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 DOXYGEN=$ac_cv_path_DOXYGEN
7202 if test -n "$DOXYGEN"; then
7203 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7204 echo "${ECHO_T}$DOXYGEN" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7211 # Extract the first word of "groff", so it can be a program name with args.
7212 set dummy groff; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_path_GROFF+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 GROFF=$ac_cv_path_GROFF
7242 if test -n "$GROFF"; then
7243 { echo "$as_me:$LINENO: result: $GROFF" >&5
7244 echo "${ECHO_T}$GROFF" >&6; }
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7251 # Extract the first word of "gzip", so it can be a program name with args.
7252 set dummy gzip; ac_word=$2
7253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 GZIPBIN=$ac_cv_path_GZIPBIN
7282 if test -n "$GZIPBIN"; then
7283 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7284 echo "${ECHO_T}$GZIPBIN" >&6; }
7286 { echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6; }
7291 # Extract the first word of "pod2html", so it can be a program name with args.
7292 set dummy pod2html; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_POD2HTML+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 POD2HTML=$ac_cv_path_POD2HTML
7322 if test -n "$POD2HTML"; then
7323 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7324 echo "${ECHO_T}$POD2HTML" >&6; }
7326 { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7331 # Extract the first word of "pod2man", so it can be a program name with args.
7332 set dummy pod2man; ac_word=$2
7333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335 if test "${ac_cv_path_POD2MAN+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 POD2MAN=$ac_cv_path_POD2MAN
7362 if test -n "$POD2MAN"; then
7363 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7364 echo "${ECHO_T}$POD2MAN" >&6; }
7366 { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7371 # Extract the first word of "pdfroff", so it can be a program name with args.
7372 set dummy pdfroff; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_PDFROFF+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 PDFROFF=$ac_cv_path_PDFROFF
7402 if test -n "$PDFROFF"; then
7403 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7404 echo "${ECHO_T}$PDFROFF" >&6; }
7406 { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7411 # Extract the first word of "runtest", so it can be a program name with args.
7412 set dummy runtest; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_RUNTEST+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 RUNTEST=$ac_cv_path_RUNTEST
7442 if test -n "$RUNTEST"; then
7443 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7444 echo "${ECHO_T}$RUNTEST" >&6; }
7446 { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7453 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7454 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7456 # Check whether --with-tclinclude was given.
7457 if test "${with_tclinclude+set}" = set; then
7458 withval=$with_tclinclude; with_tclinclude=${withval}
7463 if test "${ac_cv_path_tclsh+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 if test x"${with_tclinclude}" != x ; then
7468 if test -f ${with_tclinclude}/tclsh ; then
7469 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7470 elif test -f ${with_tclinclude}/src/tclsh ; then
7471 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7473 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7474 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7475 { (exit 1); exit 1; }; }
7481 if test x"${ac_cv_path_tclsh}" = x ; then
7482 { echo "$as_me:$LINENO: result: none" >&5
7483 echo "${ECHO_T}none" >&6; }
7484 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
7486 # Extract the first word of "$ac_prog", so it can be a program name with args.
7487 set dummy $ac_prog; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_TCLSH+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 TCLSH=$ac_cv_path_TCLSH
7517 if test -n "$TCLSH"; then
7518 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7519 echo "${ECHO_T}$TCLSH" >&6; }
7521 { echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6; }
7526 test -n "$TCLSH" && break
7529 if test x"${TCLSH}" = x ; then
7530 ac_cv_path_tclsh='';
7532 ac_cv_path_tclsh="${TCLSH}";
7535 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7536 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7537 TCLSH="${ac_cv_path_tclsh}"
7541 # Extract the first word of "zip", so it can be a program name with args.
7542 set dummy zip; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_path_ZIP+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 if test -n "$ZIP"; then
7573 { echo "$as_me:$LINENO: result: $ZIP" >&5
7574 echo "${ECHO_T}$ZIP" >&6; }
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7581 for ac_prog in ocamlc
7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_OCAMLC+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 OCAMLC=$ac_cv_path_OCAMLC
7614 if test -n "$OCAMLC"; then
7615 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7616 echo "${ECHO_T}$OCAMLC" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7623 test -n "$OCAMLC" && break
7626 for ac_prog in ocamlopt
7628 # Extract the first word of "$ac_prog", so it can be a program name with args.
7629 set dummy $ac_prog; ac_word=$2
7630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 OCAMLOPT=$ac_cv_path_OCAMLOPT
7659 if test -n "$OCAMLOPT"; then
7660 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7661 echo "${ECHO_T}$OCAMLOPT" >&6; }
7663 { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7668 test -n "$OCAMLOPT" && break
7671 for ac_prog in ocamldep
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 OCAMLDEP=$ac_cv_path_OCAMLDEP
7704 if test -n "$OCAMLDEP"; then
7705 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7706 echo "${ECHO_T}$OCAMLDEP" >&6; }
7708 { echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6; }
7713 test -n "$OCAMLDEP" && break
7716 for ac_prog in ocamldoc
7718 # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 OCAMLDOC=$ac_cv_path_OCAMLDOC
7749 if test -n "$OCAMLDOC"; then
7750 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7751 echo "${ECHO_T}$OCAMLDOC" >&6; }
7753 { echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6; }
7758 test -n "$OCAMLDOC" && break
7761 for ac_prog in gas as
7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7767 if test "${ac_cv_path_GAS+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 if test -n "$GAS"; then
7795 { echo "$as_me:$LINENO: result: $GAS" >&5
7796 echo "${ECHO_T}$GAS" >&6; }
7798 { echo "$as_me:$LINENO: result: no" >&5
7799 echo "${ECHO_T}no" >&6; }
7803 test -n "$GAS" && break
7807 { echo "$as_me:$LINENO: checking for linker version" >&5
7808 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7809 if test "${llvm_cv_link_version+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 version_string="$(ld -v 2>&1 | head -1)"
7816 if (echo "$version_string" | grep -q "ld64"); then
7817 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7819 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7823 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7824 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7826 cat >>confdefs.h <<_ACEOF
7827 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7832 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7833 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7834 if test "${llvm_cv_link_use_r+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 ac_cpp='$CPP $CPPFLAGS'
7839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844 CFLAGS="$CFLAGS -Wl,-R."
7845 cat >conftest.$ac_ext <<_ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (ac_try="$ac_link"
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_link") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875 { (case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_try") 2>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_try") 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 llvm_cv_link_use_r=yes
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 llvm_cv_link_use_r=no
7902 rm -f core conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7914 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7915 if test "$llvm_cv_link_use_r" = yes ; then
7917 cat >>confdefs.h <<\_ACEOF
7918 #define HAVE_LINK_R 1
7924 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7925 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7926 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (ac_try="$ac_link"
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959 (eval "$ac_link") 2>conftest.er1
7961 grep -v '^ *+' conftest.er1 >conftest.err
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7967 { (case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_try") 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (case "(($ac_try" in
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_try") 2>&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7986 llvm_cv_link_use_export_dynamic=yes
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 llvm_cv_link_use_export_dynamic=no
7994 rm -f core conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8006 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8007 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8009 cat >>confdefs.h <<\_ACEOF
8010 #define HAVE_LINK_EXPORT_DYNAMIC 1
8016 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8017 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8018 if test "${llvm_cv_link_use_version_script+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 ac_cpp='$CPP $CPPFLAGS'
8023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029 # The following code is from the autoconf manual,
8030 # "11.13: Limitations of Usual Tools".
8031 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8032 # Use mktemp if possible; otherwise fall back on mkdir,
8033 # with $RANDOM to make collisions less likely.
8037 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8039 test -n "$tmp" && test -d "$tmp"
8041 tmp=$TMPDIR/foo$$-$RANDOM
8042 (umask 077 && mkdir "$tmp")
8045 echo "{" > "$tmp/export.map"
8046 echo " global: main;" >> "$tmp/export.map"
8047 echo " local: *;" >> "$tmp/export.map"
8048 echo "};" >> "$tmp/export.map"
8050 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8075 grep -v '^ *+' conftest.er1 >conftest.err
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8081 { (case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_try") 2>&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try='test -s conftest$ac_exeext'
8091 { (case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_try") 2>&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 llvm_cv_link_use_version_script=yes
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 llvm_cv_link_use_version_script=no
8108 rm -f core conftest.err conftest.$ac_objext \
8109 conftest$ac_exeext conftest.$ac_ext
8110 rm "$tmp/export.map"
8114 ac_cpp='$CPP $CPPFLAGS'
8115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8122 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8123 if test "$llvm_cv_link_use_version_script" = yes ; then
8124 HAVE_LINK_VERSION_SCRIPT=1
8131 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8132 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8133 if test "${ac_cv_c_const+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8146 /* FIXME: Include the comments suggested by Paul. */
8148 /* Ultrix mips cc rejects this. */
8149 typedef int charset[2];
8151 /* SunOS 4.1.1 cc rejects this. */
8152 char const *const *ccp;
8154 /* NEC SVR4.0.2 mips cc rejects this. */
8155 struct point {int x, y;};
8156 static struct point const zero = {0,0};
8157 /* AIX XL C 1.02.0.0 rejects this.
8158 It does not let you subtract one const X* pointer from another in
8159 an arm of an if-expression whose if-part is not a constant
8161 const char *g = "string";
8162 ccp = &g + (g ? g-g : 0);
8163 /* HPUX 7.0 cc rejects these. */
8166 ccp = (char const *const *) p;
8167 { /* SCO 3.2v4 cc rejects this. */
8169 char const *s = 0 ? (char *) 0 : (char const *) 0;
8174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8176 const int *foo = &x[0];
8179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8180 typedef const int *iptr;
8184 { /* AIX XL C 1.02.0.0 rejects this saying
8185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8186 struct s { int j; const int *ap[3]; };
8187 struct s *b; b->j = 5;
8189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8193 return !x[0] && !zero.x;
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8209 grep -v '^ *+' conftest.er1 >conftest.err
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8245 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8246 if test $ac_cv_c_const = no; then
8248 cat >>confdefs.h <<\_ACEOF
8260 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8261 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8262 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8263 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 #include <sys/types.h>
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 eval "$as_ac_Header=yes"
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8324 eval "$as_ac_Header=no"
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 ac_res=`eval echo '${'$as_ac_Header'}'`
8330 { echo "$as_me:$LINENO: result: $ac_res" >&5
8331 echo "${ECHO_T}$ac_res" >&6; }
8332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8333 cat >>confdefs.h <<_ACEOF
8334 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8337 ac_header_dirent=$ac_hdr; break
8341 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8342 if test $ac_header_dirent = dirent.h; then
8343 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8344 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8345 if test "${ac_cv_search_opendir+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 ac_func_search_save_LIBS=$LIBS
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8356 /* Override any GCC internal prototype to avoid an error.
8357 Use char because int might match the return type of a GCC
8358 builtin and then its argument prototype would still apply. */
8371 for ac_lib in '' dir; do
8372 if test -z "$ac_lib"; then
8373 ac_res="none required"
8376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (ac_try="$ac_link"
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_link") 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8393 { (case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_try") 2>&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; }; then
8412 ac_cv_search_opendir=$ac_res
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8420 rm -f core conftest.err conftest.$ac_objext \
8422 if test "${ac_cv_search_opendir+set}" = set; then
8426 if test "${ac_cv_search_opendir+set}" = set; then
8429 ac_cv_search_opendir=no
8432 LIBS=$ac_func_search_save_LIBS
8434 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8435 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8436 ac_res=$ac_cv_search_opendir
8437 if test "$ac_res" != no; then
8438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8443 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8444 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8445 if test "${ac_cv_search_opendir+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_func_search_save_LIBS=$LIBS
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8456 /* Override any GCC internal prototype to avoid an error.
8457 Use char because int might match the return type of a GCC
8458 builtin and then its argument prototype would still apply. */
8471 for ac_lib in '' x; do
8472 if test -z "$ac_lib"; then
8473 ac_res="none required"
8476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_link") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_search_opendir=$ac_res
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8520 rm -f core conftest.err conftest.$ac_objext \
8522 if test "${ac_cv_search_opendir+set}" = set; then
8526 if test "${ac_cv_search_opendir+set}" = set; then
8529 ac_cv_search_opendir=no
8532 LIBS=$ac_func_search_save_LIBS
8534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8536 ac_res=$ac_cv_search_opendir
8537 if test "$ac_res" != no; then
8538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8545 for ac_header in dlfcn.h
8547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 ac_res=`eval echo '${'$as_ac_Header'}'`
8555 { echo "$as_me:$LINENO: result: $ac_res" >&5
8556 echo "${ECHO_T}$ac_res" >&6; }
8558 # Is the header compilable?
8559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8561 cat >conftest.$ac_ext <<_ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8567 $ac_includes_default
8568 #include <$ac_header>
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_compile") 2>conftest.er1
8579 grep -v '^ *+' conftest.er1 >conftest.err
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8585 { (case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_try") 2>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_try") 2>&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 ac_header_compiler=yes
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8609 ac_header_compiler=no
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8614 echo "${ECHO_T}$ac_header_compiler" >&6; }
8616 # Is the header present?
8617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8619 cat >conftest.$ac_ext <<_ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 #include <$ac_header>
8627 if { (ac_try="$ac_cpp conftest.$ac_ext"
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } >/dev/null; then
8640 if test -s conftest.err; then
8641 ac_cpp_err=$ac_c_preproc_warn_flag
8642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8649 if test -z "$ac_cpp_err"; then
8650 ac_header_preproc=yes
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 ac_header_preproc=no
8658 rm -f conftest.err conftest.$ac_ext
8659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8660 echo "${ECHO_T}$ac_header_preproc" >&6; }
8662 # So? What about this header?
8663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8669 ac_header_preproc=yes
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8685 ## ----------------------------------- ##
8686 ## Report this to llvmbugs@cs.uiuc.edu ##
8687 ## ----------------------------------- ##
8689 ) | sed "s/^/$as_me: WARNING: /" >&2
8692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 eval "$as_ac_Header=\$ac_header_preproc"
8699 ac_res=`eval echo '${'$as_ac_Header'}'`
8700 { echo "$as_me:$LINENO: result: $ac_res" >&5
8701 echo "${ECHO_T}$ac_res" >&6; }
8704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8705 cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8713 # Check whether --enable-ltdl-install was given.
8714 if test "${enable_ltdl_install+set}" = set; then
8715 enableval=$enable_ltdl_install;
8721 if test x"${enable_ltdl_install-no}" != xno; then
8723 INSTALL_LTDL_FALSE='#'
8725 INSTALL_LTDL_TRUE='#'
8731 if test x"${enable_ltdl_convenience-no}" != xno; then
8732 CONVENIENCE_LTDL_TRUE=
8733 CONVENIENCE_LTDL_FALSE='#'
8735 CONVENIENCE_LTDL_TRUE='#'
8736 CONVENIENCE_LTDL_FALSE=
8740 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8741 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8743 libname_spec='lib$name'
8751 shlibpath_overrides_runpath=unknown
8753 dynamic_linker="$host_os ld.so"
8754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8755 if test "$GCC" = yes; then
8756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8757 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8758 # if the path contains ";" then we assume it to be the separator
8759 # otherwise default to the standard path separator (i.e. ":") - it is
8760 # assumed that no part of a normal pathname contains ";" but that should
8761 # okay in the real world where ";" in dirpaths is itself problematic.
8762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8767 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8769 need_lib_prefix=unknown
8770 hardcode_into_libs=no
8772 # when you set need_version to no, make sure it does not cause -set_version
8773 # flags to be left without arguments
8774 need_version=unknown
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8780 shlibpath_var=LIBPATH
8782 # AIX 3 has no versioning support, so we append a major version to the name.
8783 soname_spec='${libname}${release}${shared_ext}$major'
8790 hardcode_into_libs=yes
8791 if test "$host_cpu" = ia64; then
8792 # AIX 5 supports IA64
8793 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8794 shlibpath_var=LD_LIBRARY_PATH
8796 # With GCC up to 2.95.x, collect2 would create an import file
8797 # for dependence libraries. The import file would start with
8798 # the line `#! .'. This would cause the generated library to
8799 # depend on `.', always an invalid library. This was fixed in
8800 # development snapshots of GCC prior to 3.0.
8802 aix4 | aix4.[01] | aix4.[01].*)
8803 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8805 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8812 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8813 # soname into executable. Probably we can add versioning support to
8814 # collect2, so additional links can be useful in future.
8815 if test "$aix_use_runtimelinking" = yes; then
8816 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8817 # instead of lib<name>.a to let people know that these are not
8818 # typical AIX shared libraries.
8819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821 # We preserve .a as extension for shared libraries through AIX4.2
8822 # and later when we are not doing run time linking.
8823 library_names_spec='${libname}${release}.a $libname.a'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8826 shlibpath_var=LIBPATH
8831 library_names_spec='$libname.ixlibrary $libname.a'
8832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8833 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'
8837 library_names_spec='${libname}${shared_ext}'
8838 dynamic_linker="$host_os ld.so"
8839 shlibpath_var=LIBRARY_PATH
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8848 shlibpath_var=LD_LIBRARY_PATH
8849 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8850 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8851 # the default ld.so.conf also contains /usr/contrib/lib and
8852 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8853 # libtool to hard-code these into programs
8856 cygwin* | mingw* | pw32*)
8857 version_type=windows
8862 case $GCC,$host_os in
8863 yes,cygwin* | yes,mingw* | yes,pw32*)
8864 library_names_spec='$libname.dll.a'
8865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8866 postinstall_cmds='base_file=`basename \${file}`~
8867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8868 dldir=$destdir/`dirname \$dlpath`~
8869 test -d \$dldir || mkdir -p \$dldir~
8870 $install_prog $dir/$dlname \$dldir/$dlname~
8871 chmod a+x \$dldir/$dlname'
8872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8873 dlpath=$dir/\$dldll~
8875 shlibpath_overrides_runpath=yes
8879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8881 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8884 # MinGW DLLs use traditional 'lib' prefix
8885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8887 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8888 # It is most probably a Windows format PATH printed by
8889 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8890 # path with ; separators, and with drive letters. We can handle the
8891 # drive letters (cygwin fileutils understands them), so leave them,
8892 # especially as we might pass files found there to a mingw objdump,
8893 # which wouldn't understand a cygwinified path. Ahh.
8894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8900 # pw32 DLLs use 'pw' prefix rather than 'lib'
8901 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8907 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8910 dynamic_linker='Win32 ld.exe'
8911 # FIXME: first we should search . and the directory the executable is in
8915 darwin* | rhapsody*)
8916 dynamic_linker="$host_os dyld"
8920 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8921 soname_spec='${libname}${release}${major}$shared_ext'
8922 shlibpath_overrides_runpath=yes
8923 shlibpath_var=DYLD_LIBRARY_PATH
8924 shrext_cmds='.dylib'
8925 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8926 if test "$GCC" = yes; then
8927 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"`
8929 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8931 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 shlibpath_var=LD_LIBRARY_PATH
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 dynamic_linker='GNU ld.so'
8959 freebsd* | dragonfly*)
8960 # DragonFly does not have aout. When/if they implement a new
8961 # versioning mechanism, adjust this.
8962 if test -x /usr/bin/objformat; then
8963 objformat=`/usr/bin/objformat`
8966 freebsd[123].*) objformat=aout ;;
8970 version_type=freebsd-$objformat
8971 case $version_type in
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8982 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=yes
8987 freebsd3.[01]* | freebsdelf3.[01]*)
8988 shlibpath_overrides_runpath=yes
8989 hardcode_into_libs=yes
8991 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8992 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8993 shlibpath_overrides_runpath=no
8994 hardcode_into_libs=yes
8996 freebsd*) # from 4.6 on
8997 shlibpath_overrides_runpath=yes
8998 hardcode_into_libs=yes
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 shlibpath_var=LD_LIBRARY_PATH
9010 hardcode_into_libs=yes
9013 hpux9* | hpux10* | hpux11*)
9014 # Give a soname corresponding to the major version so that dld.sl refuses to
9015 # link against other versions.
9022 hardcode_into_libs=yes
9023 dynamic_linker="$host_os dld.so"
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 if test "X$HPUX_IA64_MODE" = X32; then
9029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9037 hardcode_into_libs=yes
9038 dynamic_linker="$host_os dld.sl"
9039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9048 dynamic_linker="$host_os dld.sl"
9049 shlibpath_var=SHLIB_PATH
9050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9055 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9056 postinstall_cmds='chmod 555 $lib'
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=no
9068 hardcode_into_libs=yes
9071 irix5* | irix6* | nonstopux*)
9073 nonstopux*) version_type=nonstopux ;;
9075 if test "$lt_cv_prog_gnu_ld" = yes; then
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9086 irix5* | nonstopux*)
9090 case $LD in # libtool.m4 will add one of these switches to LD
9091 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9092 libsuff= shlibsuff= libmagic=32-bit;;
9093 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9094 libsuff=32 shlibsuff=N32 libmagic=N32;;
9095 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9096 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9097 *) libsuff= shlibsuff= libmagic=never-match;;
9101 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9102 shlibpath_overrides_runpath=no
9103 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9104 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9105 hardcode_into_libs=yes
9108 # No shared lib support for Linux oldld, aout, or coff.
9109 linux*oldld* | linux*aout* | linux*coff*)
9113 # This must be Linux ELF.
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath=no
9123 # This implies no fast_install, which is unacceptable.
9124 # Some rework will be needed to allow for fast_install
9125 # before this can be enabled.
9126 hardcode_into_libs=yes
9128 # Append ld.so.conf contents to the search path
9129 if test -f /etc/ld.so.conf; then
9130 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' ' '`
9131 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9134 # We used to test for /lib/ld.so.1 and disable shared libraries on
9135 # powerpc, because MkLinux only supported shared libraries with the
9136 # GNU dynamic linker. Since this was broken with cross compilers,
9137 # most powerpc-linux boxes support dynamic linking these days and
9138 # people can always --disable-shared, the test was removed, and we
9139 # assume the GNU/Linux dynamic linker is in use.
9140 dynamic_linker='GNU/Linux ld.so'
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=no
9151 hardcode_into_libs=yes
9152 dynamic_linker='GNU ld.so'
9159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9162 dynamic_linker='NetBSD (a.out) ld.so'
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='NetBSD ld.elf_so'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes
9170 hardcode_into_libs=yes
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=yes
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 shlibpath_overrides_runpath=yes
9192 sys_lib_dlsearch_path_spec="/usr/lib"
9194 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9196 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9197 *) need_version=no ;;
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9204 openbsd2.[89] | openbsd2.[89].*)
9205 shlibpath_overrides_runpath=no
9208 shlibpath_overrides_runpath=yes
9212 shlibpath_overrides_runpath=yes
9217 libname_spec='$name'
9220 library_names_spec='$libname${shared_ext} $libname.a'
9221 dynamic_linker='OS/2 ld.exe'
9222 shlibpath_var=LIBPATH
9225 osf3* | osf4* | osf5*)
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9233 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=yes
9244 hardcode_into_libs=yes
9245 # ldd complains unless libraries are executable
9246 postinstall_cmds='chmod +x $lib'
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9252 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9253 shlibpath_var=LD_LIBRARY_PATH
9254 shlibpath_overrides_runpath=yes
9255 if test "$with_gnu_ld" = yes; then
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 case $host_vendor in
9268 shlibpath_overrides_runpath=no
9270 export_dynamic_flag_spec='${wl}-Blargedynsym'
9271 runpath_var=LD_RUN_PATH
9279 shlibpath_overrides_runpath=no
9280 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9286 if test -d /usr/nec ;then
9288 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9289 soname_spec='$libname${shared_ext}.$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9295 version_type=freebsd-elf
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 hardcode_into_libs=yes
9302 if test "$with_gnu_ld" = yes; then
9303 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9304 shlibpath_overrides_runpath=no
9306 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9307 shlibpath_overrides_runpath=yes
9310 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9314 sys_lib_dlsearch_path_spec='/usr/lib'
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9328 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9329 echo "${ECHO_T}$dynamic_linker" >&6; }
9330 test "$dynamic_linker" = no && can_build_shared=no
9332 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9333 if test "$GCC" = yes; then
9334 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9338 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9339 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9340 if test "${libltdl_cv_shlibext+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 eval libltdl_cv_shlibext=$shrext_cmds
9348 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9349 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9350 if test -n "$libltdl_cv_shlibext"; then
9352 cat >>confdefs.h <<_ACEOF
9353 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9359 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9360 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9361 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 libltdl_cv_shlibpath_var="$shlibpath_var"
9366 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9367 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9368 if test -n "$libltdl_cv_shlibpath_var"; then
9370 cat >>confdefs.h <<_ACEOF
9371 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9377 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9378 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9379 if test "${libltdl_cv_sys_search_path+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9384 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9385 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9386 if test -n "$libltdl_cv_sys_search_path"; then
9388 for dir in $libltdl_cv_sys_search_path; do
9389 if test -z "$sys_search_path"; then
9390 sys_search_path="$dir"
9392 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9396 cat >>confdefs.h <<_ACEOF
9397 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9402 { echo "$as_me:$LINENO: checking for objdir" >&5
9403 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9404 if test "${libltdl_cv_objdir+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 libltdl_cv_objdir="$objdir"
9408 if test -n "$objdir"; then
9411 rm -f .libs 2>/dev/null
9412 mkdir .libs 2>/dev/null
9413 if test -d .libs; then
9414 libltdl_cv_objdir=.libs
9416 # MS-DOS does not allow filenames that begin with a dot.
9417 libltdl_cv_objdir=_libs
9419 rmdir .libs 2>/dev/null
9423 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9424 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9426 cat >>confdefs.h <<_ACEOF
9427 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9435 # Check for command to grab the raw symbol name followed by C symbol from nm.
9436 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9437 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 # These are sane defaults that work on at least a few old systems.
9443 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9445 # Character class describing NM global symbol codes.
9446 symcode='[BCDEGRST]'
9448 # Regexp to match symbols that can be accessed directly from C.
9449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9451 # Transform an extracted symbol line into a proper C declaration
9452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9454 # Transform an extracted symbol line into symbol name and symbol address
9455 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'"
9457 # Define system-specific variables.
9462 cygwin* | mingw* | pw32*)
9463 symcode='[ABCDGISTW]'
9465 hpux*) # Its linker distinguishes data from code symbols
9466 if test "$host_cpu" = ia64; then
9467 symcode='[ABCDEGRST]'
9469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9470 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'"
9473 if test "$host_cpu" = ia64; then
9474 symcode='[ABCDGIRSTW]'
9475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9476 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'"
9480 symcode='[BCDEGRST]'
9483 symcode='[BCDEGQRST]'
9494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9502 # Handle CRLF in mingw tool chain
9506 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9510 # If we're using GNU nm, then use its standard symbol codes.
9511 case `$NM -V 2>&1` in
9512 *GNU* | *'with BFD'*)
9513 symcode='[ABCDGIRSTW]' ;;
9516 # Try without a prefix undercore, then with it.
9517 for ac_symprfx in "" "_"; do
9519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9520 symxfrm="\\1 $ac_symprfx\\2 \\2"
9522 # Write the raw and C identifiers.
9523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9525 # Check to see that the pipe works correctly.
9529 cat > conftest.$ac_ext <<EOF
9534 void nm_test_func(){}
9538 int main(){nm_test_var='a';nm_test_func();return(0);}
9541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9542 (eval $ac_compile) 2>&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; then
9546 # Now try to grab the symbols.
9548 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9549 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && test -s "$nlist"; then
9553 # Try sorting and uniquifying the output.
9554 if sort "$nlist" | uniq > "$nlist"T; then
9555 mv -f "$nlist"T "$nlist"
9560 # Make sure that we snagged all the symbols we need.
9561 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9562 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9563 cat <<EOF > conftest.$ac_ext
9569 # Now generate the symbol file.
9570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9572 cat <<EOF >> conftest.$ac_ext
9573 #if defined (__STDC__) && __STDC__
9574 # define lt_ptr_t void *
9576 # define lt_ptr_t char *
9580 /* The mapping between symbol names and symbols. */
9585 lt_preloaded_symbols[] =
9588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9589 cat <<\EOF >> conftest.$ac_ext
9597 # Now try linking the two files.
9598 mv conftest.$ac_objext conftstm.$ac_objext
9599 lt_save_LIBS="$LIBS"
9600 lt_save_CFLAGS="$CFLAGS"
9601 LIBS="conftstm.$ac_objext"
9602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604 (eval $ac_link) 2>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9610 LIBS="$lt_save_LIBS"
9611 CFLAGS="$lt_save_CFLAGS"
9613 echo "cannot find nm_test_func in $nlist" >&5
9616 echo "cannot find nm_test_var in $nlist" >&5
9619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9622 echo "$progname: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9625 rm -f conftest* conftst*
9627 # Do not use the global_symbol_pipe unless it works.
9628 if test "$pipe_works" = yes; then
9631 lt_cv_sys_global_symbol_pipe=
9637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9638 lt_cv_sys_global_symbol_to_cdecl=
9640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9641 { echo "$as_me:$LINENO: result: failed" >&5
9642 echo "${ECHO_T}failed" >&6; }
9644 { echo "$as_me:$LINENO: result: ok" >&5
9645 echo "${ECHO_T}ok" >&6; }
9649 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9650 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9651 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9655 libltdl_cv_preloaded_symbols=yes
9657 libltdl_cv_preloaded_symbols=no
9661 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9662 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9663 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9665 cat >>confdefs.h <<\_ACEOF
9666 #define HAVE_PRELOADED_SYMBOLS 1
9674 ac_cpp='$CPP $CPPFLAGS'
9675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9680 { echo "$as_me:$LINENO: checking for shl_load" >&5
9681 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9682 if test "${ac_cv_func_shl_load+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 cat >conftest.$ac_ext <<_ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9693 #define shl_load innocuous_shl_load
9695 /* System header to define __stub macros and hopefully few prototypes,
9696 which can conflict with char shl_load (); below.
9697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9698 <limits.h> exists even on freestanding compilers. */
9701 # include <limits.h>
9703 # include <assert.h>
9708 /* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9715 /* The GNU C library defines this for functions which it implements
9716 to always fail with ENOSYS. Some functions are actually named
9717 something starting with __ and the normal name is an alias. */
9718 #if defined __stub_shl_load || defined __stub___shl_load
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (ac_try="$ac_link"
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_link") 2>conftest.er1
9739 grep -v '^ *+' conftest.er1 >conftest.err
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_try") 2>&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_func_shl_load=yes
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 ac_cv_func_shl_load=no
9772 rm -f core conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9775 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9776 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9777 if test $ac_cv_func_shl_load = yes; then
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_SHL_LOAD 1
9784 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9785 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9786 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 ac_check_lib_save_LIBS=$LIBS
9791 cat >conftest.$ac_ext <<_ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9798 /* Override any GCC internal prototype to avoid an error.
9799 Use char because int might match the return type of a GCC
9800 builtin and then its argument prototype would still apply. */
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (ac_try="$ac_link"
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_link") 2>conftest.er1
9822 grep -v '^ *+' conftest.er1 >conftest.err
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9828 { (case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_try") 2>&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest$ac_exeext'
9838 { (case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_try") 2>&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_lib_dld_shl_load=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_cv_lib_dld_shl_load=no
9855 rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_lib_save_LIBS
9859 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9860 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9861 if test $ac_cv_lib_dld_shl_load = yes; then
9863 cat >>confdefs.h <<\_ACEOF
9864 #define HAVE_SHL_LOAD 1
9867 LIBADD_DL="$LIBADD_DL -ldld"
9869 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9870 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 ac_check_lib_save_LIBS=$LIBS
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9883 /* Override any GCC internal prototype to avoid an error.
9884 Use char because int might match the return type of a GCC
9885 builtin and then its argument prototype would still apply. */
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (ac_try="$ac_link"
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_link") 2>conftest.er1
9907 grep -v '^ *+' conftest.er1 >conftest.err
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest$ac_exeext'
9923 { (case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_try") 2>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 ac_cv_lib_dl_dlopen=yes
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 ac_cv_lib_dl_dlopen=no
9940 rm -f core conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9944 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9945 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9946 if test $ac_cv_lib_dl_dlopen = yes; then
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_LIBDL 1
9952 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9954 cat >conftest.$ac_ext <<_ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9972 rm -f conftest.$ac_objext conftest$ac_exeext
9973 if { (ac_try="$ac_link"
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_link") 2>conftest.er1
9981 grep -v '^ *+' conftest.er1 >conftest.err
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9987 { (case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_try") 2>&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest$ac_exeext'
9997 { (case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_try") 2>&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10007 cat >>confdefs.h <<\_ACEOF
10008 #define HAVE_LIBDL 1
10010 libltdl_cv_func_dlopen="yes"
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10016 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10017 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-lsvld $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_cv_lib_svld_dlopen=yes
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_cv_lib_svld_dlopen=no
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10090 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10091 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10092 if test $ac_cv_lib_svld_dlopen = yes; then
10094 cat >>confdefs.h <<\_ACEOF
10095 #define HAVE_LIBDL 1
10098 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10100 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10101 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10102 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 ac_check_lib_save_LIBS=$LIBS
10107 cat >conftest.$ac_ext <<_ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10124 return dld_link ();
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_try") 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_lib_dld_dld_link=yes
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10168 ac_cv_lib_dld_dld_link=no
10171 rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10175 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10176 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10177 if test $ac_cv_lib_dld_dld_link = yes; then
10179 cat >>confdefs.h <<\_ACEOF
10183 LIBADD_DL="$LIBADD_DL -ldld"
10185 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10186 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10187 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 cat >conftest.$ac_ext <<_ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10198 #define _dyld_func_lookup innocuous__dyld_func_lookup
10200 /* System header to define __stub macros and hopefully few prototypes,
10201 which can conflict with char _dyld_func_lookup (); below.
10202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10203 <limits.h> exists even on freestanding compilers. */
10206 # include <limits.h>
10208 # include <assert.h>
10211 #undef _dyld_func_lookup
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10219 char _dyld_func_lookup ();
10220 /* The GNU C library defines this for functions which it implements
10221 to always fail with ENOSYS. Some functions are actually named
10222 something starting with __ and the normal name is an alias. */
10223 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10230 return _dyld_func_lookup ();
10235 rm -f conftest.$ac_objext conftest$ac_exeext
10236 if { (ac_try="$ac_link"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_link") 2>conftest.er1
10244 grep -v '^ *+' conftest.er1 >conftest.err
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try='test -s conftest$ac_exeext'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_func__dyld_func_lookup=yes
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_cv_func__dyld_func_lookup=no
10277 rm -f core conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10280 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10281 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10282 if test $ac_cv_func__dyld_func_lookup = yes; then
10284 cat >>confdefs.h <<\_ACEOF
10285 #define HAVE_DYLD 1
10299 rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
10311 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10313 lt_save_LIBS="$LIBS"
10314 LIBS="$LIBS $LIBADD_DL"
10316 for ac_func in dlerror
10318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 cat >conftest.$ac_ext <<_ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10332 #define $ac_func innocuous_$ac_func
10334 /* System header to define __stub macros and hopefully few prototypes,
10335 which can conflict with char $ac_func (); below.
10336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10337 <limits.h> exists even on freestanding compilers. */
10340 # include <limits.h>
10342 # include <assert.h>
10347 /* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10354 /* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357 #if defined __stub_$ac_func || defined __stub___$ac_func
10364 return $ac_func ();
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (ac_try="$ac_link"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_link") 2>conftest.er1
10378 grep -v '^ *+' conftest.er1 >conftest.err
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10384 { (case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_try") 2>&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try='test -s conftest$ac_exeext'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10403 eval "$as_ac_var=yes"
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 eval "$as_ac_var=no"
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10414 ac_res=`eval echo '${'$as_ac_var'}'`
10415 { echo "$as_me:$LINENO: result: $ac_res" >&5
10416 echo "${ECHO_T}$ac_res" >&6; }
10417 if test `eval echo '${'$as_ac_var'}'` = yes; then
10418 cat >>confdefs.h <<_ACEOF
10419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10425 LIBS="$lt_save_LIBS"
10428 ac_cpp='$CPP $CPPFLAGS'
10429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10435 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10436 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10437 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 ac_cv_sys_symbol_underscore=no
10441 cat > conftest.$ac_ext <<EOF
10442 void nm_test_func(){}
10443 int main(){nm_test_func;return 0;}
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; then
10450 # Now try to grab the symbols.
10451 ac_nlist=conftest.nm
10452 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10453 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && test -s "$ac_nlist"; then
10457 # See whether the symbols have a leading underscore.
10458 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10459 ac_cv_sys_symbol_underscore=yes
10461 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10464 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10468 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10471 echo "configure: failed program was:" >&5
10477 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10478 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10481 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10482 if test x"$libltdl_cv_func_dlopen" = xyes ||
10483 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10484 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10485 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10486 if test "${libltdl_cv_need_uscore+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 libltdl_cv_need_uscore=unknown
10491 LIBS="$LIBS $LIBADD_DL"
10492 if test "$cross_compiling" = yes; then :
10493 libltdl_cv_need_uscore=cross
10495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10496 lt_status=$lt_dlunknown
10497 cat > conftest.$ac_ext <<EOF
10498 #line 10493 "configure"
10499 #include "confdefs.h"
10508 # define LT_DLGLOBAL RTLD_GLOBAL
10511 # define LT_DLGLOBAL DL_GLOBAL
10513 # define LT_DLGLOBAL 0
10517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10518 find out it does not work in some platform. */
10519 #ifndef LT_DLLAZY_OR_NOW
10521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10524 # define LT_DLLAZY_OR_NOW DL_LAZY
10527 # define LT_DLLAZY_OR_NOW RTLD_NOW
10530 # define LT_DLLAZY_OR_NOW DL_NOW
10532 # define LT_DLLAZY_OR_NOW 0
10540 extern "C" void exit (int);
10543 void fnord() { int i=42;}
10546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10547 int status = $lt_dlunknown;
10551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10552 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10553 /* dlclose (self); */
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10566 (./conftest; exit; ) >&5 2>/dev/null
10568 case x$lt_status in
10569 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10570 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10571 x$lt_dlunknown|x*) ;;
10574 # compilation failed
10583 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10584 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10588 if test x"$libltdl_cv_need_uscore" = xyes; then
10590 cat >>confdefs.h <<\_ACEOF
10591 #define NEED_USCORE 1
10597 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10598 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10599 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 # PORTME does your system automatically load deplibs for dlopen?
10603 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10604 # For now, we just catch OSes we know something about -- in the
10605 # future, we'll try test this programmatically.
10606 libltdl_cv_sys_dlopen_deplibs=unknown
10608 aix3*|aix4.1.*|aix4.2.*)
10609 # Unknown whether this is true for these versions of AIX, but
10610 # we want this `case' here to explicitly catch those versions.
10611 libltdl_cv_sys_dlopen_deplibs=unknown
10614 libltdl_cv_sys_dlopen_deplibs=yes
10617 # Assuming the user has installed a libdl from somewhere, this is true
10618 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10619 libltdl_cv_sys_dlopen_deplibs=yes
10621 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10622 # GNU and its variants, using gnu ld.so (Glibc)
10623 libltdl_cv_sys_dlopen_deplibs=yes
10626 libltdl_cv_sys_dlopen_deplibs=yes
10629 libltdl_cv_sys_dlopen_deplibs=yes
10631 irix[12345]*|irix6.[01]*)
10632 # Catch all versions of IRIX before 6.2, and indicate that we don't
10633 # know how it worked for any of those versions.
10634 libltdl_cv_sys_dlopen_deplibs=unknown
10637 # The case above catches anything before 6.2, and it's known that
10638 # at 6.2 and later dlopen does load deplibs.
10639 libltdl_cv_sys_dlopen_deplibs=yes
10642 libltdl_cv_sys_dlopen_deplibs=yes
10645 libltdl_cv_sys_dlopen_deplibs=yes
10648 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10649 # it did *not* use an RPATH in a shared library to find objects the
10650 # library depends on, so we explicitly say `no'.
10651 libltdl_cv_sys_dlopen_deplibs=no
10653 osf5.0|osf5.0a|osf5.1)
10654 # dlopen *does* load deplibs and with the right loader patch applied
10655 # it even uses RPATH in a shared library to search for shared objects
10656 # that the library depends on, but there's no easy way to know if that
10657 # patch is installed. Since this is the case, all we can really
10658 # say is unknown -- it depends on the patch being installed. If
10659 # it is, this changes to `yes'. Without it, it would be `no'.
10660 libltdl_cv_sys_dlopen_deplibs=unknown
10663 # the two cases above should catch all versions of osf <= 5.1. Read
10664 # the comments above for what we know about them.
10665 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10666 # is used to find them so we can finally say `yes'.
10667 libltdl_cv_sys_dlopen_deplibs=yes
10670 libltdl_cv_sys_dlopen_deplibs=yes
10672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10673 libltdl_cv_sys_dlopen_deplibs=yes
10678 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10679 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10680 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10682 cat >>confdefs.h <<\_ACEOF
10683 #define LTDL_DLOPEN_DEPLIBS 1
10689 for ac_header in argz.h
10691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 ac_res=`eval echo '${'$as_ac_Header'}'`
10699 { echo "$as_me:$LINENO: result: $ac_res" >&5
10700 echo "${ECHO_T}$ac_res" >&6; }
10702 # Is the header compilable?
10703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10705 cat >conftest.$ac_ext <<_ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10711 $ac_includes_default
10712 #include <$ac_header>
10714 rm -f conftest.$ac_objext
10715 if { (ac_try="$ac_compile"
10716 case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_compile") 2>conftest.er1
10723 grep -v '^ *+' conftest.er1 >conftest.err
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; } &&
10738 { ac_try='test -s conftest.$ac_objext'
10739 { (case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_try") 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_header_compiler=yes
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 ac_header_compiler=no
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10758 echo "${ECHO_T}$ac_header_compiler" >&6; }
10760 # Is the header present?
10761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10763 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 #include <$ac_header>
10771 if { (ac_try="$ac_cpp conftest.$ac_ext"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } >/dev/null; then
10784 if test -s conftest.err; then
10785 ac_cpp_err=$ac_c_preproc_warn_flag
10786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10793 if test -z "$ac_cpp_err"; then
10794 ac_header_preproc=yes
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_header_preproc=no
10802 rm -f conftest.err conftest.$ac_ext
10803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10804 echo "${ECHO_T}$ac_header_preproc" >&6; }
10806 # So? What about this header?
10807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10813 ac_header_preproc=yes
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10829 ## ----------------------------------- ##
10830 ## Report this to llvmbugs@cs.uiuc.edu ##
10831 ## ----------------------------------- ##
10833 ) | sed "s/^/$as_me: WARNING: /" >&2
10836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 eval "$as_ac_Header=\$ac_header_preproc"
10843 ac_res=`eval echo '${'$as_ac_Header'}'`
10844 { echo "$as_me:$LINENO: result: $ac_res" >&5
10845 echo "${ECHO_T}$ac_res" >&6; }
10848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10849 cat >>confdefs.h <<_ACEOF
10850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 { echo "$as_me:$LINENO: checking for error_t" >&5
10859 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10860 if test "${ac_cv_type_error_t+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 cat >conftest.$ac_ext <<_ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10873 typedef error_t ac__type_new_;
10877 if ((ac__type_new_ *) 0)
10879 if (sizeof (ac__type_new_))
10885 rm -f conftest.$ac_objext
10886 if { (ac_try="$ac_compile"
10887 case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_compile") 2>conftest.er1
10894 grep -v '^ *+' conftest.er1 >conftest.err
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest.$ac_objext'
10910 { (case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_try") 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_type_error_t=yes
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_cv_type_error_t=no
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10929 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10930 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10931 if test $ac_cv_type_error_t = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934 #define HAVE_ERROR_T 1
10940 cat >>confdefs.h <<\_ACEOF
10941 #define error_t int
10952 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 cat >conftest.$ac_ext <<_ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10968 #define $ac_func innocuous_$ac_func
10970 /* System header to define __stub macros and hopefully few prototypes,
10971 which can conflict with char $ac_func (); below.
10972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973 <limits.h> exists even on freestanding compilers. */
10976 # include <limits.h>
10978 # include <assert.h>
10983 /* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10990 /* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993 #if defined __stub_$ac_func || defined __stub___$ac_func
11000 return $ac_func ();
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11014 grep -v '^ *+' conftest.er1 >conftest.err
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020 { (case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest$ac_exeext'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 eval "$as_ac_var=yes"
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 eval "$as_ac_var=no"
11047 rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11050 ac_res=`eval echo '${'$as_ac_var'}'`
11051 { echo "$as_me:$LINENO: result: $ac_res" >&5
11052 echo "${ECHO_T}$ac_res" >&6; }
11053 if test `eval echo '${'$as_ac_var'}'` = yes; then
11054 cat >>confdefs.h <<_ACEOF
11055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11088 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 ac_res=`eval echo '${'$as_ac_Header'}'`
11099 { echo "$as_me:$LINENO: result: $ac_res" >&5
11100 echo "${ECHO_T}$ac_res" >&6; }
11102 # Is the header compilable?
11103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11105 cat >conftest.$ac_ext <<_ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11111 $ac_includes_default
11112 #include <$ac_header>
11114 rm -f conftest.$ac_objext
11115 if { (ac_try="$ac_compile"
11116 case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_compile") 2>conftest.er1
11123 grep -v '^ *+' conftest.er1 >conftest.err
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest.$ac_objext'
11139 { (case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_try") 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 ac_header_compiler=yes
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11153 ac_header_compiler=no
11156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11158 echo "${ECHO_T}$ac_header_compiler" >&6; }
11160 # Is the header present?
11161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 #include <$ac_header>
11171 if { (ac_try="$ac_cpp conftest.$ac_ext"
11172 case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11179 grep -v '^ *+' conftest.er1 >conftest.err
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } >/dev/null; then
11184 if test -s conftest.err; then
11185 ac_cpp_err=$ac_c_preproc_warn_flag
11186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11193 if test -z "$ac_cpp_err"; then
11194 ac_header_preproc=yes
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 ac_header_preproc=no
11202 rm -f conftest.err conftest.$ac_ext
11203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11204 echo "${ECHO_T}$ac_header_preproc" >&6; }
11206 # So? What about this header?
11207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11213 ac_header_preproc=yes
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11229 ## ----------------------------------- ##
11230 ## Report this to llvmbugs@cs.uiuc.edu ##
11231 ## ----------------------------------- ##
11233 ) | sed "s/^/$as_me: WARNING: /" >&2
11236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 eval "$as_ac_Header=\$ac_header_preproc"
11243 ac_res=`eval echo '${'$as_ac_Header'}'`
11244 { echo "$as_me:$LINENO: result: $ac_res" >&5
11245 echo "${ECHO_T}$ac_res" >&6; }
11248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11249 cat >>confdefs.h <<_ACEOF
11250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11261 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 ac_res=`eval echo '${'$as_ac_Header'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272 echo "${ECHO_T}$ac_res" >&6; }
11274 # Is the header compilable?
11275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11277 cat >conftest.$ac_ext <<_ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 $ac_includes_default
11284 #include <$ac_header>
11286 rm -f conftest.$ac_objext
11287 if { (ac_try="$ac_compile"
11288 case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_compile") 2>conftest.er1
11295 grep -v '^ *+' conftest.er1 >conftest.err
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; } &&
11310 { ac_try='test -s conftest.$ac_objext'
11311 { (case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_try") 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; }; then
11320 ac_header_compiler=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_header_compiler=no
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11330 echo "${ECHO_T}$ac_header_compiler" >&6; }
11332 # Is the header present?
11333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11335 cat >conftest.$ac_ext <<_ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 #include <$ac_header>
11343 if { (ac_try="$ac_cpp conftest.$ac_ext"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1 >conftest.err
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } >/dev/null; then
11356 if test -s conftest.err; then
11357 ac_cpp_err=$ac_c_preproc_warn_flag
11358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11365 if test -z "$ac_cpp_err"; then
11366 ac_header_preproc=yes
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 ac_header_preproc=no
11374 rm -f conftest.err conftest.$ac_ext
11375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11376 echo "${ECHO_T}$ac_header_preproc" >&6; }
11378 # So? What about this header?
11379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11385 ac_header_preproc=yes
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11401 ## ----------------------------------- ##
11402 ## Report this to llvmbugs@cs.uiuc.edu ##
11403 ## ----------------------------------- ##
11405 ) | sed "s/^/$as_me: WARNING: /" >&2
11408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 eval "$as_ac_Header=\$ac_header_preproc"
11415 ac_res=`eval echo '${'$as_ac_Header'}'`
11416 { echo "$as_me:$LINENO: result: $ac_res" >&5
11417 echo "${ECHO_T}$ac_res" >&6; }
11420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11421 cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11431 for ac_header in string.h strings.h
11433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 ac_res=`eval echo '${'$as_ac_Header'}'`
11441 { echo "$as_me:$LINENO: result: $ac_res" >&5
11442 echo "${ECHO_T}$ac_res" >&6; }
11444 # Is the header compilable?
11445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 $ac_includes_default
11454 #include <$ac_header>
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_compile") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11471 { (case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_try") 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest.$ac_objext'
11481 { (case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_try") 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_header_compiler=yes
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 ac_header_compiler=no
11498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11500 echo "${ECHO_T}$ac_header_compiler" >&6; }
11502 # Is the header present?
11503 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11505 cat >conftest.$ac_ext <<_ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 #include <$ac_header>
11513 if { (ac_try="$ac_cpp conftest.$ac_ext"
11514 case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11521 grep -v '^ *+' conftest.er1 >conftest.err
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } >/dev/null; then
11526 if test -s conftest.err; then
11527 ac_cpp_err=$ac_c_preproc_warn_flag
11528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11535 if test -z "$ac_cpp_err"; then
11536 ac_header_preproc=yes
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 ac_header_preproc=no
11544 rm -f conftest.err conftest.$ac_ext
11545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11546 echo "${ECHO_T}$ac_header_preproc" >&6; }
11548 # So? What about this header?
11549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11555 ac_header_preproc=yes
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11571 ## ----------------------------------- ##
11572 ## Report this to llvmbugs@cs.uiuc.edu ##
11573 ## ----------------------------------- ##
11575 ) | sed "s/^/$as_me: WARNING: /" >&2
11578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 eval "$as_ac_Header=\$ac_header_preproc"
11585 ac_res=`eval echo '${'$as_ac_Header'}'`
11586 { echo "$as_me:$LINENO: result: $ac_res" >&5
11587 echo "${ECHO_T}$ac_res" >&6; }
11590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11591 cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11602 for ac_func in strchr index
11604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 cat >conftest.$ac_ext <<_ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11618 #define $ac_func innocuous_$ac_func
11620 /* System header to define __stub macros and hopefully few prototypes,
11621 which can conflict with char $ac_func (); below.
11622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11623 <limits.h> exists even on freestanding compilers. */
11626 # include <limits.h>
11628 # include <assert.h>
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11640 /* The GNU C library defines this for functions which it implements
11641 to always fail with ENOSYS. Some functions are actually named
11642 something starting with __ and the normal name is an alias. */
11643 #if defined __stub_$ac_func || defined __stub___$ac_func
11650 return $ac_func ();
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (ac_try="$ac_link"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
11664 grep -v '^ *+' conftest.er1 >conftest.err
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try='test -s conftest$ac_exeext'
11680 { (case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_try") 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 eval "$as_ac_var=yes"
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 eval "$as_ac_var=no"
11697 rm -f core conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext conftest.$ac_ext
11700 ac_res=`eval echo '${'$as_ac_var'}'`
11701 { echo "$as_me:$LINENO: result: $ac_res" >&5
11702 echo "${ECHO_T}$ac_res" >&6; }
11703 if test `eval echo '${'$as_ac_var'}'` = yes; then
11704 cat >>confdefs.h <<_ACEOF
11705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11713 for ac_func in strrchr rindex
11715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 cat >conftest.$ac_ext <<_ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11729 #define $ac_func innocuous_$ac_func
11731 /* System header to define __stub macros and hopefully few prototypes,
11732 which can conflict with char $ac_func (); below.
11733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11734 <limits.h> exists even on freestanding compilers. */
11737 # include <limits.h>
11739 # include <assert.h>
11744 /* Override any GCC internal prototype to avoid an error.
11745 Use char because int might match the return type of a GCC
11746 builtin and then its argument prototype would still apply. */
11751 /* The GNU C library defines this for functions which it implements
11752 to always fail with ENOSYS. Some functions are actually named
11753 something starting with __ and the normal name is an alias. */
11754 #if defined __stub_$ac_func || defined __stub___$ac_func
11761 return $ac_func ();
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (ac_try="$ac_link"
11768 case "(($ac_try" in
11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773 (eval "$ac_link") 2>conftest.er1
11775 grep -v '^ *+' conftest.er1 >conftest.err
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11790 { ac_try='test -s conftest$ac_exeext'
11791 { (case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_try") 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 eval "$as_ac_var=yes"
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 eval "$as_ac_var=no"
11808 rm -f core conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11811 ac_res=`eval echo '${'$as_ac_var'}'`
11812 { echo "$as_me:$LINENO: result: $ac_res" >&5
11813 echo "${ECHO_T}$ac_res" >&6; }
11814 if test `eval echo '${'$as_ac_var'}'` = yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11824 for ac_func in memcpy bcopy
11826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 cat >conftest.$ac_ext <<_ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11840 #define $ac_func innocuous_$ac_func
11842 /* System header to define __stub macros and hopefully few prototypes,
11843 which can conflict with char $ac_func (); below.
11844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11845 <limits.h> exists even on freestanding compilers. */
11848 # include <limits.h>
11850 # include <assert.h>
11855 /* Override any GCC internal prototype to avoid an error.
11856 Use char because int might match the return type of a GCC
11857 builtin and then its argument prototype would still apply. */
11862 /* The GNU C library defines this for functions which it implements
11863 to always fail with ENOSYS. Some functions are actually named
11864 something starting with __ and the normal name is an alias. */
11865 #if defined __stub_$ac_func || defined __stub___$ac_func
11872 return $ac_func ();
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (ac_try="$ac_link"
11879 case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_link") 2>conftest.er1
11886 grep -v '^ *+' conftest.er1 >conftest.err
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11901 { ac_try='test -s conftest$ac_exeext'
11902 { (case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_try") 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 eval "$as_ac_var=yes"
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 eval "$as_ac_var=no"
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11922 ac_res=`eval echo '${'$as_ac_var'}'`
11923 { echo "$as_me:$LINENO: result: $ac_res" >&5
11924 echo "${ECHO_T}$ac_res" >&6; }
11925 if test `eval echo '${'$as_ac_var'}'` = yes; then
11926 cat >>confdefs.h <<_ACEOF
11927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11935 for ac_func in memmove strcmp
11937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 cat >conftest.$ac_ext <<_ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11951 #define $ac_func innocuous_$ac_func
11953 /* System header to define __stub macros and hopefully few prototypes,
11954 which can conflict with char $ac_func (); below.
11955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11956 <limits.h> exists even on freestanding compilers. */
11959 # include <limits.h>
11961 # include <assert.h>
11966 /* Override any GCC internal prototype to avoid an error.
11967 Use char because int might match the return type of a GCC
11968 builtin and then its argument prototype would still apply. */
11973 /* The GNU C library defines this for functions which it implements
11974 to always fail with ENOSYS. Some functions are actually named
11975 something starting with __ and the normal name is an alias. */
11976 #if defined __stub_$ac_func || defined __stub___$ac_func
11983 return $ac_func ();
11988 rm -f conftest.$ac_objext conftest$ac_exeext
11989 if { (ac_try="$ac_link"
11990 case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_link") 2>conftest.er1
11997 grep -v '^ *+' conftest.er1 >conftest.err
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12012 { ac_try='test -s conftest$ac_exeext'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 eval "$as_ac_var=yes"
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 eval "$as_ac_var=no"
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12033 ac_res=`eval echo '${'$as_ac_var'}'`
12034 { echo "$as_me:$LINENO: result: $ac_res" >&5
12035 echo "${ECHO_T}$ac_res" >&6; }
12036 if test `eval echo '${'$as_ac_var'}'` = yes; then
12037 cat >>confdefs.h <<_ACEOF
12038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12047 for ac_func in closedir opendir readdir
12049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 cat >conftest.$ac_ext <<_ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12063 #define $ac_func innocuous_$ac_func
12065 /* System header to define __stub macros and hopefully few prototypes,
12066 which can conflict with char $ac_func (); below.
12067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068 <limits.h> exists even on freestanding compilers. */
12071 # include <limits.h>
12073 # include <assert.h>
12078 /* Override any GCC internal prototype to avoid an error.
12079 Use char because int might match the return type of a GCC
12080 builtin and then its argument prototype would still apply. */
12085 /* The GNU C library defines this for functions which it implements
12086 to always fail with ENOSYS. Some functions are actually named
12087 something starting with __ and the normal name is an alias. */
12088 #if defined __stub_$ac_func || defined __stub___$ac_func
12095 return $ac_func ();
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (ac_try="$ac_link"
12102 case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_link") 2>conftest.er1
12109 grep -v '^ *+' conftest.er1 >conftest.err
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12115 { (case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_try") 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest$ac_exeext'
12125 { (case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_try") 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 eval "$as_ac_var=yes"
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 eval "$as_ac_var=no"
12142 rm -f core conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12145 ac_res=`eval echo '${'$as_ac_var'}'`
12146 { echo "$as_me:$LINENO: result: $ac_res" >&5
12147 echo "${ECHO_T}$ac_res" >&6; }
12148 if test `eval echo '${'$as_ac_var'}'` = yes; then
12149 cat >>confdefs.h <<_ACEOF
12150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12158 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12159 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12172 if test "$GCC" != "yes" && test "$ICC" != "yes"
12174 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12175 echo "$as_me: error: gcc|icc required but not found" >&2;}
12176 { (exit 1); exit 1; }; }
12179 if test "$GXX" != "yes" && test "$IXX" != "yes"
12181 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12182 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12183 { (exit 1); exit 1; }; }
12186 if test "$GCC" = "yes"
12188 cat >conftest.$ac_ext <<_ACEOF
12189 #if !defined(__GNUC__) || __GNUC__ < 3
12190 #error Unsupported GCC version
12194 rm -f conftest.$ac_objext
12195 if { (ac_try="$ac_compile"
12196 case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_compile") 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest.$ac_objext'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12234 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12235 { (exit 1); exit 1; }; }
12238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12241 if test -z "$llvm_cv_gnu_make_command"
12243 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12244 echo "$as_me: error: GNU Make required but not found" >&2;}
12245 { (exit 1); exit 1; }; }
12248 { echo "$as_me:$LINENO: result: ok" >&5
12249 echo "${ECHO_T}ok" >&6; }
12251 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12252 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12253 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12255 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12257 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12258 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12262 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12263 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12264 if test "${ac_cv_lib_m_sin+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 ac_check_lib_save_LIBS=$LIBS
12269 cat >conftest.$ac_ext <<_ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12291 rm -f conftest.$ac_objext conftest$ac_exeext
12292 if { (ac_try="$ac_link"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_link") 2>conftest.er1
12300 grep -v '^ *+' conftest.er1 >conftest.err
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12306 { (case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_try") 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } &&
12315 { ac_try='test -s conftest$ac_exeext'
12316 { (case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_try") 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_lib_m_sin=yes
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12333 rm -f core conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext conftest.$ac_ext
12335 LIBS=$ac_check_lib_save_LIBS
12337 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12338 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12339 if test $ac_cv_lib_m_sin = yes; then
12340 cat >>confdefs.h <<_ACEOF
12341 #define HAVE_LIBM 1
12348 if test "$llvm_cv_os_type" = "MingW" ; then
12350 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12351 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12352 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 ac_check_lib_save_LIBS=$LIBS
12356 LIBS="-limagehlp $LIBS"
12357 cat >conftest.$ac_ext <<_ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12373 rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (ac_try="$ac_link"
12375 case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_link") 2>conftest.er1
12382 grep -v '^ *+' conftest.er1 >conftest.err
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12388 { (case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_try") 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_try") 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_cv_lib_imagehlp_main=yes
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12412 ac_cv_lib_imagehlp_main=no
12415 rm -f core conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417 LIBS=$ac_check_lib_save_LIBS
12419 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12420 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12421 if test $ac_cv_lib_imagehlp_main = yes; then
12422 cat >>confdefs.h <<_ACEOF
12423 #define HAVE_LIBIMAGEHLP 1
12426 LIBS="-limagehlp $LIBS"
12431 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12432 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12433 if test "${ac_cv_lib_psapi_main+set}" = set; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 ac_check_lib_save_LIBS=$LIBS
12437 LIBS="-lpsapi $LIBS"
12438 cat >conftest.$ac_ext <<_ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (ac_try="$ac_link"
12456 case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_link") 2>conftest.er1
12463 grep -v '^ *+' conftest.er1 >conftest.err
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12469 { (case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_try") 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_try") 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_lib_psapi_main=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_cv_lib_psapi_main=no
12496 rm -f core conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12500 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12501 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12502 if test $ac_cv_lib_psapi_main = yes; then
12503 cat >>confdefs.h <<_ACEOF
12504 #define HAVE_LIBPSAPI 1
12507 LIBS="-lpsapi $LIBS"
12513 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12514 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12515 if test "${ac_cv_search_dlopen+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 ac_func_search_save_LIBS=$LIBS
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12526 /* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
12541 for ac_lib in '' dl; do
12542 if test -z "$ac_lib"; then
12543 ac_res="none required"
12546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_link") 2>conftest.er1
12557 grep -v '^ *+' conftest.er1 >conftest.err
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } &&
12562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12563 { (case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_try") 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; } &&
12572 { ac_try='test -s conftest$ac_exeext'
12573 { (case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_try") 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 ac_cv_search_dlopen=$ac_res
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12590 rm -f core conftest.err conftest.$ac_objext \
12592 if test "${ac_cv_search_dlopen+set}" = set; then
12596 if test "${ac_cv_search_dlopen+set}" = set; then
12599 ac_cv_search_dlopen=no
12601 rm conftest.$ac_ext
12602 LIBS=$ac_func_search_save_LIBS
12604 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12605 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12606 ac_res=$ac_cv_search_dlopen
12607 if test "$ac_res" != no; then
12608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12610 cat >>confdefs.h <<\_ACEOF
12611 #define HAVE_DLOPEN 1
12615 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12616 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12620 if test "$llvm_cv_enable_libffi" = "yes" ; then
12621 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12622 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12623 if test "${ac_cv_search_ffi_call+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 ac_func_search_save_LIBS=$LIBS
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12634 /* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12644 return ffi_call ();
12649 for ac_lib in '' ffi; do
12650 if test -z "$ac_lib"; then
12651 ac_res="none required"
12654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12656 rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12665 grep -v '^ *+' conftest.er1 >conftest.err
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 ac_cv_search_ffi_call=$ac_res
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12698 rm -f core conftest.err conftest.$ac_objext \
12700 if test "${ac_cv_search_ffi_call+set}" = set; then
12704 if test "${ac_cv_search_ffi_call+set}" = set; then
12707 ac_cv_search_ffi_call=no
12709 rm conftest.$ac_ext
12710 LIBS=$ac_func_search_save_LIBS
12712 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12713 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12714 ac_res=$ac_cv_search_ffi_call
12715 if test "$ac_res" != no; then
12716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12718 cat >>confdefs.h <<\_ACEOF
12719 #define HAVE_FFI_CALL 1
12723 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12724 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12725 { (exit 1); exit 1; }; }
12730 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12731 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12732 if test "${ac_cv_search_mallinfo+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 ac_func_search_save_LIBS=$LIBS
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12743 /* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12753 return mallinfo ();
12758 for ac_lib in '' malloc; do
12759 if test -z "$ac_lib"; then
12760 ac_res="none required"
12763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (ac_try="$ac_link"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_link") 2>conftest.er1
12774 grep -v '^ *+' conftest.er1 >conftest.err
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12780 { (case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_try") 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; } &&
12789 { ac_try='test -s conftest$ac_exeext'
12790 { (case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_try") 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 ac_cv_search_mallinfo=$ac_res
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12807 rm -f core conftest.err conftest.$ac_objext \
12809 if test "${ac_cv_search_mallinfo+set}" = set; then
12813 if test "${ac_cv_search_mallinfo+set}" = set; then
12816 ac_cv_search_mallinfo=no
12818 rm conftest.$ac_ext
12819 LIBS=$ac_func_search_save_LIBS
12821 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12822 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12823 ac_res=$ac_cv_search_mallinfo
12824 if test "$ac_res" != no; then
12825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12827 cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_MALLINFO 1
12834 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12836 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12837 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12838 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-lpthread $LIBS"
12843 cat >conftest.$ac_ext <<_ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12856 char pthread_mutex_init ();
12860 return pthread_mutex_init ();
12865 rm -f conftest.$ac_objext conftest$ac_exeext
12866 if { (ac_try="$ac_link"
12867 case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_link") 2>conftest.er1
12874 grep -v '^ *+' conftest.er1 >conftest.err
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12880 { (case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_try") 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest$ac_exeext'
12890 { (case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_try") 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_cv_lib_pthread_pthread_mutex_init=yes
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 ac_cv_lib_pthread_pthread_mutex_init=no
12907 rm -f core conftest.err conftest.$ac_objext \
12908 conftest$ac_exeext conftest.$ac_ext
12909 LIBS=$ac_check_lib_save_LIBS
12911 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12912 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12913 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12914 cat >>confdefs.h <<_ACEOF
12915 #define HAVE_LIBPTHREAD 1
12918 LIBS="-lpthread $LIBS"
12922 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12923 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12924 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 ac_func_search_save_LIBS=$LIBS
12928 cat >conftest.$ac_ext <<_ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12935 /* Override any GCC internal prototype to avoid an error.
12936 Use char because int might match the return type of a GCC
12937 builtin and then its argument prototype would still apply. */
12941 char pthread_mutex_lock ();
12945 return pthread_mutex_lock ();
12950 for ac_lib in '' pthread; do
12951 if test -z "$ac_lib"; then
12952 ac_res="none required"
12955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12957 rm -f conftest.$ac_objext conftest$ac_exeext
12958 if { (ac_try="$ac_link"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_link") 2>conftest.er1
12966 grep -v '^ *+' conftest.er1 >conftest.err
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12972 { (case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_try") 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest$ac_exeext'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_search_pthread_mutex_lock=$ac_res
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12999 rm -f core conftest.err conftest.$ac_objext \
13001 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13005 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13008 ac_cv_search_pthread_mutex_lock=no
13010 rm conftest.$ac_ext
13011 LIBS=$ac_func_search_save_LIBS
13013 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13014 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13015 ac_res=$ac_cv_search_pthread_mutex_lock
13016 if test "$ac_res" != no; then
13017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13019 cat >>confdefs.h <<\_ACEOF
13020 #define HAVE_PTHREAD_MUTEX_LOCK 1
13025 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13026 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13027 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 ac_func_search_save_LIBS=$LIBS
13031 cat >conftest.$ac_ext <<_ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13038 /* Override any GCC internal prototype to avoid an error.
13039 Use char because int might match the return type of a GCC
13040 builtin and then its argument prototype would still apply. */
13044 char pthread_rwlock_init ();
13048 return pthread_rwlock_init ();
13053 for ac_lib in '' pthread; do
13054 if test -z "$ac_lib"; then
13055 ac_res="none required"
13058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_link") 2>conftest.er1
13069 grep -v '^ *+' conftest.er1 >conftest.err
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075 { (case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_try") 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest$ac_exeext'
13085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; }; then
13094 ac_cv_search_pthread_rwlock_init=$ac_res
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13102 rm -f core conftest.err conftest.$ac_objext \
13104 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13108 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13111 ac_cv_search_pthread_rwlock_init=no
13113 rm conftest.$ac_ext
13114 LIBS=$ac_func_search_save_LIBS
13116 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13117 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13118 ac_res=$ac_cv_search_pthread_rwlock_init
13119 if test "$ac_res" != no; then
13120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_PTHREAD_RWLOCK_INIT 1
13128 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13129 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13130 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 ac_func_search_save_LIBS=$LIBS
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13141 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13147 char pthread_getspecific ();
13151 return pthread_getspecific ();
13156 for ac_lib in '' pthread; do
13157 if test -z "$ac_lib"; then
13158 ac_res="none required"
13161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13163 rm -f conftest.$ac_objext conftest$ac_exeext
13164 if { (ac_try="$ac_link"
13165 case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_link") 2>conftest.er1
13172 grep -v '^ *+' conftest.er1 >conftest.err
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } &&
13177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13178 { (case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_try") 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try='test -s conftest$ac_exeext'
13188 { (case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_try") 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
13197 ac_cv_search_pthread_getspecific=$ac_res
13199 echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13205 rm -f core conftest.err conftest.$ac_objext \
13207 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13211 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13214 ac_cv_search_pthread_getspecific=no
13216 rm conftest.$ac_ext
13217 LIBS=$ac_func_search_save_LIBS
13219 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13220 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13221 ac_res=$ac_cv_search_pthread_getspecific
13222 if test "$ac_res" != no; then
13223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13225 cat >>confdefs.h <<\_ACEOF
13226 #define HAVE_PTHREAD_GETSPECIFIC 1
13234 # Check whether --with-udis86 was given.
13235 if test "${with_udis86+set}" = set; then
13236 withval=$with_udis86;
13241 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13244 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13245 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13246 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-ludis86 $LIBS"
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13273 rm -f conftest.$ac_objext conftest$ac_exeext
13274 if { (ac_try="$ac_link"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_link") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_try") 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest$ac_exeext'
13298 { (case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_lib_udis86_ud_init=yes
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_cv_lib_udis86_ud_init=no
13315 rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317 LIBS=$ac_check_lib_save_LIBS
13319 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13320 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13321 if test $ac_cv_lib_udis86_ud_init = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define HAVE_LIBUDIS86 1
13326 LIBS="-ludis86 $LIBS"
13330 echo "Error! You need to have libudis86 around."
13342 cat >>confdefs.h <<_ACEOF
13343 #define USE_UDIS86 $USE_UDIS86
13348 # Check whether --with-oprofile was given.
13349 if test "${with_oprofile+set}" = set; then
13350 withval=$with_oprofile;
13354 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13355 no) llvm_cv_oppath=
13358 *) llvm_cv_oppath="${withval}/lib/oprofile"
13359 CPPFLAGS="-I${withval}/include";;
13361 if test -n "$llvm_cv_oppath" ; then
13362 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13363 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13364 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13365 if test "${ac_cv_search_bfd_init+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 ac_func_search_save_LIBS=$LIBS
13369 cat >conftest.$ac_ext <<_ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13376 /* Override any GCC internal prototype to avoid an error.
13377 Use char because int might match the return type of a GCC
13378 builtin and then its argument prototype would still apply. */
13386 return bfd_init ();
13391 for ac_lib in '' bfd; do
13392 if test -z "$ac_lib"; then
13393 ac_res="none required"
13396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13398 rm -f conftest.$ac_objext conftest$ac_exeext
13399 if { (ac_try="$ac_link"
13400 case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_link") 2>conftest.er1
13407 grep -v '^ *+' conftest.er1 >conftest.err
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest$ac_exeext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_cv_search_bfd_init=$ac_res
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13440 rm -f core conftest.err conftest.$ac_objext \
13442 if test "${ac_cv_search_bfd_init+set}" = set; then
13446 if test "${ac_cv_search_bfd_init+set}" = set; then
13449 ac_cv_search_bfd_init=no
13451 rm conftest.$ac_ext
13452 LIBS=$ac_func_search_save_LIBS
13454 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13455 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13456 ac_res=$ac_cv_search_bfd_init
13457 if test "$ac_res" != no; then
13458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13462 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13463 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13464 if test "${ac_cv_search_op_open_agent+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 ac_func_search_save_LIBS=$LIBS
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13475 /* Override any GCC internal prototype to avoid an error.
13476 Use char because int might match the return type of a GCC
13477 builtin and then its argument prototype would still apply. */
13481 char op_open_agent ();
13485 return op_open_agent ();
13490 for ac_lib in '' opagent; do
13491 if test -z "$ac_lib"; then
13492 ac_res="none required"
13495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13497 rm -f conftest.$ac_objext conftest$ac_exeext
13498 if { (ac_try="$ac_link"
13499 case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_link") 2>conftest.er1
13506 grep -v '^ *+' conftest.er1 >conftest.err
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_try") 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest$ac_exeext'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_cv_search_op_open_agent=$ac_res
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13539 rm -f core conftest.err conftest.$ac_objext \
13541 if test "${ac_cv_search_op_open_agent+set}" = set; then
13545 if test "${ac_cv_search_op_open_agent+set}" = set; then
13548 ac_cv_search_op_open_agent=no
13550 rm conftest.$ac_ext
13551 LIBS=$ac_func_search_save_LIBS
13553 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13554 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13555 ac_res=$ac_cv_search_op_open_agent
13556 if test "$ac_res" != no; then
13557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13561 echo "Error! You need to have libopagent around."
13566 if test "${ac_cv_header_opagent_h+set}" = set; then
13567 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13568 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13569 if test "${ac_cv_header_opagent_h+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13573 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13575 # Is the header compilable?
13576 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13577 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13578 cat >conftest.$ac_ext <<_ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13584 $ac_includes_default
13585 #include <opagent.h>
13587 rm -f conftest.$ac_objext
13588 if { (ac_try="$ac_compile"
13589 case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_compile") 2>conftest.er1
13596 grep -v '^ *+' conftest.er1 >conftest.err
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13602 { (case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_try") 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest.$ac_objext'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 ac_header_compiler=yes
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 ac_header_compiler=no
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13631 echo "${ECHO_T}$ac_header_compiler" >&6; }
13633 # Is the header present?
13634 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13635 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13636 cat >conftest.$ac_ext <<_ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 #include <opagent.h>
13644 if { (ac_try="$ac_cpp conftest.$ac_ext"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } >/dev/null; then
13657 if test -s conftest.err; then
13658 ac_cpp_err=$ac_c_preproc_warn_flag
13659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13666 if test -z "$ac_cpp_err"; then
13667 ac_header_preproc=yes
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13672 ac_header_preproc=no
13675 rm -f conftest.err conftest.$ac_ext
13676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13677 echo "${ECHO_T}$ac_header_preproc" >&6; }
13679 # So? What about this header?
13680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13682 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13683 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13685 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13686 ac_header_preproc=yes
13689 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13690 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13692 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13694 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13696 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13698 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13700 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13702 ## ----------------------------------- ##
13703 ## Report this to llvmbugs@cs.uiuc.edu ##
13704 ## ----------------------------------- ##
13706 ) | sed "s/^/$as_me: WARNING: /" >&2
13709 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13710 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13711 if test "${ac_cv_header_opagent_h+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 ac_cv_header_opagent_h=$ac_header_preproc
13716 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13717 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13720 if test $ac_cv_header_opagent_h = yes; then
13724 echo "Error! You need to have opagent.h around."
13740 cat >>confdefs.h <<_ACEOF
13741 #define USE_OPROFILE $USE_OPROFILE
13751 ac_header_dirent=no
13752 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13753 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13754 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13755 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 #include <sys/types.h>
13777 rm -f conftest.$ac_objext
13778 if { (ac_try="$ac_compile"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_compile") 2>conftest.er1
13786 grep -v '^ *+' conftest.er1 >conftest.err
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } &&
13791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13792 { (case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_try") 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; } &&
13801 { ac_try='test -s conftest.$ac_objext'
13802 { (case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_try") 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 eval "$as_ac_Header=yes"
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13816 eval "$as_ac_Header=no"
13819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821 ac_res=`eval echo '${'$as_ac_Header'}'`
13822 { echo "$as_me:$LINENO: result: $ac_res" >&5
13823 echo "${ECHO_T}$ac_res" >&6; }
13824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13825 cat >>confdefs.h <<_ACEOF
13826 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13829 ac_header_dirent=$ac_hdr; break
13833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13834 if test $ac_header_dirent = dirent.h; then
13835 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13837 if test "${ac_cv_search_opendir+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 ac_func_search_save_LIBS=$LIBS
13841 cat >conftest.$ac_ext <<_ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13863 for ac_lib in '' dir; do
13864 if test -z "$ac_lib"; then
13865 ac_res="none required"
13868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_link") 2>conftest.er1
13879 grep -v '^ *+' conftest.er1 >conftest.err
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13885 { (case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_try") 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest$ac_exeext'
13895 { (case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_try") 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
13904 ac_cv_search_opendir=$ac_res
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13912 rm -f core conftest.err conftest.$ac_objext \
13914 if test "${ac_cv_search_opendir+set}" = set; then
13918 if test "${ac_cv_search_opendir+set}" = set; then
13921 ac_cv_search_opendir=no
13923 rm conftest.$ac_ext
13924 LIBS=$ac_func_search_save_LIBS
13926 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13927 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13928 ac_res=$ac_cv_search_opendir
13929 if test "$ac_res" != no; then
13930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13935 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13936 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13937 if test "${ac_cv_search_opendir+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 ac_func_search_save_LIBS=$LIBS
13941 cat >conftest.$ac_ext <<_ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13948 /* Override any GCC internal prototype to avoid an error.
13949 Use char because int might match the return type of a GCC
13950 builtin and then its argument prototype would still apply. */
13963 for ac_lib in '' x; do
13964 if test -z "$ac_lib"; then
13965 ac_res="none required"
13968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13970 rm -f conftest.$ac_objext conftest$ac_exeext
13971 if { (ac_try="$ac_link"
13972 case "(($ac_try" in
13973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974 *) ac_try_echo=$ac_try;;
13976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13977 (eval "$ac_link") 2>conftest.er1
13979 grep -v '^ *+' conftest.er1 >conftest.err
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
13984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13985 { (case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_try") 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; } &&
13994 { ac_try='test -s conftest$ac_exeext'
13995 { (case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_try") 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14004 ac_cv_search_opendir=$ac_res
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14012 rm -f core conftest.err conftest.$ac_objext \
14014 if test "${ac_cv_search_opendir+set}" = set; then
14018 if test "${ac_cv_search_opendir+set}" = set; then
14021 ac_cv_search_opendir=no
14023 rm conftest.$ac_ext
14024 LIBS=$ac_func_search_save_LIBS
14026 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14027 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14028 ac_res=$ac_cv_search_opendir
14029 if test "$ac_res" != no; then
14030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14036 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14037 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14038 if test "${ac_cv_header_mmap_anon+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 ac_cpp='$CPP $CPPFLAGS'
14043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14047 cat >conftest.$ac_ext <<_ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 #include <sys/mman.h>
14054 #include <unistd.h>
14059 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14064 rm -f conftest.$ac_objext
14065 if { (ac_try="$ac_compile"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_compile") 2>conftest.er1
14073 grep -v '^ *+' conftest.er1 >conftest.err
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
14078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14079 { (case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_try") 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest.$ac_objext'
14089 { (case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_try") 2>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14098 ac_cv_header_mmap_anon=yes
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14103 ac_cv_header_mmap_anon=no
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14108 ac_cpp='$CPP $CPPFLAGS'
14109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14115 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14116 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14117 if test "$ac_cv_header_mmap_anon" = yes; then
14119 cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_MMAP_ANONYMOUS 1
14125 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14126 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14127 if test "${ac_cv_header_stat_broken+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 cat >conftest.$ac_ext <<_ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 #include <sys/types.h>
14137 #include <sys/stat.h>
14139 #if defined S_ISBLK && defined S_IFDIR
14140 # if S_ISBLK (S_IFDIR)
14145 #if defined S_ISBLK && defined S_IFCHR
14146 # if S_ISBLK (S_IFCHR)
14151 #if defined S_ISLNK && defined S_IFREG
14152 # if S_ISLNK (S_IFREG)
14157 #if defined S_ISSOCK && defined S_IFREG
14158 # if S_ISSOCK (S_IFREG)
14164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14165 $EGREP "You lose" >/dev/null 2>&1; then
14166 ac_cv_header_stat_broken=yes
14168 ac_cv_header_stat_broken=no
14173 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14174 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14175 if test $ac_cv_header_stat_broken = yes; then
14177 cat >>confdefs.h <<\_ACEOF
14178 #define STAT_MACROS_BROKEN 1
14183 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14184 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14185 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14188 cat >conftest.$ac_ext <<_ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 #include <sys/types.h>
14195 #include <sys/wait.h>
14196 #ifndef WEXITSTATUS
14197 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14200 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14208 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14213 rm -f conftest.$ac_objext
14214 if { (ac_try="$ac_compile"
14215 case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_compile") 2>conftest.er1
14222 grep -v '^ *+' conftest.er1 >conftest.err
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
14227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_try") 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 ac_cv_header_sys_wait_h=yes
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_cv_header_sys_wait_h=no
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14258 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14259 if test $ac_cv_header_sys_wait_h = yes; then
14261 cat >>confdefs.h <<\_ACEOF
14262 #define HAVE_SYS_WAIT_H 1
14267 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14268 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14269 if test "${ac_cv_header_time+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 cat >conftest.$ac_ext <<_ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 #include <sys/types.h>
14279 #include <sys/time.h>
14285 if ((struct tm *) 0)
14291 rm -f conftest.$ac_objext
14292 if { (ac_try="$ac_compile"
14293 case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_compile") 2>conftest.er1
14300 grep -v '^ *+' conftest.er1 >conftest.err
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14306 { (case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_try") 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest.$ac_objext'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325 ac_cv_header_time=yes
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ac_cv_header_time=no
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14336 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14337 if test $ac_cv_header_time = yes; then
14339 cat >>confdefs.h <<\_ACEOF
14340 #define TIME_WITH_SYS_TIME 1
14352 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 ac_res=`eval echo '${'$as_ac_Header'}'`
14362 { echo "$as_me:$LINENO: result: $ac_res" >&5
14363 echo "${ECHO_T}$ac_res" >&6; }
14365 # Is the header compilable?
14366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14368 cat >conftest.$ac_ext <<_ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 $ac_includes_default
14375 #include <$ac_header>
14377 rm -f conftest.$ac_objext
14378 if { (ac_try="$ac_compile"
14379 case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_compile") 2>conftest.er1
14386 grep -v '^ *+' conftest.er1 >conftest.err
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392 { (case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_try") 2>&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; } &&
14401 { ac_try='test -s conftest.$ac_objext'
14402 { (case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_try") 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14411 ac_header_compiler=yes
14413 echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14416 ac_header_compiler=no
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14421 echo "${ECHO_T}$ac_header_compiler" >&6; }
14423 # Is the header present?
14424 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14426 cat >conftest.$ac_ext <<_ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14432 #include <$ac_header>
14434 if { (ac_try="$ac_cpp conftest.$ac_ext"
14435 case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14442 grep -v '^ *+' conftest.er1 >conftest.err
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } >/dev/null; then
14447 if test -s conftest.err; then
14448 ac_cpp_err=$ac_c_preproc_warn_flag
14449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14456 if test -z "$ac_cpp_err"; then
14457 ac_header_preproc=yes
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 ac_header_preproc=no
14465 rm -f conftest.err conftest.$ac_ext
14466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14467 echo "${ECHO_T}$ac_header_preproc" >&6; }
14469 # So? What about this header?
14470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14476 ac_header_preproc=yes
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14492 ## ----------------------------------- ##
14493 ## Report this to llvmbugs@cs.uiuc.edu ##
14494 ## ----------------------------------- ##
14496 ) | sed "s/^/$as_me: WARNING: /" >&2
14499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 eval "$as_ac_Header=\$ac_header_preproc"
14506 ac_res=`eval echo '${'$as_ac_Header'}'`
14507 { echo "$as_me:$LINENO: result: $ac_res" >&5
14508 echo "${ECHO_T}$ac_res" >&6; }
14511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14512 cat >>confdefs.h <<_ACEOF
14513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14526 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14535 ac_res=`eval echo '${'$as_ac_Header'}'`
14536 { echo "$as_me:$LINENO: result: $ac_res" >&5
14537 echo "${ECHO_T}$ac_res" >&6; }
14539 # Is the header compilable?
14540 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 $ac_includes_default
14549 #include <$ac_header>
14551 rm -f conftest.$ac_objext
14552 if { (ac_try="$ac_compile"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_compile") 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
14565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14566 { (case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_try") 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest.$ac_objext'
14576 { (case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_try") 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; }; then
14585 ac_header_compiler=yes
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 ac_header_compiler=no
14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14595 echo "${ECHO_T}$ac_header_compiler" >&6; }
14597 # Is the header present?
14598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14600 cat >conftest.$ac_ext <<_ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 #include <$ac_header>
14608 if { (ac_try="$ac_cpp conftest.$ac_ext"
14609 case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14616 grep -v '^ *+' conftest.er1 >conftest.err
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } >/dev/null; then
14621 if test -s conftest.err; then
14622 ac_cpp_err=$ac_c_preproc_warn_flag
14623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14630 if test -z "$ac_cpp_err"; then
14631 ac_header_preproc=yes
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14636 ac_header_preproc=no
14639 rm -f conftest.err conftest.$ac_ext
14640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14641 echo "${ECHO_T}$ac_header_preproc" >&6; }
14643 # So? What about this header?
14644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14650 ac_header_preproc=yes
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14666 ## ----------------------------------- ##
14667 ## Report this to llvmbugs@cs.uiuc.edu ##
14668 ## ----------------------------------- ##
14670 ) | sed "s/^/$as_me: WARNING: /" >&2
14673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 eval "$as_ac_Header=\$ac_header_preproc"
14680 ac_res=`eval echo '${'$as_ac_Header'}'`
14681 { echo "$as_me:$LINENO: result: $ac_res" >&5
14682 echo "${ECHO_T}$ac_res" >&6; }
14685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14686 cat >>confdefs.h <<_ACEOF
14687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14696 for ac_header in utime.h windows.h
14698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 ac_res=`eval echo '${'$as_ac_Header'}'`
14706 { echo "$as_me:$LINENO: result: $ac_res" >&5
14707 echo "${ECHO_T}$ac_res" >&6; }
14709 # Is the header compilable?
14710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14712 cat >conftest.$ac_ext <<_ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h. */
14718 $ac_includes_default
14719 #include <$ac_header>
14721 rm -f conftest.$ac_objext
14722 if { (ac_try="$ac_compile"
14723 case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728 (eval "$ac_compile") 2>conftest.er1
14730 grep -v '^ *+' conftest.er1 >conftest.err
14732 cat conftest.err >&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14736 { (case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_try") 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_try") 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 ac_header_compiler=yes
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14760 ac_header_compiler=no
14763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14765 echo "${ECHO_T}$ac_header_compiler" >&6; }
14767 # Is the header present?
14768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14770 cat >conftest.$ac_ext <<_ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 #include <$ac_header>
14778 if { (ac_try="$ac_cpp conftest.$ac_ext"
14779 case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14786 grep -v '^ *+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } >/dev/null; then
14791 if test -s conftest.err; then
14792 ac_cpp_err=$ac_c_preproc_warn_flag
14793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14800 if test -z "$ac_cpp_err"; then
14801 ac_header_preproc=yes
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 ac_header_preproc=no
14809 rm -f conftest.err conftest.$ac_ext
14810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14811 echo "${ECHO_T}$ac_header_preproc" >&6; }
14813 # So? What about this header?
14814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14820 ac_header_preproc=yes
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14836 ## ----------------------------------- ##
14837 ## Report this to llvmbugs@cs.uiuc.edu ##
14838 ## ----------------------------------- ##
14840 ) | sed "s/^/$as_me: WARNING: /" >&2
14843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 eval "$as_ac_Header=\$ac_header_preproc"
14850 ac_res=`eval echo '${'$as_ac_Header'}'`
14851 { echo "$as_me:$LINENO: result: $ac_res" >&5
14852 echo "${ECHO_T}$ac_res" >&6; }
14855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14869 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 ac_res=`eval echo '${'$as_ac_Header'}'`
14879 { echo "$as_me:$LINENO: result: $ac_res" >&5
14880 echo "${ECHO_T}$ac_res" >&6; }
14882 # Is the header compilable?
14883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14891 $ac_includes_default
14892 #include <$ac_header>
14894 rm -f conftest.$ac_objext
14895 if { (ac_try="$ac_compile"
14896 case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_compile") 2>conftest.er1
14903 grep -v '^ *+' conftest.er1 >conftest.err
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } &&
14908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14909 { (case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_try") 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_try") 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_header_compiler=yes
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 ac_header_compiler=no
14936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14938 echo "${ECHO_T}$ac_header_compiler" >&6; }
14940 # Is the header present?
14941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14943 cat >conftest.$ac_ext <<_ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 #include <$ac_header>
14951 if { (ac_try="$ac_cpp conftest.$ac_ext"
14952 case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14959 grep -v '^ *+' conftest.er1 >conftest.err
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } >/dev/null; then
14964 if test -s conftest.err; then
14965 ac_cpp_err=$ac_c_preproc_warn_flag
14966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14973 if test -z "$ac_cpp_err"; then
14974 ac_header_preproc=yes
14976 echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14979 ac_header_preproc=no
14982 rm -f conftest.err conftest.$ac_ext
14983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14984 echo "${ECHO_T}$ac_header_preproc" >&6; }
14986 # So? What about this header?
14987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14993 ac_header_preproc=yes
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15009 ## ----------------------------------- ##
15010 ## Report this to llvmbugs@cs.uiuc.edu ##
15011 ## ----------------------------------- ##
15013 ) | sed "s/^/$as_me: WARNING: /" >&2
15016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15019 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 eval "$as_ac_Header=\$ac_header_preproc"
15023 ac_res=`eval echo '${'$as_ac_Header'}'`
15024 { echo "$as_me:$LINENO: result: $ac_res" >&5
15025 echo "${ECHO_T}$ac_res" >&6; }
15028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15029 cat >>confdefs.h <<_ACEOF
15030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15041 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 ac_res=`eval echo '${'$as_ac_Header'}'`
15051 { echo "$as_me:$LINENO: result: $ac_res" >&5
15052 echo "${ECHO_T}$ac_res" >&6; }
15054 # Is the header compilable?
15055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15057 cat >conftest.$ac_ext <<_ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15063 $ac_includes_default
15064 #include <$ac_header>
15066 rm -f conftest.$ac_objext
15067 if { (ac_try="$ac_compile"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_compile") 2>conftest.er1
15075 grep -v '^ *+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest.$ac_objext'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_header_compiler=yes
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_header_compiler=no
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15110 echo "${ECHO_T}$ac_header_compiler" >&6; }
15112 # Is the header present?
15113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <$ac_header>
15123 if { (ac_try="$ac_cpp conftest.$ac_ext"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15131 grep -v '^ *+' conftest.er1 >conftest.err
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } >/dev/null; then
15136 if test -s conftest.err; then
15137 ac_cpp_err=$ac_c_preproc_warn_flag
15138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15145 if test -z "$ac_cpp_err"; then
15146 ac_header_preproc=yes
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ac_header_preproc=no
15154 rm -f conftest.err conftest.$ac_ext
15155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15156 echo "${ECHO_T}$ac_header_preproc" >&6; }
15158 # So? What about this header?
15159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15165 ac_header_preproc=yes
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15181 ## ----------------------------------- ##
15182 ## Report this to llvmbugs@cs.uiuc.edu ##
15183 ## ----------------------------------- ##
15185 ) | sed "s/^/$as_me: WARNING: /" >&2
15188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 eval "$as_ac_Header=\$ac_header_preproc"
15195 ac_res=`eval echo '${'$as_ac_Header'}'`
15196 { echo "$as_me:$LINENO: result: $ac_res" >&5
15197 echo "${ECHO_T}$ac_res" >&6; }
15200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15201 cat >>confdefs.h <<_ACEOF
15202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15210 for ac_header in valgrind/valgrind.h
15212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 ac_res=`eval echo '${'$as_ac_Header'}'`
15220 { echo "$as_me:$LINENO: result: $ac_res" >&5
15221 echo "${ECHO_T}$ac_res" >&6; }
15223 # Is the header compilable?
15224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15226 cat >conftest.$ac_ext <<_ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 $ac_includes_default
15233 #include <$ac_header>
15235 rm -f conftest.$ac_objext
15236 if { (ac_try="$ac_compile"
15237 case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_compile") 2>conftest.er1
15244 grep -v '^ *+' conftest.er1 >conftest.err
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; } &&
15259 { ac_try='test -s conftest.$ac_objext'
15260 { (case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_try") 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_header_compiler=yes
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_header_compiler=no
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 echo "${ECHO_T}$ac_header_compiler" >&6; }
15281 # Is the header present?
15282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15284 cat >conftest.$ac_ext <<_ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <$ac_header>
15292 if { (ac_try="$ac_cpp conftest.$ac_ext"
15293 case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15300 grep -v '^ *+' conftest.er1 >conftest.err
15302 cat conftest.err >&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } >/dev/null; then
15305 if test -s conftest.err; then
15306 ac_cpp_err=$ac_c_preproc_warn_flag
15307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15314 if test -z "$ac_cpp_err"; then
15315 ac_header_preproc=yes
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15320 ac_header_preproc=no
15323 rm -f conftest.err conftest.$ac_ext
15324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15325 echo "${ECHO_T}$ac_header_preproc" >&6; }
15327 # So? What about this header?
15328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15334 ac_header_preproc=yes
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15350 ## ----------------------------------- ##
15351 ## Report this to llvmbugs@cs.uiuc.edu ##
15352 ## ----------------------------------- ##
15354 ) | sed "s/^/$as_me: WARNING: /" >&2
15357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 eval "$as_ac_Header=\$ac_header_preproc"
15364 ac_res=`eval echo '${'$as_ac_Header'}'`
15365 { echo "$as_me:$LINENO: result: $ac_res" >&5
15366 echo "${ECHO_T}$ac_res" >&6; }
15369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379 for ac_header in fenv.h
15381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 ac_res=`eval echo '${'$as_ac_Header'}'`
15389 { echo "$as_me:$LINENO: result: $ac_res" >&5
15390 echo "${ECHO_T}$ac_res" >&6; }
15392 # Is the header compilable?
15393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15395 cat >conftest.$ac_ext <<_ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15401 $ac_includes_default
15402 #include <$ac_header>
15404 rm -f conftest.$ac_objext
15405 if { (ac_try="$ac_compile"
15406 case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_compile") 2>conftest.er1
15413 grep -v '^ *+' conftest.er1 >conftest.err
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15419 { (case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_try") 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; } &&
15428 { ac_try='test -s conftest.$ac_objext'
15429 { (case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_try") 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 ac_header_compiler=yes
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15443 ac_header_compiler=no
15446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15448 echo "${ECHO_T}$ac_header_compiler" >&6; }
15450 # Is the header present?
15451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15453 cat >conftest.$ac_ext <<_ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 #include <$ac_header>
15461 if { (ac_try="$ac_cpp conftest.$ac_ext"
15462 case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15469 grep -v '^ *+' conftest.er1 >conftest.err
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } >/dev/null; then
15474 if test -s conftest.err; then
15475 ac_cpp_err=$ac_c_preproc_warn_flag
15476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15483 if test -z "$ac_cpp_err"; then
15484 ac_header_preproc=yes
15486 echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15489 ac_header_preproc=no
15492 rm -f conftest.err conftest.$ac_ext
15493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15494 echo "${ECHO_T}$ac_header_preproc" >&6; }
15496 # So? What about this header?
15497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15503 ac_header_preproc=yes
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15519 ## ----------------------------------- ##
15520 ## Report this to llvmbugs@cs.uiuc.edu ##
15521 ## ----------------------------------- ##
15523 ) | sed "s/^/$as_me: WARNING: /" >&2
15526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 eval "$as_ac_Header=\$ac_header_preproc"
15533 ac_res=`eval echo '${'$as_ac_Header'}'`
15534 { echo "$as_me:$LINENO: result: $ac_res" >&5
15535 echo "${ECHO_T}$ac_res" >&6; }
15538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15539 cat >>confdefs.h <<_ACEOF
15540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15547 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15549 for ac_header in pthread.h
15551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 ac_res=`eval echo '${'$as_ac_Header'}'`
15559 { echo "$as_me:$LINENO: result: $ac_res" >&5
15560 echo "${ECHO_T}$ac_res" >&6; }
15562 # Is the header compilable?
15563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 $ac_includes_default
15572 #include <$ac_header>
15574 rm -f conftest.$ac_objext
15575 if { (ac_try="$ac_compile"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_compile") 2>conftest.er1
15583 grep -v '^ *+' conftest.er1 >conftest.err
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15589 { (case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_try") 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_header_compiler=yes
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 ac_header_compiler=no
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15618 echo "${ECHO_T}$ac_header_compiler" >&6; }
15620 # Is the header present?
15621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15623 cat >conftest.$ac_ext <<_ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15629 #include <$ac_header>
15631 if { (ac_try="$ac_cpp conftest.$ac_ext"
15632 case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15639 grep -v '^ *+' conftest.er1 >conftest.err
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } >/dev/null; then
15644 if test -s conftest.err; then
15645 ac_cpp_err=$ac_c_preproc_warn_flag
15646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15653 if test -z "$ac_cpp_err"; then
15654 ac_header_preproc=yes
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 ac_header_preproc=no
15662 rm -f conftest.err conftest.$ac_ext
15663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664 echo "${ECHO_T}$ac_header_preproc" >&6; }
15666 # So? What about this header?
15667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15673 ac_header_preproc=yes
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15689 ## ----------------------------------- ##
15690 ## Report this to llvmbugs@cs.uiuc.edu ##
15691 ## ----------------------------------- ##
15693 ) | sed "s/^/$as_me: WARNING: /" >&2
15696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 eval "$as_ac_Header=\$ac_header_preproc"
15703 ac_res=`eval echo '${'$as_ac_Header'}'`
15704 { echo "$as_me:$LINENO: result: $ac_res" >&5
15705 echo "${ECHO_T}$ac_res" >&6; }
15708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15709 cat >>confdefs.h <<_ACEOF
15710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15726 if test "$llvm_cv_enable_libffi" = "yes" ; then
15729 for ac_header in ffi.h ffi/ffi.h
15731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 ac_res=`eval echo '${'$as_ac_Header'}'`
15739 { echo "$as_me:$LINENO: result: $ac_res" >&5
15740 echo "${ECHO_T}$ac_res" >&6; }
15742 # Is the header compilable?
15743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15745 cat >conftest.$ac_ext <<_ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 $ac_includes_default
15752 #include <$ac_header>
15754 rm -f conftest.$ac_objext
15755 if { (ac_try="$ac_compile"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_compile") 2>conftest.er1
15763 grep -v '^ *+' conftest.er1 >conftest.err
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
15768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest.$ac_objext'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_try") 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 ac_header_compiler=yes
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 ac_header_compiler=no
15796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15798 echo "${ECHO_T}$ac_header_compiler" >&6; }
15800 # Is the header present?
15801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 #include <$ac_header>
15811 if { (ac_try="$ac_cpp conftest.$ac_ext"
15812 case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15819 grep -v '^ *+' conftest.er1 >conftest.err
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } >/dev/null; then
15824 if test -s conftest.err; then
15825 ac_cpp_err=$ac_c_preproc_warn_flag
15826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15833 if test -z "$ac_cpp_err"; then
15834 ac_header_preproc=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 ac_header_preproc=no
15842 rm -f conftest.err conftest.$ac_ext
15843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15844 echo "${ECHO_T}$ac_header_preproc" >&6; }
15846 # So? What about this header?
15847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15853 ac_header_preproc=yes
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15869 ## ----------------------------------- ##
15870 ## Report this to llvmbugs@cs.uiuc.edu ##
15871 ## ----------------------------------- ##
15873 ) | sed "s/^/$as_me: WARNING: /" >&2
15876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 eval "$as_ac_Header=\$ac_header_preproc"
15883 ac_res=`eval echo '${'$as_ac_Header'}'`
15884 { echo "$as_me:$LINENO: result: $ac_res" >&5
15885 echo "${ECHO_T}$ac_res" >&6; }
15888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15889 cat >>confdefs.h <<_ACEOF
15890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15900 for ac_header in CrashReporterClient.h
15902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 ac_res=`eval echo '${'$as_ac_Header'}'`
15910 { echo "$as_me:$LINENO: result: $ac_res" >&5
15911 echo "${ECHO_T}$ac_res" >&6; }
15913 # Is the header compilable?
15914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 $ac_includes_default
15923 #include <$ac_header>
15925 rm -f conftest.$ac_objext
15926 if { (ac_try="$ac_compile"
15927 case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_compile") 2>conftest.er1
15934 grep -v '^ *+' conftest.er1 >conftest.err
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
15939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15940 { (case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15945 (eval "$ac_try") 2>&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } &&
15949 { ac_try='test -s conftest.$ac_objext'
15950 { (case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_try") 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 ac_header_compiler=yes
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 ac_header_compiler=no
15967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15969 echo "${ECHO_T}$ac_header_compiler" >&6; }
15971 # Is the header present?
15972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 #include <$ac_header>
15982 if { (ac_try="$ac_cpp conftest.$ac_ext"
15983 case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15990 grep -v '^ *+' conftest.er1 >conftest.err
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } >/dev/null; then
15995 if test -s conftest.err; then
15996 ac_cpp_err=$ac_c_preproc_warn_flag
15997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16004 if test -z "$ac_cpp_err"; then
16005 ac_header_preproc=yes
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_header_preproc=no
16013 rm -f conftest.err conftest.$ac_ext
16014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16015 echo "${ECHO_T}$ac_header_preproc" >&6; }
16017 # So? What about this header?
16018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16024 ac_header_preproc=yes
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16040 ## ----------------------------------- ##
16041 ## Report this to llvmbugs@cs.uiuc.edu ##
16042 ## ----------------------------------- ##
16044 ) | sed "s/^/$as_me: WARNING: /" >&2
16047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 eval "$as_ac_Header=\$ac_header_preproc"
16054 ac_res=`eval echo '${'$as_ac_Header'}'`
16055 { echo "$as_me:$LINENO: result: $ac_res" >&5
16056 echo "${ECHO_T}$ac_res" >&6; }
16059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16060 cat >>confdefs.h <<_ACEOF
16061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16069 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16070 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16071 cat >conftest.$ac_ext <<_ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 extern const char *__crashreporter_info__;
16079 __crashreporter_info__ = "test";
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (ac_try="$ac_link"
16086 case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_link") 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16099 { (case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_try") 2>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest$ac_exeext'
16109 { (case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_try") 2>&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 { echo "$as_me:$LINENO: result: yes" >&5
16119 echo "${ECHO_T}yes" >&6; }
16121 cat >>confdefs.h <<\_ACEOF
16122 #define HAVE_CRASHREPORTER_INFO 1
16126 echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16129 { echo "$as_me:$LINENO: result: no" >&5
16130 echo "${ECHO_T}no" >&6; }
16132 cat >>confdefs.h <<\_ACEOF
16133 #define HAVE_CRASHREPORTER_INFO 0
16138 rm -f core conftest.err conftest.$ac_objext \
16139 conftest$ac_exeext conftest.$ac_ext
16144 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16145 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16146 if test "${ac_cv_huge_val_sanity+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 ac_cpp='$CXXCPP $CPPFLAGS'
16152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16156 ac_save_CXXFLAGS=$CXXFLAGS
16158 if test "$cross_compiling" = yes; then
16159 ac_cv_huge_val_sanity=yes
16161 cat >conftest.$ac_ext <<_ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16171 double x = HUGE_VAL; return x != x;
16176 rm -f conftest$ac_exeext
16177 if { (ac_try="$ac_link"
16178 case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_link") 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; }; then
16196 ac_cv_huge_val_sanity=yes
16198 echo "$as_me: program exited with status $ac_status" >&5
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16202 ( exit $ac_status )
16203 ac_cv_huge_val_sanity=no
16205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16209 CXXFLAGS=$ac_save_CXXFLAGS
16211 ac_cpp='$CPP $CPPFLAGS'
16212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16218 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16219 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16220 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16223 { echo "$as_me:$LINENO: checking for pid_t" >&5
16224 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16225 if test "${ac_cv_type_pid_t+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 $ac_includes_default
16235 typedef pid_t ac__type_new_;
16239 if ((ac__type_new_ *) 0)
16241 if (sizeof (ac__type_new_))
16247 rm -f conftest.$ac_objext
16248 if { (ac_try="$ac_compile"
16249 case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_compile") 2>conftest.er1
16256 grep -v '^ *+' conftest.er1 >conftest.err
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_try") 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_type_pid_t=yes
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 ac_cv_type_pid_t=no
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16291 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16292 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16293 if test $ac_cv_type_pid_t = yes; then
16297 cat >>confdefs.h <<_ACEOF
16303 { echo "$as_me:$LINENO: checking for size_t" >&5
16304 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16305 if test "${ac_cv_type_size_t+set}" = set; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 cat >conftest.$ac_ext <<_ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16314 $ac_includes_default
16315 typedef size_t ac__type_new_;
16319 if ((ac__type_new_ *) 0)
16321 if (sizeof (ac__type_new_))
16327 rm -f conftest.$ac_objext
16328 if { (ac_try="$ac_compile"
16329 case "(($ac_try" in
16330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331 *) ac_try_echo=$ac_try;;
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334 (eval "$ac_compile") 2>conftest.er1
16336 grep -v '^ *+' conftest.er1 >conftest.err
16338 cat conftest.err >&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16342 { (case "(($ac_try" in
16343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344 *) ac_try_echo=$ac_try;;
16346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16347 (eval "$ac_try") 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest.$ac_objext'
16352 { (case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_try") 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
16361 ac_cv_type_size_t=yes
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16366 ac_cv_type_size_t=no
16369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16372 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16373 if test $ac_cv_type_size_t = yes; then
16377 cat >>confdefs.h <<_ACEOF
16378 #define size_t unsigned int
16384 cat >>confdefs.h <<_ACEOF
16385 #define RETSIGTYPE void
16388 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16389 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16390 if test "${ac_cv_struct_tm+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 #include <sys/types.h>
16405 struct tm *tp; tp->tm_sec;
16410 rm -f conftest.$ac_objext
16411 if { (ac_try="$ac_compile"
16412 case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_compile") 2>conftest.er1
16419 grep -v '^ *+' conftest.er1 >conftest.err
16421 cat conftest.err >&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } &&
16424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16425 { (case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_try") 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; } &&
16434 { ac_try='test -s conftest.$ac_objext'
16435 { (case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_try") 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16444 ac_cv_struct_tm=time.h
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 ac_cv_struct_tm=sys/time.h
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16455 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16456 if test $ac_cv_struct_tm = sys/time.h; then
16458 cat >>confdefs.h <<\_ACEOF
16459 #define TM_IN_SYS_TIME 1
16464 { echo "$as_me:$LINENO: checking for int64_t" >&5
16465 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16466 if test "${ac_cv_type_int64_t+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 cat >conftest.$ac_ext <<_ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 $ac_includes_default
16476 typedef int64_t ac__type_new_;
16480 if ((ac__type_new_ *) 0)
16482 if (sizeof (ac__type_new_))
16488 rm -f conftest.$ac_objext
16489 if { (ac_try="$ac_compile"
16490 case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_compile") 2>conftest.er1
16497 grep -v '^ *+' conftest.er1 >conftest.err
16499 cat conftest.err >&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } &&
16502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16503 { (case "(($ac_try" in
16504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505 *) ac_try_echo=$ac_try;;
16507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508 (eval "$ac_try") 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; } &&
16512 { ac_try='test -s conftest.$ac_objext'
16513 { (case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_try") 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16522 ac_cv_type_int64_t=yes
16524 echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16527 ac_cv_type_int64_t=no
16530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16533 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16534 if test $ac_cv_type_int64_t = yes; then
16536 cat >>confdefs.h <<_ACEOF
16537 #define HAVE_INT64_T 1
16542 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16543 echo "$as_me: error: Type int64_t required but not found" >&2;}
16544 { (exit 1); exit 1; }; }
16547 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16548 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16549 if test "${ac_cv_type_uint64_t+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 $ac_includes_default
16559 typedef uint64_t ac__type_new_;
16563 if ((ac__type_new_ *) 0)
16565 if (sizeof (ac__type_new_))
16571 rm -f conftest.$ac_objext
16572 if { (ac_try="$ac_compile"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_compile") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest.$ac_objext'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_cv_type_uint64_t=yes
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_cv_type_uint64_t=no
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16616 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16617 if test $ac_cv_type_uint64_t = yes; then
16619 cat >>confdefs.h <<_ACEOF
16620 #define HAVE_UINT64_T 1
16625 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16626 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16627 if test "${ac_cv_type_u_int64_t+set}" = set; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 cat >conftest.$ac_ext <<_ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16636 $ac_includes_default
16637 typedef u_int64_t ac__type_new_;
16641 if ((ac__type_new_ *) 0)
16643 if (sizeof (ac__type_new_))
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_compile") 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16664 { (case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_try") 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; } &&
16673 { ac_try='test -s conftest.$ac_objext'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_type_u_int64_t=yes
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 ac_cv_type_u_int64_t=no
16691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16694 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16695 if test $ac_cv_type_u_int64_t = yes; then
16697 cat >>confdefs.h <<_ACEOF
16698 #define HAVE_U_INT64_T 1
16703 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16704 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16705 { (exit 1); exit 1; }; }
16719 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 cat >conftest.$ac_ext <<_ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16735 #define $ac_func innocuous_$ac_func
16737 /* System header to define __stub macros and hopefully few prototypes,
16738 which can conflict with char $ac_func (); below.
16739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16740 <limits.h> exists even on freestanding compilers. */
16743 # include <limits.h>
16745 # include <assert.h>
16750 /* Override any GCC internal prototype to avoid an error.
16751 Use char because int might match the return type of a GCC
16752 builtin and then its argument prototype would still apply. */
16757 /* The GNU C library defines this for functions which it implements
16758 to always fail with ENOSYS. Some functions are actually named
16759 something starting with __ and the normal name is an alias. */
16760 #if defined __stub_$ac_func || defined __stub___$ac_func
16767 return $ac_func ();
16772 rm -f conftest.$ac_objext conftest$ac_exeext
16773 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16781 grep -v '^ *+' conftest.er1 >conftest.err
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16787 { (case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792 (eval "$ac_try") 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; } &&
16796 { ac_try='test -s conftest$ac_exeext'
16797 { (case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_try") 2>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
16806 eval "$as_ac_var=yes"
16808 echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 eval "$as_ac_var=no"
16814 rm -f core conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext conftest.$ac_ext
16817 ac_res=`eval echo '${'$as_ac_var'}'`
16818 { echo "$as_me:$LINENO: result: $ac_res" >&5
16819 echo "${ECHO_T}$ac_res" >&6; }
16820 if test `eval echo '${'$as_ac_var'}'` = yes; then
16821 cat >>confdefs.h <<_ACEOF
16822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16832 for ac_func in powf fmodf strtof round
16834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 cat >conftest.$ac_ext <<_ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h. */
16846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16848 #define $ac_func innocuous_$ac_func
16850 /* System header to define __stub macros and hopefully few prototypes,
16851 which can conflict with char $ac_func (); below.
16852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16853 <limits.h> exists even on freestanding compilers. */
16856 # include <limits.h>
16858 # include <assert.h>
16863 /* Override any GCC internal prototype to avoid an error.
16864 Use char because int might match the return type of a GCC
16865 builtin and then its argument prototype would still apply. */
16870 /* The GNU C library defines this for functions which it implements
16871 to always fail with ENOSYS. Some functions are actually named
16872 something starting with __ and the normal name is an alias. */
16873 #if defined __stub_$ac_func || defined __stub___$ac_func
16880 return $ac_func ();
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (ac_try="$ac_link"
16887 case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_link") 2>conftest.er1
16894 grep -v '^ *+' conftest.er1 >conftest.err
16896 cat conftest.err >&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } &&
16899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try='test -s conftest$ac_exeext'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 eval "$as_ac_var=yes"
16921 echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16924 eval "$as_ac_var=no"
16927 rm -f core conftest.err conftest.$ac_objext \
16928 conftest$ac_exeext conftest.$ac_ext
16930 ac_res=`eval echo '${'$as_ac_var'}'`
16931 { echo "$as_me:$LINENO: result: $ac_res" >&5
16932 echo "${ECHO_T}$ac_res" >&6; }
16933 if test `eval echo '${'$as_ac_var'}'` = yes; then
16934 cat >>confdefs.h <<_ACEOF
16935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16946 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 cat >conftest.$ac_ext <<_ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16962 #define $ac_func innocuous_$ac_func
16964 /* System header to define __stub macros and hopefully few prototypes,
16965 which can conflict with char $ac_func (); below.
16966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967 <limits.h> exists even on freestanding compilers. */
16970 # include <limits.h>
16972 # include <assert.h>
16977 /* Override any GCC internal prototype to avoid an error.
16978 Use char because int might match the return type of a GCC
16979 builtin and then its argument prototype would still apply. */
16984 /* The GNU C library defines this for functions which it implements
16985 to always fail with ENOSYS. Some functions are actually named
16986 something starting with __ and the normal name is an alias. */
16987 #if defined __stub_$ac_func || defined __stub___$ac_func
16994 return $ac_func ();
16999 rm -f conftest.$ac_objext conftest$ac_exeext
17000 if { (ac_try="$ac_link"
17001 case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_link") 2>conftest.er1
17008 grep -v '^ *+' conftest.er1 >conftest.err
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014 { (case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_try") 2>&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_try") 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 eval "$as_ac_var=yes"
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17038 eval "$as_ac_var=no"
17041 rm -f core conftest.err conftest.$ac_objext \
17042 conftest$ac_exeext conftest.$ac_ext
17044 ac_res=`eval echo '${'$as_ac_var'}'`
17045 { echo "$as_me:$LINENO: result: $ac_res" >&5
17046 echo "${ECHO_T}$ac_res" >&6; }
17047 if test `eval echo '${'$as_ac_var'}'` = yes; then
17048 cat >>confdefs.h <<_ACEOF
17049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17058 for ac_func in isatty mkdtemp mkstemp
17060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 cat >conftest.$ac_ext <<_ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17074 #define $ac_func innocuous_$ac_func
17076 /* System header to define __stub macros and hopefully few prototypes,
17077 which can conflict with char $ac_func (); below.
17078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17079 <limits.h> exists even on freestanding compilers. */
17082 # include <limits.h>
17084 # include <assert.h>
17089 /* Override any GCC internal prototype to avoid an error.
17090 Use char because int might match the return type of a GCC
17091 builtin and then its argument prototype would still apply. */
17096 /* The GNU C library defines this for functions which it implements
17097 to always fail with ENOSYS. Some functions are actually named
17098 something starting with __ and the normal name is an alias. */
17099 #if defined __stub_$ac_func || defined __stub___$ac_func
17106 return $ac_func ();
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (ac_try="$ac_link"
17113 case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_link") 2>conftest.er1
17120 grep -v '^ *+' conftest.er1 >conftest.err
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
17125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17126 { (case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_try") 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest$ac_exeext'
17136 { (case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_try") 2>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 eval "$as_ac_var=yes"
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 eval "$as_ac_var=no"
17153 rm -f core conftest.err conftest.$ac_objext \
17154 conftest$ac_exeext conftest.$ac_ext
17156 ac_res=`eval echo '${'$as_ac_var'}'`
17157 { echo "$as_me:$LINENO: result: $ac_res" >&5
17158 echo "${ECHO_T}$ac_res" >&6; }
17159 if test `eval echo '${'$as_ac_var'}'` = yes; then
17160 cat >>confdefs.h <<_ACEOF
17161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17174 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17182 cat >conftest.$ac_ext <<_ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190 #define $ac_func innocuous_$ac_func
17192 /* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char $ac_func (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
17198 # include <limits.h>
17200 # include <assert.h>
17205 /* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17212 /* The GNU C library defines this for functions which it implements
17213 to always fail with ENOSYS. Some functions are actually named
17214 something starting with __ and the normal name is an alias. */
17215 #if defined __stub_$ac_func || defined __stub___$ac_func
17222 return $ac_func ();
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 eval "$as_ac_var=yes"
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 eval "$as_ac_var=no"
17269 rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17272 ac_res=`eval echo '${'$as_ac_var'}'`
17273 { echo "$as_me:$LINENO: result: $ac_res" >&5
17274 echo "${ECHO_T}$ac_res" >&6; }
17275 if test `eval echo '${'$as_ac_var'}'` = yes; then
17276 cat >>confdefs.h <<_ACEOF
17277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17286 for ac_func in strerror strerror_r setenv
17288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17302 #define $ac_func innocuous_$ac_func
17304 /* System header to define __stub macros and hopefully few prototypes,
17305 which can conflict with char $ac_func (); below.
17306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17307 <limits.h> exists even on freestanding compilers. */
17310 # include <limits.h>
17312 # include <assert.h>
17317 /* Override any GCC internal prototype to avoid an error.
17318 Use char because int might match the return type of a GCC
17319 builtin and then its argument prototype would still apply. */
17324 /* The GNU C library defines this for functions which it implements
17325 to always fail with ENOSYS. Some functions are actually named
17326 something starting with __ and the normal name is an alias. */
17327 #if defined __stub_$ac_func || defined __stub___$ac_func
17334 return $ac_func ();
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (ac_try="$ac_link"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_link") 2>conftest.er1
17348 grep -v '^ *+' conftest.er1 >conftest.err
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17354 { (case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_try") 2>&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest$ac_exeext'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17373 eval "$as_ac_var=yes"
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 eval "$as_ac_var=no"
17381 rm -f core conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17384 ac_res=`eval echo '${'$as_ac_var'}'`
17385 { echo "$as_me:$LINENO: result: $ac_res" >&5
17386 echo "${ECHO_T}$ac_res" >&6; }
17387 if test `eval echo '${'$as_ac_var'}'` = yes; then
17388 cat >>confdefs.h <<_ACEOF
17389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17399 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17415 #define $ac_func innocuous_$ac_func
17417 /* System header to define __stub macros and hopefully few prototypes,
17418 which can conflict with char $ac_func (); below.
17419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17420 <limits.h> exists even on freestanding compilers. */
17423 # include <limits.h>
17425 # include <assert.h>
17430 /* Override any GCC internal prototype to avoid an error.
17431 Use char because int might match the return type of a GCC
17432 builtin and then its argument prototype would still apply. */
17437 /* The GNU C library defines this for functions which it implements
17438 to always fail with ENOSYS. Some functions are actually named
17439 something starting with __ and the normal name is an alias. */
17440 #if defined __stub_$ac_func || defined __stub___$ac_func
17447 return $ac_func ();
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (ac_try="$ac_link"
17454 case "(($ac_try" in
17455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456 *) ac_try_echo=$ac_try;;
17458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459 (eval "$ac_link") 2>conftest.er1
17461 grep -v '^ *+' conftest.er1 >conftest.err
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17467 { (case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_try") 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
17477 { (case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17486 eval "$as_ac_var=yes"
17488 echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17491 eval "$as_ac_var=no"
17494 rm -f core conftest.err conftest.$ac_objext \
17495 conftest$ac_exeext conftest.$ac_ext
17497 ac_res=`eval echo '${'$as_ac_var'}'`
17498 { echo "$as_me:$LINENO: result: $ac_res" >&5
17499 echo "${ECHO_T}$ac_res" >&6; }
17500 if test `eval echo '${'$as_ac_var'}'` = yes; then
17501 cat >>confdefs.h <<_ACEOF
17502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17513 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 cat >conftest.$ac_ext <<_ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17529 #define $ac_func innocuous_$ac_func
17531 /* System header to define __stub macros and hopefully few prototypes,
17532 which can conflict with char $ac_func (); below.
17533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534 <limits.h> exists even on freestanding compilers. */
17537 # include <limits.h>
17539 # include <assert.h>
17544 /* Override any GCC internal prototype to avoid an error.
17545 Use char because int might match the return type of a GCC
17546 builtin and then its argument prototype would still apply. */
17551 /* The GNU C library defines this for functions which it implements
17552 to always fail with ENOSYS. Some functions are actually named
17553 something starting with __ and the normal name is an alias. */
17554 #if defined __stub_$ac_func || defined __stub___$ac_func
17561 return $ac_func ();
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17575 grep -v '^ *+' conftest.er1 >conftest.err
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
17580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17581 { (case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_try") 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest$ac_exeext'
17591 { (case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_try") 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 eval "$as_ac_var=yes"
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17605 eval "$as_ac_var=no"
17608 rm -f core conftest.err conftest.$ac_objext \
17609 conftest$ac_exeext conftest.$ac_ext
17611 ac_res=`eval echo '${'$as_ac_var'}'`
17612 { echo "$as_me:$LINENO: result: $ac_res" >&5
17613 echo "${ECHO_T}$ac_res" >&6; }
17614 if test `eval echo '${'$as_ac_var'}'` = yes; then
17615 cat >>confdefs.h <<_ACEOF
17616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17622 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17623 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17624 if test "${llvm_cv_c_printf_a+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 ac_cpp='$CPP $CPPFLAGS'
17629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17633 if test "$cross_compiling" = yes; then
17634 llvmac_cv_c_printf_a=no
17636 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17645 #include <stdlib.h>
17651 volatile double A, B;
17655 sprintf(Buffer, "%a", A);
17659 if (A != 0x1.999999999999ap-4)
17666 rm -f conftest$ac_exeext
17667 if { (ac_try="$ac_link"
17668 case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_link") 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 llvm_cv_c_printf_a=yes
17688 echo "$as_me: program exited with status $ac_status" >&5
17689 echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17692 ( exit $ac_status )
17693 llvmac_cv_c_printf_a=no
17695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17700 ac_cpp='$CPP $CPPFLAGS'
17701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17706 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17707 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17708 if test "$llvm_cv_c_printf_a" = "yes"; then
17710 cat >>confdefs.h <<\_ACEOF
17711 #define HAVE_PRINTF_A 1
17717 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17718 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17719 if test "${ac_cv_func_rand48+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 ac_cpp='$CXXCPP $CPPFLAGS'
17724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17734 #include <stdlib.h>
17738 srand48(0);lrand48();drand48();
17743 rm -f conftest.$ac_objext
17744 if { (ac_try="$ac_compile"
17745 case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_compile") 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17758 { (case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_try") 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest.$ac_objext'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_cv_func_rand48=yes
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 ac_cv_func_rand48=no
17785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17787 ac_cpp='$CPP $CPPFLAGS'
17788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17793 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17794 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17796 if test "$ac_cv_func_rand48" = "yes" ; then
17798 cat >>confdefs.h <<\_ACEOF
17799 #define HAVE_RAND48 1
17805 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17806 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17807 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17810 cat >conftest.$ac_ext <<_ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 $ac_includes_default
17821 char *p = (char *) strerror_s;
17829 rm -f conftest.$ac_objext
17830 if { (ac_try="$ac_compile"
17831 case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_compile") 2>conftest.er1
17838 grep -v '^ *+' conftest.er1 >conftest.err
17840 cat conftest.err >&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } &&
17843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17844 { (case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_try") 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; } &&
17853 { ac_try='test -s conftest.$ac_objext'
17854 { (case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_try") 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 ac_cv_have_decl_strerror_s=yes
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17868 ac_cv_have_decl_strerror_s=no
17871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17874 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17875 if test $ac_cv_have_decl_strerror_s = yes; then
17877 cat >>confdefs.h <<_ACEOF
17878 #define HAVE_DECL_STRERROR_S 1
17883 cat >>confdefs.h <<_ACEOF
17884 #define HAVE_DECL_STRERROR_S 0
17892 if test "$llvm_cv_os_type" = "MingW" ; then
17893 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17894 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17895 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17898 ac_check_lib_save_LIBS=$LIBS
17900 cat >conftest.$ac_ext <<_ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17907 /* Override any GCC internal prototype to avoid an error.
17908 Use char because int might match the return type of a GCC
17909 builtin and then its argument prototype would still apply. */
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (ac_try="$ac_link"
17924 case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_link") 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17937 { (case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_try") 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest$ac_exeext'
17947 { (case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_try") 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 ac_cv_lib_gcc__alloca=yes
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_cv_lib_gcc__alloca=no
17964 rm -f core conftest.err conftest.$ac_objext \
17965 conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17968 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17969 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17970 if test $ac_cv_lib_gcc__alloca = yes; then
17972 cat >>confdefs.h <<\_ACEOF
17973 #define HAVE__ALLOCA 1
17978 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17979 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17980 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 ac_check_lib_save_LIBS=$LIBS
17985 cat >conftest.$ac_ext <<_ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17992 /* Override any GCC internal prototype to avoid an error.
17993 Use char because int might match the return type of a GCC
17994 builtin and then its argument prototype would still apply. */
18002 return __alloca ();
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (ac_try="$ac_link"
18009 case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_link") 2>conftest.er1
18016 grep -v '^ *+' conftest.er1 >conftest.err
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18031 { ac_try='test -s conftest$ac_exeext'
18032 { (case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037 (eval "$ac_try") 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 ac_cv_lib_gcc___alloca=yes
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 ac_cv_lib_gcc___alloca=no
18049 rm -f core conftest.err conftest.$ac_objext \
18050 conftest$ac_exeext conftest.$ac_ext
18051 LIBS=$ac_check_lib_save_LIBS
18053 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18054 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18055 if test $ac_cv_lib_gcc___alloca = yes; then
18057 cat >>confdefs.h <<\_ACEOF
18058 #define HAVE___ALLOCA 1
18063 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18064 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18065 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 ac_check_lib_save_LIBS=$LIBS
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18077 /* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18087 return __chkstk ();
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (ac_try="$ac_link"
18094 case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_link") 2>conftest.er1
18101 grep -v '^ *+' conftest.er1 >conftest.err
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_try") 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest$ac_exeext'
18117 { (case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_try") 2>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18126 ac_cv_lib_gcc___chkstk=yes
18128 echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18131 ac_cv_lib_gcc___chkstk=no
18134 rm -f core conftest.err conftest.$ac_objext \
18135 conftest$ac_exeext conftest.$ac_ext
18136 LIBS=$ac_check_lib_save_LIBS
18138 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18139 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18140 if test $ac_cv_lib_gcc___chkstk = yes; then
18142 cat >>confdefs.h <<\_ACEOF
18143 #define HAVE___CHKSTK 1
18148 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18149 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18150 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 ac_check_lib_save_LIBS=$LIBS
18155 cat >conftest.$ac_ext <<_ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18162 /* Override any GCC internal prototype to avoid an error.
18163 Use char because int might match the return type of a GCC
18164 builtin and then its argument prototype would still apply. */
18172 return ___chkstk ();
18177 rm -f conftest.$ac_objext conftest$ac_exeext
18178 if { (ac_try="$ac_link"
18179 case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_link") 2>conftest.er1
18186 grep -v '^ *+' conftest.er1 >conftest.err
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } &&
18191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18192 { (case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_try") 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest$ac_exeext'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 ac_cv_lib_gcc____chkstk=yes
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 ac_cv_lib_gcc____chkstk=no
18219 rm -f core conftest.err conftest.$ac_objext \
18220 conftest$ac_exeext conftest.$ac_ext
18221 LIBS=$ac_check_lib_save_LIBS
18223 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18224 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18225 if test $ac_cv_lib_gcc____chkstk = yes; then
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE____CHKSTK 1
18234 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18235 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18236 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 ac_check_lib_save_LIBS=$LIBS
18241 cat >conftest.$ac_ext <<_ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h. */
18248 /* Override any GCC internal prototype to avoid an error.
18249 Use char because int might match the return type of a GCC
18250 builtin and then its argument prototype would still apply. */
18258 return __ashldi3 ();
18263 rm -f conftest.$ac_objext conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_link") 2>conftest.er1
18272 grep -v '^ *+' conftest.er1 >conftest.err
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_cv_lib_gcc___ashldi3=yes
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_cv_lib_gcc___ashldi3=no
18305 rm -f core conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18309 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18310 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18311 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18313 cat >>confdefs.h <<\_ACEOF
18314 #define HAVE___ASHLDI3 1
18319 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18320 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18321 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 ac_check_lib_save_LIBS=$LIBS
18326 cat >conftest.$ac_ext <<_ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18333 /* Override any GCC internal prototype to avoid an error.
18334 Use char because int might match the return type of a GCC
18335 builtin and then its argument prototype would still apply. */
18343 return __ashrdi3 ();
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (ac_try="$ac_link"
18350 case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_link") 2>conftest.er1
18357 grep -v '^ *+' conftest.er1 >conftest.err
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18363 { (case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_try") 2>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest$ac_exeext'
18373 { (case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_try") 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_cv_lib_gcc___ashrdi3=yes
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 ac_cv_lib_gcc___ashrdi3=no
18390 rm -f core conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18392 LIBS=$ac_check_lib_save_LIBS
18394 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18395 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18396 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18398 cat >>confdefs.h <<\_ACEOF
18399 #define HAVE___ASHRDI3 1
18404 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18405 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18406 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 ac_check_lib_save_LIBS=$LIBS
18411 cat >conftest.$ac_ext <<_ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18418 /* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18428 return __divdi3 ();
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_link") 2>conftest.er1
18442 grep -v '^ *+' conftest.er1 >conftest.err
18444 cat conftest.err >&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } &&
18447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; } &&
18457 { ac_try='test -s conftest$ac_exeext'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 ac_cv_lib_gcc___divdi3=yes
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 ac_cv_lib_gcc___divdi3=no
18475 rm -f core conftest.err conftest.$ac_objext \
18476 conftest$ac_exeext conftest.$ac_ext
18477 LIBS=$ac_check_lib_save_LIBS
18479 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18480 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18481 if test $ac_cv_lib_gcc___divdi3 = yes; then
18483 cat >>confdefs.h <<\_ACEOF
18484 #define HAVE___DIVDI3 1
18489 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18490 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18491 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18494 ac_check_lib_save_LIBS=$LIBS
18496 cat >conftest.$ac_ext <<_ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18503 /* Override any GCC internal prototype to avoid an error.
18504 Use char because int might match the return type of a GCC
18505 builtin and then its argument prototype would still apply. */
18513 return __fixdfdi ();
18518 rm -f conftest.$ac_objext conftest$ac_exeext
18519 if { (ac_try="$ac_link"
18520 case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_link") 2>conftest.er1
18527 grep -v '^ *+' conftest.er1 >conftest.err
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
18532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18533 { (case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_try") 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try='test -s conftest$ac_exeext'
18543 { (case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_try") 2>&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
18552 ac_cv_lib_gcc___fixdfdi=yes
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18557 ac_cv_lib_gcc___fixdfdi=no
18560 rm -f core conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18562 LIBS=$ac_check_lib_save_LIBS
18564 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18565 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18566 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18568 cat >>confdefs.h <<\_ACEOF
18569 #define HAVE___FIXDFDI 1
18574 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18575 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18576 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 ac_check_lib_save_LIBS=$LIBS
18581 cat >conftest.$ac_ext <<_ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18588 /* Override any GCC internal prototype to avoid an error.
18589 Use char because int might match the return type of a GCC
18590 builtin and then its argument prototype would still apply. */
18598 return __fixsfdi ();
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (ac_try="$ac_link"
18605 case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_link") 2>conftest.er1
18612 grep -v '^ *+' conftest.er1 >conftest.err
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
18617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18618 { (case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_try") 2>&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest$ac_exeext'
18628 { (case "(($ac_try" in
18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630 *) ac_try_echo=$ac_try;;
18632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633 (eval "$ac_try") 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 ac_cv_lib_gcc___fixsfdi=yes
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18642 ac_cv_lib_gcc___fixsfdi=no
18645 rm -f core conftest.err conftest.$ac_objext \
18646 conftest$ac_exeext conftest.$ac_ext
18647 LIBS=$ac_check_lib_save_LIBS
18649 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18650 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18651 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18653 cat >>confdefs.h <<\_ACEOF
18654 #define HAVE___FIXSFDI 1
18659 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18660 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18661 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 ac_check_lib_save_LIBS=$LIBS
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18673 /* Override any GCC internal prototype to avoid an error.
18674 Use char because int might match the return type of a GCC
18675 builtin and then its argument prototype would still apply. */
18679 char __floatdidf ();
18683 return __floatdidf ();
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_link") 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18703 { (case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_try") 2>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; } &&
18712 { ac_try='test -s conftest$ac_exeext'
18713 { (case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_try") 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 ac_cv_lib_gcc___floatdidf=yes
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 ac_cv_lib_gcc___floatdidf=no
18730 rm -f core conftest.err conftest.$ac_objext \
18731 conftest$ac_exeext conftest.$ac_ext
18732 LIBS=$ac_check_lib_save_LIBS
18734 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18735 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18736 if test $ac_cv_lib_gcc___floatdidf = yes; then
18738 cat >>confdefs.h <<\_ACEOF
18739 #define HAVE___FLOATDIDF 1
18744 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18745 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18746 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18749 ac_check_lib_save_LIBS=$LIBS
18751 cat >conftest.$ac_ext <<_ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18758 /* Override any GCC internal prototype to avoid an error.
18759 Use char because int might match the return type of a GCC
18760 builtin and then its argument prototype would still apply. */
18768 return __lshrdi3 ();
18773 rm -f conftest.$ac_objext conftest$ac_exeext
18774 if { (ac_try="$ac_link"
18775 case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_link") 2>conftest.er1
18782 grep -v '^ *+' conftest.er1 >conftest.err
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18788 { (case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_try") 2>&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; } &&
18797 { ac_try='test -s conftest$ac_exeext'
18798 { (case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_try") 2>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; }; then
18807 ac_cv_lib_gcc___lshrdi3=yes
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18812 ac_cv_lib_gcc___lshrdi3=no
18815 rm -f core conftest.err conftest.$ac_objext \
18816 conftest$ac_exeext conftest.$ac_ext
18817 LIBS=$ac_check_lib_save_LIBS
18819 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18820 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18821 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18823 cat >>confdefs.h <<\_ACEOF
18824 #define HAVE___LSHRDI3 1
18829 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18830 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18831 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 ac_check_lib_save_LIBS=$LIBS
18836 cat >conftest.$ac_ext <<_ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18843 /* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18853 return __moddi3 ();
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (ac_try="$ac_link"
18860 case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_link") 2>conftest.er1
18867 grep -v '^ *+' conftest.er1 >conftest.err
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } &&
18872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18873 { (case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_try") 2>&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest$ac_exeext'
18883 { (case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_try") 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 ac_cv_lib_gcc___moddi3=yes
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18897 ac_cv_lib_gcc___moddi3=no
18900 rm -f core conftest.err conftest.$ac_objext \
18901 conftest$ac_exeext conftest.$ac_ext
18902 LIBS=$ac_check_lib_save_LIBS
18904 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18905 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18906 if test $ac_cv_lib_gcc___moddi3 = yes; then
18908 cat >>confdefs.h <<\_ACEOF
18909 #define HAVE___MODDI3 1
18914 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18915 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18916 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18919 ac_check_lib_save_LIBS=$LIBS
18921 cat >conftest.$ac_ext <<_ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18928 /* Override any GCC internal prototype to avoid an error.
18929 Use char because int might match the return type of a GCC
18930 builtin and then its argument prototype would still apply. */
18938 return __udivdi3 ();
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (ac_try="$ac_link"
18945 case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_link") 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18958 { (case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_try") 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; } &&
18967 { ac_try='test -s conftest$ac_exeext'
18968 { (case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_try") 2>&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; }; then
18977 ac_cv_lib_gcc___udivdi3=yes
18979 echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18982 ac_cv_lib_gcc___udivdi3=no
18985 rm -f core conftest.err conftest.$ac_objext \
18986 conftest$ac_exeext conftest.$ac_ext
18987 LIBS=$ac_check_lib_save_LIBS
18989 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18990 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18991 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18993 cat >>confdefs.h <<\_ACEOF
18994 #define HAVE___UDIVDI3 1
18999 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19000 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19001 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19004 ac_check_lib_save_LIBS=$LIBS
19006 cat >conftest.$ac_ext <<_ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19013 /* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19023 return __umoddi3 ();
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (ac_try="$ac_link"
19030 case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_link") 2>conftest.er1
19037 grep -v '^ *+' conftest.er1 >conftest.err
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest$ac_exeext'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_cv_lib_gcc___umoddi3=yes
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 ac_cv_lib_gcc___umoddi3=no
19070 rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072 LIBS=$ac_check_lib_save_LIBS
19074 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19075 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19076 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19078 cat >>confdefs.h <<\_ACEOF
19079 #define HAVE___UMODDI3 1
19085 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19086 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19087 if test "${ac_cv_lib_gcc___main+set}" = set; then
19088 echo $ECHO_N "(cached) $ECHO_C" >&6
19090 ac_check_lib_save_LIBS=$LIBS
19092 cat >conftest.$ac_ext <<_ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19099 /* Override any GCC internal prototype to avoid an error.
19100 Use char because int might match the return type of a GCC
19101 builtin and then its argument prototype would still apply. */
19114 rm -f conftest.$ac_objext conftest$ac_exeext
19115 if { (ac_try="$ac_link"
19116 case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_link") 2>conftest.er1
19123 grep -v '^ *+' conftest.er1 >conftest.err
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
19128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19129 { (case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_try") 2>&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try='test -s conftest$ac_exeext'
19139 { (case "(($ac_try" in
19140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141 *) ac_try_echo=$ac_try;;
19143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144 (eval "$ac_try") 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 ac_cv_lib_gcc___main=yes
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19153 ac_cv_lib_gcc___main=no
19156 rm -f core conftest.err conftest.$ac_objext \
19157 conftest$ac_exeext conftest.$ac_ext
19158 LIBS=$ac_check_lib_save_LIBS
19160 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19161 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19162 if test $ac_cv_lib_gcc___main = yes; then
19164 cat >>confdefs.h <<\_ACEOF
19165 #define HAVE___MAIN 1
19170 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19171 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19172 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 ac_check_lib_save_LIBS=$LIBS
19177 cat >conftest.$ac_ext <<_ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19184 /* Override any GCC internal prototype to avoid an error.
19185 Use char because int might match the return type of a GCC
19186 builtin and then its argument prototype would still apply. */
19194 return __cmpdi2 ();
19199 rm -f conftest.$ac_objext conftest$ac_exeext
19200 if { (ac_try="$ac_link"
19201 case "(($ac_try" in
19202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203 *) ac_try_echo=$ac_try;;
19205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206 (eval "$ac_link") 2>conftest.er1
19208 grep -v '^ *+' conftest.er1 >conftest.err
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19214 { (case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_try") 2>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; } &&
19223 { ac_try='test -s conftest$ac_exeext'
19224 { (case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_try") 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_cv_lib_gcc___cmpdi2=yes
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19238 ac_cv_lib_gcc___cmpdi2=no
19241 rm -f core conftest.err conftest.$ac_objext \
19242 conftest$ac_exeext conftest.$ac_ext
19243 LIBS=$ac_check_lib_save_LIBS
19245 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19246 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19247 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19249 cat >>confdefs.h <<\_ACEOF
19250 #define HAVE___CMPDI2 1
19257 if test "$llvm_cv_os_type" = "MingW" ; then
19258 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19259 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19260 cat >conftest.$ac_ext <<_ACEOF
19261 #include <windows.h>
19262 #include <imagehlp.h>
19263 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19264 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19266 rm -f conftest.$ac_objext
19267 if { (ac_try="$ac_compile"
19268 case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_compile") 2>conftest.er1
19275 grep -v '^ *+' conftest.er1 >conftest.err
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } &&
19280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19281 { (case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_try") 2>&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19301 { echo "$as_me:$LINENO: result: yes" >&5
19302 echo "${ECHO_T}yes" >&6; }
19303 llvm_cv_win32_elmcb_pcstr="PCSTR"
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19310 { echo "$as_me:$LINENO: result: no" >&5
19311 echo "${ECHO_T}no" >&6; }
19312 llvm_cv_win32_elmcb_pcstr="PSTR"
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 cat >>confdefs.h <<_ACEOF
19319 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19325 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19326 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19327 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 ac_cpp='$CXXCPP $CPPFLAGS'
19332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19336 cat >conftest.$ac_ext <<_ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19351 rm -f conftest.$ac_objext
19352 if { (ac_try="$ac_compile"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_compile") 2>conftest.er1
19360 grep -v '^ *+' conftest.er1 >conftest.err
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19366 { (case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_try") 2>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; } &&
19375 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_func_isnan_in_math_h=yes
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 ac_cv_func_isnan_in_math_h=no
19393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19395 ac_cpp='$CPP $CPPFLAGS'
19396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19401 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19402 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19405 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19407 cat >>confdefs.h <<\_ACEOF
19408 #define HAVE_ISNAN_IN_MATH_H 1
19413 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19414 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19415 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 ac_cpp='$CXXCPP $CPPFLAGS'
19420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19424 cat >conftest.$ac_ext <<_ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h. */
19439 rm -f conftest.$ac_objext
19440 if { (ac_try="$ac_compile"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_compile") 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19454 { (case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest.$ac_objext'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
19473 ac_cv_func_isnan_in_cmath=yes
19475 echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19478 ac_cv_func_isnan_in_cmath=no
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483 ac_cpp='$CPP $CPPFLAGS'
19484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19489 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19490 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19492 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE_ISNAN_IN_CMATH 1
19500 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19501 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19502 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19506 ac_cpp='$CXXCPP $CPPFLAGS'
19507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19511 cat >conftest.$ac_ext <<_ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19521 float f; std::isnan(f);
19526 rm -f conftest.$ac_objext
19527 if { (ac_try="$ac_compile"
19528 case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_compile") 2>conftest.er1
19535 grep -v '^ *+' conftest.er1 >conftest.err
19537 cat conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } &&
19540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19541 { (case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_try") 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; } &&
19550 { ac_try='test -s conftest.$ac_objext'
19551 { (case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_try") 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_cv_func_std_isnan_in_cmath=yes
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ac_cv_func_std_isnan_in_cmath=no
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 ac_cpp='$CPP $CPPFLAGS'
19571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19577 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19579 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19581 cat >>confdefs.h <<\_ACEOF
19582 #define HAVE_STD_ISNAN_IN_CMATH 1
19588 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19589 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 ac_cpp='$CXXCPP $CPPFLAGS'
19595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19614 rm -f conftest.$ac_objext
19615 if { (ac_try="$ac_compile"
19616 case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_compile") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 ac_cv_func_isinf_in_math_h=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_cv_func_isinf_in_math_h=no
19656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658 ac_cpp='$CPP $CPPFLAGS'
19659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19665 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19667 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE_ISINF_IN_MATH_H 1
19675 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19676 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19677 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 ac_cpp='$CXXCPP $CPPFLAGS'
19682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19701 rm -f conftest.$ac_objext
19702 if { (ac_try="$ac_compile"
19703 case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_compile") 2>conftest.er1
19710 grep -v '^ *+' conftest.er1 >conftest.err
19712 cat conftest.err >&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } &&
19715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19716 { (case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_try") 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest.$ac_objext'
19726 { (case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_try") 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_func_isinf_in_cmath=yes
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_func_isinf_in_cmath=no
19743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745 ac_cpp='$CPP $CPPFLAGS'
19746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19752 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19754 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19756 cat >>confdefs.h <<\_ACEOF
19757 #define HAVE_ISINF_IN_CMATH 1
19762 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19763 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19764 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 ac_cpp='$CXXCPP $CPPFLAGS'
19769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19783 float f; std::isinf(f)}
19788 rm -f conftest.$ac_objext
19789 if { (ac_try="$ac_compile"
19790 case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_compile") 2>conftest.er1
19797 grep -v '^ *+' conftest.er1 >conftest.err
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19803 { (case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_try") 2>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; } &&
19812 { ac_try='test -s conftest.$ac_objext'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
19822 ac_cv_func_std_isinf_in_cmath=yes
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19827 ac_cv_func_std_isinf_in_cmath=no
19830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19832 ac_cpp='$CPP $CPPFLAGS'
19833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19838 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19839 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19841 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19843 cat >>confdefs.h <<\_ACEOF
19844 #define HAVE_STD_ISINF_IN_CMATH 1
19849 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19850 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19851 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 ac_cpp='$CXXCPP $CPPFLAGS'
19856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19860 cat >conftest.$ac_ext <<_ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 #include <ieeefp.h>
19870 float f; finite(f);
19875 rm -f conftest.$ac_objext
19876 if { (ac_try="$ac_compile"
19877 case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_compile") 2>conftest.er1
19884 grep -v '^ *+' conftest.er1 >conftest.err
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19890 { (case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_try") 2>&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try='test -s conftest.$ac_objext'
19900 { (case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_try") 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19909 ac_cv_func_finite_in_ieeefp_h=yes
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 ac_cv_func_finite_in_ieeefp_h=no
19917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19919 ac_cpp='$CPP $CPPFLAGS'
19920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19925 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19926 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19928 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19930 cat >>confdefs.h <<\_ACEOF
19931 #define HAVE_FINITE_IN_IEEEFP_H 1
19938 if test "$llvm_cv_platform_type" = "Unix" ; then
19941 for ac_header in stdlib.h unistd.h
19943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19950 ac_res=`eval echo '${'$as_ac_Header'}'`
19951 { echo "$as_me:$LINENO: result: $ac_res" >&5
19952 echo "${ECHO_T}$ac_res" >&6; }
19954 # Is the header compilable?
19955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 $ac_includes_default
19964 #include <$ac_header>
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19975 grep -v '^ *+' conftest.er1 >conftest.err
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_header_compiler=yes
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_header_compiler=no
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20010 echo "${ECHO_T}$ac_header_compiler" >&6; }
20012 # Is the header present?
20013 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20015 cat >conftest.$ac_ext <<_ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20021 #include <$ac_header>
20023 if { (ac_try="$ac_cpp conftest.$ac_ext"
20024 case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20031 grep -v '^ *+' conftest.er1 >conftest.err
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } >/dev/null; then
20036 if test -s conftest.err; then
20037 ac_cpp_err=$ac_c_preproc_warn_flag
20038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20045 if test -z "$ac_cpp_err"; then
20046 ac_header_preproc=yes
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20051 ac_header_preproc=no
20054 rm -f conftest.err conftest.$ac_ext
20055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20056 echo "${ECHO_T}$ac_header_preproc" >&6; }
20058 # So? What about this header?
20059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20065 ac_header_preproc=yes
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20081 ## ----------------------------------- ##
20082 ## Report this to llvmbugs@cs.uiuc.edu ##
20083 ## ----------------------------------- ##
20085 ) | sed "s/^/$as_me: WARNING: /" >&2
20088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 eval "$as_ac_Header=\$ac_header_preproc"
20095 ac_res=`eval echo '${'$as_ac_Header'}'`
20096 { echo "$as_me:$LINENO: result: $ac_res" >&5
20097 echo "${ECHO_T}$ac_res" >&6; }
20100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20101 cat >>confdefs.h <<_ACEOF
20102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20110 for ac_func in getpagesize
20112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 cat >conftest.$ac_ext <<_ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20126 #define $ac_func innocuous_$ac_func
20128 /* System header to define __stub macros and hopefully few prototypes,
20129 which can conflict with char $ac_func (); below.
20130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20131 <limits.h> exists even on freestanding compilers. */
20134 # include <limits.h>
20136 # include <assert.h>
20141 /* Override any GCC internal prototype to avoid an error.
20142 Use char because int might match the return type of a GCC
20143 builtin and then its argument prototype would still apply. */
20148 /* The GNU C library defines this for functions which it implements
20149 to always fail with ENOSYS. Some functions are actually named
20150 something starting with __ and the normal name is an alias. */
20151 #if defined __stub_$ac_func || defined __stub___$ac_func
20158 return $ac_func ();
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20178 { (case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_try") 2>&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; } &&
20187 { ac_try='test -s conftest$ac_exeext'
20188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 eval "$as_ac_var=yes"
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20202 eval "$as_ac_var=no"
20205 rm -f core conftest.err conftest.$ac_objext \
20206 conftest$ac_exeext conftest.$ac_ext
20208 ac_res=`eval echo '${'$as_ac_var'}'`
20209 { echo "$as_me:$LINENO: result: $ac_res" >&5
20210 echo "${ECHO_T}$ac_res" >&6; }
20211 if test `eval echo '${'$as_ac_var'}'` = yes; then
20212 cat >>confdefs.h <<_ACEOF
20213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20219 { echo "$as_me:$LINENO: checking for working mmap" >&5
20220 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20221 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20224 if test "$cross_compiling" = yes; then
20225 ac_cv_func_mmap_fixed_mapped=no
20227 cat >conftest.$ac_ext <<_ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233 $ac_includes_default
20234 /* malloc might have been renamed as rpl_malloc. */
20237 /* Thanks to Mike Haertel and Jim Avera for this test.
20238 Here is a matrix of mmap possibilities:
20239 mmap private not fixed
20240 mmap private fixed at somewhere currently unmapped
20241 mmap private fixed at somewhere already mapped
20242 mmap shared not fixed
20243 mmap shared fixed at somewhere currently unmapped
20244 mmap shared fixed at somewhere already mapped
20245 For private mappings, we should verify that changes cannot be read()
20246 back from the file, nor mmap's back from the file at a different
20247 address. (There have been systems where private was not correctly
20248 implemented like the infamous i386 svr4.0, and systems where the
20249 VM page cache was not coherent with the file system buffer cache
20250 like early versions of FreeBSD and possibly contemporary NetBSD.)
20251 For shared mappings, we should conversely verify that changes get
20252 propagated back to all the places they're supposed to be.
20254 Grep wants private fixed already mapped.
20255 The main things grep needs to know about mmap are:
20256 * does it exist and is it safe to write into the mmap'd area
20257 * how to use it (BSD variants) */
20260 #include <sys/mman.h>
20262 #if !STDC_HEADERS && !HAVE_STDLIB_H
20266 /* This mess was copied from the GNU getpagesize.h. */
20267 #if !HAVE_GETPAGESIZE
20268 /* Assume that all systems that can run configure have sys/param.h. */
20269 # if !HAVE_SYS_PARAM_H
20270 # define HAVE_SYS_PARAM_H 1
20273 # ifdef _SC_PAGESIZE
20274 # define getpagesize() sysconf(_SC_PAGESIZE)
20275 # else /* no _SC_PAGESIZE */
20276 # if HAVE_SYS_PARAM_H
20277 # include <sys/param.h>
20278 # ifdef EXEC_PAGESIZE
20279 # define getpagesize() EXEC_PAGESIZE
20280 # else /* no EXEC_PAGESIZE */
20282 # define getpagesize() NBPG * CLSIZE
20285 # endif /* no CLSIZE */
20286 # else /* no NBPG */
20288 # define getpagesize() NBPC
20289 # else /* no NBPC */
20291 # define getpagesize() PAGESIZE
20292 # endif /* PAGESIZE */
20293 # endif /* no NBPC */
20294 # endif /* no NBPG */
20295 # endif /* no EXEC_PAGESIZE */
20296 # else /* no HAVE_SYS_PARAM_H */
20297 # define getpagesize() 8192 /* punt totally */
20298 # endif /* no HAVE_SYS_PARAM_H */
20299 # endif /* no _SC_PAGESIZE */
20301 #endif /* no HAVE_GETPAGESIZE */
20306 char *data, *data2, *data3;
20310 pagesize = getpagesize ();
20312 /* First, make a file with some known garbage in it. */
20313 data = (char *) malloc (pagesize);
20316 for (i = 0; i < pagesize; ++i)
20317 *(data + i) = rand ();
20319 fd = creat ("conftest.mmap", 0600);
20322 if (write (fd, data, pagesize) != pagesize)
20326 /* Next, try to mmap the file at a fixed address which already has
20327 something else allocated at it. If we can, also make sure that
20328 we see the same garbage. */
20329 fd = open ("conftest.mmap", O_RDWR);
20332 data2 = (char *) malloc (2 * pagesize);
20335 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20336 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20337 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20339 for (i = 0; i < pagesize; ++i)
20340 if (*(data + i) != *(data2 + i))
20343 /* Finally, make sure that changes to the mapped area do not
20344 percolate back to the file as seen by read(). (This is a bug on
20345 some variants of i386 svr4.0.) */
20346 for (i = 0; i < pagesize; ++i)
20347 *(data2 + i) = *(data2 + i) + 1;
20348 data3 = (char *) malloc (pagesize);
20351 if (read (fd, data3, pagesize) != pagesize)
20353 for (i = 0; i < pagesize; ++i)
20354 if (*(data + i) != *(data3 + i))
20360 rm -f conftest$ac_exeext
20361 if { (ac_try="$ac_link"
20362 case "(($ac_try" in
20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364 *) ac_try_echo=$ac_try;;
20366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20367 (eval "$ac_link") 2>&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20371 { (case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_try") 2>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
20380 ac_cv_func_mmap_fixed_mapped=yes
20382 echo "$as_me: program exited with status $ac_status" >&5
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20386 ( exit $ac_status )
20387 ac_cv_func_mmap_fixed_mapped=no
20389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20394 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20395 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20396 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20398 cat >>confdefs.h <<\_ACEOF
20399 #define HAVE_MMAP 1
20403 rm -f conftest.mmap
20405 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20406 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20407 if test "${ac_cv_func_mmap_file+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 ac_cpp='$CPP $CPPFLAGS'
20412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20416 if test "$cross_compiling" = yes; then
20417 ac_cv_func_mmap_file=no
20419 cat >conftest.$ac_ext <<_ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20427 #include <sys/types.h>
20428 #include <sys/mman.h>
20436 fd = creat ("foo",0777);
20437 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20439 return (fd != (int) MAP_FAILED);
20444 rm -f conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_link") 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20464 ac_cv_func_mmap_file=yes
20466 echo "$as_me: program exited with status $ac_status" >&5
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ( exit $ac_status )
20471 ac_cv_func_mmap_file=no
20473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20478 ac_cpp='$CPP $CPPFLAGS'
20479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20485 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20486 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20487 if test "$ac_cv_func_mmap_file" = yes; then
20489 cat >>confdefs.h <<\_ACEOF
20490 #define HAVE_MMAP_FILE
20497 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20498 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20499 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 if test "$llvm_cv_os_type" = "Interix" ; then
20503 ac_cv_need_dev_zero_for_mmap=yes
20505 ac_cv_need_dev_zero_for_mmap=no
20509 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20510 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20511 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20513 cat >>confdefs.h <<\_ACEOF
20514 #define NEED_DEV_ZERO_FOR_MMAP 1
20519 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20521 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20522 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20524 if test "$ac_cv_func_mmap_file" = "no"
20526 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20527 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20531 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20532 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20534 ac_cpp='$CXXCPP $CPPFLAGS'
20535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20539 cat >conftest.$ac_ext <<_ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20546 volatile unsigned long val = 1;
20547 __sync_synchronize();
20548 __sync_val_compare_and_swap(&val, 1, 0);
20549 __sync_add_and_fetch(&val, 1);
20550 __sync_sub_and_fetch(&val, 1);
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (ac_try="$ac_link"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_link") 2>conftest.er1
20564 grep -v '^ *+' conftest.er1 >conftest.err
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20570 { (case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_try") 2>&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try='test -s conftest$ac_exeext'
20580 { (case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_try") 2>&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; }; then
20590 ac_cpp='$CPP $CPPFLAGS'
20591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20595 { echo "$as_me:$LINENO: result: yes" >&5
20596 echo "${ECHO_T}yes" >&6; }
20598 cat >>confdefs.h <<\_ACEOF
20599 #define LLVM_HAS_ATOMICS 1
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 { echo "$as_me:$LINENO: result: no" >&5
20607 echo "${ECHO_T}no" >&6; }
20609 cat >>confdefs.h <<\_ACEOF
20610 #define LLVM_HAS_ATOMICS 0
20613 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20614 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20617 rm -f core conftest.err conftest.$ac_objext \
20618 conftest$ac_exeext conftest.$ac_ext
20621 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20622 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20623 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20624 if test "${llvm_cv_linux_mixed+set}" = set; then
20625 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 ac_cpp='$CPP $CPPFLAGS'
20629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20640 error: Not x86-64 even if uname says so!
20651 rm -f conftest.$ac_objext
20652 if { (ac_try="$ac_compile"
20653 case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_compile") 2>conftest.er1
20660 grep -v '^ *+' conftest.er1 >conftest.err
20662 cat conftest.err >&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } &&
20665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20666 { (case "(($ac_try" in
20667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_try") 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; } &&
20675 { ac_try='test -s conftest.$ac_objext'
20676 { (case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_try") 2>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20685 llvm_cv_linux_mixed=no
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 llvm_cv_linux_mixed=yes
20693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20695 ac_cpp='$CPP $CPPFLAGS'
20696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20702 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20703 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20705 if test "$llvm_cv_linux_mixed" = "yes"; then
20706 llvm_cv_target_arch="x86"
20712 for ac_func in __dso_handle
20714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 cat >conftest.$ac_ext <<_ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20728 #define $ac_func innocuous_$ac_func
20730 /* System header to define __stub macros and hopefully few prototypes,
20731 which can conflict with char $ac_func (); below.
20732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20733 <limits.h> exists even on freestanding compilers. */
20736 # include <limits.h>
20738 # include <assert.h>
20743 /* Override any GCC internal prototype to avoid an error.
20744 Use char because int might match the return type of a GCC
20745 builtin and then its argument prototype would still apply. */
20750 /* The GNU C library defines this for functions which it implements
20751 to always fail with ENOSYS. Some functions are actually named
20752 something starting with __ and the normal name is an alias. */
20753 #if defined __stub_$ac_func || defined __stub___$ac_func
20760 return $ac_func ();
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_link") 2>conftest.er1
20774 grep -v '^ *+' conftest.er1 >conftest.err
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
20779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20780 { (case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_try") 2>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; } &&
20789 { ac_try='test -s conftest$ac_exeext'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; }; then
20799 eval "$as_ac_var=yes"
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20804 eval "$as_ac_var=no"
20807 rm -f core conftest.err conftest.$ac_objext \
20808 conftest$ac_exeext conftest.$ac_ext
20810 ac_res=`eval echo '${'$as_ac_var'}'`
20811 { echo "$as_me:$LINENO: result: $ac_res" >&5
20812 echo "${ECHO_T}$ac_res" >&6; }
20813 if test `eval echo '${'$as_ac_var'}'` = yes; then
20814 cat >>confdefs.h <<_ACEOF
20815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20822 SHLIBEXT=$libltdl_cv_shlibext
20825 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20828 # Translate the various configuration directories and other basic
20829 # information into substitutions that will end up in Makefile.config.in
20830 # that these configured values can be used by the makefiles
20831 if test "${prefix}" = "NONE" ; then
20832 prefix="/usr/local"
20834 eval LLVM_PREFIX="${prefix}";
20835 eval LLVM_BINDIR="${prefix}/bin";
20836 eval LLVM_LIBDIR="${prefix}/lib";
20837 eval LLVM_DATADIR="${prefix}/share/llvm";
20838 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20839 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20840 eval LLVM_INCLUDEDIR="${prefix}/include";
20841 eval LLVM_INFODIR="${prefix}/info";
20842 eval LLVM_MANDIR="${prefix}/man";
20843 LLVM_CONFIGTIME=`date`
20855 # Place the various directores into the config.h file as #defines so that we
20856 # can know about the installation paths within LLVM.
20858 cat >>confdefs.h <<_ACEOF
20859 #define LLVM_PREFIX "$LLVM_PREFIX"
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_BINDIR "$LLVM_BINDIR"
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_DATADIR "$LLVM_DATADIR"
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20883 cat >>confdefs.h <<_ACEOF
20884 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20888 cat >>confdefs.h <<_ACEOF
20889 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20893 cat >>confdefs.h <<_ACEOF
20894 #define LLVM_INFODIR "$LLVM_INFODIR"
20898 cat >>confdefs.h <<_ACEOF
20899 #define LLVM_MANDIR "$LLVM_MANDIR"
20903 cat >>confdefs.h <<_ACEOF
20904 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20908 cat >>confdefs.h <<_ACEOF
20909 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20913 # Determine which bindings to build.
20914 if test "$BINDINGS_TO_BUILD" = auto ; then
20915 BINDINGS_TO_BUILD=""
20916 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20917 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20920 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20923 # This isn't really configurey, but it avoids having to repeat the list in
20928 # Do any work necessary to ensure that bindings have what they need.
20929 binding_prereqs_failed=0
20930 for a_binding in $BINDINGS_TO_BUILD ; do
20931 case "$a_binding" in
20933 if test "x$OCAMLC" = x ; then
20934 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20935 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20936 binding_prereqs_failed=1
20938 if test "x$OCAMLDEP" = x ; then
20939 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20940 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20941 binding_prereqs_failed=1
20943 if test "x$OCAMLOPT" = x ; then
20944 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20945 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20947 if test "x$with_ocaml_libdir" != xauto ; then
20948 OCAML_LIBDIR=$with_ocaml_libdir
20951 ocaml_stdlib="`"$OCAMLC" -where`"
20952 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20954 # ocaml stdlib is beneath our prefix; use stdlib
20955 OCAML_LIBDIR=$ocaml_stdlib
20958 # ocaml stdlib is outside our prefix; use libdir/ocaml
20959 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20966 if test "$binding_prereqs_failed" = 1 ; then
20967 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20968 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20969 { (exit 1); exit 1; }; }
20972 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20973 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20974 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 ac_cpp='$CXXCPP $CPPFLAGS'
20979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20983 oldcxxflags="$CXXFLAGS"
20984 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20985 cat >conftest.$ac_ext <<_ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
21000 rm -f conftest.$ac_objext
21001 if { (ac_try="$ac_compile"
21002 case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007 (eval "$ac_compile") 2>conftest.er1
21009 grep -v '^ *+' conftest.er1 >conftest.err
21011 cat conftest.err >&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } &&
21014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21015 { (case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_try") 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; } &&
21024 { ac_try='test -s conftest.$ac_objext'
21025 { (case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_try") 2>&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }; then
21034 llvm_cv_cxx_visibility_inlines_hidden=yes
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21039 llvm_cv_cxx_visibility_inlines_hidden=no
21042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21043 CXXFLAGS="$oldcxxflags"
21045 ac_cpp='$CPP $CPPFLAGS'
21046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21052 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21053 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21054 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21055 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21058 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21063 if test "$llvm_cv_link_use_r" = "yes" ; then
21070 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21071 RDYNAMIC="-Wl,-export-dynamic"
21078 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21085 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21087 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21089 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21091 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21093 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21096 ac_config_files="$ac_config_files Makefile.config"
21099 ac_config_files="$ac_config_files llvm.spec"
21102 ac_config_files="$ac_config_files docs/doxygen.cfg"
21104 if test -f ${srcdir}/tools/clang/README.txt; then
21105 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21109 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21112 ac_config_commands="$ac_config_commands setup"
21114 ac_config_commands="$ac_config_commands Makefile"
21117 ac_config_commands="$ac_config_commands Makefile.common"
21120 ac_config_commands="$ac_config_commands examples/Makefile"
21123 ac_config_commands="$ac_config_commands lib/Makefile"
21126 ac_config_commands="$ac_config_commands runtime/Makefile"
21129 ac_config_commands="$ac_config_commands test/Makefile"
21132 ac_config_commands="$ac_config_commands test/Makefile.tests"
21135 ac_config_commands="$ac_config_commands unittests/Makefile"
21138 ac_config_commands="$ac_config_commands tools/Makefile"
21141 ac_config_commands="$ac_config_commands utils/Makefile"
21144 ac_config_commands="$ac_config_commands projects/Makefile"
21147 ac_config_commands="$ac_config_commands bindings/Makefile"
21150 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21154 cat >confcache <<\_ACEOF
21155 # This file is a shell script that caches the results of configure
21156 # tests run on this system so they can be shared between configure
21157 # scripts and configure runs, see configure's option --config-cache.
21158 # It is not useful on other systems. If it contains results you don't
21159 # want to keep, you may remove or edit it.
21161 # config.status only pays attention to the cache file if you give it
21162 # the --recheck option to rerun configure.
21164 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21165 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21166 # following values.
21170 # The following way of writing the cache mishandles newlines in values,
21171 # but we know of no workaround that is simple, portable, and efficient.
21172 # So, we kill variables containing newlines.
21173 # Ultrix sh set writes to stderr and can't be redirected directly,
21174 # and sets the high bit in the cache file unless we assign to the vars.
21176 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21177 eval ac_val=\$$ac_var
21181 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21182 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21185 _ | IFS | as_nl) ;; #(
21186 *) $as_unset $ac_var ;;
21192 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21193 *${as_nl}ac_space=\ *)
21194 # `set' does not quote correctly, so add quotes (double-quote
21195 # substitution turns \\\\ into \\, and sed turns \\ into \).
21198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21201 # `set' quotes correctly as required by POSIX, so do not add quotes.
21202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21211 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21213 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21215 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21216 if test -w "$cache_file"; then
21217 test "x$cache_file" != "x/dev/null" &&
21218 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21219 echo "$as_me: updating cache $cache_file" >&6;}
21220 cat confcache >$cache_file
21222 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21223 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21228 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21229 # Let make expand exec_prefix.
21230 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21232 DEFS=-DHAVE_CONFIG_H
21236 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21237 # 1. Remove the extension, and $U if already installed.
21238 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21239 ac_i=`echo "$ac_i" | sed "$ac_script"`
21240 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21241 # will be set to the directory where LIBOBJS objects are built.
21242 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21243 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21245 LIBOBJS=$ac_libobjs
21247 LTLIBOBJS=$ac_ltlibobjs
21250 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21251 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21252 Usually this means the macro was only invoked conditionally." >&5
21253 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21254 Usually this means the macro was only invoked conditionally." >&2;}
21255 { (exit 1); exit 1; }; }
21257 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21258 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21259 Usually this means the macro was only invoked conditionally." >&5
21260 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21261 Usually this means the macro was only invoked conditionally." >&2;}
21262 { (exit 1); exit 1; }; }
21265 : ${CONFIG_STATUS=./config.status}
21266 ac_clean_files_save=$ac_clean_files
21267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21268 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21269 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21270 cat >$CONFIG_STATUS <<_ACEOF
21272 # Generated by $as_me.
21273 # Run this file to recreate the current configuration.
21274 # Compiler output produced by configure, useful for debugging
21275 # configure, is in config.log if it exists.
21278 ac_cs_recheck=false
21280 SHELL=\${CONFIG_SHELL-$SHELL}
21283 cat >>$CONFIG_STATUS <<\_ACEOF
21284 ## --------------------- ##
21285 ## M4sh Initialization. ##
21286 ## --------------------- ##
21288 # Be Bourne compatible
21289 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21292 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21293 # is contrary to our usage. Disable this feature.
21294 alias -g '${1+"$@"}'='"$@"'
21295 setopt NO_GLOB_SUBST
21297 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21299 BIN_SH=xpg4; export BIN_SH # for Tru64
21300 DUALCASE=1; export DUALCASE # for MKS sh
21304 # Avoid depending upon Character Ranges.
21305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21308 as_cr_digits='0123456789'
21309 as_cr_alnum=$as_cr_Letters$as_cr_digits
21311 # The user is always right.
21312 if test "${PATH_SEPARATOR+set}" != set; then
21313 echo "#! /bin/sh" >conf$$.sh
21314 echo "exit 0" >>conf$$.sh
21316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21324 # Support unset when possible.
21325 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21333 # We need space, tab and new line, in precisely that order. Quoting is
21334 # there to prevent editors from complaining about space-tab.
21335 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21336 # splitting by setting IFS to empty value.)
21341 # Find who we are. Look in the path if we contain no directory separator.
21343 *[\\/]* ) as_myself=$0 ;;
21344 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21345 for as_dir in $PATH
21348 test -z "$as_dir" && as_dir=.
21349 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21355 # We did not find ourselves, most probably we were run as `sh COMMAND'
21356 # in which case we are not to be found in the path.
21357 if test "x$as_myself" = x; then
21360 if test ! -f "$as_myself"; then
21361 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21362 { (exit 1); exit 1; }
21365 # Work around bugs in pre-3.0 UWIN ksh.
21366 for as_var in ENV MAIL MAILPATH
21367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21375 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21376 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21377 LC_TELEPHONE LC_TIME
21379 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21380 eval $as_var=C; export $as_var
21382 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21386 # Required to use basename.
21387 if expr a : '\(a\)' >/dev/null 2>&1 &&
21388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21395 as_basename=basename
21401 # Name of the executable.
21402 as_me=`$as_basename -- "$0" ||
21403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21404 X"$0" : 'X\(//\)$' \| \
21405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21407 sed '/^.*\/\([^/][^/]*\)\/*$/{
21426 as_lineno_1=$LINENO
21427 as_lineno_2=$LINENO
21428 test "x$as_lineno_1" != "x$as_lineno_2" &&
21429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21432 # uniformly replaced by the line number. The first 'sed' inserts a
21433 # line-number line after each line using $LINENO; the second 'sed'
21434 # does the real work. The second script uses 'N' to pair each
21435 # line-number line with the line containing $LINENO, and appends
21436 # trailing '-' during substitution so that $LINENO is not a special
21437 # case at line end.
21438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21439 # scripts with optimization help from Paolo Bonzini. Blame Lee
21440 # E. McMahon (1931-1989) for sed's syntax. :-)
21452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21455 ' >$as_me.lineno &&
21456 chmod +x "$as_me.lineno" ||
21457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21458 { (exit 1); exit 1; }; }
21460 # Don't try to exec as it changes $[0], causing all sort of problems
21461 # (the dirname of $[0] is not the place where we might find the
21462 # original and so on. Autoconf is especially sensitive to this).
21463 . "./$as_me.lineno"
21464 # Exit status is that of the last command.
21469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21475 ECHO_C= ECHO_N= ECHO_T=
21476 case `echo -n x` in
21478 case `echo 'x\c'` in
21479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21486 if expr a : '\(a\)' >/dev/null 2>&1 &&
21487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21493 rm -f conf$$ conf$$.exe conf$$.file
21494 if test -d conf$$.dir; then
21495 rm -f conf$$.dir/conf$$.file
21501 if ln -s conf$$.file conf$$ 2>/dev/null; then
21503 # ... but there are two gotchas:
21504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21506 # In both cases, we have to default to `cp -p'.
21507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21509 elif ln conf$$.file conf$$ 2>/dev/null; then
21514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21515 rmdir conf$$.dir 2>/dev/null
21517 if mkdir -p . 2>/dev/null; then
21520 test -d ./-p && rmdir ./-p
21524 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21525 # systems may use methods other than mode bits to determine executability.
21526 cat >conf$$.file <<_ASEOF
21530 chmod +x conf$$.file
21531 if test -x conf$$.file >/dev/null 2>&1; then
21532 as_executable_p="test -x"
21538 # Sed expression to map a string onto a valid CPP name.
21539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21541 # Sed expression to map a string onto a valid variable name.
21542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21547 # Save the log message, to keep $[0] and so on meaningful, and to
21548 # report actual input values of CONFIG_FILES etc. instead of their
21549 # values after options handling.
21551 This file was extended by llvm $as_me 3.1svn, which was
21552 generated by GNU Autoconf 2.60. Invocation command line was
21554 CONFIG_FILES = $CONFIG_FILES
21555 CONFIG_HEADERS = $CONFIG_HEADERS
21556 CONFIG_LINKS = $CONFIG_LINKS
21557 CONFIG_COMMANDS = $CONFIG_COMMANDS
21560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21565 cat >>$CONFIG_STATUS <<_ACEOF
21566 # Files that config.status was made for.
21567 config_files="$ac_config_files"
21568 config_headers="$ac_config_headers"
21569 config_commands="$ac_config_commands"
21573 cat >>$CONFIG_STATUS <<\_ACEOF
21575 \`$as_me' instantiates files from templates according to the
21576 current configuration.
21578 Usage: $0 [OPTIONS] [FILE]...
21580 -h, --help print this help, then exit
21581 -V, --version print version number, then exit
21582 -q, --quiet do not print progress messages
21583 -d, --debug don't remove temporary files
21584 --recheck update $as_me by reconfiguring in the same conditions
21585 --file=FILE[:TEMPLATE]
21586 instantiate the configuration file FILE
21587 --header=FILE[:TEMPLATE]
21588 instantiate the configuration header FILE
21590 Configuration files:
21593 Configuration headers:
21596 Configuration commands:
21599 Report bugs to <bug-autoconf@gnu.org>."
21602 cat >>$CONFIG_STATUS <<_ACEOF
21604 llvm config.status 3.1svn
21605 configured by $0, generated by GNU Autoconf 2.60,
21606 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21608 Copyright (C) 2006 Free Software Foundation, Inc.
21609 This config.status script is free software; the Free Software Foundation
21610 gives unlimited permission to copy, distribute and modify it."
21617 cat >>$CONFIG_STATUS <<\_ACEOF
21618 # If no file are specified by the user, then we need to provide default
21619 # value. By we need to know if files were specified by the user.
21625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21626 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21637 # Handling of the options.
21638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21641 echo "$ac_cs_version"; exit ;;
21642 --debug | --debu | --deb | --de | --d | -d )
21644 --file | --fil | --fi | --f )
21646 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21647 ac_need_defaults=false;;
21648 --header | --heade | --head | --hea )
21650 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21651 ac_need_defaults=false;;
21653 # Conflict between --help and --header
21654 { echo "$as_me: error: ambiguous option: $1
21655 Try \`$0 --help' for more information." >&2
21656 { (exit 1); exit 1; }; };;
21657 --help | --hel | -h )
21658 echo "$ac_cs_usage"; exit ;;
21659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21663 # This is an error.
21664 -*) { echo "$as_me: error: unrecognized option: $1
21665 Try \`$0 --help' for more information." >&2
21666 { (exit 1); exit 1; }; } ;;
21668 *) ac_config_targets="$ac_config_targets $1"
21669 ac_need_defaults=false ;;
21675 ac_configure_extra_args=
21677 if $ac_cs_silent; then
21679 ac_configure_extra_args="$ac_configure_extra_args --silent"
21683 cat >>$CONFIG_STATUS <<_ACEOF
21684 if \$ac_cs_recheck; then
21685 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21686 CONFIG_SHELL=$SHELL
21687 export CONFIG_SHELL
21688 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21692 cat >>$CONFIG_STATUS <<\_ACEOF
21696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21697 ## Running $as_me. ##
21703 cat >>$CONFIG_STATUS <<_ACEOF
21707 llvm_src="${srcdir}"
21711 cat >>$CONFIG_STATUS <<\_ACEOF
21713 # Handling of arguments.
21714 for ac_config_target in $ac_config_targets
21716 case $ac_config_target in
21717 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21718 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21719 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21720 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21721 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21722 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21723 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21724 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21725 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21726 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21727 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21728 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21729 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21730 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21731 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21732 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21733 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21734 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21735 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21736 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21737 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21738 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21739 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21740 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21741 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21742 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21744 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21745 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21746 { (exit 1); exit 1; }; };;
21751 # If the user did not use the arguments to specify the items to instantiate,
21752 # then the envvar interface is used. Set only those that are not.
21753 # We use the long form for the default assignment because of an extremely
21754 # bizarre bug on SunOS 4.1.3.
21755 if $ac_need_defaults; then
21756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21758 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21761 # Have a temporary directory for convenience. Make it in the build tree
21762 # simply because there is no reason against having it here, and in addition,
21763 # creating and moving files from /tmp can sometimes cause problems.
21764 # Hook for its removal unless debugging.
21765 # Note that there is a small window in which the directory will not be cleaned:
21766 # after its creation but before its name has been assigned to `$tmp'.
21770 trap 'exit_status=$?
21771 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21773 trap '{ (exit 1); exit 1; }' 1 2 13 15
21775 # Create a (secure) tmp directory for tmp files.
21778 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21779 test -n "$tmp" && test -d "$tmp"
21782 tmp=./conf$$-$RANDOM
21783 (umask 077 && mkdir "$tmp")
21786 echo "$me: cannot create a temporary directory in ." >&2
21787 { (exit 1); exit 1; }
21791 # Set up the sed scripts for CONFIG_FILES section.
21794 # No need to generate the scripts if there are no CONFIG_FILES.
21795 # This happens for instance when ./config.status config.h
21796 if test -n "$CONFIG_FILES"; then
21803 for ac_last_try in false false false false false :; do
21804 cat >conf$$subs.sed <<_ACEOF
21805 SHELL!$SHELL$ac_delim
21806 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21807 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21808 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21809 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21810 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21811 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21812 exec_prefix!$exec_prefix$ac_delim
21813 prefix!$prefix$ac_delim
21814 program_transform_name!$program_transform_name$ac_delim
21815 bindir!$bindir$ac_delim
21816 sbindir!$sbindir$ac_delim
21817 libexecdir!$libexecdir$ac_delim
21818 datarootdir!$datarootdir$ac_delim
21819 datadir!$datadir$ac_delim
21820 sysconfdir!$sysconfdir$ac_delim
21821 sharedstatedir!$sharedstatedir$ac_delim
21822 localstatedir!$localstatedir$ac_delim
21823 includedir!$includedir$ac_delim
21824 oldincludedir!$oldincludedir$ac_delim
21825 docdir!$docdir$ac_delim
21826 infodir!$infodir$ac_delim
21827 htmldir!$htmldir$ac_delim
21828 dvidir!$dvidir$ac_delim
21829 pdfdir!$pdfdir$ac_delim
21830 psdir!$psdir$ac_delim
21831 libdir!$libdir$ac_delim
21832 localedir!$localedir$ac_delim
21833 mandir!$mandir$ac_delim
21834 DEFS!$DEFS$ac_delim
21835 ECHO_C!$ECHO_C$ac_delim
21836 ECHO_N!$ECHO_N$ac_delim
21837 ECHO_T!$ECHO_T$ac_delim
21838 LIBS!$LIBS$ac_delim
21839 build_alias!$build_alias$ac_delim
21840 host_alias!$host_alias$ac_delim
21841 target_alias!$target_alias$ac_delim
21842 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21844 CFLAGS!$CFLAGS$ac_delim
21845 LDFLAGS!$LDFLAGS$ac_delim
21846 CPPFLAGS!$CPPFLAGS$ac_delim
21847 ac_ct_CC!$ac_ct_CC$ac_delim
21848 EXEEXT!$EXEEXT$ac_delim
21849 OBJEXT!$OBJEXT$ac_delim
21851 CXXFLAGS!$CXXFLAGS$ac_delim
21852 ac_ct_CXX!$ac_ct_CXX$ac_delim
21854 subdirs!$subdirs$ac_delim
21855 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21856 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21857 build!$build$ac_delim
21858 build_cpu!$build_cpu$ac_delim
21859 build_vendor!$build_vendor$ac_delim
21860 build_os!$build_os$ac_delim
21861 host!$host$ac_delim
21862 host_cpu!$host_cpu$ac_delim
21863 host_vendor!$host_vendor$ac_delim
21864 host_os!$host_os$ac_delim
21865 target!$target$ac_delim
21866 target_cpu!$target_cpu$ac_delim
21867 target_vendor!$target_vendor$ac_delim
21868 target_os!$target_os$ac_delim
21870 HOST_OS!$HOST_OS$ac_delim
21871 TARGET_OS!$TARGET_OS$ac_delim
21872 LINKALL!$LINKALL$ac_delim
21873 NOLINKALL!$NOLINKALL$ac_delim
21874 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21875 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21876 ARCH!$ARCH$ac_delim
21877 ENDIAN!$ENDIAN$ac_delim
21878 GREP!$GREP$ac_delim
21879 EGREP!$EGREP$ac_delim
21880 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21881 BUILD_CC!$BUILD_CC$ac_delim
21882 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21883 BUILD_CXX!$BUILD_CXX$ac_delim
21884 CVSBUILD!$CVSBUILD$ac_delim
21885 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21886 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21887 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21888 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21889 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21890 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21891 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21892 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21894 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21895 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21896 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21897 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21898 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21899 ENABLE_PIC!$ENABLE_PIC$ac_delim
21900 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21901 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21904 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21906 elif $ac_last_try; then
21907 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21908 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21909 { (exit 1); exit 1; }; }
21911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21915 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21916 if test -n "$ac_eof"; then
21917 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21918 ac_eof=`expr $ac_eof + 1`
21921 cat >>$CONFIG_STATUS <<_ACEOF
21922 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21926 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21927 s/^/s,@/; s/!/@,|#_!!_#|/
21930 s/'"$ac_delim"'$/,g/; t
21932 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21933 ' >>$CONFIG_STATUS <conf$$subs.sed
21934 rm -f conf$$subs.sed
21935 cat >>$CONFIG_STATUS <<_ACEOF
21941 for ac_last_try in false false false false false :; do
21942 cat >conf$$subs.sed <<_ACEOF
21943 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21944 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21945 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21946 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21947 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21948 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21949 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21950 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21951 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21952 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21953 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21954 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21955 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21957 ifGNUmake!$ifGNUmake$ac_delim
21958 LN_S!$LN_S$ac_delim
21961 DATE!$DATE$ac_delim
21962 FIND!$FIND$ac_delim
21963 MKDIR!$MKDIR$ac_delim
21965 RANLIB!$RANLIB$ac_delim
21970 BINPWD!$BINPWD$ac_delim
21971 GRAPHVIZ!$GRAPHVIZ$ac_delim
21974 NEATO!$NEATO$ac_delim
21975 TWOPI!$TWOPI$ac_delim
21976 CIRCO!$CIRCO$ac_delim
21978 DOTTY!$DOTTY$ac_delim
21979 XDOT_PY!$XDOT_PY$ac_delim
21980 PERL!$PERL$ac_delim
21981 HAVE_PERL!$HAVE_PERL$ac_delim
21982 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21983 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21984 INSTALL_DATA!$INSTALL_DATA$ac_delim
21985 BZIP2!$BZIP2$ac_delim
21987 DOXYGEN!$DOXYGEN$ac_delim
21988 GROFF!$GROFF$ac_delim
21989 GZIPBIN!$GZIPBIN$ac_delim
21990 POD2HTML!$POD2HTML$ac_delim
21991 POD2MAN!$POD2MAN$ac_delim
21992 PDFROFF!$PDFROFF$ac_delim
21993 RUNTEST!$RUNTEST$ac_delim
21994 TCLSH!$TCLSH$ac_delim
21996 OCAMLC!$OCAMLC$ac_delim
21997 OCAMLOPT!$OCAMLOPT$ac_delim
21998 OCAMLDEP!$OCAMLDEP$ac_delim
21999 OCAMLDOC!$OCAMLDOC$ac_delim
22001 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22002 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22003 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22004 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22005 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22006 LIBADD_DL!$LIBADD_DL$ac_delim
22007 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22008 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22009 USE_UDIS86!$USE_UDIS86$ac_delim
22010 USE_OPROFILE!$USE_OPROFILE$ac_delim
22011 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22012 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22013 MMAP_FILE!$MMAP_FILE$ac_delim
22014 SHLIBEXT!$SHLIBEXT$ac_delim
22015 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22016 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22017 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22018 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22019 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22020 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22021 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22022 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22023 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22024 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22025 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22026 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22027 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22028 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22029 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22030 RPATH!$RPATH$ac_delim
22031 RDYNAMIC!$RDYNAMIC$ac_delim
22032 LIBOBJS!$LIBOBJS$ac_delim
22033 LTLIBOBJS!$LTLIBOBJS$ac_delim
22036 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22038 elif $ac_last_try; then
22039 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22040 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22041 { (exit 1); exit 1; }; }
22043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22047 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22048 if test -n "$ac_eof"; then
22049 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22050 ac_eof=`expr $ac_eof + 1`
22053 cat >>$CONFIG_STATUS <<_ACEOF
22054 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22058 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22059 s/^/s,@/; s/!/@,|#_!!_#|/
22062 s/'"$ac_delim"'$/,g/; t
22064 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22065 ' >>$CONFIG_STATUS <conf$$subs.sed
22066 rm -f conf$$subs.sed
22067 cat >>$CONFIG_STATUS <<_ACEOF
22074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22076 # trailing colons and then remove the whole line if VPATH becomes empty
22077 # (actually we leave an empty line to preserve line numbers).
22078 if test "x$srcdir" = x.; then
22079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22080 s/:*\$(srcdir):*/:/
22081 s/:*\${srcdir}:*/:/
22083 s/^\([^=]*=[ ]*\):*/\1/
22089 cat >>$CONFIG_STATUS <<\_ACEOF
22090 fi # test -n "$CONFIG_FILES"
22093 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22096 :[FHLC]) ac_mode=$ac_tag; continue;;
22098 case $ac_mode$ac_tag in
22100 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22101 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22102 { (exit 1); exit 1; }; };;
22103 :[FH]-) ac_tag=-:-;;
22104 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22121 -) ac_f="$tmp/stdin";;
22122 *) # Look for the file first in the build tree, then in the source tree
22123 # (if the path is not absolute). The absolute path cannot be DOS-style,
22124 # because $ac_f cannot contain `:'.
22128 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22130 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22131 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22132 { (exit 1); exit 1; }; };;
22134 ac_file_inputs="$ac_file_inputs $ac_f"
22137 # Let's still pretend it is `configure' which instantiates (i.e., don't
22138 # use $as_me), people would be surprised to read:
22139 # /* config.h. Generated by config.status. */
22140 configure_input="Generated from "`IFS=:
22141 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22142 if test x"$ac_file" != x-; then
22143 configure_input="$ac_file. $configure_input"
22144 { echo "$as_me:$LINENO: creating $ac_file" >&5
22145 echo "$as_me: creating $ac_file" >&6;}
22149 *:-:* | *:-) cat >"$tmp/stdin";;
22154 ac_dir=`$as_dirname -- "$ac_file" ||
22155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156 X"$ac_file" : 'X\(//\)[^/]' \| \
22157 X"$ac_file" : 'X\(//\)$' \| \
22158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22164 /^X\(\/\/\)[^/].*/{
22179 -*) as_dir=./$as_dir;;
22181 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22185 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22186 *) as_qdir=$as_dir;;
22188 as_dirs="'$as_qdir' $as_dirs"
22189 as_dir=`$as_dirname -- "$as_dir" ||
22190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191 X"$as_dir" : 'X\(//\)[^/]' \| \
22192 X"$as_dir" : 'X\(//\)$' \| \
22193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22199 /^X\(\/\/\)[^/].*/{
22212 test -d "$as_dir" && break
22214 test -z "$as_dirs" || eval "mkdir $as_dirs"
22215 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22216 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22217 { (exit 1); exit 1; }; }; }
22221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22224 # A ".." for each directory in $ac_dir_suffix.
22225 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22226 case $ac_top_builddir_sub in
22227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22231 ac_abs_top_builddir=$ac_pwd
22232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22233 # for backward compatibility:
22234 ac_top_builddir=$ac_top_build_prefix
22237 .) # We are building in place.
22239 ac_top_srcdir=$ac_top_builddir_sub
22240 ac_abs_top_srcdir=$ac_pwd ;;
22241 [\\/]* | ?:[\\/]* ) # Absolute name.
22242 ac_srcdir=$srcdir$ac_dir_suffix;
22243 ac_top_srcdir=$srcdir
22244 ac_abs_top_srcdir=$srcdir ;;
22245 *) # Relative name.
22246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22247 ac_top_srcdir=$ac_top_build_prefix$srcdir
22248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22265 cat >>$CONFIG_STATUS <<\_ACEOF
22266 # If the template does not know about datarootdir, expand it.
22267 # FIXME: This hack should be removed a few years after 2.60.
22268 ac_datarootdir_hack=; ac_datarootdir_seen=
22270 case `sed -n '/datarootdir/ {
22279 ' $ac_file_inputs` in
22280 *datarootdir*) ac_datarootdir_seen=yes;;
22281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22282 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22283 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22285 cat >>$CONFIG_STATUS <<_ACEOF
22286 ac_datarootdir_hack='
22287 s&@datadir@&$datadir&g
22288 s&@docdir@&$docdir&g
22289 s&@infodir@&$infodir&g
22290 s&@localedir@&$localedir&g
22291 s&@mandir@&$mandir&g
22292 s&\\\${datarootdir}&$datarootdir&g' ;;
22296 # Neutralize VPATH when `$srcdir' = `.'.
22297 # Shell code in configure.ac might set extrasub.
22298 # FIXME: do we really want to maintain this feature?
22299 cat >>$CONFIG_STATUS <<_ACEOF
22303 cat >>$CONFIG_STATUS <<\_ACEOF
22305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22306 s&@configure_input@&$configure_input&;t t
22307 s&@top_builddir@&$ac_top_builddir_sub&;t t
22308 s&@srcdir@&$ac_srcdir&;t t
22309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22310 s&@top_srcdir@&$ac_top_srcdir&;t t
22311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22312 s&@builddir@&$ac_builddir&;t t
22313 s&@abs_builddir@&$ac_abs_builddir&;t t
22314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22315 s&@INSTALL@&$ac_INSTALL&;t t
22316 $ac_datarootdir_hack
22317 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22319 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22320 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22322 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323 which seems to be undefined. Please make sure it is defined." >&5
22324 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22325 which seems to be undefined. Please make sure it is defined." >&2;}
22329 -) cat "$tmp/out"; rm -f "$tmp/out";;
22330 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22339 # Transform confdefs.h into a sed script `conftest.defines', that
22340 # substitutes the proper values into config.h.in to produce config.h.
22341 rm -f conftest.defines conftest.tail
22342 # First, append a space to every undef/define line, to ease matching.
22343 echo 's/$/ /' >conftest.defines
22344 # Then, protect against being on the right side of a sed subst, or in
22345 # an unquoted here document, in config.status. If some macros were
22346 # called several times there might be several #defines for the same
22347 # symbol, which is useless. But do not sort them, since the last
22348 # AC_DEFINE must be honored.
22349 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22350 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22351 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22352 # PARAMS is the parameter list in the macro definition--in most cases, it's
22353 # just an empty string.
22354 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22355 ac_dB='\\)[ (].*,\\1define\\2'
22363 s/^[ ]*#[ ]*define[ ][ ]*//
22368 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22369 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22370 ' >>conftest.defines
22372 # Remove the space that was appended to ease matching.
22373 # Then replace #undef with comments. This is necessary, for
22374 # example, in the case of _POSIX_SOURCE, which is predefined and required
22375 # on some systems where configure will not decide to define it.
22376 # (The regexp can be short, since the line contains either #define or #undef.)
22378 s,^[ #]*u.*,/* & */,' >>conftest.defines
22380 # Break up conftest.defines:
22381 ac_max_sed_lines=50
22383 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22384 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22385 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22387 ac_in='$ac_file_inputs'
22388 ac_out='"$tmp/out1"'
22389 ac_nxt='"$tmp/out2"'
22393 # Write a here document:
22394 cat >>$CONFIG_STATUS <<_ACEOF
22395 # First, check the format of the line:
22396 cat >"\$tmp/defines.sed" <<\\CEOF
22397 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22398 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22402 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22404 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22405 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22406 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22407 grep . conftest.tail >/dev/null || break
22408 rm -f conftest.defines
22409 mv conftest.tail conftest.defines
22411 rm -f conftest.defines conftest.tail
22413 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22414 cat >>$CONFIG_STATUS <<\_ACEOF
22415 if test x"$ac_file" != x-; then
22416 echo "/* $configure_input */" >"$tmp/config.h"
22417 cat "$ac_result" >>"$tmp/config.h"
22418 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22419 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22420 echo "$as_me: $ac_file is unchanged" >&6;}
22423 mv "$tmp/config.h" $ac_file
22426 echo "/* $configure_input */"
22432 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22433 echo "$as_me: executing $ac_file commands" >&6;}
22438 case $ac_file$ac_mode in
22439 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22441 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22443 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22445 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22447 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22449 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22451 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22453 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22454 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22455 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22457 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22458 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22459 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22460 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22461 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22462 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22463 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22464 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22470 { (exit 0); exit 0; }
22472 chmod +x $CONFIG_STATUS
22473 ac_clean_files=$ac_clean_files_save
22476 # configure is writing to config.log, and then calls config.status.
22477 # config.status does its own redirection, appending to config.log.
22478 # Unfortunately, on DOS this fails, as config.log is still kept open
22479 # by configure, so config.status won't be able to write to it; its
22480 # output is simply discarded. So we exec the FD to /dev/null,
22481 # effectively closing config.log, so it can be properly (re)opened and
22482 # appended to by config.status. When coming back to configure, we
22483 # need to make the FD available again.
22484 if test "$no_create" != yes; then
22486 ac_config_status_args=
22487 test "$silent" = yes &&
22488 ac_config_status_args="$ac_config_status_args --quiet"
22490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22493 # would make configure fail if this is the last instruction.
22494 $ac_cs_success || { (exit 1); exit 1; }
22498 # CONFIG_SUBDIRS section.
22500 if test "$no_recursion" != yes; then
22502 # Remove --cache-file and --srcdir arguments so they do not pile up.
22503 ac_sub_configure_args=
22505 eval "set x $ac_configure_args"
22509 if test -n "$ac_prev"; then
22514 -cache-file | --cache-file | --cache-fil | --cache-fi \
22515 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22516 ac_prev=cache_file ;;
22517 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22518 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22521 --config-cache | -C)
22523 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22525 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22527 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22529 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22533 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22535 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22539 # Always prepend --prefix to ensure using the same prefix
22540 # in subdir configurations.
22541 ac_arg="--prefix=$prefix"
22543 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22545 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22548 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22550 # Do not complain, so a configure script can configure whichever
22551 # parts of a large source tree are present.
22552 test -d "$srcdir/$ac_dir" || continue
22554 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22555 echo "$as_me:$LINENO: $ac_msg" >&5
22559 -*) as_dir=./$as_dir;;
22561 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22565 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22566 *) as_qdir=$as_dir;;
22568 as_dirs="'$as_qdir' $as_dirs"
22569 as_dir=`$as_dirname -- "$as_dir" ||
22570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22571 X"$as_dir" : 'X\(//\)[^/]' \| \
22572 X"$as_dir" : 'X\(//\)$' \| \
22573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22579 /^X\(\/\/\)[^/].*/{
22592 test -d "$as_dir" && break
22594 test -z "$as_dirs" || eval "mkdir $as_dirs"
22595 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22596 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22597 { (exit 1); exit 1; }; }; }
22601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22604 # A ".." for each directory in $ac_dir_suffix.
22605 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22606 case $ac_top_builddir_sub in
22607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22611 ac_abs_top_builddir=$ac_pwd
22612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22613 # for backward compatibility:
22614 ac_top_builddir=$ac_top_build_prefix
22617 .) # We are building in place.
22619 ac_top_srcdir=$ac_top_builddir_sub
22620 ac_abs_top_srcdir=$ac_pwd ;;
22621 [\\/]* | ?:[\\/]* ) # Absolute name.
22622 ac_srcdir=$srcdir$ac_dir_suffix;
22623 ac_top_srcdir=$srcdir
22624 ac_abs_top_srcdir=$srcdir ;;
22625 *) # Relative name.
22626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22627 ac_top_srcdir=$ac_top_build_prefix$srcdir
22628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22635 # Check for guested configure; otherwise get Cygnus style configure.
22636 if test -f "$ac_srcdir/configure.gnu"; then
22637 ac_sub_configure=$ac_srcdir/configure.gnu
22638 elif test -f "$ac_srcdir/configure"; then
22639 ac_sub_configure=$ac_srcdir/configure
22640 elif test -f "$ac_srcdir/configure.in"; then
22641 # This should be Cygnus configure.
22642 ac_sub_configure=$ac_aux_dir/configure
22644 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22645 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22649 # The recursion is here.
22650 if test -n "$ac_sub_configure"; then
22651 # Make the cache file name correct relative to the subdirectory.
22652 case $cache_file in
22653 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22654 *) # Relative name.
22655 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22658 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22659 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22660 # The eval makes quoting arguments work.
22661 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22662 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22663 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22664 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22665 { (exit 1); exit 1; }; }