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
759 HAVE_LINK_VERSION_SCRIPT
762 CONVENIENCE_LTDL_TRUE
763 CONVENIENCE_LTDL_FALSE
766 NO_MISSING_FIELD_INITIALIZERS
787 ENABLE_VISIBILITY_INLINES_HIDDEN
793 ac_precious_vars='build_alias
804 ac_subdirs_all='projects/llvm-gcc
808 projects/llvm-poolalloc
811 projects/llvm-stacker
819 # Initialize some variables set by options.
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of llvm 3.1svn:";;
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-polly Use polly if available (default is YES)
1393 --enable-libcpp Use libc++ if available (default is NO)
1394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1398 --enable-expensive-checks
1399 Compile with expensive debug checks enabled (default
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
1405 --enable-jit Enable Just In Time Compiling (default is YES)
1406 --enable-docs Build documents (default is YES)
1407 --enable-doxygen Build doxygen documentation (default is NO)
1408 --enable-threads Use threads if available (default is YES)
1409 --enable-pthreads Use pthreads if available (default is YES)
1410 --enable-pic Build LLVM with Position Independent Code (default
1412 --enable-shared Build a shared library and link tools against it
1414 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1415 Win32 DLL (default is NO)
1416 --enable-timestamps Enable embedding timestamp information in build
1418 --enable-targets Build specific host targets: all or
1419 target1,target2,... Valid targets are: host, x86,
1420 x86_64, sparc, powerpc, arm, mips, spu, xcore,
1421 msp430, ptx, cbe, and cpp (default=all)
1422 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1424 --enable-bindings Build specific language bindings:
1425 all,auto,none,{binding-name} (default=auto)
1426 --enable-libffi Check for the presence of libffi (default is NO)
1427 --enable-ltdl-install install libltdl
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-optimize-option Select the compiler options to use for optimized
1434 --with-extra-options Specify additional options to compile LLVM with
1435 --with-extra-ld-options Specify additional options to link LLVM with
1436 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 --with-clang-srcdir Directory to the out-of-tree Clang source
1439 --with-clang-resource-dir
1440 Relative directory from the Clang binary for
1442 --with-c-include-dirs Colon separated list of directories clang will
1444 --with-cxx-include-root Directory with the libstdc++ headers.
1445 --with-cxx-include-arch Architecture of the libstdc++ headers.
1446 --with-cxx-include-32bit-dir
1447 32 bit multilib dir.
1448 --with-cxx-include-64bit-dir
1449 64 bit multilib directory.
1450 --with-binutils-include Specify path to binutils/include/ containing
1451 plugin-api.h file for gold plugin.
1452 --with-bug-report-url Specify the URL where bug reports should be
1453 submitted (default=http://llvm.org/bugs/)
1454 --with-tclinclude directory where tcl headers are
1455 --with-udis86=<path> Use udis86 external x86 disassembler library
1456 --with-oprofile=<prefix>
1457 Tell OProfile >= 0.9.4 how to symbolize JIT output
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1473 Report bugs to <llvmbugs@cs.uiuc.edu>.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" || continue
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1501 .) # We are building in place.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1534 llvm configure 3.1svn
1535 generated by GNU Autoconf 2.60
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1542 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1550 It was created by llvm $as_me 3.1svn, which was
1551 generated by GNU Autoconf 2.60. Invocation command line was
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1572 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1576 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 echo "PATH: $as_dir"
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_must_keep_next=false
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628 if test $ac_must_keep_next = true; then
1629 ac_must_keep_next=false # Got value, back to normal.
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 -* ) ac_must_keep_next=true ;;
1643 ac_configure_args="$ac_configure_args '$ac_arg'"
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log. We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1667 # The following way of writing the cache mishandles newlines in values,
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678 _ | IFS | as_nl) ;; #(
1679 *) $as_unset $ac_var ;;
1684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
1687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1704 for ac_var in $ac_subst_vars
1706 eval ac_val=\$$ac_var
1708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 echo "$ac_var='\''$ac_val'\''"
1714 if test -n "$ac_subst_files"; then
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1721 for ac_var in $ac_subst_files
1723 eval ac_val=\$$ac_var
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 echo "$ac_var='\''$ac_val'\''"
1732 if test -s confdefs.h; then
1742 test "$ac_signal" != 0 &&
1743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
1746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750 for ac_signal in 1 2 13 15; do
1751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1758 # Predefined preprocessor variables.
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788 set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
1798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801 sed 's/^/| /' "$ac_site_file" >&5
1806 if test -r "$cache_file"; then
1807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
1818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1823 # Check that the precious variables saved in the cache have kept the same
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
1829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
1831 case $ac_old_set,$ac_new_set in
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
1843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846 echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848 echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856 *) ac_arg=$ac_var=$ac_new_val ;;
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864 if $ac_cache_corrupted; then
1865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1913 for ac_dir in autoconf "$srcdir"/autoconf; do
1914 if test -f "$ac_dir/install-sh"; then
1916 ac_install_sh="$ac_aux_dir/install-sh -c"
1918 elif test -f "$ac_dir/install.sh"; then
1920 ac_install_sh="$ac_aux_dir/install.sh -c"
1922 elif test -f "$ac_dir/shtool"; then
1924 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 if test -z "$ac_aux_dir"; then
1929 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1930 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1931 { (exit 1); exit 1; }; }
1934 # These three variables are undocumented and unsupported,
1935 # and are intended to be withdrawn in a future Autoconf release.
1936 # They can cause serious problems if a builder's source tree is in a directory
1937 # whose full name contains unusual characters.
1938 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1939 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1940 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1944 if test ${srcdir} != "." ; then
1945 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1946 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1947 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1948 { (exit 1); exit 1; }; }
1953 ac_cpp='$CPP $CPPFLAGS'
1954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1957 if test -n "$ac_tool_prefix"; then
1958 for ac_prog in clang llvm-gcc gcc
1960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1964 if test "${ac_cv_prog_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 if test -n "$CC"; then
1968 ac_cv_prog_CC="$CC" # Let the user override the test.
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1977 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 if test -n "$CC"; then
1989 { echo "$as_me:$LINENO: result: $CC" >&5
1990 echo "${ECHO_T}$CC" >&6; }
1992 { echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6; }
1997 test -n "$CC" && break
2000 if test -z "$CC"; then
2002 for ac_prog in clang llvm-gcc gcc
2004 # Extract the first word of "$ac_prog", so it can be a program name with args.
2005 set dummy $ac_prog; ac_word=$2
2006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$ac_ct_CC"; then
2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2021 ac_cv_prog_ac_ct_CC="$ac_prog"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032 if test -n "$ac_ct_CC"; then
2033 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034 echo "${ECHO_T}$ac_ct_CC" >&6; }
2036 { echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6; }
2041 test -n "$ac_ct_CC" && break
2044 if test "x$ac_ct_CC" = x; then
2047 case $cross_compiling:$ac_tool_warned in
2049 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2050 whose name does not start with the host triplet. If you think this
2051 configuration is useful to you, please write to autoconf@gnu.org." >&5
2052 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2053 whose name does not start with the host triplet. If you think this
2054 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2055 ac_tool_warned=yes ;;
2062 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&2;}
2066 { (exit 1); exit 1; }; }
2068 # Provide some information about the compiler.
2069 echo "$as_me:$LINENO: checking for C compiler version" >&5
2070 ac_compiler=`set X $ac_compile; echo $2`
2071 { (ac_try="$ac_compiler --version >&5"
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2077 (eval "$ac_compiler --version >&5") 2>&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2081 { (ac_try="$ac_compiler -v >&5"
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087 (eval "$ac_compiler -v >&5") 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091 { (ac_try="$ac_compiler -V >&5"
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler -V >&5") 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2102 cat >conftest.$ac_ext <<_ACEOF
2105 cat confdefs.h >>conftest.$ac_ext
2106 cat >>conftest.$ac_ext <<_ACEOF
2107 /* end confdefs.h. */
2117 ac_clean_files_save=$ac_clean_files
2118 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2119 # Try to create an executable without -o first, disregard a.out.
2120 # It will help us diagnose broken compilers, and finding out an intuition
2122 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2123 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2124 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2126 # List of possible output files, starting from the most likely.
2127 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2128 # only as a last resort. b.out is created by i960 compilers.
2129 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2131 # The IRIX 6 linker writes into existing files which may not be
2132 # executable, retaining their permissions. Remove them first so a
2133 # subsequent execution test works.
2135 for ac_file in $ac_files
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2139 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2144 if { (ac_try="$ac_link_default"
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_link_default") 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; then
2154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2157 # so that the user can short-circuit this test for compilers unknown to
2159 for ac_file in $ac_files
2161 test -f "$ac_file" || continue
2163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2166 # We found the default executable, but exeext='' is most
2170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2174 # We set ac_cv_exeext here because the later test for it is not
2175 # safe: cross compilers may not add the suffix if given an `-o'
2176 # argument, so we may need to know it at that point already.
2177 # Even if this section looks crufty: it has the advantage of
2184 test "$ac_cv_exeext" = no && ac_cv_exeext=
2187 echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2190 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&2;}
2194 { (exit 77); exit 77; }; }
2197 ac_exeext=$ac_cv_exeext
2198 { echo "$as_me:$LINENO: result: $ac_file" >&5
2199 echo "${ECHO_T}$ac_file" >&6; }
2201 # Check that the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2204 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2206 # If not cross compiling, check that we can run a simple program.
2207 if test "$cross_compiling" != yes; then
2208 if { ac_try='./$ac_file'
2209 { (case "(($ac_try" in
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2214 (eval "$ac_try") 2>&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2220 if test "$cross_compiling" = maybe; then
2223 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2224 If you meant to cross compile, use \`--host'.
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2233 { echo "$as_me:$LINENO: result: yes" >&5
2234 echo "${ECHO_T}yes" >&6; }
2236 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2237 ac_clean_files=$ac_clean_files_save
2238 # Check that the compiler produces executables we can run. If not, either
2239 # the compiler is broken, or we cross compile.
2240 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2241 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2242 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2243 echo "${ECHO_T}$cross_compiling" >&6; }
2245 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2246 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2247 if { (ac_try="$ac_link"
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253 (eval "$ac_link") 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; then
2257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2259 # work properly (i.e., refer to `conftest.exe'), while it won't with
2261 for ac_file in conftest.exe conftest conftest.*; do
2262 test -f "$ac_file" || continue
2264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2271 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2278 rm -f conftest$ac_cv_exeext
2279 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2280 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2282 rm -f conftest.$ac_ext
2283 EXEEXT=$ac_cv_exeext
2285 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2286 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2287 if test "${ac_cv_objext+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 cat >conftest.$ac_ext <<_ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 rm -f conftest.o conftest.obj
2306 if { (ac_try="$ac_compile"
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2312 (eval "$ac_compile") 2>&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; then
2316 for ac_file in conftest.o conftest.obj conftest.*; do
2317 test -f "$ac_file" || continue;
2319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2320 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2328 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2335 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2337 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2338 echo "${ECHO_T}$ac_cv_objext" >&6; }
2339 OBJEXT=$ac_cv_objext
2341 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2342 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2343 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 cat >conftest.$ac_ext <<_ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h. */
2364 rm -f conftest.$ac_objext
2365 if { (ac_try="$ac_compile"
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_compile") 2>conftest.er1
2373 grep -v '^ *+' conftest.er1 >conftest.err
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2379 { (case "(($ac_try" in
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_try") 2>&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try='test -s conftest.$ac_objext'
2389 { (case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_try") 2>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2411 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2412 GCC=`test $ac_compiler_gnu = yes && echo yes`
2413 ac_test_CFLAGS=${CFLAGS+set}
2414 ac_save_CFLAGS=$CFLAGS
2415 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2416 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2417 if test "${ac_cv_prog_cc_g+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 ac_save_c_werror_flag=$ac_c_werror_flag
2421 ac_c_werror_flag=yes
2424 cat >conftest.$ac_ext <<_ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2439 rm -f conftest.$ac_objext
2440 if { (ac_try="$ac_compile"
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_compile") 2>conftest.er1
2448 grep -v '^ *+' conftest.er1 >conftest.err
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2454 { (case "(($ac_try" in
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459 (eval "$ac_try") 2>&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest.$ac_objext'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_try") 2>&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2479 cat >conftest.$ac_ext <<_ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2494 rm -f conftest.$ac_objext
2495 if { (ac_try="$ac_compile"
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_compile") 2>conftest.er1
2503 grep -v '^ *+' conftest.er1 >conftest.err
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2509 { (case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 (eval "$ac_try") 2>&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try='test -s conftest.$ac_objext'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2533 ac_c_werror_flag=$ac_save_c_werror_flag
2535 cat >conftest.$ac_ext <<_ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2550 rm -f conftest.$ac_objext
2551 if { (ac_try="$ac_compile"
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_compile") 2>conftest.er1
2559 grep -v '^ *+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2565 { (case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_try") 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_try") 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_c_werror_flag=$ac_save_c_werror_flag
2601 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2602 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2603 if test "$ac_test_CFLAGS" = set; then
2604 CFLAGS=$ac_save_CFLAGS
2605 elif test $ac_cv_prog_cc_g = yes; then
2606 if test "$GCC" = yes; then
2612 if test "$GCC" = yes; then
2618 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2619 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_cc_c89+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 ac_cv_prog_cc_c89=no
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2633 #include <sys/types.h>
2634 #include <sys/stat.h>
2635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2636 struct buf { int x; };
2637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2638 static char *e (p, i)
2644 static char *f (char * (*g) (char **, int), char **p, ...)
2649 s = g (p, va_arg (v,int));
2654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2655 function prototypes and stuff, but not '\xHH' hex character constants.
2656 These don't provoke an error unfortunately, instead are silently treated
2657 as 'x'. The following induces an error, until -std is added to get
2658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2659 array size at least. It's necessary to write '\x00'==0 to get something
2660 that's true only with -std. */
2661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2664 inside strings and character constants. */
2666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2668 int test (int i, double x);
2669 struct s1 {int (*f) (int a);};
2670 struct s2 {int (*f) (double a);};
2671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2685 CC="$ac_save_CC $ac_arg"
2686 rm -f conftest.$ac_objext
2687 if { (ac_try="$ac_compile"
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compile") 2>conftest.er1
2695 grep -v '^ *+' conftest.er1 >conftest.err
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_try") 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_try") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 ac_cv_prog_cc_c89=$ac_arg
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2728 rm -f core conftest.err conftest.$ac_objext
2729 test "x$ac_cv_prog_cc_c89" != "xno" && break
2731 rm -f conftest.$ac_ext
2736 case "x$ac_cv_prog_cc_c89" in
2738 { echo "$as_me:$LINENO: result: none needed" >&5
2739 echo "${ECHO_T}none needed" >&6; } ;;
2741 { echo "$as_me:$LINENO: result: unsupported" >&5
2742 echo "${ECHO_T}unsupported" >&6; } ;;
2744 CC="$CC $ac_cv_prog_cc_c89"
2745 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2751 ac_cpp='$CPP $CPPFLAGS'
2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757 ac_cpp='$CXXCPP $CPPFLAGS'
2758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2761 if test -z "$CXX"; then
2762 if test -n "$CCC"; then
2765 if test -n "$ac_tool_prefix"; then
2766 for ac_prog in clang++ llvm-g++ g++
2768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_CXX+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 if test -n "$CXX"; then
2776 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 if test -n "$CXX"; then
2797 { echo "$as_me:$LINENO: result: $CXX" >&5
2798 echo "${ECHO_T}$CXX" >&6; }
2800 { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2805 test -n "$CXX" && break
2808 if test -z "$CXX"; then
2810 for ac_prog in clang++ llvm-g++ g++
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy $ac_prog; ac_word=$2
2814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2816 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 if test -n "$ac_ct_CXX"; then
2820 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_ac_ct_CXX="$ac_prog"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2840 if test -n "$ac_ct_CXX"; then
2841 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2842 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2844 { echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6; }
2849 test -n "$ac_ct_CXX" && break
2852 if test "x$ac_ct_CXX" = x; then
2855 case $cross_compiling:$ac_tool_warned in
2857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2858 whose name does not start with the host triplet. If you think this
2859 configuration is useful to you, please write to autoconf@gnu.org." >&5
2860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2861 whose name does not start with the host triplet. If you think this
2862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2863 ac_tool_warned=yes ;;
2871 # Provide some information about the compiler.
2872 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2873 ac_compiler=`set X $ac_compile; echo $2`
2874 { (ac_try="$ac_compiler --version >&5"
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_compiler --version >&5") 2>&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884 { (ac_try="$ac_compiler -v >&5"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler -v >&5") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894 { (ac_try="$ac_compiler -V >&5"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compiler -V >&5") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2905 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2906 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2907 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 cat >conftest.$ac_ext <<_ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2943 { (case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_try") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_try") 2>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2975 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2976 GXX=`test $ac_compiler_gnu = yes && echo yes`
2977 ac_test_CXXFLAGS=${CXXFLAGS+set}
2978 ac_save_CXXFLAGS=$CXXFLAGS
2979 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2980 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_cxx_g+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2985 ac_cxx_werror_flag=yes
2988 cat >conftest.$ac_ext <<_ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compile") 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3037 ac_cv_prog_cxx_g=yes
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3073 { (case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_try") 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3099 cat >conftest.$ac_ext <<_ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3114 rm -f conftest.$ac_objext
3115 if { (ac_try="$ac_compile"
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_compile") 2>conftest.er1
3123 grep -v '^ *+' conftest.er1 >conftest.err
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; } &&
3138 { ac_try='test -s conftest.$ac_objext'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_prog_cxx_g=yes
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3165 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3166 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3167 if test "$ac_test_CXXFLAGS" = set; then
3168 CXXFLAGS=$ac_save_CXXFLAGS
3169 elif test $ac_cv_prog_cxx_g = yes; then
3170 if test "$GXX" = yes; then
3176 if test "$GXX" = yes; then
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 ac_cpp='$CPP $CPPFLAGS'
3190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3194 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3195 # On Suns, sometimes $CPP names a directory.
3196 if test -n "$CPP" && test -d "$CPP"; then
3199 if test -z "$CPP"; then
3200 if test "${ac_cv_prog_CPP+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 # Double quotes because CPP needs to be expanded
3204 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207 for ac_c_preproc_warn_flag in '' yes
3209 # Use a header file that comes with gcc, so configuring glibc
3210 # with a fresh cross-compiler works.
3211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3212 # <limits.h> exists even on freestanding compilers.
3213 # On the NeXT, cc -E runs the code through the compiler's parser,
3214 # not just through cpp. "Syntax error" is here to catch this case.
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3222 # include <limits.h>
3224 # include <assert.h>
3228 if { (ac_try="$ac_cpp conftest.$ac_ext"
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3236 grep -v '^ *+' conftest.er1 >conftest.err
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } >/dev/null; then
3241 if test -s conftest.err; then
3242 ac_cpp_err=$ac_c_preproc_warn_flag
3243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250 if test -z "$ac_cpp_err"; then
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 # Broken: fails on valid input.
3260 rm -f conftest.err conftest.$ac_ext
3262 # OK, works on sane cases. Now check whether nonexistent headers
3263 # can be detected and how.
3264 cat >conftest.$ac_ext <<_ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3270 #include <ac_nonexistent.h>
3272 if { (ac_try="$ac_cpp conftest.$ac_ext"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } >/dev/null; then
3285 if test -s conftest.err; then
3286 ac_cpp_err=$ac_c_preproc_warn_flag
3287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3294 if test -z "$ac_cpp_err"; then
3295 # Broken: success on invalid input.
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 # Passes both tests.
3306 rm -f conftest.err conftest.$ac_ext
3309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3310 rm -f conftest.err conftest.$ac_ext
3311 if $ac_preproc_ok; then
3323 { echo "$as_me:$LINENO: result: $CPP" >&5
3324 echo "${ECHO_T}$CPP" >&6; }
3326 for ac_c_preproc_warn_flag in '' yes
3328 # Use a header file that comes with gcc, so configuring glibc
3329 # with a fresh cross-compiler works.
3330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3331 # <limits.h> exists even on freestanding compilers.
3332 # On the NeXT, cc -E runs the code through the compiler's parser,
3333 # not just through cpp. "Syntax error" is here to catch this case.
3334 cat >conftest.$ac_ext <<_ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3341 # include <limits.h>
3343 # include <assert.h>
3347 if { (ac_try="$ac_cpp conftest.$ac_ext"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3355 grep -v '^ *+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } >/dev/null; then
3360 if test -s conftest.err; then
3361 ac_cpp_err=$ac_c_preproc_warn_flag
3362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3369 if test -z "$ac_cpp_err"; then
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 # Broken: fails on valid input.
3379 rm -f conftest.err conftest.$ac_ext
3381 # OK, works on sane cases. Now check whether nonexistent headers
3382 # can be detected and how.
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 #include <ac_nonexistent.h>
3391 if { (ac_try="$ac_cpp conftest.$ac_ext"
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_c_preproc_warn_flag
3406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413 if test -z "$ac_cpp_err"; then
3414 # Broken: success on invalid input.
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 # Passes both tests.
3425 rm -f conftest.err conftest.$ac_ext
3428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3429 rm -f conftest.err conftest.$ac_ext
3430 if $ac_preproc_ok; then
3433 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&5
3435 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&2;}
3437 { (exit 1); exit 1; }; }
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449 if test -d ${srcdir}/projects/llvm-gcc ; then
3450 subdirs="$subdirs projects/llvm-gcc"
3454 if test -d ${srcdir}/projects/test-suite ; then
3455 subdirs="$subdirs projects/test-suite"
3459 if test -d ${srcdir}/projects/llvm-test ; then
3460 subdirs="$subdirs projects/llvm-test"
3464 if test -d ${srcdir}/projects/poolalloc ; then
3465 subdirs="$subdirs projects/poolalloc"
3469 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3470 subdirs="$subdirs projects/llvm-poolalloc"
3474 for i in `ls ${srcdir}/projects`
3476 if test -d ${srcdir}/projects/${i} ; then
3478 sample) subdirs="$subdirs projects/sample"
3480 privbracket) subdirs="$subdirs projects/privbracket"
3482 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3484 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3486 llvm-java) subdirs="$subdirs projects/llvm-java"
3488 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3490 safecode) subdirs="$subdirs projects/safecode"
3492 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3500 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3501 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3507 # Check whether --enable-polly was given.
3508 if test "${enable_polly+set}" = set; then
3509 enableval=$enable_polly;
3514 case "$enableval" in
3519 default) ENABLE_POLLY=1
3521 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3522 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3523 { (exit 1); exit 1; }; } ;;
3527 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3530 subdirs="$subdirs tools/polly"
3535 # Make sure we can run config.sub.
3536 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3537 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3538 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3539 { (exit 1); exit 1; }; }
3541 { echo "$as_me:$LINENO: checking build system type" >&5
3542 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3543 if test "${ac_cv_build+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 ac_build_alias=$build_alias
3547 test "x$ac_build_alias" = x &&
3548 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3549 test "x$ac_build_alias" = x &&
3550 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3551 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3552 { (exit 1); exit 1; }; }
3553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3554 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3555 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3556 { (exit 1); exit 1; }; }
3559 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3560 echo "${ECHO_T}$ac_cv_build" >&6; }
3561 case $ac_cv_build in
3563 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3564 echo "$as_me: error: invalid value of canonical build" >&2;}
3565 { (exit 1); exit 1; }; };;
3568 ac_save_IFS=$IFS; IFS='-'
3574 # Remember, the first character of IFS is used to create $*,
3575 # except with old shells:
3578 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3581 { echo "$as_me:$LINENO: checking host system type" >&5
3582 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3583 if test "${ac_cv_host+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 if test "x$host_alias" = x; then
3587 ac_cv_host=$ac_cv_build
3589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3590 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3591 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3592 { (exit 1); exit 1; }; }
3596 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3597 echo "${ECHO_T}$ac_cv_host" >&6; }
3600 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3601 echo "$as_me: error: invalid value of canonical host" >&2;}
3602 { (exit 1); exit 1; }; };;
3605 ac_save_IFS=$IFS; IFS='-'
3611 # Remember, the first character of IFS is used to create $*,
3612 # except with old shells:
3615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3618 { echo "$as_me:$LINENO: checking target system type" >&5
3619 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3620 if test "${ac_cv_target+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 if test "x$target_alias" = x; then
3624 ac_cv_target=$ac_cv_host
3626 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3627 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3628 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3629 { (exit 1); exit 1; }; }
3633 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3634 echo "${ECHO_T}$ac_cv_target" >&6; }
3635 case $ac_cv_target in
3637 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3638 echo "$as_me: error: invalid value of canonical target" >&2;}
3639 { (exit 1); exit 1; }; };;
3641 target=$ac_cv_target
3642 ac_save_IFS=$IFS; IFS='-'
3648 # Remember, the first character of IFS is used to create $*,
3649 # except with old shells:
3652 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3655 # The aliases save the names the user supplied, while $host etc.
3656 # will get canonicalized.
3657 test -n "$target_alias" &&
3658 test "$program_prefix$program_suffix$program_transform_name" = \
3660 program_prefix=${target_alias}-
3662 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3663 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3664 if test "${llvm_cv_os_type+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="AIX"
3672 llvm_cv_platform_type="Unix" ;;
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="IRIX"
3677 llvm_cv_platform_type="Unix" ;;
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="Cygwin"
3682 llvm_cv_platform_type="Unix" ;;
3684 llvm_cv_link_all_option="-Wl,-all_load"
3685 llvm_cv_no_link_all_option="-Wl,-noall_load"
3686 llvm_cv_os_type="Darwin"
3687 llvm_cv_platform_type="Unix" ;;
3689 llvm_cv_link_all_option="-Wl,-all_load"
3690 llvm_cv_no_link_all_option="-Wl,-noall_load"
3691 llvm_cv_os_type="Minix"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,--whole-archive"
3695 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696 llvm_cv_os_type="FreeBSD"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,--whole-archive"
3700 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3701 llvm_cv_os_type="OpenBSD"
3702 llvm_cv_platform_type="Unix" ;;
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="NetBSD"
3707 llvm_cv_platform_type="Unix" ;;
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="DragonFly"
3712 llvm_cv_platform_type="Unix" ;;
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="HP-UX"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Interix"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Linux"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option="-Wl,-z,allextract"
3730 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3731 llvm_cv_os_type="SunOS"
3732 llvm_cv_platform_type="Unix" ;;
3734 llvm_cv_link_all_option="-Wl,-z,allextract"
3735 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3736 llvm_cv_os_type="AuroraUX"
3737 llvm_cv_platform_type="Unix" ;;
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="Win32"
3742 llvm_cv_platform_type="Win32" ;;
3744 llvm_cv_link_all_option="-Wl,--whole-archive"
3745 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746 llvm_cv_os_type="MingW"
3747 llvm_cv_platform_type="Win32" ;;
3749 llvm_cv_link_all_option="-Wl,--whole-archive"
3750 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3751 llvm_cv_os_type="Haiku"
3752 llvm_cv_platform_type="Unix" ;;
3754 llvm_cv_link_all_option="-Wl,--whole-archive"
3755 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3756 llvm_cv_os_type="Freestanding"
3757 llvm_cv_platform_type="Unix" ;;
3759 llvm_cv_link_all_option="-Wl,--whole-archive"
3760 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761 llvm_cv_os_type="Freestanding"
3762 llvm_cv_platform_type="Unix" ;;
3764 llvm_cv_link_all_option=""
3765 llvm_cv_no_link_all_option=""
3766 llvm_cv_os_type="Unknown"
3767 llvm_cv_platform_type="Unknown" ;;
3770 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3771 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3773 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3774 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3775 if test "${llvm_cv_target_os_type+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 llvm_cv_target_os_type="AIX" ;;
3782 llvm_cv_target_os_type="IRIX" ;;
3784 llvm_cv_target_os_type="Cygwin" ;;
3786 llvm_cv_target_os_type="Darwin" ;;
3788 llvm_cv_target_os_type="Minix" ;;
3790 llvm_cv_target_os_type="FreeBSD" ;;
3792 llvm_cv_target_os_type="OpenBSD" ;;
3794 llvm_cv_target_os_type="NetBSD" ;;
3796 llvm_cv_target_os_type="DragonFly" ;;
3798 llvm_cv_target_os_type="HP-UX" ;;
3800 llvm_cv_target_os_type="Interix" ;;
3802 llvm_cv_target_os_type="Linux" ;;
3804 llvm_cv_target_os_type="SunOS" ;;
3806 llvm_cv_target_os_type="AuroraUX" ;;
3808 llvm_cv_target_os_type="Win32" ;;
3810 llvm_cv_target_os_type="MingW" ;;
3812 llvm_cv_target_os_type="Haiku" ;;
3814 llvm_cv_target_os_type="RTEMS" ;;
3816 llvm_cv_target_os_type="NativeClient" ;;
3818 llvm_cv_target_os_type="Freestanding" ;;
3820 llvm_cv_target_os_type="Unknown" ;;
3823 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3824 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3826 if test "$llvm_cv_os_type" = "Unknown" ; then
3827 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3828 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3829 { (exit 1); exit 1; }; }
3834 HOST_OS=$llvm_cv_os_type
3836 TARGET_OS=$llvm_cv_target_os_type
3839 LINKALL=$llvm_cv_link_all_option
3841 NOLINKALL=$llvm_cv_no_link_all_option
3844 case $llvm_cv_platform_type in
3847 cat >>confdefs.h <<\_ACEOF
3848 #define LLVM_ON_UNIX 1
3858 cat >>confdefs.h <<\_ACEOF
3859 #define LLVM_ON_WIN32 1
3869 { echo "$as_me:$LINENO: checking target architecture" >&5
3870 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3871 if test "${llvm_cv_target_arch+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 i?86-*) llvm_cv_target_arch="x86" ;;
3876 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3877 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3878 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3879 arm*-*) llvm_cv_target_arch="ARM" ;;
3880 mips-*) llvm_cv_target_arch="Mips" ;;
3881 xcore-*) llvm_cv_target_arch="XCore" ;;
3882 msp430-*) llvm_cv_target_arch="MSP430" ;;
3883 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3884 ptx-*) llvm_cv_target_arch="PTX" ;;
3885 *) llvm_cv_target_arch="Unknown" ;;
3888 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3891 if test "$llvm_cv_target_arch" = "Unknown" ; then
3892 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3896 # Determine the LLVM native architecture for the target
3897 case "$llvm_cv_target_arch" in
3898 x86) LLVM_NATIVE_ARCH="X86" ;;
3899 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3900 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3903 ARCH=$llvm_cv_target_arch
3908 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 # Extract the first word of "grep ggrep" to use in msg output
3914 if test -z "$GREP"; then
3915 set dummy grep ggrep; ac_prog_name=$2
3916 if test "${ac_cv_path_GREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_path_GREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925 test -z "$as_dir" && as_dir=.
3926 for ac_prog in grep ggrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
3931 # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 echo 'GREP' >> "conftest.nl"
3944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946 ac_count=`expr $ac_count + 1`
3947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP="$ac_path_GREP"
3950 ac_path_GREP_max=$ac_count
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959 $ac_path_GREP_found && break 3
3969 GREP="$ac_cv_path_GREP"
3970 if test -z "$GREP"; then
3971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3977 ac_cv_path_GREP=$GREP
3982 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3984 GREP="$ac_cv_path_GREP"
3987 { echo "$as_me:$LINENO: checking for egrep" >&5
3988 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3995 # Extract the first word of "egrep" to use in msg output
3996 if test -z "$EGREP"; then
3997 set dummy egrep; ac_prog_name=$2
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
4013 # Check for GNU $ac_path_EGREP
4014 case `"$ac_path_EGREP" --version 2>&1` in
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 echo 'EGREP' >> "conftest.nl"
4026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 ac_count=`expr $ac_count + 1`
4029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 $ac_path_EGREP_found && break 3
4051 EGREP="$ac_cv_path_EGREP"
4052 if test -z "$EGREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4059 ac_cv_path_EGREP=$EGREP
4065 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4067 EGREP="$ac_cv_path_EGREP"
4070 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072 if test "${ac_cv_header_stdc+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_header_stdc=yes
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_cv_header_stdc=no
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then
4153 ac_cv_header_stdc=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then
4174 ac_cv_header_stdc=no
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4197 # define ISLOWER(c) \
4198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
4211 || toupper (i) != TOUPPER (i))
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4238 echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4243 ac_cv_header_stdc=no
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
4274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4288 #include <$ac_header>
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4299 grep -v '^ *+' conftest.er1 >conftest.err
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_Header=yes"
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 eval "$as_ac_Header=no"
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_res=`eval echo '${'$as_ac_Header'}'`
4335 { echo "$as_me:$LINENO: result: $ac_res" >&5
4336 echo "${ECHO_T}$ac_res" >&6; }
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338 cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_bigendian+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 # See if sys/param.h defines the BYTE_ORDER macro.
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <sys/types.h>
4360 #include <sys/param.h>
4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 # It does; now see whether it defined to BIG_ENDIAN or not.
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 #include <sys/param.h>
4420 #if BYTE_ORDER != BIG_ENDIAN
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4437 grep -v '^ *+' conftest.er1 >conftest.err
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_cv_c_bigendian=yes
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_cv_c_bigendian=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 # It does not; compile a test program.
4476 if test "$cross_compiling" = yes; then
4477 # try to guess the endianness by grepping values into an object file
4478 ac_cv_c_bigendian=unknown
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4494 _ascii (); _ebcdic ();
4499 rm -f conftest.$ac_objext
4500 if { (ac_try="$ac_compile"
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_compile") 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4534 ac_cv_c_bigendian=yes
4536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537 if test "$ac_cv_c_bigendian" = unknown; then
4538 ac_cv_c_bigendian=no
4540 # finding both strings is unlikely to happen, but who knows?
4541 ac_cv_c_bigendian=unknown
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 cat >conftest.$ac_ext <<_ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 $ac_includes_default
4564 /* Are we little or big endian? From Harbison&Steele. */
4568 char c[sizeof (long int)];
4571 return u.c[sizeof (long int) - 1] == 1;
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_c_bigendian=no
4599 echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4604 ac_cv_c_bigendian=yes
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616 case $ac_cv_c_bigendian in
4624 { { echo "$as_me:$LINENO: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626 echo "$as_me: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4632 if test "$cross_compiling" = yes; then
4633 LLVM_CROSS_COMPILING=1
4636 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638 if test "${ac_cv_build_exeext+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642 ac_cv_build_exeext=.exe
4644 ac_build_prefix=${build_alias}-
4646 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647 set dummy ${ac_build_prefix}gcc; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -n "$BUILD_CC"; then
4654 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 BUILD_CC=$ac_cv_prog_BUILD_CC
4674 if test -n "$BUILD_CC"; then
4675 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676 echo "${ECHO_T}$BUILD_CC" >&6; }
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4683 if test -z "$BUILD_CC"; then
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685 set dummy gcc; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test -n "$BUILD_CC"; then
4692 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_BUILD_CC="gcc"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 BUILD_CC=$ac_cv_prog_BUILD_CC
4712 if test -n "$BUILD_CC"; then
4713 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714 echo "${ECHO_T}$BUILD_CC" >&6; }
4716 { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4721 if test -z "$BUILD_CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723 set dummy cc; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$BUILD_CC"; then
4730 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4744 ac_cv_prog_BUILD_CC="cc"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_BUILD_CC
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set BUILD_CC to just the basename; use the full file name.
4761 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4766 BUILD_CC=$ac_cv_prog_BUILD_CC
4767 if test -n "$BUILD_CC"; then
4768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769 echo "${ECHO_T}$BUILD_CC" >&6; }
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4778 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780 { (exit 1); exit 1; }; }
4781 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4783 echo 'int main () { return 0; }' > conftest.$ac_ext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4786 (eval $ac_build_link) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
4790 for file in conftest.*; do
4792 *.c | *.o | *.obj | *.dSYM) ;;
4793 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4797 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799 { (exit 1); exit 1; }; }
4802 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4807 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4808 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4810 ac_build_exeext=$BUILD_EXEEXT
4812 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}g++; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 if test -n "$BUILD_CXX"; then
4821 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841 if test -n "$BUILD_CXX"; then
4842 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843 echo "${ECHO_T}$BUILD_CXX" >&6; }
4845 { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4850 if test -z "$BUILD_CXX"; then
4851 # Extract the first word of "g++", so it can be a program name with args.
4852 set dummy g++; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 if test -n "$BUILD_CXX"; then
4859 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_BUILD_CXX="g++"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879 if test -n "$BUILD_CXX"; then
4880 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881 echo "${ECHO_T}$BUILD_CXX" >&6; }
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4888 if test -z "$BUILD_CXX"; then
4889 # Extract the first word of "c++", so it can be a program name with args.
4890 set dummy c++; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 if test -n "$BUILD_CXX"; then
4897 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908 ac_prog_rejected=yes
4911 ac_cv_prog_BUILD_CXX="c++"
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CXX
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CXX to just the basename; use the full file name.
4928 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4933 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934 if test -n "$BUILD_CXX"; then
4935 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936 echo "${ECHO_T}$BUILD_CXX" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4946 LLVM_CROSS_COMPILING=0
4950 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4961 # Check whether --enable-libcpp was given.
4962 if test "${enable_libcpp+set}" = set; then
4963 enableval=$enable_libcpp;
4968 case "$enableval" in
4969 yes) ENABLE_LIBCPP=1
4973 default) ENABLE_LIBCPP=0
4975 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4976 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4980 # Check whether --enable-optimized was given.
4981 if test "${enable_optimized+set}" = set; then
4982 enableval=$enable_optimized;
4987 if test ${enableval} = "no" ; then
4991 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4995 # Check whether --enable-profiling was given.
4996 if test "${enable_profiling+set}" = set; then
4997 enableval=$enable_profiling;
5002 if test ${enableval} = "no" ; then
5006 ENABLE_PROFILING=ENABLE_PROFILING=1
5010 # Check whether --enable-assertions was given.
5011 if test "${enable_assertions+set}" = set; then
5012 enableval=$enable_assertions;
5017 if test ${enableval} = "yes" ; then
5021 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5025 # Check whether --enable-expensive-checks was given.
5026 if test "${enable_expensive_checks+set}" = set; then
5027 enableval=$enable_expensive_checks;
5032 if test ${enableval} = "yes" ; then
5033 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5035 EXPENSIVE_CHECKS=yes
5038 ENABLE_EXPENSIVE_CHECKS=
5044 # Check whether --enable-debug-runtime was given.
5045 if test "${enable_debug_runtime+set}" = set; then
5046 enableval=$enable_debug_runtime;
5051 if test ${enableval} = "no" ; then
5055 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5059 # Check whether --enable-debug-symbols was given.
5060 if test "${enable_debug_symbols+set}" = set; then
5061 enableval=$enable_debug_symbols;
5066 if test ${enableval} = "no" ; then
5070 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5074 # Check whether --enable-jit was given.
5075 if test "${enable_jit+set}" = set; then
5076 enableval=$enable_jit;
5081 if test ${enableval} = "no"
5086 case "$llvm_cv_target_arch" in
5087 x86) TARGET_HAS_JIT=1
5089 Sparc) TARGET_HAS_JIT=0
5091 PowerPC) TARGET_HAS_JIT=1
5093 x86_64) TARGET_HAS_JIT=1
5095 ARM) TARGET_HAS_JIT=1
5097 Mips) TARGET_HAS_JIT=1
5099 XCore) TARGET_HAS_JIT=0
5101 MSP430) TARGET_HAS_JIT=0
5103 MBlaze) TARGET_HAS_JIT=0
5105 PTX) TARGET_HAS_JIT=0
5112 # Check whether --enable-docs was given.
5113 if test "${enable_docs+set}" = set; then
5114 enableval=$enable_docs;
5119 case "$enableval" in
5124 default) ENABLE_DOCS=1
5126 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5127 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5128 { (exit 1); exit 1; }; } ;;
5131 # Check whether --enable-doxygen was given.
5132 if test "${enable_doxygen+set}" = set; then
5133 enableval=$enable_doxygen;
5138 case "$enableval" in
5139 yes) ENABLE_DOXYGEN=1
5141 no) ENABLE_DOXYGEN=0
5143 default) ENABLE_DOXYGEN=0
5145 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5147 { (exit 1); exit 1; }; } ;;
5150 # Check whether --enable-threads was given.
5151 if test "${enable_threads+set}" = set; then
5152 enableval=$enable_threads;
5157 case "$enableval" in
5158 yes) ENABLE_THREADS=1
5160 no) ENABLE_THREADS=0
5162 default) ENABLE_THREADS=1
5164 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5165 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5166 { (exit 1); exit 1; }; } ;;
5169 cat >>confdefs.h <<_ACEOF
5170 #define ENABLE_THREADS $ENABLE_THREADS
5174 # Check whether --enable-pthreads was given.
5175 if test "${enable_pthreads+set}" = set; then
5176 enableval=$enable_pthreads;
5181 case "$enableval" in
5182 yes) ENABLE_PTHREADS=1
5184 no) ENABLE_PTHREADS=0
5186 default) ENABLE_PTHREADS=1
5188 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5189 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5193 # Check whether --enable-pic was given.
5194 if test "${enable_pic+set}" = set; then
5195 enableval=$enable_pic;
5200 case "$enableval" in
5205 default) ENABLE_PIC=1
5207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
5212 cat >>confdefs.h <<_ACEOF
5213 #define ENABLE_PIC $ENABLE_PIC
5217 # Check whether --enable-shared was given.
5218 if test "${enable_shared+set}" = set; then
5219 enableval=$enable_shared;
5224 case "$enableval" in
5225 yes) ENABLE_SHARED=1
5229 default) ENABLE_SHARED=0
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5236 # Check whether --enable-embed-stdcxx was given.
5237 if test "${enable_embed_stdcxx+set}" = set; then
5238 enableval=$enable_embed_stdcxx;
5243 case "$enableval" in
5244 yes) ENABLE_EMBED_STDCXX=1
5246 no) ENABLE_EMBED_STDCXX=0
5248 default) ENABLE_EMBED_STDCXX=0
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5255 # Check whether --enable-timestamps was given.
5256 if test "${enable_timestamps+set}" = set; then
5257 enableval=$enable_timestamps;
5262 case "$enableval" in
5263 yes) ENABLE_TIMESTAMPS=1
5265 no) ENABLE_TIMESTAMPS=0
5267 default) ENABLE_TIMESTAMPS=1
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 cat >>confdefs.h <<_ACEOF
5275 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5280 # Check whether --enable-targets was given.
5281 if test "${enable_targets+set}" = set; then
5282 enableval=$enable_targets;
5287 if test "$enableval" = host-only ; then
5290 case "$enableval" in
5291 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5292 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5294 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5295 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5296 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5297 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5298 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5299 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5300 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5301 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5302 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5303 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5304 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5305 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5306 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5307 host) case "$llvm_cv_target_arch" in
5308 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5313 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5314 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5315 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5316 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5319 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5320 echo "$as_me: error: Can not set target to build" >&2;}
5321 { (exit 1); exit 1; }; } ;;
5323 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5324 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5325 { (exit 1); exit 1; }; } ;;
5330 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5333 # Determine whether we are building LLVM support for the native architecture.
5334 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5335 for a_target in $TARGETS_TO_BUILD; do
5336 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5338 cat >>confdefs.h <<_ACEOF
5339 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5342 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5343 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5344 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5345 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5346 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5347 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5360 cat >>confdefs.h <<_ACEOF
5361 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5365 cat >>confdefs.h <<_ACEOF
5366 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5369 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5379 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5380 # target feature def files.
5381 LLVM_ENUM_TARGETS=""
5382 LLVM_ENUM_ASM_PRINTERS=""
5383 LLVM_ENUM_ASM_PARSERS=""
5384 LLVM_ENUM_DISASSEMBLERS=""
5385 for target_to_build in $TARGETS_TO_BUILD; do
5386 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5387 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5388 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5390 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5391 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5393 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5394 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5402 # Check whether --enable-cbe-printf-a was given.
5403 if test "${enable_cbe_printf_a+set}" = set; then
5404 enableval=$enable_cbe_printf_a;
5409 case "$enableval" in
5410 yes) ENABLE_CBE_PRINTF_A=1
5412 no) ENABLE_CBE_PRINTF_A=0
5414 default) ENABLE_CBE_PRINTF_A=1
5416 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5417 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5418 { (exit 1); exit 1; }; } ;;
5421 cat >>confdefs.h <<_ACEOF
5422 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5427 # Check whether --with-optimize-option was given.
5428 if test "${with_optimize_option+set}" = set; then
5429 withval=$with_optimize_option;
5434 { echo "$as_me:$LINENO: checking optimization flags" >&5
5435 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5438 case "$llvm_cv_os_type" in
5439 FreeBSD) optimize_option=-O2 ;;
5440 MingW) optimize_option=-O2 ;;
5441 *) optimize_option=-O3 ;;
5443 *) optimize_option="$withval" ;;
5445 OPTIMIZE_OPTION=$optimize_option
5447 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5448 echo "${ECHO_T}$optimize_option" >&6; }
5451 # Check whether --with-extra-options was given.
5452 if test "${with_extra_options+set}" = set; then
5453 withval=$with_extra_options;
5459 default) EXTRA_OPTIONS= ;;
5460 *) EXTRA_OPTIONS=$withval ;;
5462 EXTRA_OPTIONS=$EXTRA_OPTIONS
5466 # Check whether --with-extra-ld-options was given.
5467 if test "${with_extra_ld_options+set}" = set; then
5468 withval=$with_extra_ld_options;
5474 default) EXTRA_LD_OPTIONS= ;;
5475 *) EXTRA_LD_OPTIONS=$withval ;;
5477 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5480 # Check whether --enable-bindings was given.
5481 if test "${enable_bindings+set}" = set; then
5482 enableval=$enable_bindings;
5487 BINDINGS_TO_BUILD=""
5488 case "$enableval" in
5489 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5490 all ) BINDINGS_TO_BUILD="ocaml" ;;
5491 none | no) BINDINGS_TO_BUILD="" ;;
5492 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5493 case "$a_binding" in
5494 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5495 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5496 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5497 { (exit 1); exit 1; }; } ;;
5504 # Check whether --with-ocaml-libdir was given.
5505 if test "${with_ocaml_libdir+set}" = set; then
5506 withval=$with_ocaml_libdir;
5512 auto) with_ocaml_libdir="$withval" ;;
5513 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5514 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5515 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5516 { (exit 1); exit 1; }; } ;;
5520 # Check whether --with-clang-srcdir was given.
5521 if test "${with_clang_srcdir+set}" = set; then
5522 withval=$with_clang_srcdir;
5528 -) clang_src_root="" ;;
5529 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5530 *) clang_src_root="$ac_pwd/$withval" ;;
5532 CLANG_SRC_ROOT=$clang_src_root
5536 # Check whether --with-clang-resource-dir was given.
5537 if test "${with_clang_resource_dir+set}" = set; then
5538 withval=$with_clang_resource_dir;
5544 cat >>confdefs.h <<_ACEOF
5545 #define CLANG_RESOURCE_DIR "$withval"
5550 # Check whether --with-c-include-dirs was given.
5551 if test "${with_c_include_dirs+set}" = set; then
5552 withval=$with_c_include_dirs;
5558 cat >>confdefs.h <<_ACEOF
5559 #define C_INCLUDE_DIRS "$withval"
5564 # Check whether --with-cxx-include-root was given.
5565 if test "${with_cxx_include_root+set}" = set; then
5566 withval=$with_cxx_include_root;
5572 cat >>confdefs.h <<_ACEOF
5573 #define CXX_INCLUDE_ROOT "$withval"
5578 # Check whether --with-cxx-include-arch was given.
5579 if test "${with_cxx_include_arch+set}" = set; then
5580 withval=$with_cxx_include_arch;
5586 cat >>confdefs.h <<_ACEOF
5587 #define CXX_INCLUDE_ARCH "$withval"
5592 # Check whether --with-cxx-include-32bit-dir was given.
5593 if test "${with_cxx_include_32bit_dir+set}" = set; then
5594 withval=$with_cxx_include_32bit_dir;
5600 cat >>confdefs.h <<_ACEOF
5601 #define CXX_INCLUDE_32BIT_DIR "$withval"
5606 # Check whether --with-cxx-include-64bit-dir was given.
5607 if test "${with_cxx_include_64bit_dir+set}" = set; then
5608 withval=$with_cxx_include_64bit_dir;
5614 cat >>confdefs.h <<_ACEOF
5615 #define CXX_INCLUDE_64BIT_DIR "$withval"
5620 # Check whether --with-binutils-include was given.
5621 if test "${with_binutils_include+set}" = set; then
5622 withval=$with_binutils_include;
5628 default) WITH_BINUTILS_INCDIR=default ;;
5629 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5630 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5631 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5632 { (exit 1); exit 1; }; } ;;
5634 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5635 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5637 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5638 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5639 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5640 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5641 { (exit 1); exit 1; }; };
5646 # Check whether --with-bug-report-url was given.
5647 if test "${with_bug_report_url+set}" = set; then
5648 withval=$with_bug_report_url;
5650 withval="http://llvm.org/bugs/"
5654 cat >>confdefs.h <<_ACEOF
5655 #define BUG_REPORT_URL "$withval"
5659 # Check whether --enable-libffi was given.
5660 if test "${enable_libffi+set}" = set; then
5661 enableval=$enable_libffi; case "$enableval" in
5662 yes) llvm_cv_enable_libffi="yes" ;;
5663 no) llvm_cv_enable_libffi="no" ;;
5664 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5665 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5666 { (exit 1); exit 1; }; } ;;
5669 llvm_cv_enable_libffi=no
5674 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5675 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5676 if test "${lt_cv_path_NM+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 if test -n "$NM"; then
5680 # Let the user override the test.
5683 lt_nm_to_check="${ac_tool_prefix}nm"
5684 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5685 lt_nm_to_check="$lt_nm_to_check nm"
5687 for lt_tmp_nm in $lt_nm_to_check; do
5688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5689 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5691 test -z "$ac_dir" && ac_dir=.
5692 tmp_nm="$ac_dir/$lt_tmp_nm"
5693 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5694 # Check to see if the nm accepts a BSD-compat flag.
5695 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5696 # nm: unknown option "B" ignored
5697 # Tru64's nm complains that /dev/null is an invalid object file
5698 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5699 */dev/null* | *'Invalid file or object type'*)
5700 lt_cv_path_NM="$tmp_nm -B"
5704 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5706 lt_cv_path_NM="$tmp_nm -p"
5710 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5711 continue # so that we can try to find one that supports BSD flags
5720 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5723 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5724 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5729 { echo "$as_me:$LINENO: checking for GNU make" >&5
5730 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5731 if test "${llvm_cv_gnu_make_command+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 llvm_cv_gnu_make_command=''
5735 for a in "$MAKE" make gmake gnumake ; do
5736 if test -z "$a" ; then continue ; fi ;
5737 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5739 llvm_cv_gnu_make_command=$a ;
5744 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5745 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5746 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5750 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5751 echo "${ECHO_T}\"Not found\"" >&6; };
5755 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5756 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5758 if test "$LN_S" = "ln -s"; then
5759 { echo "$as_me:$LINENO: result: yes" >&5
5760 echo "${ECHO_T}yes" >&6; }
5762 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5763 echo "${ECHO_T}no, using $LN_S" >&6; }
5766 # Extract the first word of "cmp", so it can be a program name with args.
5767 set dummy cmp; ac_word=$2
5768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5770 if test "${ac_cv_path_CMP+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5785 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5798 if test -n "$CMP"; then
5799 { echo "$as_me:$LINENO: result: $CMP" >&5
5800 echo "${ECHO_T}$CMP" >&6; }
5802 { echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6; }
5807 # Extract the first word of "cp", so it can be a program name with args.
5808 set dummy cp; ac_word=$2
5809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5811 if test "${ac_cv_path_CP+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5839 if test -n "$CP"; then
5840 { echo "$as_me:$LINENO: result: $CP" >&5
5841 echo "${ECHO_T}$CP" >&6; }
5843 { echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6; }
5848 # Extract the first word of "date", so it can be a program name with args.
5849 set dummy date; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_path_DATE+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5879 DATE=$ac_cv_path_DATE
5880 if test -n "$DATE"; then
5881 { echo "$as_me:$LINENO: result: $DATE" >&5
5882 echo "${ECHO_T}$DATE" >&6; }
5884 { echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6; }
5889 # Extract the first word of "find", so it can be a program name with args.
5890 set dummy find; ac_word=$2
5891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5893 if test "${ac_cv_path_FIND+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5920 FIND=$ac_cv_path_FIND
5921 if test -n "$FIND"; then
5922 { echo "$as_me:$LINENO: result: $FIND" >&5
5923 echo "${ECHO_T}$FIND" >&6; }
5925 { echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6; }
5930 # Extract the first word of "grep", so it can be a program name with args.
5931 set dummy grep; ac_word=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_path_GREP+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5949 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5961 GREP=$ac_cv_path_GREP
5962 if test -n "$GREP"; then
5963 { echo "$as_me:$LINENO: result: $GREP" >&5
5964 echo "${ECHO_T}$GREP" >&6; }
5966 { echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6; }
5971 # Extract the first word of "mkdir", so it can be a program name with args.
5972 set dummy mkdir; ac_word=$2
5973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975 if test "${ac_cv_path_MKDIR+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6002 MKDIR=$ac_cv_path_MKDIR
6003 if test -n "$MKDIR"; then
6004 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6005 echo "${ECHO_T}$MKDIR" >&6; }
6007 { echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6; }
6012 # Extract the first word of "mv", so it can be a program name with args.
6013 set dummy mv; ac_word=$2
6014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6016 if test "${ac_cv_path_MV+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6044 if test -n "$MV"; then
6045 { echo "$as_me:$LINENO: result: $MV" >&5
6046 echo "${ECHO_T}$MV" >&6; }
6048 { echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6; }
6053 if test -n "$ac_tool_prefix"; then
6054 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6055 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_prog_RANLIB+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 if test -n "$RANLIB"; then
6062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 RANLIB=$ac_cv_prog_RANLIB
6082 if test -n "$RANLIB"; then
6083 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6084 echo "${ECHO_T}$RANLIB" >&6; }
6086 { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6092 if test -z "$ac_cv_prog_RANLIB"; then
6093 ac_ct_RANLIB=$RANLIB
6094 # Extract the first word of "ranlib", so it can be a program name with args.
6095 set dummy ranlib; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 if test -n "$ac_ct_RANLIB"; then
6102 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_ac_ct_RANLIB="ranlib"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6122 if test -n "$ac_ct_RANLIB"; then
6123 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6124 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6130 if test "x$ac_ct_RANLIB" = x; then
6133 case $cross_compiling:$ac_tool_warned in
6135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet. If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&5
6138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139 whose name does not start with the host triplet. If you think this
6140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6141 ac_tool_warned=yes ;;
6143 RANLIB=$ac_ct_RANLIB
6146 RANLIB="$ac_cv_prog_RANLIB"
6149 if test -n "$ac_tool_prefix"; then
6150 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6151 set dummy ${ac_tool_prefix}ar; ac_word=$2
6152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6154 if test "${ac_cv_prog_AR+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 if test -n "$AR"; then
6158 ac_cv_prog_AR="$AR" # Let the user override the test.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_prog_AR="${ac_tool_prefix}ar"
6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 if test -n "$AR"; then
6179 { echo "$as_me:$LINENO: result: $AR" >&5
6180 echo "${ECHO_T}$AR" >&6; }
6182 { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6188 if test -z "$ac_cv_prog_AR"; then
6190 # Extract the first word of "ar", so it can be a program name with args.
6191 set dummy ar; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 if test -n "$ac_ct_AR"; then
6198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_ac_ct_AR="ar"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6218 if test -n "$ac_ct_AR"; then
6219 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6220 echo "${ECHO_T}$ac_ct_AR" >&6; }
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6226 if test "x$ac_ct_AR" = x; then
6229 case $cross_compiling:$ac_tool_warned in
6231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet. If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&5
6234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6235 whose name does not start with the host triplet. If you think this
6236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6237 ac_tool_warned=yes ;;
6245 # Extract the first word of "rm", so it can be a program name with args.
6246 set dummy rm; ac_word=$2
6247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249 if test "${ac_cv_path_RM+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6277 if test -n "$RM"; then
6278 { echo "$as_me:$LINENO: result: $RM" >&5
6279 echo "${ECHO_T}$RM" >&6; }
6281 { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6286 # Extract the first word of "sed", so it can be a program name with args.
6287 set dummy sed; ac_word=$2
6288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6290 if test "${ac_cv_path_SED+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6318 if test -n "$SED"; then
6319 { echo "$as_me:$LINENO: result: $SED" >&5
6320 echo "${ECHO_T}$SED" >&6; }
6322 { echo "$as_me:$LINENO: result: no" >&5
6323 echo "${ECHO_T}no" >&6; }
6327 # Extract the first word of "tar", so it can be a program name with args.
6328 set dummy tar; ac_word=$2
6329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6331 if test "${ac_cv_path_TAR+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6359 if test -n "$TAR"; then
6360 { echo "$as_me:$LINENO: result: $TAR" >&5
6361 echo "${ECHO_T}$TAR" >&6; }
6363 { echo "$as_me:$LINENO: result: no" >&5
6364 echo "${ECHO_T}no" >&6; }
6368 # Extract the first word of "pwd", so it can be a program name with args.
6369 set dummy pwd; ac_word=$2
6370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6372 if test "${ac_cv_path_BINPWD+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6399 BINPWD=$ac_cv_path_BINPWD
6400 if test -n "$BINPWD"; then
6401 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6402 echo "${ECHO_T}$BINPWD" >&6; }
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6410 # Extract the first word of "Graphviz", so it can be a program name with args.
6411 set dummy Graphviz; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6441 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6442 if test -n "$GRAPHVIZ"; then
6443 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6444 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6446 { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6451 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6453 cat >>confdefs.h <<\_ACEOF
6454 #define HAVE_GRAPHVIZ 1
6457 if test "$llvm_cv_os_type" = "MingW" ; then
6458 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6461 cat >>confdefs.h <<_ACEOF
6462 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6466 # Extract the first word of "dot", so it can be a program name with args.
6467 set dummy dot; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_path_DOT+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6498 if test -n "$DOT"; then
6499 { echo "$as_me:$LINENO: result: $DOT" >&5
6500 echo "${ECHO_T}$DOT" >&6; }
6502 { echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6; }
6507 if test "$DOT" != "echo dot" ; then
6509 cat >>confdefs.h <<\_ACEOF
6513 if test "$llvm_cv_os_type" = "MingW" ; then
6514 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6517 cat >>confdefs.h <<_ACEOF
6518 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6522 # Extract the first word of "fdp", so it can be a program name with args.
6523 set dummy fdp; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_FDP+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6554 if test -n "$FDP"; then
6555 { echo "$as_me:$LINENO: result: $FDP" >&5
6556 echo "${ECHO_T}$FDP" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6563 if test "$FDP" != "echo fdp" ; then
6565 cat >>confdefs.h <<\_ACEOF
6569 if test "$llvm_cv_os_type" = "MingW" ; then
6570 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6573 cat >>confdefs.h <<_ACEOF
6574 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6578 # Extract the first word of "neato", so it can be a program name with args.
6579 set dummy neato; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_NEATO+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6609 NEATO=$ac_cv_path_NEATO
6610 if test -n "$NEATO"; then
6611 { echo "$as_me:$LINENO: result: $NEATO" >&5
6612 echo "${ECHO_T}$NEATO" >&6; }
6614 { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6619 if test "$NEATO" != "echo neato" ; then
6621 cat >>confdefs.h <<\_ACEOF
6622 #define HAVE_NEATO 1
6625 if test "$llvm_cv_os_type" = "MingW" ; then
6626 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6629 cat >>confdefs.h <<_ACEOF
6630 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6634 # Extract the first word of "twopi", so it can be a program name with args.
6635 set dummy twopi; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_TWOPI+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6665 TWOPI=$ac_cv_path_TWOPI
6666 if test -n "$TWOPI"; then
6667 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6668 echo "${ECHO_T}$TWOPI" >&6; }
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6675 if test "$TWOPI" != "echo twopi" ; then
6677 cat >>confdefs.h <<\_ACEOF
6678 #define HAVE_TWOPI 1
6681 if test "$llvm_cv_os_type" = "MingW" ; then
6682 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6685 cat >>confdefs.h <<_ACEOF
6686 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6690 # Extract the first word of "circo", so it can be a program name with args.
6691 set dummy circo; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_CIRCO+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6721 CIRCO=$ac_cv_path_CIRCO
6722 if test -n "$CIRCO"; then
6723 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6724 echo "${ECHO_T}$CIRCO" >&6; }
6726 { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6731 if test "$CIRCO" != "echo circo" ; then
6733 cat >>confdefs.h <<\_ACEOF
6734 #define HAVE_CIRCO 1
6737 if test "$llvm_cv_os_type" = "MingW" ; then
6738 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6741 cat >>confdefs.h <<_ACEOF
6742 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6746 for ac_prog in gv gsview32
6748 # Extract the first word of "$ac_prog", so it can be a program name with args.
6749 set dummy $ac_prog; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_GV+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 if test -n "$GV"; then
6780 { echo "$as_me:$LINENO: result: $GV" >&5
6781 echo "${ECHO_T}$GV" >&6; }
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 test -n "$GV" && break
6790 test -n "$GV" || GV="echo gv"
6792 if test "$GV" != "echo gv" ; then
6794 cat >>confdefs.h <<\_ACEOF
6798 if test "$llvm_cv_os_type" = "MingW" ; then
6799 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6802 cat >>confdefs.h <<_ACEOF
6803 #define LLVM_PATH_GV "$GV${EXEEXT}"
6807 # Extract the first word of "dotty", so it can be a program name with args.
6808 set dummy dotty; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_DOTTY+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6838 DOTTY=$ac_cv_path_DOTTY
6839 if test -n "$DOTTY"; then
6840 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6841 echo "${ECHO_T}$DOTTY" >&6; }
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6848 if test "$DOTTY" != "echo dotty" ; then
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_DOTTY 1
6854 if test "$llvm_cv_os_type" = "MingW" ; then
6855 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6858 cat >>confdefs.h <<_ACEOF
6859 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6863 # Extract the first word of "xdot.py", so it can be a program name with args.
6864 set dummy xdot.py; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6894 XDOT_PY=$ac_cv_path_XDOT_PY
6895 if test -n "$XDOT_PY"; then
6896 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6897 echo "${ECHO_T}$XDOT_PY" >&6; }
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6904 if test "$XDOT_PY" != "echo xdot.py" ; then
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_XDOT_PY 1
6910 if test "$llvm_cv_os_type" = "MingW" ; then
6911 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6914 cat >>confdefs.h <<_ACEOF
6915 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6921 # Extract the first word of "perl", so it can be a program name with args.
6922 set dummy perl; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_PERL+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6952 PERL=$ac_cv_path_PERL
6953 if test -n "$PERL"; then
6954 { echo "$as_me:$LINENO: result: $PERL" >&5
6955 echo "${ECHO_T}$PERL" >&6; }
6957 { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6962 if test "$PERL" != "none"; then
6963 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6964 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6965 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6966 { echo "$as_me:$LINENO: result: yes" >&5
6967 echo "${ECHO_T}yes" >&6; }
6970 { echo "$as_me:$LINENO: result: not found" >&5
6971 echo "${ECHO_T}not found" >&6; }
6976 if test x"$PERL" = xnone; then
6979 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6980 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6981 { (exit 1); exit 1; }; }
6987 # Find a good install program. We prefer a C program (faster),
6988 # so one script is as good as another. But avoid the broken or
6989 # incompatible versions:
6990 # SysV /etc/install, /usr/sbin/install
6991 # SunOS /usr/etc/install
6992 # IRIX /sbin/install
6994 # AmigaOS /C/install, which installs bootblocks on floppy discs
6995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6998 # OS/2's system install, which has a completely different semantic
6999 # ./install, which can be erroneously created by make from ./install.sh.
7000 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7001 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7002 if test -z "$INSTALL"; then
7003 if test "${ac_cv_path_install+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 # Account for people who put trailing slashes in PATH elements.
7013 ./ | .// | /cC/* | \
7014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7018 # OSF1 and SCO ODT 3.0 have their own names for install.
7019 # Don't use installbsd from OSF since it installs stuff as root
7021 for ac_prog in ginstall scoinst install; do
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7024 if test $ac_prog = install &&
7025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7026 # AIX install. It has an incompatible calling convention.
7028 elif test $ac_prog = install &&
7029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7030 # program-specific install script used by HP pwplus--don't use.
7033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7046 if test "${ac_cv_path_install+set}" = set; then
7047 INSTALL=$ac_cv_path_install
7049 # As a last resort, use the slow shell script. Don't cache a
7050 # value for INSTALL within a source directory, because that will
7051 # break other packages using the cache if that directory is
7052 # removed, or if the value is a relative name.
7053 INSTALL=$ac_install_sh
7056 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7057 echo "${ECHO_T}$INSTALL" >&6; }
7059 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7060 # It thinks the first close brace ends the variable substitution.
7061 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7063 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7068 [\\/$]* | ?:[\\/]* ) ;;
7069 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7072 # Extract the first word of "bzip2", so it can be a program name with args.
7073 set dummy bzip2; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_BZIP2+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 BZIP2=$ac_cv_path_BZIP2
7103 if test -n "$BZIP2"; then
7104 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7105 echo "${ECHO_T}$BZIP2" >&6; }
7107 { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7112 # Extract the first word of "cat", so it can be a program name with args.
7113 set dummy cat; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_path_CAT+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 if test -n "$CAT"; then
7144 { echo "$as_me:$LINENO: result: $CAT" >&5
7145 echo "${ECHO_T}$CAT" >&6; }
7147 { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7152 # Extract the first word of "doxygen", so it can be a program name with args.
7153 set dummy doxygen; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 DOXYGEN=$ac_cv_path_DOXYGEN
7183 if test -n "$DOXYGEN"; then
7184 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7185 echo "${ECHO_T}$DOXYGEN" >&6; }
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7192 # Extract the first word of "groff", so it can be a program name with args.
7193 set dummy groff; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_path_GROFF+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 GROFF=$ac_cv_path_GROFF
7223 if test -n "$GROFF"; then
7224 { echo "$as_me:$LINENO: result: $GROFF" >&5
7225 echo "${ECHO_T}$GROFF" >&6; }
7227 { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7232 # Extract the first word of "gzip", so it can be a program name with args.
7233 set dummy gzip; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 GZIPBIN=$ac_cv_path_GZIPBIN
7263 if test -n "$GZIPBIN"; then
7264 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7265 echo "${ECHO_T}$GZIPBIN" >&6; }
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7272 # Extract the first word of "pod2html", so it can be a program name with args.
7273 set dummy pod2html; ac_word=$2
7274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276 if test "${ac_cv_path_POD2HTML+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7291 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 POD2HTML=$ac_cv_path_POD2HTML
7303 if test -n "$POD2HTML"; then
7304 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7305 echo "${ECHO_T}$POD2HTML" >&6; }
7307 { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7312 # Extract the first word of "pod2man", so it can be a program name with args.
7313 set dummy pod2man; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_path_POD2MAN+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 POD2MAN=$ac_cv_path_POD2MAN
7343 if test -n "$POD2MAN"; then
7344 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7345 echo "${ECHO_T}$POD2MAN" >&6; }
7347 { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7352 # Extract the first word of "pdfroff", so it can be a program name with args.
7353 set dummy pdfroff; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_PDFROFF+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 PDFROFF=$ac_cv_path_PDFROFF
7383 if test -n "$PDFROFF"; then
7384 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7385 echo "${ECHO_T}$PDFROFF" >&6; }
7387 { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7392 # Extract the first word of "runtest", so it can be a program name with args.
7393 set dummy runtest; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_RUNTEST+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 RUNTEST=$ac_cv_path_RUNTEST
7423 if test -n "$RUNTEST"; then
7424 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7425 echo "${ECHO_T}$RUNTEST" >&6; }
7427 { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7434 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7435 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7437 # Check whether --with-tclinclude was given.
7438 if test "${with_tclinclude+set}" = set; then
7439 withval=$with_tclinclude; with_tclinclude=${withval}
7444 if test "${ac_cv_path_tclsh+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 if test x"${with_tclinclude}" != x ; then
7449 if test -f ${with_tclinclude}/tclsh ; then
7450 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7451 elif test -f ${with_tclinclude}/src/tclsh ; then
7452 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7454 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7455 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7456 { (exit 1); exit 1; }; }
7462 if test x"${ac_cv_path_tclsh}" = x ; then
7463 { echo "$as_me:$LINENO: result: none" >&5
7464 echo "${ECHO_T}none" >&6; }
7465 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
7467 # Extract the first word of "$ac_prog", so it can be a program name with args.
7468 set dummy $ac_prog; ac_word=$2
7469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7471 if test "${ac_cv_path_TCLSH+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7486 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 TCLSH=$ac_cv_path_TCLSH
7498 if test -n "$TCLSH"; then
7499 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7500 echo "${ECHO_T}$TCLSH" >&6; }
7502 { echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6; }
7507 test -n "$TCLSH" && break
7510 if test x"${TCLSH}" = x ; then
7511 ac_cv_path_tclsh='';
7513 ac_cv_path_tclsh="${TCLSH}";
7516 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7517 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7518 TCLSH="${ac_cv_path_tclsh}"
7522 # Extract the first word of "zip", so it can be a program name with args.
7523 set dummy zip; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_ZIP+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 if test -n "$ZIP"; then
7554 { echo "$as_me:$LINENO: result: $ZIP" >&5
7555 echo "${ECHO_T}$ZIP" >&6; }
7557 { echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6; }
7562 for ac_prog in ocamlc
7564 # Extract the first word of "$ac_prog", so it can be a program name with args.
7565 set dummy $ac_prog; ac_word=$2
7566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568 if test "${ac_cv_path_OCAMLC+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 OCAMLC=$ac_cv_path_OCAMLC
7595 if test -n "$OCAMLC"; then
7596 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7597 echo "${ECHO_T}$OCAMLC" >&6; }
7599 { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7604 test -n "$OCAMLC" && break
7607 for ac_prog in ocamlopt
7609 # Extract the first word of "$ac_prog", so it can be a program name with args.
7610 set dummy $ac_prog; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 OCAMLOPT=$ac_cv_path_OCAMLOPT
7640 if test -n "$OCAMLOPT"; then
7641 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7642 echo "${ECHO_T}$OCAMLOPT" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 test -n "$OCAMLOPT" && break
7652 for ac_prog in ocamldep
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 OCAMLDEP=$ac_cv_path_OCAMLDEP
7685 if test -n "$OCAMLDEP"; then
7686 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7687 echo "${ECHO_T}$OCAMLDEP" >&6; }
7689 { echo "$as_me:$LINENO: result: no" >&5
7690 echo "${ECHO_T}no" >&6; }
7694 test -n "$OCAMLDEP" && break
7697 for ac_prog in ocamldoc
7699 # Extract the first word of "$ac_prog", so it can be a program name with args.
7700 set dummy $ac_prog; ac_word=$2
7701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7703 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7718 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 OCAMLDOC=$ac_cv_path_OCAMLDOC
7730 if test -n "$OCAMLDOC"; then
7731 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7732 echo "${ECHO_T}$OCAMLDOC" >&6; }
7734 { echo "$as_me:$LINENO: result: no" >&5
7735 echo "${ECHO_T}no" >&6; }
7739 test -n "$OCAMLDOC" && break
7742 for ac_prog in gas as
7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_GAS+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 if test -n "$GAS"; then
7776 { echo "$as_me:$LINENO: result: $GAS" >&5
7777 echo "${ECHO_T}$GAS" >&6; }
7779 { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7784 test -n "$GAS" && break
7788 { echo "$as_me:$LINENO: checking for linker version" >&5
7789 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7790 if test "${llvm_cv_link_version+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 version_string="$(ld -v 2>&1 | head -1)"
7797 if (echo "$version_string" | grep -q "ld64"); then
7798 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7800 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7804 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7805 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7807 cat >>confdefs.h <<_ACEOF
7808 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7813 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7814 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7815 if test "${llvm_cv_link_use_r+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825 CFLAGS="$CFLAGS -Wl,-R."
7826 cat >conftest.$ac_ext <<_ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7841 rm -f conftest.$ac_objext conftest$ac_exeext
7842 if { (ac_try="$ac_link"
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_link") 2>conftest.er1
7850 grep -v '^ *+' conftest.er1 >conftest.err
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7856 { (case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_try") 2>&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; } &&
7865 { ac_try='test -s conftest$ac_exeext'
7866 { (case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_try") 2>&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 llvm_cv_link_use_r=yes
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7880 llvm_cv_link_use_r=no
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7895 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7896 if test "$llvm_cv_link_use_r" = yes ; then
7898 cat >>confdefs.h <<\_ACEOF
7899 #define HAVE_LINK_R 1
7905 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7906 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7907 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_link") 2>conftest.er1
7942 grep -v '^ *+' conftest.er1 >conftest.err
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7948 { (case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_try") 2>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; } &&
7957 { ac_try='test -s conftest$ac_exeext'
7958 { (case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_try") 2>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 llvm_cv_link_use_export_dynamic=yes
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 llvm_cv_link_use_export_dynamic=no
7975 rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7979 ac_cpp='$CPP $CPPFLAGS'
7980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7986 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7987 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7988 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7990 cat >>confdefs.h <<\_ACEOF
7991 #define HAVE_LINK_EXPORT_DYNAMIC 1
7997 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7998 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7999 if test "${llvm_cv_link_use_version_script+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010 # The following code is from the autoconf manual,
8011 # "11.13: Limitations of Usual Tools".
8012 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8013 # Use mktemp if possible; otherwise fall back on mkdir,
8014 # with $RANDOM to make collisions less likely.
8018 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8020 test -n "$tmp" && test -d "$tmp"
8022 tmp=$TMPDIR/foo$$-$RANDOM
8023 (umask 077 && mkdir "$tmp")
8026 echo "{" > "$tmp/export.map"
8027 echo " global: main;" >> "$tmp/export.map"
8028 echo " local: *;" >> "$tmp/export.map"
8029 echo "};" >> "$tmp/export.map"
8031 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8032 cat >conftest.$ac_ext <<_ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8047 rm -f conftest.$ac_objext conftest$ac_exeext
8048 if { (ac_try="$ac_link"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_link") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8062 { (case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest$ac_exeext'
8072 { (case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_try") 2>&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 llvm_cv_link_use_version_script=yes
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8086 llvm_cv_link_use_version_script=no
8089 rm -f core conftest.err conftest.$ac_objext \
8090 conftest$ac_exeext conftest.$ac_ext
8091 rm "$tmp/export.map"
8095 ac_cpp='$CPP $CPPFLAGS'
8096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8102 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8103 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8104 if test "$llvm_cv_link_use_version_script" = yes ; then
8105 HAVE_LINK_VERSION_SCRIPT=1
8112 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8113 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8114 if test "${ac_cv_c_const+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 cat >conftest.$ac_ext <<_ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8127 /* FIXME: Include the comments suggested by Paul. */
8129 /* Ultrix mips cc rejects this. */
8130 typedef int charset[2];
8132 /* SunOS 4.1.1 cc rejects this. */
8133 char const *const *ccp;
8135 /* NEC SVR4.0.2 mips cc rejects this. */
8136 struct point {int x, y;};
8137 static struct point const zero = {0,0};
8138 /* AIX XL C 1.02.0.0 rejects this.
8139 It does not let you subtract one const X* pointer from another in
8140 an arm of an if-expression whose if-part is not a constant
8142 const char *g = "string";
8143 ccp = &g + (g ? g-g : 0);
8144 /* HPUX 7.0 cc rejects these. */
8147 ccp = (char const *const *) p;
8148 { /* SCO 3.2v4 cc rejects this. */
8150 char const *s = 0 ? (char *) 0 : (char const *) 0;
8155 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8157 const int *foo = &x[0];
8160 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8161 typedef const int *iptr;
8165 { /* AIX XL C 1.02.0.0 rejects this saying
8166 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8167 struct s { int j; const int *ap[3]; };
8168 struct s *b; b->j = 5;
8170 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8174 return !x[0] && !zero.x;
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8196 { (case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_try") 2>&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest.$ac_objext'
8206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8226 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8227 if test $ac_cv_c_const = no; then
8229 cat >>confdefs.h <<\_ACEOF
8241 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8242 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8243 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8244 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 cat >conftest.$ac_ext <<_ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 #include <sys/types.h>
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8275 grep -v '^ *+' conftest.er1 >conftest.err
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8281 { (case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_try") 2>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try='test -s conftest.$ac_objext'
8291 { (case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_try") 2>&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 eval "$as_ac_Header=yes"
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 eval "$as_ac_Header=no"
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 ac_res=`eval echo '${'$as_ac_Header'}'`
8311 { echo "$as_me:$LINENO: result: $ac_res" >&5
8312 echo "${ECHO_T}$ac_res" >&6; }
8313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8314 cat >>confdefs.h <<_ACEOF
8315 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8318 ac_header_dirent=$ac_hdr; break
8322 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8323 if test $ac_header_dirent = dirent.h; then
8324 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8325 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8326 if test "${ac_cv_search_opendir+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 ac_func_search_save_LIBS=$LIBS
8330 cat >conftest.$ac_ext <<_ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8337 /* Override any GCC internal prototype to avoid an error.
8338 Use char because int might match the return type of a GCC
8339 builtin and then its argument prototype would still apply. */
8352 for ac_lib in '' dir; do
8353 if test -z "$ac_lib"; then
8354 ac_res="none required"
8357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (ac_try="$ac_link"
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_link") 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_try") 2>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 ac_cv_search_opendir=$ac_res
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8401 rm -f core conftest.err conftest.$ac_objext \
8403 if test "${ac_cv_search_opendir+set}" = set; then
8407 if test "${ac_cv_search_opendir+set}" = set; then
8410 ac_cv_search_opendir=no
8413 LIBS=$ac_func_search_save_LIBS
8415 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8416 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8417 ac_res=$ac_cv_search_opendir
8418 if test "$ac_res" != no; then
8419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8424 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8425 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8426 if test "${ac_cv_search_opendir+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 ac_func_search_save_LIBS=$LIBS
8430 cat >conftest.$ac_ext <<_ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8437 /* Override any GCC internal prototype to avoid an error.
8438 Use char because int might match the return type of a GCC
8439 builtin and then its argument prototype would still apply. */
8452 for ac_lib in '' x; do
8453 if test -z "$ac_lib"; then
8454 ac_res="none required"
8457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (ac_try="$ac_link"
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_link") 2>conftest.er1
8468 grep -v '^ *+' conftest.er1 >conftest.err
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8474 { (case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_try") 2>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; } &&
8483 { ac_try='test -s conftest$ac_exeext'
8484 { (case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_try") 2>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_search_opendir=$ac_res
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8501 rm -f core conftest.err conftest.$ac_objext \
8503 if test "${ac_cv_search_opendir+set}" = set; then
8507 if test "${ac_cv_search_opendir+set}" = set; then
8510 ac_cv_search_opendir=no
8513 LIBS=$ac_func_search_save_LIBS
8515 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8516 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8517 ac_res=$ac_cv_search_opendir
8518 if test "$ac_res" != no; then
8519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8526 for ac_header in dlfcn.h
8528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 ac_res=`eval echo '${'$as_ac_Header'}'`
8536 { echo "$as_me:$LINENO: result: $ac_res" >&5
8537 echo "${ECHO_T}$ac_res" >&6; }
8539 # Is the header compilable?
8540 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8542 cat >conftest.$ac_ext <<_ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 $ac_includes_default
8549 #include <$ac_header>
8551 rm -f conftest.$ac_objext
8552 if { (ac_try="$ac_compile"
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_compile") 2>conftest.er1
8560 grep -v '^ *+' conftest.er1 >conftest.err
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8566 { (case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_try") 2>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest.$ac_objext'
8576 { (case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_try") 2>&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_header_compiler=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_header_compiler=no
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8595 echo "${ECHO_T}$ac_header_compiler" >&6; }
8597 # Is the header present?
8598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 #include <$ac_header>
8608 if { (ac_try="$ac_cpp conftest.$ac_ext"
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } >/dev/null; then
8621 if test -s conftest.err; then
8622 ac_cpp_err=$ac_c_preproc_warn_flag
8623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8630 if test -z "$ac_cpp_err"; then
8631 ac_header_preproc=yes
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8636 ac_header_preproc=no
8639 rm -f conftest.err conftest.$ac_ext
8640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8641 echo "${ECHO_T}$ac_header_preproc" >&6; }
8643 # So? What about this header?
8644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8650 ac_header_preproc=yes
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8666 ## ----------------------------------- ##
8667 ## Report this to llvmbugs@cs.uiuc.edu ##
8668 ## ----------------------------------- ##
8670 ) | sed "s/^/$as_me: WARNING: /" >&2
8673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 eval "$as_ac_Header=\$ac_header_preproc"
8680 ac_res=`eval echo '${'$as_ac_Header'}'`
8681 { echo "$as_me:$LINENO: result: $ac_res" >&5
8682 echo "${ECHO_T}$ac_res" >&6; }
8685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8686 cat >>confdefs.h <<_ACEOF
8687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8694 # Check whether --enable-ltdl-install was given.
8695 if test "${enable_ltdl_install+set}" = set; then
8696 enableval=$enable_ltdl_install;
8702 if test x"${enable_ltdl_install-no}" != xno; then
8704 INSTALL_LTDL_FALSE='#'
8706 INSTALL_LTDL_TRUE='#'
8712 if test x"${enable_ltdl_convenience-no}" != xno; then
8713 CONVENIENCE_LTDL_TRUE=
8714 CONVENIENCE_LTDL_FALSE='#'
8716 CONVENIENCE_LTDL_TRUE='#'
8717 CONVENIENCE_LTDL_FALSE=
8721 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8722 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8724 libname_spec='lib$name'
8732 shlibpath_overrides_runpath=unknown
8734 dynamic_linker="$host_os ld.so"
8735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8736 if test "$GCC" = yes; then
8737 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8738 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8739 # if the path contains ";" then we assume it to be the separator
8740 # otherwise default to the standard path separator (i.e. ":") - it is
8741 # assumed that no part of a normal pathname contains ";" but that should
8742 # okay in the real world where ";" in dirpaths is itself problematic.
8743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8750 need_lib_prefix=unknown
8751 hardcode_into_libs=no
8753 # when you set need_version to no, make sure it does not cause -set_version
8754 # flags to be left without arguments
8755 need_version=unknown
8760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8761 shlibpath_var=LIBPATH
8763 # AIX 3 has no versioning support, so we append a major version to the name.
8764 soname_spec='${libname}${release}${shared_ext}$major'
8771 hardcode_into_libs=yes
8772 if test "$host_cpu" = ia64; then
8773 # AIX 5 supports IA64
8774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8775 shlibpath_var=LD_LIBRARY_PATH
8777 # With GCC up to 2.95.x, collect2 would create an import file
8778 # for dependence libraries. The import file would start with
8779 # the line `#! .'. This would cause the generated library to
8780 # depend on `.', always an invalid library. This was fixed in
8781 # development snapshots of GCC prior to 3.0.
8783 aix4 | aix4.[01] | aix4.[01].*)
8784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8786 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8794 # soname into executable. Probably we can add versioning support to
8795 # collect2, so additional links can be useful in future.
8796 if test "$aix_use_runtimelinking" = yes; then
8797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8798 # instead of lib<name>.a to let people know that these are not
8799 # typical AIX shared libraries.
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 # We preserve .a as extension for shared libraries through AIX4.2
8803 # and later when we are not doing run time linking.
8804 library_names_spec='${libname}${release}.a $libname.a'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8807 shlibpath_var=LIBPATH
8812 library_names_spec='$libname.ixlibrary $libname.a'
8813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8814 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'
8818 library_names_spec='${libname}${shared_ext}'
8819 dynamic_linker="$host_os ld.so"
8820 shlibpath_var=LIBRARY_PATH
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8829 shlibpath_var=LD_LIBRARY_PATH
8830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8832 # the default ld.so.conf also contains /usr/contrib/lib and
8833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8834 # libtool to hard-code these into programs
8837 cygwin* | mingw* | pw32*)
8838 version_type=windows
8843 case $GCC,$host_os in
8844 yes,cygwin* | yes,mingw* | yes,pw32*)
8845 library_names_spec='$libname.dll.a'
8846 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8847 postinstall_cmds='base_file=`basename \${file}`~
8848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8849 dldir=$destdir/`dirname \$dlpath`~
8850 test -d \$dldir || mkdir -p \$dldir~
8851 $install_prog $dir/$dlname \$dldir/$dlname~
8852 chmod a+x \$dldir/$dlname'
8853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8854 dlpath=$dir/\$dldll~
8856 shlibpath_overrides_runpath=yes
8860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8862 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8865 # MinGW DLLs use traditional 'lib' prefix
8866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8867 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8868 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8869 # It is most probably a Windows format PATH printed by
8870 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8871 # path with ; separators, and with drive letters. We can handle the
8872 # drive letters (cygwin fileutils understands them), so leave them,
8873 # especially as we might pass files found there to a mingw objdump,
8874 # which wouldn't understand a cygwinified path. Ahh.
8875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8881 # pw32 DLLs use 'pw' prefix rather than 'lib'
8882 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8891 dynamic_linker='Win32 ld.exe'
8892 # FIXME: first we should search . and the directory the executable is in
8896 darwin* | rhapsody*)
8897 dynamic_linker="$host_os dyld"
8901 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8902 soname_spec='${libname}${release}${major}$shared_ext'
8903 shlibpath_overrides_runpath=yes
8904 shlibpath_var=DYLD_LIBRARY_PATH
8905 shrext_cmds='.dylib'
8906 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8907 if test "$GCC" = yes; then
8908 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"`
8910 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8912 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 shlibpath_var=LD_LIBRARY_PATH
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=no
8936 hardcode_into_libs=yes
8937 dynamic_linker='GNU ld.so'
8940 freebsd* | dragonfly*)
8941 # DragonFly does not have aout. When/if they implement a new
8942 # versioning mechanism, adjust this.
8943 if test -x /usr/bin/objformat; then
8944 objformat=`/usr/bin/objformat`
8947 freebsd[123].*) objformat=aout ;;
8951 version_type=freebsd-$objformat
8952 case $version_type in
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8963 shlibpath_var=LD_LIBRARY_PATH
8966 shlibpath_overrides_runpath=yes
8968 freebsd3.[01]* | freebsdelf3.[01]*)
8969 shlibpath_overrides_runpath=yes
8970 hardcode_into_libs=yes
8972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8974 shlibpath_overrides_runpath=no
8975 hardcode_into_libs=yes
8977 freebsd*) # from 4.6 on
8978 shlibpath_overrides_runpath=yes
8979 hardcode_into_libs=yes
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 hardcode_into_libs=yes
8994 hpux9* | hpux10* | hpux11*)
8995 # Give a soname corresponding to the major version so that dld.sl refuses to
8996 # link against other versions.
9003 hardcode_into_libs=yes
9004 dynamic_linker="$host_os dld.so"
9005 shlibpath_var=LD_LIBRARY_PATH
9006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 if test "X$HPUX_IA64_MODE" = X32; then
9010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9018 hardcode_into_libs=yes
9019 dynamic_linker="$host_os dld.sl"
9020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9029 dynamic_linker="$host_os dld.sl"
9030 shlibpath_var=SHLIB_PATH
9031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9036 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9037 postinstall_cmds='chmod 555 $lib'
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=no
9049 hardcode_into_libs=yes
9052 irix5* | irix6* | nonstopux*)
9054 nonstopux*) version_type=nonstopux ;;
9056 if test "$lt_cv_prog_gnu_ld" = yes; then
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9067 irix5* | nonstopux*)
9071 case $LD in # libtool.m4 will add one of these switches to LD
9072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9073 libsuff= shlibsuff= libmagic=32-bit;;
9074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9075 libsuff=32 shlibsuff=N32 libmagic=N32;;
9076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9078 *) libsuff= shlibsuff= libmagic=never-match;;
9082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9083 shlibpath_overrides_runpath=no
9084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9086 hardcode_into_libs=yes
9089 # No shared lib support for Linux oldld, aout, or coff.
9090 linux*oldld* | linux*aout* | linux*coff*)
9094 # This must be Linux ELF.
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 shlibpath_overrides_runpath=no
9104 # This implies no fast_install, which is unacceptable.
9105 # Some rework will be needed to allow for fast_install
9106 # before this can be enabled.
9107 hardcode_into_libs=yes
9109 # Append ld.so.conf contents to the search path
9110 if test -f /etc/ld.so.conf; then
9111 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' ' '`
9112 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9115 # We used to test for /lib/ld.so.1 and disable shared libraries on
9116 # powerpc, because MkLinux only supported shared libraries with the
9117 # GNU dynamic linker. Since this was broken with cross compilers,
9118 # most powerpc-linux boxes support dynamic linking these days and
9119 # people can always --disable-shared, the test was removed, and we
9120 # assume the GNU/Linux dynamic linker is in use.
9121 dynamic_linker='GNU/Linux ld.so'
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 shlibpath_overrides_runpath=no
9132 hardcode_into_libs=yes
9133 dynamic_linker='GNU ld.so'
9140 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9143 dynamic_linker='NetBSD (a.out) ld.so'
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 dynamic_linker='NetBSD ld.elf_so'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=yes
9151 hardcode_into_libs=yes
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=yes
9173 sys_lib_dlsearch_path_spec="/usr/lib"
9175 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9177 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9178 *) need_version=no ;;
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9185 openbsd2.[89] | openbsd2.[89].*)
9186 shlibpath_overrides_runpath=no
9189 shlibpath_overrides_runpath=yes
9193 shlibpath_overrides_runpath=yes
9198 libname_spec='$name'
9201 library_names_spec='$libname${shared_ext} $libname.a'
9202 dynamic_linker='OS/2 ld.exe'
9203 shlibpath_var=LIBPATH
9206 osf3* | osf4* | osf5*)
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 shlibpath_overrides_runpath=yes
9225 hardcode_into_libs=yes
9226 # ldd complains unless libraries are executable
9227 postinstall_cmds='chmod +x $lib'
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=yes
9236 if test "$with_gnu_ld" = yes; then
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 case $host_vendor in
9249 shlibpath_overrides_runpath=no
9251 export_dynamic_flag_spec='${wl}-Blargedynsym'
9252 runpath_var=LD_RUN_PATH
9260 shlibpath_overrides_runpath=no
9261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9267 if test -d /usr/nec ;then
9269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9270 soname_spec='$libname${shared_ext}.$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9276 version_type=freebsd-elf
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 hardcode_into_libs=yes
9283 if test "$with_gnu_ld" = yes; then
9284 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9285 shlibpath_overrides_runpath=no
9287 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9288 shlibpath_overrides_runpath=yes
9291 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9295 sys_lib_dlsearch_path_spec='/usr/lib'
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 shlibpath_var=LD_LIBRARY_PATH
9309 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9310 echo "${ECHO_T}$dynamic_linker" >&6; }
9311 test "$dynamic_linker" = no && can_build_shared=no
9313 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9314 if test "$GCC" = yes; then
9315 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9319 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9320 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9321 if test "${libltdl_cv_shlibext+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 eval libltdl_cv_shlibext=$shrext_cmds
9329 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9330 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9331 if test -n "$libltdl_cv_shlibext"; then
9333 cat >>confdefs.h <<_ACEOF
9334 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9340 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9341 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9342 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 libltdl_cv_shlibpath_var="$shlibpath_var"
9347 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9348 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9349 if test -n "$libltdl_cv_shlibpath_var"; then
9351 cat >>confdefs.h <<_ACEOF
9352 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9358 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9359 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9360 if test "${libltdl_cv_sys_search_path+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9365 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9366 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9367 if test -n "$libltdl_cv_sys_search_path"; then
9369 for dir in $libltdl_cv_sys_search_path; do
9370 if test -z "$sys_search_path"; then
9371 sys_search_path="$dir"
9373 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9377 cat >>confdefs.h <<_ACEOF
9378 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9383 { echo "$as_me:$LINENO: checking for objdir" >&5
9384 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9385 if test "${libltdl_cv_objdir+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 libltdl_cv_objdir="$objdir"
9389 if test -n "$objdir"; then
9392 rm -f .libs 2>/dev/null
9393 mkdir .libs 2>/dev/null
9394 if test -d .libs; then
9395 libltdl_cv_objdir=.libs
9397 # MS-DOS does not allow filenames that begin with a dot.
9398 libltdl_cv_objdir=_libs
9400 rmdir .libs 2>/dev/null
9404 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9405 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9407 cat >>confdefs.h <<_ACEOF
9408 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9416 # Check for command to grab the raw symbol name followed by C symbol from nm.
9417 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9418 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9419 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 # These are sane defaults that work on at least a few old systems.
9424 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9426 # Character class describing NM global symbol codes.
9427 symcode='[BCDEGRST]'
9429 # Regexp to match symbols that can be accessed directly from C.
9430 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9432 # Transform an extracted symbol line into a proper C declaration
9433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9435 # Transform an extracted symbol line into symbol name and symbol address
9436 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9438 # Define system-specific variables.
9443 cygwin* | mingw* | pw32*)
9444 symcode='[ABCDGISTW]'
9446 hpux*) # Its linker distinguishes data from code symbols
9447 if test "$host_cpu" = ia64; then
9448 symcode='[ABCDEGRST]'
9450 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9451 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'"
9454 if test "$host_cpu" = ia64; then
9455 symcode='[ABCDGIRSTW]'
9456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9457 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'"
9461 symcode='[BCDEGRST]'
9464 symcode='[BCDEGQRST]'
9475 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9483 # Handle CRLF in mingw tool chain
9487 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9491 # If we're using GNU nm, then use its standard symbol codes.
9492 case `$NM -V 2>&1` in
9493 *GNU* | *'with BFD'*)
9494 symcode='[ABCDGIRSTW]' ;;
9497 # Try without a prefix undercore, then with it.
9498 for ac_symprfx in "" "_"; do
9500 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9501 symxfrm="\\1 $ac_symprfx\\2 \\2"
9503 # Write the raw and C identifiers.
9504 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9506 # Check to see that the pipe works correctly.
9510 cat > conftest.$ac_ext <<EOF
9515 void nm_test_func(){}
9519 int main(){nm_test_var='a';nm_test_func();return(0);}
9522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523 (eval $ac_compile) 2>&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; then
9527 # Now try to grab the symbols.
9529 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9530 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } && test -s "$nlist"; then
9534 # Try sorting and uniquifying the output.
9535 if sort "$nlist" | uniq > "$nlist"T; then
9536 mv -f "$nlist"T "$nlist"
9541 # Make sure that we snagged all the symbols we need.
9542 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9543 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9544 cat <<EOF > conftest.$ac_ext
9550 # Now generate the symbol file.
9551 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9553 cat <<EOF >> conftest.$ac_ext
9554 #if defined (__STDC__) && __STDC__
9555 # define lt_ptr_t void *
9557 # define lt_ptr_t char *
9561 /* The mapping between symbol names and symbols. */
9566 lt_preloaded_symbols[] =
9569 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9570 cat <<\EOF >> conftest.$ac_ext
9578 # Now try linking the two files.
9579 mv conftest.$ac_objext conftstm.$ac_objext
9580 lt_save_LIBS="$LIBS"
9581 lt_save_CFLAGS="$CFLAGS"
9582 LIBS="conftstm.$ac_objext"
9583 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9585 (eval $ac_link) 2>&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9591 LIBS="$lt_save_LIBS"
9592 CFLAGS="$lt_save_CFLAGS"
9594 echo "cannot find nm_test_func in $nlist" >&5
9597 echo "cannot find nm_test_var in $nlist" >&5
9600 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9603 echo "$progname: failed program was:" >&5
9604 cat conftest.$ac_ext >&5
9606 rm -f conftest* conftst*
9608 # Do not use the global_symbol_pipe unless it works.
9609 if test "$pipe_works" = yes; then
9612 lt_cv_sys_global_symbol_pipe=
9618 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9619 lt_cv_sys_global_symbol_to_cdecl=
9621 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9622 { echo "$as_me:$LINENO: result: failed" >&5
9623 echo "${ECHO_T}failed" >&6; }
9625 { echo "$as_me:$LINENO: result: ok" >&5
9626 echo "${ECHO_T}ok" >&6; }
9630 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9631 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9632 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9636 libltdl_cv_preloaded_symbols=yes
9638 libltdl_cv_preloaded_symbols=no
9642 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9643 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9644 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9646 cat >>confdefs.h <<\_ACEOF
9647 #define HAVE_PRELOADED_SYMBOLS 1
9655 ac_cpp='$CPP $CPPFLAGS'
9656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9661 { echo "$as_me:$LINENO: checking for shl_load" >&5
9662 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9663 if test "${ac_cv_func_shl_load+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 cat >conftest.$ac_ext <<_ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9674 #define shl_load innocuous_shl_load
9676 /* System header to define __stub macros and hopefully few prototypes,
9677 which can conflict with char shl_load (); below.
9678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9679 <limits.h> exists even on freestanding compilers. */
9682 # include <limits.h>
9684 # include <assert.h>
9689 /* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
9696 /* The GNU C library defines this for functions which it implements
9697 to always fail with ENOSYS. Some functions are actually named
9698 something starting with __ and the normal name is an alias. */
9699 #if defined __stub_shl_load || defined __stub___shl_load
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_try") 2>&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_cv_func_shl_load=yes
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_cv_func_shl_load=no
9753 rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9756 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9757 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9758 if test $ac_cv_func_shl_load = yes; then
9760 cat >>confdefs.h <<\_ACEOF
9761 #define HAVE_SHL_LOAD 1
9765 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 ac_check_lib_save_LIBS=$LIBS
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 /* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9809 { (case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_try") 2>&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
9828 ac_cv_lib_dld_shl_load=yes
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_cv_lib_dld_shl_load=no
9836 rm -f core conftest.err conftest.$ac_objext \
9837 conftest$ac_exeext conftest.$ac_ext
9838 LIBS=$ac_check_lib_save_LIBS
9840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9841 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9842 if test $ac_cv_lib_dld_shl_load = yes; then
9844 cat >>confdefs.h <<\_ACEOF
9845 #define HAVE_SHL_LOAD 1
9848 LIBADD_DL="$LIBADD_DL -ldld"
9850 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9851 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9852 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 ac_check_lib_save_LIBS=$LIBS
9857 cat >conftest.$ac_ext <<_ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9864 /* Override any GCC internal prototype to avoid an error.
9865 Use char because int might match the return type of a GCC
9866 builtin and then its argument prototype would still apply. */
9879 rm -f conftest.$ac_objext conftest$ac_exeext
9880 if { (ac_try="$ac_link"
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_link") 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9894 { (case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_try") 2>&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_try") 2>&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 ac_cv_lib_dl_dlopen=yes
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_cv_lib_dl_dlopen=no
9921 rm -f core conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9927 if test $ac_cv_lib_dl_dlopen = yes; then
9929 cat >>confdefs.h <<\_ACEOF
9930 #define HAVE_LIBDL 1
9933 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9953 rm -f conftest.$ac_objext conftest$ac_exeext
9954 if { (ac_try="$ac_link"
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_link") 2>conftest.er1
9962 grep -v '^ *+' conftest.er1 >conftest.err
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9968 { (case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_try") 2>&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; } &&
9977 { ac_try='test -s conftest$ac_exeext'
9978 { (case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_try") 2>&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9988 cat >>confdefs.h <<\_ACEOF
9989 #define HAVE_LIBDL 1
9991 libltdl_cv_func_dlopen="yes"
9993 echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9996 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9997 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9998 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 ac_check_lib_save_LIBS=$LIBS
10002 LIBS="-lsvld $LIBS"
10003 cat >conftest.$ac_ext <<_ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10010 /* Override any GCC internal prototype to avoid an error.
10011 Use char because int might match the return type of a GCC
10012 builtin and then its argument prototype would still apply. */
10025 rm -f conftest.$ac_objext conftest$ac_exeext
10026 if { (ac_try="$ac_link"
10027 case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_link") 2>conftest.er1
10034 grep -v '^ *+' conftest.er1 >conftest.err
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10040 { (case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_try") 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; } &&
10049 { ac_try='test -s conftest$ac_exeext'
10050 { (case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_try") 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 ac_cv_lib_svld_dlopen=yes
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 ac_cv_lib_svld_dlopen=no
10067 rm -f core conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
10069 LIBS=$ac_check_lib_save_LIBS
10071 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10072 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10073 if test $ac_cv_lib_svld_dlopen = yes; then
10075 cat >>confdefs.h <<\_ACEOF
10076 #define HAVE_LIBDL 1
10079 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10081 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10082 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10083 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 ac_check_lib_save_LIBS=$LIBS
10088 cat >conftest.$ac_ext <<_ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10095 /* Override any GCC internal prototype to avoid an error.
10096 Use char because int might match the return type of a GCC
10097 builtin and then its argument prototype would still apply. */
10105 return dld_link ();
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_link") 2>conftest.er1
10119 grep -v '^ *+' conftest.er1 >conftest.err
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125 { (case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_try") 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try='test -s conftest$ac_exeext'
10135 { (case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_try") 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_lib_dld_dld_link=yes
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 ac_cv_lib_dld_dld_link=no
10152 rm -f core conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10154 LIBS=$ac_check_lib_save_LIBS
10156 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10157 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10158 if test $ac_cv_lib_dld_dld_link = yes; then
10160 cat >>confdefs.h <<\_ACEOF
10164 LIBADD_DL="$LIBADD_DL -ldld"
10166 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10167 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10168 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 cat >conftest.$ac_ext <<_ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10179 #define _dyld_func_lookup innocuous__dyld_func_lookup
10181 /* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char _dyld_func_lookup (); below.
10183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184 <limits.h> exists even on freestanding compilers. */
10187 # include <limits.h>
10189 # include <assert.h>
10192 #undef _dyld_func_lookup
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10200 char _dyld_func_lookup ();
10201 /* The GNU C library defines this for functions which it implements
10202 to always fail with ENOSYS. Some functions are actually named
10203 something starting with __ and the normal name is an alias. */
10204 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10211 return _dyld_func_lookup ();
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_link") 2>conftest.er1
10225 grep -v '^ *+' conftest.er1 >conftest.err
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } &&
10230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10231 { (case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_try") 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; } &&
10240 { ac_try='test -s conftest$ac_exeext'
10241 { (case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_try") 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 ac_cv_func__dyld_func_lookup=yes
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10255 ac_cv_func__dyld_func_lookup=no
10258 rm -f core conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
10261 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10262 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10263 if test $ac_cv_func__dyld_func_lookup = yes; then
10265 cat >>confdefs.h <<\_ACEOF
10266 #define HAVE_DYLD 1
10280 rm -f core conftest.err conftest.$ac_objext \
10281 conftest$ac_exeext conftest.$ac_ext
10292 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10294 lt_save_LIBS="$LIBS"
10295 LIBS="$LIBS $LIBADD_DL"
10297 for ac_func in dlerror
10299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 cat >conftest.$ac_ext <<_ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10313 #define $ac_func innocuous_$ac_func
10315 /* System header to define __stub macros and hopefully few prototypes,
10316 which can conflict with char $ac_func (); below.
10317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10318 <limits.h> exists even on freestanding compilers. */
10321 # include <limits.h>
10323 # include <assert.h>
10328 /* Override any GCC internal prototype to avoid an error.
10329 Use char because int might match the return type of a GCC
10330 builtin and then its argument prototype would still apply. */
10335 /* The GNU C library defines this for functions which it implements
10336 to always fail with ENOSYS. Some functions are actually named
10337 something starting with __ and the normal name is an alias. */
10338 #if defined __stub_$ac_func || defined __stub___$ac_func
10345 return $ac_func ();
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_link") 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_try") 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 eval "$as_ac_var=yes"
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 eval "$as_ac_var=no"
10392 rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10395 ac_res=`eval echo '${'$as_ac_var'}'`
10396 { echo "$as_me:$LINENO: result: $ac_res" >&5
10397 echo "${ECHO_T}$ac_res" >&6; }
10398 if test `eval echo '${'$as_ac_var'}'` = yes; then
10399 cat >>confdefs.h <<_ACEOF
10400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10406 LIBS="$lt_save_LIBS"
10409 ac_cpp='$CPP $CPPFLAGS'
10410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10416 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10417 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10418 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 ac_cv_sys_symbol_underscore=no
10422 cat > conftest.$ac_ext <<EOF
10423 void nm_test_func(){}
10424 int main(){nm_test_func;return 0;}
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; then
10431 # Now try to grab the symbols.
10432 ac_nlist=conftest.nm
10433 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10434 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } && test -s "$ac_nlist"; then
10438 # See whether the symbols have a leading underscore.
10439 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10440 ac_cv_sys_symbol_underscore=yes
10442 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10445 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10449 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10452 echo "configure: failed program was:" >&5
10458 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10459 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10462 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10463 if test x"$libltdl_cv_func_dlopen" = xyes ||
10464 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10465 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10466 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10467 if test "${libltdl_cv_need_uscore+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 libltdl_cv_need_uscore=unknown
10472 LIBS="$LIBS $LIBADD_DL"
10473 if test "$cross_compiling" = yes; then :
10474 libltdl_cv_need_uscore=cross
10476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10477 lt_status=$lt_dlunknown
10478 cat > conftest.$ac_ext <<EOF
10479 #line 10479 "configure"
10480 #include "confdefs.h"
10489 # define LT_DLGLOBAL RTLD_GLOBAL
10492 # define LT_DLGLOBAL DL_GLOBAL
10494 # define LT_DLGLOBAL 0
10498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10499 find out it does not work in some platform. */
10500 #ifndef LT_DLLAZY_OR_NOW
10502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10505 # define LT_DLLAZY_OR_NOW DL_LAZY
10508 # define LT_DLLAZY_OR_NOW RTLD_NOW
10511 # define LT_DLLAZY_OR_NOW DL_NOW
10513 # define LT_DLLAZY_OR_NOW 0
10521 extern "C" void exit (int);
10524 void fnord() { int i=42;}
10527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10528 int status = $lt_dlunknown;
10532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10534 /* dlclose (self); */
10542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543 (eval $ac_link) 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10547 (./conftest; exit; ) >&5 2>/dev/null
10549 case x$lt_status in
10550 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10551 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10552 x$lt_dlunknown|x*) ;;
10555 # compilation failed
10564 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10565 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10569 if test x"$libltdl_cv_need_uscore" = xyes; then
10571 cat >>confdefs.h <<\_ACEOF
10572 #define NEED_USCORE 1
10578 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10579 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10580 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 # PORTME does your system automatically load deplibs for dlopen?
10584 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10585 # For now, we just catch OSes we know something about -- in the
10586 # future, we'll try test this programmatically.
10587 libltdl_cv_sys_dlopen_deplibs=unknown
10589 aix3*|aix4.1.*|aix4.2.*)
10590 # Unknown whether this is true for these versions of AIX, but
10591 # we want this `case' here to explicitly catch those versions.
10592 libltdl_cv_sys_dlopen_deplibs=unknown
10595 libltdl_cv_sys_dlopen_deplibs=yes
10598 # Assuming the user has installed a libdl from somewhere, this is true
10599 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10600 libltdl_cv_sys_dlopen_deplibs=yes
10602 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10603 # GNU and its variants, using gnu ld.so (Glibc)
10604 libltdl_cv_sys_dlopen_deplibs=yes
10607 libltdl_cv_sys_dlopen_deplibs=yes
10610 libltdl_cv_sys_dlopen_deplibs=yes
10612 irix[12345]*|irix6.[01]*)
10613 # Catch all versions of IRIX before 6.2, and indicate that we don't
10614 # know how it worked for any of those versions.
10615 libltdl_cv_sys_dlopen_deplibs=unknown
10618 # The case above catches anything before 6.2, and it's known that
10619 # at 6.2 and later dlopen does load deplibs.
10620 libltdl_cv_sys_dlopen_deplibs=yes
10623 libltdl_cv_sys_dlopen_deplibs=yes
10626 libltdl_cv_sys_dlopen_deplibs=yes
10629 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10630 # it did *not* use an RPATH in a shared library to find objects the
10631 # library depends on, so we explicitly say `no'.
10632 libltdl_cv_sys_dlopen_deplibs=no
10634 osf5.0|osf5.0a|osf5.1)
10635 # dlopen *does* load deplibs and with the right loader patch applied
10636 # it even uses RPATH in a shared library to search for shared objects
10637 # that the library depends on, but there's no easy way to know if that
10638 # patch is installed. Since this is the case, all we can really
10639 # say is unknown -- it depends on the patch being installed. If
10640 # it is, this changes to `yes'. Without it, it would be `no'.
10641 libltdl_cv_sys_dlopen_deplibs=unknown
10644 # the two cases above should catch all versions of osf <= 5.1. Read
10645 # the comments above for what we know about them.
10646 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10647 # is used to find them so we can finally say `yes'.
10648 libltdl_cv_sys_dlopen_deplibs=yes
10651 libltdl_cv_sys_dlopen_deplibs=yes
10653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10654 libltdl_cv_sys_dlopen_deplibs=yes
10659 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10660 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10661 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10663 cat >>confdefs.h <<\_ACEOF
10664 #define LTDL_DLOPEN_DEPLIBS 1
10670 for ac_header in argz.h
10672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 ac_res=`eval echo '${'$as_ac_Header'}'`
10680 { echo "$as_me:$LINENO: result: $ac_res" >&5
10681 echo "${ECHO_T}$ac_res" >&6; }
10683 # Is the header compilable?
10684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10686 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 $ac_includes_default
10693 #include <$ac_header>
10695 rm -f conftest.$ac_objext
10696 if { (ac_try="$ac_compile"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_compile") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1 >conftest.err
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_header_compiler=yes
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_header_compiler=no
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10739 echo "${ECHO_T}$ac_header_compiler" >&6; }
10741 # Is the header present?
10742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10744 cat >conftest.$ac_ext <<_ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 #include <$ac_header>
10752 if { (ac_try="$ac_cpp conftest.$ac_ext"
10753 case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10760 grep -v '^ *+' conftest.er1 >conftest.err
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } >/dev/null; then
10765 if test -s conftest.err; then
10766 ac_cpp_err=$ac_c_preproc_warn_flag
10767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10774 if test -z "$ac_cpp_err"; then
10775 ac_header_preproc=yes
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_header_preproc=no
10783 rm -f conftest.err conftest.$ac_ext
10784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10785 echo "${ECHO_T}$ac_header_preproc" >&6; }
10787 # So? What about this header?
10788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10794 ac_header_preproc=yes
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10810 ## ----------------------------------- ##
10811 ## Report this to llvmbugs@cs.uiuc.edu ##
10812 ## ----------------------------------- ##
10814 ) | sed "s/^/$as_me: WARNING: /" >&2
10817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 eval "$as_ac_Header=\$ac_header_preproc"
10824 ac_res=`eval echo '${'$as_ac_Header'}'`
10825 { echo "$as_me:$LINENO: result: $ac_res" >&5
10826 echo "${ECHO_T}$ac_res" >&6; }
10829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10830 cat >>confdefs.h <<_ACEOF
10831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10839 { echo "$as_me:$LINENO: checking for error_t" >&5
10840 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10841 if test "${ac_cv_type_error_t+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10854 typedef error_t ac__type_new_;
10858 if ((ac__type_new_ *) 0)
10860 if (sizeof (ac__type_new_))
10866 rm -f conftest.$ac_objext
10867 if { (ac_try="$ac_compile"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1 >conftest.err
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_cv_type_error_t=yes
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10905 ac_cv_type_error_t=no
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10910 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10911 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10912 if test $ac_cv_type_error_t = yes; then
10914 cat >>confdefs.h <<_ACEOF
10915 #define HAVE_ERROR_T 1
10921 cat >>confdefs.h <<\_ACEOF
10922 #define error_t int
10933 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 cat >conftest.$ac_ext <<_ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10949 #define $ac_func innocuous_$ac_func
10951 /* System header to define __stub macros and hopefully few prototypes,
10952 which can conflict with char $ac_func (); below.
10953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954 <limits.h> exists even on freestanding compilers. */
10957 # include <limits.h>
10959 # include <assert.h>
10964 /* Override any GCC internal prototype to avoid an error.
10965 Use char because int might match the return type of a GCC
10966 builtin and then its argument prototype would still apply. */
10971 /* The GNU C library defines this for functions which it implements
10972 to always fail with ENOSYS. Some functions are actually named
10973 something starting with __ and the normal name is an alias. */
10974 #if defined __stub_$ac_func || defined __stub___$ac_func
10981 return $ac_func ();
10986 rm -f conftest.$ac_objext conftest$ac_exeext
10987 if { (ac_try="$ac_link"
10988 case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_link") 2>conftest.er1
10995 grep -v '^ *+' conftest.er1 >conftest.err
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } &&
11000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11001 { (case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_try") 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
11010 { ac_try='test -s conftest$ac_exeext'
11011 { (case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_try") 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 eval "$as_ac_var=yes"
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 eval "$as_ac_var=no"
11028 rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11031 ac_res=`eval echo '${'$as_ac_var'}'`
11032 { echo "$as_me:$LINENO: result: $ac_res" >&5
11033 echo "${ECHO_T}$ac_res" >&6; }
11034 if test `eval echo '${'$as_ac_var'}'` = yes; then
11035 cat >>confdefs.h <<_ACEOF
11036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11069 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 ac_res=`eval echo '${'$as_ac_Header'}'`
11080 { echo "$as_me:$LINENO: result: $ac_res" >&5
11081 echo "${ECHO_T}$ac_res" >&6; }
11083 # Is the header compilable?
11084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11086 cat >conftest.$ac_ext <<_ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 $ac_includes_default
11093 #include <$ac_header>
11095 rm -f conftest.$ac_objext
11096 if { (ac_try="$ac_compile"
11097 case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_compile") 2>conftest.er1
11104 grep -v '^ *+' conftest.er1 >conftest.err
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; } &&
11119 { ac_try='test -s conftest.$ac_objext'
11120 { (case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_try") 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_header_compiler=yes
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134 ac_header_compiler=no
11137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11139 echo "${ECHO_T}$ac_header_compiler" >&6; }
11141 # Is the header present?
11142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11144 cat >conftest.$ac_ext <<_ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h. */
11150 #include <$ac_header>
11152 if { (ac_try="$ac_cpp conftest.$ac_ext"
11153 case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11160 grep -v '^ *+' conftest.er1 >conftest.err
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } >/dev/null; then
11165 if test -s conftest.err; then
11166 ac_cpp_err=$ac_c_preproc_warn_flag
11167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11174 if test -z "$ac_cpp_err"; then
11175 ac_header_preproc=yes
11177 echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11180 ac_header_preproc=no
11183 rm -f conftest.err conftest.$ac_ext
11184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11185 echo "${ECHO_T}$ac_header_preproc" >&6; }
11187 # So? What about this header?
11188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11194 ac_header_preproc=yes
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11210 ## ----------------------------------- ##
11211 ## Report this to llvmbugs@cs.uiuc.edu ##
11212 ## ----------------------------------- ##
11214 ) | sed "s/^/$as_me: WARNING: /" >&2
11217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 eval "$as_ac_Header=\$ac_header_preproc"
11224 ac_res=`eval echo '${'$as_ac_Header'}'`
11225 { echo "$as_me:$LINENO: result: $ac_res" >&5
11226 echo "${ECHO_T}$ac_res" >&6; }
11229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11230 cat >>confdefs.h <<_ACEOF
11231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 ac_res=`eval echo '${'$as_ac_Header'}'`
11252 { echo "$as_me:$LINENO: result: $ac_res" >&5
11253 echo "${ECHO_T}$ac_res" >&6; }
11255 # Is the header compilable?
11256 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11258 cat >conftest.$ac_ext <<_ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 $ac_includes_default
11265 #include <$ac_header>
11267 rm -f conftest.$ac_objext
11268 if { (ac_try="$ac_compile"
11269 case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_compile") 2>conftest.er1
11276 grep -v '^ *+' conftest.er1 >conftest.err
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11282 { (case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_try") 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; } &&
11291 { ac_try='test -s conftest.$ac_objext'
11292 { (case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_try") 2>&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 ac_header_compiler=yes
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 ac_header_compiler=no
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11311 echo "${ECHO_T}$ac_header_compiler" >&6; }
11313 # Is the header present?
11314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 #include <$ac_header>
11324 if { (ac_try="$ac_cpp conftest.$ac_ext"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11332 grep -v '^ *+' conftest.er1 >conftest.err
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } >/dev/null; then
11337 if test -s conftest.err; then
11338 ac_cpp_err=$ac_c_preproc_warn_flag
11339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11346 if test -z "$ac_cpp_err"; then
11347 ac_header_preproc=yes
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 ac_header_preproc=no
11355 rm -f conftest.err conftest.$ac_ext
11356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11357 echo "${ECHO_T}$ac_header_preproc" >&6; }
11359 # So? What about this header?
11360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11366 ac_header_preproc=yes
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11382 ## ----------------------------------- ##
11383 ## Report this to llvmbugs@cs.uiuc.edu ##
11384 ## ----------------------------------- ##
11386 ) | sed "s/^/$as_me: WARNING: /" >&2
11389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 eval "$as_ac_Header=\$ac_header_preproc"
11396 ac_res=`eval echo '${'$as_ac_Header'}'`
11397 { echo "$as_me:$LINENO: result: $ac_res" >&5
11398 echo "${ECHO_T}$ac_res" >&6; }
11401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11402 cat >>confdefs.h <<_ACEOF
11403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11412 for ac_header in string.h strings.h
11414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11421 ac_res=`eval echo '${'$as_ac_Header'}'`
11422 { echo "$as_me:$LINENO: result: $ac_res" >&5
11423 echo "${ECHO_T}$ac_res" >&6; }
11425 # Is the header compilable?
11426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11428 cat >conftest.$ac_ext <<_ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 $ac_includes_default
11435 #include <$ac_header>
11437 rm -f conftest.$ac_objext
11438 if { (ac_try="$ac_compile"
11439 case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_compile") 2>conftest.er1
11446 grep -v '^ *+' conftest.er1 >conftest.err
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11452 { (case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_try") 2>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try='test -s conftest.$ac_objext'
11462 { (case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_try") 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 ac_header_compiler=yes
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 ac_header_compiler=no
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481 echo "${ECHO_T}$ac_header_compiler" >&6; }
11483 # Is the header present?
11484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11486 cat >conftest.$ac_ext <<_ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 #include <$ac_header>
11494 if { (ac_try="$ac_cpp conftest.$ac_ext"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11502 grep -v '^ *+' conftest.er1 >conftest.err
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } >/dev/null; then
11507 if test -s conftest.err; then
11508 ac_cpp_err=$ac_c_preproc_warn_flag
11509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11516 if test -z "$ac_cpp_err"; then
11517 ac_header_preproc=yes
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_header_preproc=no
11525 rm -f conftest.err conftest.$ac_ext
11526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11527 echo "${ECHO_T}$ac_header_preproc" >&6; }
11529 # So? What about this header?
11530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11536 ac_header_preproc=yes
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11552 ## ----------------------------------- ##
11553 ## Report this to llvmbugs@cs.uiuc.edu ##
11554 ## ----------------------------------- ##
11556 ) | sed "s/^/$as_me: WARNING: /" >&2
11559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 eval "$as_ac_Header=\$ac_header_preproc"
11566 ac_res=`eval echo '${'$as_ac_Header'}'`
11567 { echo "$as_me:$LINENO: result: $ac_res" >&5
11568 echo "${ECHO_T}$ac_res" >&6; }
11571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11572 cat >>confdefs.h <<_ACEOF
11573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11583 for ac_func in strchr index
11585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 cat >conftest.$ac_ext <<_ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11599 #define $ac_func innocuous_$ac_func
11601 /* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char $ac_func (); below.
11603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604 <limits.h> exists even on freestanding compilers. */
11607 # include <limits.h>
11609 # include <assert.h>
11614 /* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11621 /* The GNU C library defines this for functions which it implements
11622 to always fail with ENOSYS. Some functions are actually named
11623 something starting with __ and the normal name is an alias. */
11624 #if defined __stub_$ac_func || defined __stub___$ac_func
11631 return $ac_func ();
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (ac_try="$ac_link"
11638 case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_link") 2>conftest.er1
11645 grep -v '^ *+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11651 { (case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_try") 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest$ac_exeext'
11661 { (case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_try") 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 eval "$as_ac_var=yes"
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 eval "$as_ac_var=no"
11678 rm -f core conftest.err conftest.$ac_objext \
11679 conftest$ac_exeext conftest.$ac_ext
11681 ac_res=`eval echo '${'$as_ac_var'}'`
11682 { echo "$as_me:$LINENO: result: $ac_res" >&5
11683 echo "${ECHO_T}$ac_res" >&6; }
11684 if test `eval echo '${'$as_ac_var'}'` = yes; then
11685 cat >>confdefs.h <<_ACEOF
11686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11694 for ac_func in strrchr rindex
11696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 cat >conftest.$ac_ext <<_ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11710 #define $ac_func innocuous_$ac_func
11712 /* System header to define __stub macros and hopefully few prototypes,
11713 which can conflict with char $ac_func (); below.
11714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11715 <limits.h> exists even on freestanding compilers. */
11718 # include <limits.h>
11720 # include <assert.h>
11725 /* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11732 /* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735 #if defined __stub_$ac_func || defined __stub___$ac_func
11742 return $ac_func ();
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (ac_try="$ac_link"
11749 case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_link") 2>conftest.er1
11756 grep -v '^ *+' conftest.er1 >conftest.err
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; } &&
11771 { ac_try='test -s conftest$ac_exeext'
11772 { (case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_try") 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 eval "$as_ac_var=yes"
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 eval "$as_ac_var=no"
11789 rm -f core conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11792 ac_res=`eval echo '${'$as_ac_var'}'`
11793 { echo "$as_me:$LINENO: result: $ac_res" >&5
11794 echo "${ECHO_T}$ac_res" >&6; }
11795 if test `eval echo '${'$as_ac_var'}'` = yes; then
11796 cat >>confdefs.h <<_ACEOF
11797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11805 for ac_func in memcpy bcopy
11807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 cat >conftest.$ac_ext <<_ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11821 #define $ac_func innocuous_$ac_func
11823 /* System header to define __stub macros and hopefully few prototypes,
11824 which can conflict with char $ac_func (); below.
11825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826 <limits.h> exists even on freestanding compilers. */
11829 # include <limits.h>
11831 # include <assert.h>
11836 /* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined __stub_$ac_func || defined __stub___$ac_func
11853 return $ac_func ();
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_link") 2>conftest.er1
11867 grep -v '^ *+' conftest.er1 >conftest.err
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_try") 2>&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 eval "$as_ac_var=yes"
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 eval "$as_ac_var=no"
11900 rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11903 ac_res=`eval echo '${'$as_ac_var'}'`
11904 { echo "$as_me:$LINENO: result: $ac_res" >&5
11905 echo "${ECHO_T}$ac_res" >&6; }
11906 if test `eval echo '${'$as_ac_var'}'` = yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11916 for ac_func in memmove strcmp
11918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 cat >conftest.$ac_ext <<_ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11932 #define $ac_func innocuous_$ac_func
11934 /* System header to define __stub macros and hopefully few prototypes,
11935 which can conflict with char $ac_func (); below.
11936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937 <limits.h> exists even on freestanding compilers. */
11940 # include <limits.h>
11942 # include <assert.h>
11947 /* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
11954 /* The GNU C library defines this for functions which it implements
11955 to always fail with ENOSYS. Some functions are actually named
11956 something starting with __ and the normal name is an alias. */
11957 #if defined __stub_$ac_func || defined __stub___$ac_func
11964 return $ac_func ();
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (ac_try="$ac_link"
11971 case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_link") 2>conftest.er1
11978 grep -v '^ *+' conftest.er1 >conftest.err
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11984 { (case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest$ac_exeext'
11994 { (case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_try") 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 eval "$as_ac_var=yes"
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 eval "$as_ac_var=no"
12011 rm -f core conftest.err conftest.$ac_objext \
12012 conftest$ac_exeext conftest.$ac_ext
12014 ac_res=`eval echo '${'$as_ac_var'}'`
12015 { echo "$as_me:$LINENO: result: $ac_res" >&5
12016 echo "${ECHO_T}$ac_res" >&6; }
12017 if test `eval echo '${'$as_ac_var'}'` = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12028 for ac_func in closedir opendir readdir
12030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 cat >conftest.$ac_ext <<_ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12044 #define $ac_func innocuous_$ac_func
12046 /* System header to define __stub macros and hopefully few prototypes,
12047 which can conflict with char $ac_func (); below.
12048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049 <limits.h> exists even on freestanding compilers. */
12052 # include <limits.h>
12054 # include <assert.h>
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12066 /* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069 #if defined __stub_$ac_func || defined __stub___$ac_func
12076 return $ac_func ();
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (ac_try="$ac_link"
12083 case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_link") 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 eval "$as_ac_var=yes"
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 eval "$as_ac_var=no"
12123 rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12126 ac_res=`eval echo '${'$as_ac_var'}'`
12127 { echo "$as_me:$LINENO: result: $ac_res" >&5
12128 echo "${ECHO_T}$ac_res" >&6; }
12129 if test `eval echo '${'$as_ac_var'}'` = yes; then
12130 cat >>confdefs.h <<_ACEOF
12131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12139 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12140 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12153 if test "$GCC" != "yes" && test "$ICC" != "yes"
12155 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12156 echo "$as_me: error: gcc|icc required but not found" >&2;}
12157 { (exit 1); exit 1; }; }
12160 if test "$GXX" != "yes" && test "$IXX" != "yes"
12162 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12163 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12164 { (exit 1); exit 1; }; }
12167 if test "$GCC" = "yes"
12169 cat >conftest.$ac_ext <<_ACEOF
12170 #if !defined(__GNUC__) || __GNUC__ < 3
12171 #error Unsupported GCC version
12175 rm -f conftest.$ac_objext
12176 if { (ac_try="$ac_compile"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_compile") 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12215 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12216 { (exit 1); exit 1; }; }
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12222 if test -z "$llvm_cv_gnu_make_command"
12224 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12225 echo "$as_me: error: GNU Make required but not found" >&2;}
12226 { (exit 1); exit 1; }; }
12229 { echo "$as_me:$LINENO: result: ok" >&5
12230 echo "${ECHO_T}ok" >&6; }
12232 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12233 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12234 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12236 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12238 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12239 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12243 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12244 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12245 if test "${ac_cv_lib_m_sin+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 ac_check_lib_save_LIBS=$LIBS
12250 cat >conftest.$ac_ext <<_ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (ac_try="$ac_link"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_link") 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287 { (case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_try") 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_try") 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 ac_cv_lib_m_sin=yes
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12314 rm -f core conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12318 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12319 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12320 if test $ac_cv_lib_m_sin = yes; then
12321 cat >>confdefs.h <<_ACEOF
12322 #define HAVE_LIBM 1
12329 if test "$llvm_cv_os_type" = "MingW" ; then
12331 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12332 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12333 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-limagehlp $LIBS"
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (ac_try="$ac_link"
12356 case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_link") 2>conftest.er1
12363 grep -v '^ *+' conftest.er1 >conftest.err
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 ac_cv_lib_imagehlp_main=yes
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ac_cv_lib_imagehlp_main=no
12396 rm -f core conftest.err conftest.$ac_objext \
12397 conftest$ac_exeext conftest.$ac_ext
12398 LIBS=$ac_check_lib_save_LIBS
12400 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12401 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12402 if test $ac_cv_lib_imagehlp_main = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404 #define HAVE_LIBIMAGEHLP 1
12407 LIBS="-limagehlp $LIBS"
12412 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12413 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12414 if test "${ac_cv_lib_psapi_main+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-lpsapi $LIBS"
12419 cat >conftest.$ac_ext <<_ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (ac_try="$ac_link"
12437 case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_link") 2>conftest.er1
12444 grep -v '^ *+' conftest.er1 >conftest.err
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_try") 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_cv_lib_psapi_main=yes
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12474 ac_cv_lib_psapi_main=no
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12481 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12482 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12483 if test $ac_cv_lib_psapi_main = yes; then
12484 cat >>confdefs.h <<_ACEOF
12485 #define HAVE_LIBPSAPI 1
12488 LIBS="-lpsapi $LIBS"
12494 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12495 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12496 if test "${ac_cv_search_dlopen+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 ac_func_search_save_LIBS=$LIBS
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12507 /* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
12522 for ac_lib in '' dl; do
12523 if test -z "$ac_lib"; then
12524 ac_res="none required"
12527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (ac_try="$ac_link"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_link") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest$ac_exeext'
12554 { (case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_try") 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_search_dlopen=$ac_res
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12571 rm -f core conftest.err conftest.$ac_objext \
12573 if test "${ac_cv_search_dlopen+set}" = set; then
12577 if test "${ac_cv_search_dlopen+set}" = set; then
12580 ac_cv_search_dlopen=no
12582 rm conftest.$ac_ext
12583 LIBS=$ac_func_search_save_LIBS
12585 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12586 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12587 ac_res=$ac_cv_search_dlopen
12588 if test "$ac_res" != no; then
12589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12591 cat >>confdefs.h <<\_ACEOF
12592 #define HAVE_DLOPEN 1
12596 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12597 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12601 if test "$llvm_cv_enable_libffi" = "yes" ; then
12602 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12603 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12604 if test "${ac_cv_search_ffi_call+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 ac_func_search_save_LIBS=$LIBS
12608 cat >conftest.$ac_ext <<_ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12615 /* Override any GCC internal prototype to avoid an error.
12616 Use char because int might match the return type of a GCC
12617 builtin and then its argument prototype would still apply. */
12625 return ffi_call ();
12630 for ac_lib in '' ffi; do
12631 if test -z "$ac_lib"; then
12632 ac_res="none required"
12635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12637 rm -f conftest.$ac_objext conftest$ac_exeext
12638 if { (ac_try="$ac_link"
12639 case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_link") 2>conftest.er1
12646 grep -v '^ *+' conftest.er1 >conftest.err
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12652 { (case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest$ac_exeext'
12662 { (case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_try") 2>&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12671 ac_cv_search_ffi_call=$ac_res
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12679 rm -f core conftest.err conftest.$ac_objext \
12681 if test "${ac_cv_search_ffi_call+set}" = set; then
12685 if test "${ac_cv_search_ffi_call+set}" = set; then
12688 ac_cv_search_ffi_call=no
12690 rm conftest.$ac_ext
12691 LIBS=$ac_func_search_save_LIBS
12693 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12694 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12695 ac_res=$ac_cv_search_ffi_call
12696 if test "$ac_res" != no; then
12697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12699 cat >>confdefs.h <<\_ACEOF
12700 #define HAVE_FFI_CALL 1
12704 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12705 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12706 { (exit 1); exit 1; }; }
12711 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12712 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12713 if test "${ac_cv_search_mallinfo+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 ac_func_search_save_LIBS=$LIBS
12717 cat >conftest.$ac_ext <<_ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12724 /* Override any GCC internal prototype to avoid an error.
12725 Use char because int might match the return type of a GCC
12726 builtin and then its argument prototype would still apply. */
12734 return mallinfo ();
12739 for ac_lib in '' malloc; do
12740 if test -z "$ac_lib"; then
12741 ac_res="none required"
12744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (ac_try="$ac_link"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_link") 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12761 { (case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_try") 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest$ac_exeext'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
12780 ac_cv_search_mallinfo=$ac_res
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12788 rm -f core conftest.err conftest.$ac_objext \
12790 if test "${ac_cv_search_mallinfo+set}" = set; then
12794 if test "${ac_cv_search_mallinfo+set}" = set; then
12797 ac_cv_search_mallinfo=no
12799 rm conftest.$ac_ext
12800 LIBS=$ac_func_search_save_LIBS
12802 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12803 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12804 ac_res=$ac_cv_search_mallinfo
12805 if test "$ac_res" != no; then
12806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12808 cat >>confdefs.h <<\_ACEOF
12809 #define HAVE_MALLINFO 1
12815 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12817 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12818 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12819 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 ac_check_lib_save_LIBS=$LIBS
12823 LIBS="-lpthread $LIBS"
12824 cat >conftest.$ac_ext <<_ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12831 /* Override any GCC internal prototype to avoid an error.
12832 Use char because int might match the return type of a GCC
12833 builtin and then its argument prototype would still apply. */
12837 char pthread_mutex_init ();
12841 return pthread_mutex_init ();
12846 rm -f conftest.$ac_objext conftest$ac_exeext
12847 if { (ac_try="$ac_link"
12848 case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_link") 2>conftest.er1
12855 grep -v '^ *+' conftest.er1 >conftest.err
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12861 { (case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_try") 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } &&
12870 { ac_try='test -s conftest$ac_exeext'
12871 { (case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876 (eval "$ac_try") 2>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
12880 ac_cv_lib_pthread_pthread_mutex_init=yes
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12885 ac_cv_lib_pthread_pthread_mutex_init=no
12888 rm -f core conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12892 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12893 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12894 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12895 cat >>confdefs.h <<_ACEOF
12896 #define HAVE_LIBPTHREAD 1
12899 LIBS="-lpthread $LIBS"
12903 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12904 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12905 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 ac_func_search_save_LIBS=$LIBS
12909 cat >conftest.$ac_ext <<_ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12922 char pthread_mutex_lock ();
12926 return pthread_mutex_lock ();
12931 for ac_lib in '' pthread; do
12932 if test -z "$ac_lib"; then
12933 ac_res="none required"
12936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12938 rm -f conftest.$ac_objext conftest$ac_exeext
12939 if { (ac_try="$ac_link"
12940 case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_link") 2>conftest.er1
12947 grep -v '^ *+' conftest.er1 >conftest.err
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } &&
12962 { ac_try='test -s conftest$ac_exeext'
12963 { (case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_try") 2>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 ac_cv_search_pthread_mutex_lock=$ac_res
12974 echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12980 rm -f core conftest.err conftest.$ac_objext \
12982 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12986 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12989 ac_cv_search_pthread_mutex_lock=no
12991 rm conftest.$ac_ext
12992 LIBS=$ac_func_search_save_LIBS
12994 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12995 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12996 ac_res=$ac_cv_search_pthread_mutex_lock
12997 if test "$ac_res" != no; then
12998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13000 cat >>confdefs.h <<\_ACEOF
13001 #define HAVE_PTHREAD_MUTEX_LOCK 1
13006 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13007 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13008 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 ac_func_search_save_LIBS=$LIBS
13012 cat >conftest.$ac_ext <<_ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13019 /* Override any GCC internal prototype to avoid an error.
13020 Use char because int might match the return type of a GCC
13021 builtin and then its argument prototype would still apply. */
13025 char pthread_rwlock_init ();
13029 return pthread_rwlock_init ();
13034 for ac_lib in '' pthread; do
13035 if test -z "$ac_lib"; then
13036 ac_res="none required"
13039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_link") 2>conftest.er1
13050 grep -v '^ *+' conftest.er1 >conftest.err
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13056 { (case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_try") 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_try") 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_cv_search_pthread_rwlock_init=$ac_res
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13083 rm -f core conftest.err conftest.$ac_objext \
13085 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13089 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13092 ac_cv_search_pthread_rwlock_init=no
13094 rm conftest.$ac_ext
13095 LIBS=$ac_func_search_save_LIBS
13097 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13098 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13099 ac_res=$ac_cv_search_pthread_rwlock_init
13100 if test "$ac_res" != no; then
13101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13103 cat >>confdefs.h <<\_ACEOF
13104 #define HAVE_PTHREAD_RWLOCK_INIT 1
13109 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13110 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13111 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 ac_func_search_save_LIBS=$LIBS
13115 cat >conftest.$ac_ext <<_ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13122 /* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13128 char pthread_getspecific ();
13132 return pthread_getspecific ();
13137 for ac_lib in '' pthread; do
13138 if test -z "$ac_lib"; then
13139 ac_res="none required"
13142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13144 rm -f conftest.$ac_objext conftest$ac_exeext
13145 if { (ac_try="$ac_link"
13146 case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_link") 2>conftest.er1
13153 grep -v '^ *+' conftest.er1 >conftest.err
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13159 { (case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_try") 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest$ac_exeext'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13178 ac_cv_search_pthread_getspecific=$ac_res
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13186 rm -f core conftest.err conftest.$ac_objext \
13188 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13192 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13195 ac_cv_search_pthread_getspecific=no
13197 rm conftest.$ac_ext
13198 LIBS=$ac_func_search_save_LIBS
13200 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13201 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13202 ac_res=$ac_cv_search_pthread_getspecific
13203 if test "$ac_res" != no; then
13204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13206 cat >>confdefs.h <<\_ACEOF
13207 #define HAVE_PTHREAD_GETSPECIFIC 1
13215 # Check whether --with-udis86 was given.
13216 if test "${with_udis86+set}" = set; then
13217 withval=$with_udis86;
13222 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13225 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13226 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13227 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13230 ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-ludis86 $LIBS"
13232 cat >conftest.$ac_ext <<_ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13254 rm -f conftest.$ac_objext conftest$ac_exeext
13255 if { (ac_try="$ac_link"
13256 case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_link") 2>conftest.er1
13263 grep -v '^ *+' conftest.er1 >conftest.err
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13269 { (case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_try") 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; } &&
13278 { ac_try='test -s conftest$ac_exeext'
13279 { (case "(($ac_try" in
13280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284 (eval "$ac_try") 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 ac_cv_lib_udis86_ud_init=yes
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13293 ac_cv_lib_udis86_ud_init=no
13296 rm -f core conftest.err conftest.$ac_objext \
13297 conftest$ac_exeext conftest.$ac_ext
13298 LIBS=$ac_check_lib_save_LIBS
13300 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13301 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13302 if test $ac_cv_lib_udis86_ud_init = yes; then
13303 cat >>confdefs.h <<_ACEOF
13304 #define HAVE_LIBUDIS86 1
13307 LIBS="-ludis86 $LIBS"
13311 echo "Error! You need to have libudis86 around."
13323 cat >>confdefs.h <<_ACEOF
13324 #define USE_UDIS86 $USE_UDIS86
13329 # Check whether --with-oprofile was given.
13330 if test "${with_oprofile+set}" = set; then
13331 withval=$with_oprofile;
13335 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13336 no) llvm_cv_oppath=
13339 *) llvm_cv_oppath="${withval}/lib/oprofile"
13340 CPPFLAGS="-I${withval}/include";;
13342 if test -n "$llvm_cv_oppath" ; then
13343 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13344 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13345 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13346 if test "${ac_cv_search_bfd_init+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 ac_func_search_save_LIBS=$LIBS
13350 cat >conftest.$ac_ext <<_ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13357 /* Override any GCC internal prototype to avoid an error.
13358 Use char because int might match the return type of a GCC
13359 builtin and then its argument prototype would still apply. */
13367 return bfd_init ();
13372 for ac_lib in '' bfd; do
13373 if test -z "$ac_lib"; then
13374 ac_res="none required"
13377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (ac_try="$ac_link"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_link") 2>conftest.er1
13388 grep -v '^ *+' conftest.er1 >conftest.err
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13394 { (case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_try") 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest$ac_exeext'
13404 { (case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_try") 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13413 ac_cv_search_bfd_init=$ac_res
13415 echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13421 rm -f core conftest.err conftest.$ac_objext \
13423 if test "${ac_cv_search_bfd_init+set}" = set; then
13427 if test "${ac_cv_search_bfd_init+set}" = set; then
13430 ac_cv_search_bfd_init=no
13432 rm conftest.$ac_ext
13433 LIBS=$ac_func_search_save_LIBS
13435 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13436 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13437 ac_res=$ac_cv_search_bfd_init
13438 if test "$ac_res" != no; then
13439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13443 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13444 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13445 if test "${ac_cv_search_op_open_agent+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 ac_func_search_save_LIBS=$LIBS
13449 cat >conftest.$ac_ext <<_ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13456 /* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13462 char op_open_agent ();
13466 return op_open_agent ();
13471 for ac_lib in '' opagent; do
13472 if test -z "$ac_lib"; then
13473 ac_res="none required"
13476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13478 rm -f conftest.$ac_objext conftest$ac_exeext
13479 if { (ac_try="$ac_link"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_link") 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest$ac_exeext'
13503 { (case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_try") 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 ac_cv_search_op_open_agent=$ac_res
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13520 rm -f core conftest.err conftest.$ac_objext \
13522 if test "${ac_cv_search_op_open_agent+set}" = set; then
13526 if test "${ac_cv_search_op_open_agent+set}" = set; then
13529 ac_cv_search_op_open_agent=no
13531 rm conftest.$ac_ext
13532 LIBS=$ac_func_search_save_LIBS
13534 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13535 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13536 ac_res=$ac_cv_search_op_open_agent
13537 if test "$ac_res" != no; then
13538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13542 echo "Error! You need to have libopagent around."
13547 if test "${ac_cv_header_opagent_h+set}" = set; then
13548 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13549 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13550 if test "${ac_cv_header_opagent_h+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13554 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13556 # Is the header compilable?
13557 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13558 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13559 cat >conftest.$ac_ext <<_ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565 $ac_includes_default
13566 #include <opagent.h>
13568 rm -f conftest.$ac_objext
13569 if { (ac_try="$ac_compile"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_compile") 2>conftest.er1
13577 grep -v '^ *+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } &&
13582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13583 { (case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_try") 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } &&
13592 { ac_try='test -s conftest.$ac_objext'
13593 { (case "(($ac_try" in
13594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595 *) ac_try_echo=$ac_try;;
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598 (eval "$ac_try") 2>&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; }; then
13602 ac_header_compiler=yes
13604 echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13607 ac_header_compiler=no
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13612 echo "${ECHO_T}$ac_header_compiler" >&6; }
13614 # Is the header present?
13615 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13616 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 #include <opagent.h>
13625 if { (ac_try="$ac_cpp conftest.$ac_ext"
13626 case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13633 grep -v '^ *+' conftest.er1 >conftest.err
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } >/dev/null; then
13638 if test -s conftest.err; then
13639 ac_cpp_err=$ac_c_preproc_warn_flag
13640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13647 if test -z "$ac_cpp_err"; then
13648 ac_header_preproc=yes
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13653 ac_header_preproc=no
13656 rm -f conftest.err conftest.$ac_ext
13657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13658 echo "${ECHO_T}$ac_header_preproc" >&6; }
13660 # So? What about this header?
13661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13663 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13664 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13666 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13667 ac_header_preproc=yes
13670 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13671 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13672 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13673 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13674 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13675 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13676 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13677 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13679 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13681 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13683 ## ----------------------------------- ##
13684 ## Report this to llvmbugs@cs.uiuc.edu ##
13685 ## ----------------------------------- ##
13687 ) | sed "s/^/$as_me: WARNING: /" >&2
13690 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13691 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13692 if test "${ac_cv_header_opagent_h+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 ac_cv_header_opagent_h=$ac_header_preproc
13697 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13698 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13701 if test $ac_cv_header_opagent_h = yes; then
13705 echo "Error! You need to have opagent.h around."
13721 cat >>confdefs.h <<_ACEOF
13722 #define USE_OPROFILE $USE_OPROFILE
13732 ac_header_dirent=no
13733 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13734 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13735 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13736 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 #include <sys/types.h>
13758 rm -f conftest.$ac_objext
13759 if { (ac_try="$ac_compile"
13760 case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_compile") 2>conftest.er1
13767 grep -v '^ *+' conftest.er1 >conftest.err
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13773 { (case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_try") 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest.$ac_objext'
13783 { (case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_try") 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 eval "$as_ac_Header=yes"
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13797 eval "$as_ac_Header=no"
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802 ac_res=`eval echo '${'$as_ac_Header'}'`
13803 { echo "$as_me:$LINENO: result: $ac_res" >&5
13804 echo "${ECHO_T}$ac_res" >&6; }
13805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13806 cat >>confdefs.h <<_ACEOF
13807 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13810 ac_header_dirent=$ac_hdr; break
13814 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13815 if test $ac_header_dirent = dirent.h; then
13816 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13817 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13818 if test "${ac_cv_search_opendir+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 ac_func_search_save_LIBS=$LIBS
13822 cat >conftest.$ac_ext <<_ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13829 /* Override any GCC internal prototype to avoid an error.
13830 Use char because int might match the return type of a GCC
13831 builtin and then its argument prototype would still apply. */
13844 for ac_lib in '' dir; do
13845 if test -z "$ac_lib"; then
13846 ac_res="none required"
13849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13851 rm -f conftest.$ac_objext conftest$ac_exeext
13852 if { (ac_try="$ac_link"
13853 case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_link") 2>conftest.er1
13860 grep -v '^ *+' conftest.er1 >conftest.err
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
13865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; } &&
13875 { ac_try='test -s conftest$ac_exeext'
13876 { (case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_try") 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 ac_cv_search_opendir=$ac_res
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13893 rm -f core conftest.err conftest.$ac_objext \
13895 if test "${ac_cv_search_opendir+set}" = set; then
13899 if test "${ac_cv_search_opendir+set}" = set; then
13902 ac_cv_search_opendir=no
13904 rm conftest.$ac_ext
13905 LIBS=$ac_func_search_save_LIBS
13907 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13908 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13909 ac_res=$ac_cv_search_opendir
13910 if test "$ac_res" != no; then
13911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13916 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13917 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13918 if test "${ac_cv_search_opendir+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 ac_func_search_save_LIBS=$LIBS
13922 cat >conftest.$ac_ext <<_ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13929 /* Override any GCC internal prototype to avoid an error.
13930 Use char because int might match the return type of a GCC
13931 builtin and then its argument prototype would still apply. */
13944 for ac_lib in '' x; do
13945 if test -z "$ac_lib"; then
13946 ac_res="none required"
13949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13951 rm -f conftest.$ac_objext conftest$ac_exeext
13952 if { (ac_try="$ac_link"
13953 case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_link") 2>conftest.er1
13960 grep -v '^ *+' conftest.er1 >conftest.err
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest$ac_exeext'
13976 { (case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_try") 2>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; }; then
13985 ac_cv_search_opendir=$ac_res
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13993 rm -f core conftest.err conftest.$ac_objext \
13995 if test "${ac_cv_search_opendir+set}" = set; then
13999 if test "${ac_cv_search_opendir+set}" = set; then
14002 ac_cv_search_opendir=no
14004 rm conftest.$ac_ext
14005 LIBS=$ac_func_search_save_LIBS
14007 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14008 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14009 ac_res=$ac_cv_search_opendir
14010 if test "$ac_res" != no; then
14011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14017 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14018 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14019 if test "${ac_cv_header_mmap_anon+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 #include <sys/mman.h>
14035 #include <unistd.h>
14040 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14045 rm -f conftest.$ac_objext
14046 if { (ac_try="$ac_compile"
14047 case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_compile") 2>conftest.er1
14054 grep -v '^ *+' conftest.er1 >conftest.err
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_try") 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest.$ac_objext'
14070 { (case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_try") 2>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }; then
14079 ac_cv_header_mmap_anon=yes
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14084 ac_cv_header_mmap_anon=no
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 ac_cpp='$CPP $CPPFLAGS'
14090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14096 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14097 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14098 if test "$ac_cv_header_mmap_anon" = yes; then
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_MMAP_ANONYMOUS 1
14106 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14107 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14108 if test "${ac_cv_header_stat_broken+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 #include <sys/types.h>
14118 #include <sys/stat.h>
14120 #if defined S_ISBLK && defined S_IFDIR
14121 # if S_ISBLK (S_IFDIR)
14126 #if defined S_ISBLK && defined S_IFCHR
14127 # if S_ISBLK (S_IFCHR)
14132 #if defined S_ISLNK && defined S_IFREG
14133 # if S_ISLNK (S_IFREG)
14138 #if defined S_ISSOCK && defined S_IFREG
14139 # if S_ISSOCK (S_IFREG)
14145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14146 $EGREP "You lose" >/dev/null 2>&1; then
14147 ac_cv_header_stat_broken=yes
14149 ac_cv_header_stat_broken=no
14154 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14155 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14156 if test $ac_cv_header_stat_broken = yes; then
14158 cat >>confdefs.h <<\_ACEOF
14159 #define STAT_MACROS_BROKEN 1
14164 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14165 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14166 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 cat >conftest.$ac_ext <<_ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14175 #include <sys/types.h>
14176 #include <sys/wait.h>
14177 #ifndef WEXITSTATUS
14178 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14181 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14189 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14194 rm -f conftest.$ac_objext
14195 if { (ac_try="$ac_compile"
14196 case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_compile") 2>conftest.er1
14203 grep -v '^ *+' conftest.er1 >conftest.err
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest.$ac_objext'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_cv_header_sys_wait_h=yes
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 ac_cv_header_sys_wait_h=no
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14238 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14239 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14240 if test $ac_cv_header_sys_wait_h = yes; then
14242 cat >>confdefs.h <<\_ACEOF
14243 #define HAVE_SYS_WAIT_H 1
14248 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14249 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14250 if test "${ac_cv_header_time+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 cat >conftest.$ac_ext <<_ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 #include <sys/types.h>
14260 #include <sys/time.h>
14266 if ((struct tm *) 0)
14272 rm -f conftest.$ac_objext
14273 if { (ac_try="$ac_compile"
14274 case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_compile") 2>conftest.er1
14281 grep -v '^ *+' conftest.er1 >conftest.err
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14287 { (case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_try") 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; } &&
14296 { ac_try='test -s conftest.$ac_objext'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_try") 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_cv_header_time=yes
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14311 ac_cv_header_time=no
14314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14317 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14318 if test $ac_cv_header_time = yes; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define TIME_WITH_SYS_TIME 1
14333 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 ac_res=`eval echo '${'$as_ac_Header'}'`
14343 { echo "$as_me:$LINENO: result: $ac_res" >&5
14344 echo "${ECHO_T}$ac_res" >&6; }
14346 # Is the header compilable?
14347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 $ac_includes_default
14356 #include <$ac_header>
14358 rm -f conftest.$ac_objext
14359 if { (ac_try="$ac_compile"
14360 case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_compile") 2>conftest.er1
14367 grep -v '^ *+' conftest.er1 >conftest.err
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
14372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14373 { (case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_try") 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; } &&
14382 { ac_try='test -s conftest.$ac_objext'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_header_compiler=yes
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14397 ac_header_compiler=no
14400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14402 echo "${ECHO_T}$ac_header_compiler" >&6; }
14404 # Is the header present?
14405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 #include <$ac_header>
14415 if { (ac_try="$ac_cpp conftest.$ac_ext"
14416 case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14423 grep -v '^ *+' conftest.er1 >conftest.err
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } >/dev/null; then
14428 if test -s conftest.err; then
14429 ac_cpp_err=$ac_c_preproc_warn_flag
14430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14437 if test -z "$ac_cpp_err"; then
14438 ac_header_preproc=yes
14440 echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14443 ac_header_preproc=no
14446 rm -f conftest.err conftest.$ac_ext
14447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14448 echo "${ECHO_T}$ac_header_preproc" >&6; }
14450 # So? What about this header?
14451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14457 ac_header_preproc=yes
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14473 ## ----------------------------------- ##
14474 ## Report this to llvmbugs@cs.uiuc.edu ##
14475 ## ----------------------------------- ##
14477 ) | sed "s/^/$as_me: WARNING: /" >&2
14480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 eval "$as_ac_Header=\$ac_header_preproc"
14487 ac_res=`eval echo '${'$as_ac_Header'}'`
14488 { echo "$as_me:$LINENO: result: $ac_res" >&5
14489 echo "${ECHO_T}$ac_res" >&6; }
14492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14493 cat >>confdefs.h <<_ACEOF
14494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14507 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 ac_res=`eval echo '${'$as_ac_Header'}'`
14517 { echo "$as_me:$LINENO: result: $ac_res" >&5
14518 echo "${ECHO_T}$ac_res" >&6; }
14520 # Is the header compilable?
14521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14523 cat >conftest.$ac_ext <<_ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14529 $ac_includes_default
14530 #include <$ac_header>
14532 rm -f conftest.$ac_objext
14533 if { (ac_try="$ac_compile"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_compile") 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547 { (case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_try") 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_header_compiler=yes
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_header_compiler=no
14574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14576 echo "${ECHO_T}$ac_header_compiler" >&6; }
14578 # Is the header present?
14579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 #include <$ac_header>
14589 if { (ac_try="$ac_cpp conftest.$ac_ext"
14590 case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14597 grep -v '^ *+' conftest.er1 >conftest.err
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } >/dev/null; then
14602 if test -s conftest.err; then
14603 ac_cpp_err=$ac_c_preproc_warn_flag
14604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14611 if test -z "$ac_cpp_err"; then
14612 ac_header_preproc=yes
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 ac_header_preproc=no
14620 rm -f conftest.err conftest.$ac_ext
14621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14622 echo "${ECHO_T}$ac_header_preproc" >&6; }
14624 # So? What about this header?
14625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14631 ac_header_preproc=yes
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14647 ## ----------------------------------- ##
14648 ## Report this to llvmbugs@cs.uiuc.edu ##
14649 ## ----------------------------------- ##
14651 ) | sed "s/^/$as_me: WARNING: /" >&2
14654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 eval "$as_ac_Header=\$ac_header_preproc"
14661 ac_res=`eval echo '${'$as_ac_Header'}'`
14662 { echo "$as_me:$LINENO: result: $ac_res" >&5
14663 echo "${ECHO_T}$ac_res" >&6; }
14666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14667 cat >>confdefs.h <<_ACEOF
14668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14677 for ac_header in utime.h windows.h
14679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 ac_res=`eval echo '${'$as_ac_Header'}'`
14687 { echo "$as_me:$LINENO: result: $ac_res" >&5
14688 echo "${ECHO_T}$ac_res" >&6; }
14690 # Is the header compilable?
14691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14693 cat >conftest.$ac_ext <<_ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 $ac_includes_default
14700 #include <$ac_header>
14702 rm -f conftest.$ac_objext
14703 if { (ac_try="$ac_compile"
14704 case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_compile") 2>conftest.er1
14711 grep -v '^ *+' conftest.er1 >conftest.err
14713 cat conftest.err >&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
14716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14717 { (case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_try") 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; } &&
14726 { ac_try='test -s conftest.$ac_objext'
14727 { (case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_try") 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14736 ac_header_compiler=yes
14738 echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14741 ac_header_compiler=no
14744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14746 echo "${ECHO_T}$ac_header_compiler" >&6; }
14748 # Is the header present?
14749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14751 cat >conftest.$ac_ext <<_ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h. */
14757 #include <$ac_header>
14759 if { (ac_try="$ac_cpp conftest.$ac_ext"
14760 case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14767 grep -v '^ *+' conftest.er1 >conftest.err
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } >/dev/null; then
14772 if test -s conftest.err; then
14773 ac_cpp_err=$ac_c_preproc_warn_flag
14774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14781 if test -z "$ac_cpp_err"; then
14782 ac_header_preproc=yes
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 ac_header_preproc=no
14790 rm -f conftest.err conftest.$ac_ext
14791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14792 echo "${ECHO_T}$ac_header_preproc" >&6; }
14794 # So? What about this header?
14795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14801 ac_header_preproc=yes
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14817 ## ----------------------------------- ##
14818 ## Report this to llvmbugs@cs.uiuc.edu ##
14819 ## ----------------------------------- ##
14821 ) | sed "s/^/$as_me: WARNING: /" >&2
14824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 eval "$as_ac_Header=\$ac_header_preproc"
14831 ac_res=`eval echo '${'$as_ac_Header'}'`
14832 { echo "$as_me:$LINENO: result: $ac_res" >&5
14833 echo "${ECHO_T}$ac_res" >&6; }
14836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14837 cat >>confdefs.h <<_ACEOF
14838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14850 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 ac_res=`eval echo '${'$as_ac_Header'}'`
14860 { echo "$as_me:$LINENO: result: $ac_res" >&5
14861 echo "${ECHO_T}$ac_res" >&6; }
14863 # Is the header compilable?
14864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14866 cat >conftest.$ac_ext <<_ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14872 $ac_includes_default
14873 #include <$ac_header>
14875 rm -f conftest.$ac_objext
14876 if { (ac_try="$ac_compile"
14877 case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_compile") 2>conftest.er1
14884 grep -v '^ *+' conftest.er1 >conftest.err
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14890 { (case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_try") 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; } &&
14899 { ac_try='test -s conftest.$ac_objext'
14900 { (case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_try") 2>&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_header_compiler=yes
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14914 ac_header_compiler=no
14917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14919 echo "${ECHO_T}$ac_header_compiler" >&6; }
14921 # Is the header present?
14922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14924 cat >conftest.$ac_ext <<_ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 #include <$ac_header>
14932 if { (ac_try="$ac_cpp conftest.$ac_ext"
14933 case "(($ac_try" in
14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935 *) ac_try_echo=$ac_try;;
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14940 grep -v '^ *+' conftest.er1 >conftest.err
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } >/dev/null; then
14945 if test -s conftest.err; then
14946 ac_cpp_err=$ac_c_preproc_warn_flag
14947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14954 if test -z "$ac_cpp_err"; then
14955 ac_header_preproc=yes
14957 echo "$as_me: failed program was:" >&5
14958 sed 's/^/| /' conftest.$ac_ext >&5
14960 ac_header_preproc=no
14963 rm -f conftest.err conftest.$ac_ext
14964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14965 echo "${ECHO_T}$ac_header_preproc" >&6; }
14967 # So? What about this header?
14968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14974 ac_header_preproc=yes
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14990 ## ----------------------------------- ##
14991 ## Report this to llvmbugs@cs.uiuc.edu ##
14992 ## ----------------------------------- ##
14994 ) | sed "s/^/$as_me: WARNING: /" >&2
14997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 eval "$as_ac_Header=\$ac_header_preproc"
15004 ac_res=`eval echo '${'$as_ac_Header'}'`
15005 { echo "$as_me:$LINENO: result: $ac_res" >&5
15006 echo "${ECHO_T}$ac_res" >&6; }
15009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15010 cat >>confdefs.h <<_ACEOF
15011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15022 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 ac_res=`eval echo '${'$as_ac_Header'}'`
15032 { echo "$as_me:$LINENO: result: $ac_res" >&5
15033 echo "${ECHO_T}$ac_res" >&6; }
15035 # Is the header compilable?
15036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15038 cat >conftest.$ac_ext <<_ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 $ac_includes_default
15045 #include <$ac_header>
15047 rm -f conftest.$ac_objext
15048 if { (ac_try="$ac_compile"
15049 case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_compile") 2>conftest.er1
15056 grep -v '^ *+' conftest.er1 >conftest.err
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest.$ac_objext'
15072 { (case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_try") 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_header_compiler=yes
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15086 ac_header_compiler=no
15089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15091 echo "${ECHO_T}$ac_header_compiler" >&6; }
15093 # Is the header present?
15094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15096 cat >conftest.$ac_ext <<_ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15102 #include <$ac_header>
15104 if { (ac_try="$ac_cpp conftest.$ac_ext"
15105 case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15112 grep -v '^ *+' conftest.er1 >conftest.err
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } >/dev/null; then
15117 if test -s conftest.err; then
15118 ac_cpp_err=$ac_c_preproc_warn_flag
15119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15126 if test -z "$ac_cpp_err"; then
15127 ac_header_preproc=yes
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_header_preproc=no
15135 rm -f conftest.err conftest.$ac_ext
15136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15137 echo "${ECHO_T}$ac_header_preproc" >&6; }
15139 # So? What about this header?
15140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15146 ac_header_preproc=yes
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15162 ## ----------------------------------- ##
15163 ## Report this to llvmbugs@cs.uiuc.edu ##
15164 ## ----------------------------------- ##
15166 ) | sed "s/^/$as_me: WARNING: /" >&2
15169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 eval "$as_ac_Header=\$ac_header_preproc"
15176 ac_res=`eval echo '${'$as_ac_Header'}'`
15177 { echo "$as_me:$LINENO: result: $ac_res" >&5
15178 echo "${ECHO_T}$ac_res" >&6; }
15181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15182 cat >>confdefs.h <<_ACEOF
15183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15191 for ac_header in valgrind/valgrind.h
15193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 ac_res=`eval echo '${'$as_ac_Header'}'`
15201 { echo "$as_me:$LINENO: result: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15204 # Is the header compilable?
15205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15214 #include <$ac_header>
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_compile") 2>conftest.er1
15225 grep -v '^ *+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15231 { (case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_try") 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest.$ac_objext'
15241 { (case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_try") 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_header_compiler=yes
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_header_compiler=no
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15260 echo "${ECHO_T}$ac_header_compiler" >&6; }
15262 # Is the header present?
15263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15265 cat >conftest.$ac_ext <<_ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15271 #include <$ac_header>
15273 if { (ac_try="$ac_cpp conftest.$ac_ext"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15281 grep -v '^ *+' conftest.er1 >conftest.err
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } >/dev/null; then
15286 if test -s conftest.err; then
15287 ac_cpp_err=$ac_c_preproc_warn_flag
15288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15295 if test -z "$ac_cpp_err"; then
15296 ac_header_preproc=yes
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15301 ac_header_preproc=no
15304 rm -f conftest.err conftest.$ac_ext
15305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15306 echo "${ECHO_T}$ac_header_preproc" >&6; }
15308 # So? What about this header?
15309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15315 ac_header_preproc=yes
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15331 ## ----------------------------------- ##
15332 ## Report this to llvmbugs@cs.uiuc.edu ##
15333 ## ----------------------------------- ##
15335 ) | sed "s/^/$as_me: WARNING: /" >&2
15338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 eval "$as_ac_Header=\$ac_header_preproc"
15345 ac_res=`eval echo '${'$as_ac_Header'}'`
15346 { echo "$as_me:$LINENO: result: $ac_res" >&5
15347 echo "${ECHO_T}$ac_res" >&6; }
15350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15351 cat >>confdefs.h <<_ACEOF
15352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15360 for ac_header in fenv.h
15362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 ac_res=`eval echo '${'$as_ac_Header'}'`
15370 { echo "$as_me:$LINENO: result: $ac_res" >&5
15371 echo "${ECHO_T}$ac_res" >&6; }
15373 # Is the header compilable?
15374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15376 cat >conftest.$ac_ext <<_ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 $ac_includes_default
15383 #include <$ac_header>
15385 rm -f conftest.$ac_objext
15386 if { (ac_try="$ac_compile"
15387 case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_compile") 2>conftest.er1
15394 grep -v '^ *+' conftest.er1 >conftest.err
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
15399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest.$ac_objext'
15410 { (case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_try") 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_header_compiler=yes
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 ac_header_compiler=no
15427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15429 echo "${ECHO_T}$ac_header_compiler" >&6; }
15431 # Is the header present?
15432 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15434 cat >conftest.$ac_ext <<_ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 #include <$ac_header>
15442 if { (ac_try="$ac_cpp conftest.$ac_ext"
15443 case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15450 grep -v '^ *+' conftest.er1 >conftest.err
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } >/dev/null; then
15455 if test -s conftest.err; then
15456 ac_cpp_err=$ac_c_preproc_warn_flag
15457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15464 if test -z "$ac_cpp_err"; then
15465 ac_header_preproc=yes
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15470 ac_header_preproc=no
15473 rm -f conftest.err conftest.$ac_ext
15474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15475 echo "${ECHO_T}$ac_header_preproc" >&6; }
15477 # So? What about this header?
15478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15484 ac_header_preproc=yes
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15500 ## ----------------------------------- ##
15501 ## Report this to llvmbugs@cs.uiuc.edu ##
15502 ## ----------------------------------- ##
15504 ) | sed "s/^/$as_me: WARNING: /" >&2
15507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 eval "$as_ac_Header=\$ac_header_preproc"
15514 ac_res=`eval echo '${'$as_ac_Header'}'`
15515 { echo "$as_me:$LINENO: result: $ac_res" >&5
15516 echo "${ECHO_T}$ac_res" >&6; }
15519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15520 cat >>confdefs.h <<_ACEOF
15521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15528 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15530 for ac_header in pthread.h
15532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15539 ac_res=`eval echo '${'$as_ac_Header'}'`
15540 { echo "$as_me:$LINENO: result: $ac_res" >&5
15541 echo "${ECHO_T}$ac_res" >&6; }
15543 # Is the header compilable?
15544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 $ac_includes_default
15553 #include <$ac_header>
15555 rm -f conftest.$ac_objext
15556 if { (ac_try="$ac_compile"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_compile") 2>conftest.er1
15564 grep -v '^ *+' conftest.er1 >conftest.err
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570 { (case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_try") 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } &&
15579 { ac_try='test -s conftest.$ac_objext'
15580 { (case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_try") 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 ac_header_compiler=yes
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 ac_header_compiler=no
15597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15599 echo "${ECHO_T}$ac_header_compiler" >&6; }
15601 # Is the header present?
15602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15604 cat >conftest.$ac_ext <<_ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15610 #include <$ac_header>
15612 if { (ac_try="$ac_cpp conftest.$ac_ext"
15613 case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15620 grep -v '^ *+' conftest.er1 >conftest.err
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } >/dev/null; then
15625 if test -s conftest.err; then
15626 ac_cpp_err=$ac_c_preproc_warn_flag
15627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15634 if test -z "$ac_cpp_err"; then
15635 ac_header_preproc=yes
15637 echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15640 ac_header_preproc=no
15643 rm -f conftest.err conftest.$ac_ext
15644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15645 echo "${ECHO_T}$ac_header_preproc" >&6; }
15647 # So? What about this header?
15648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15654 ac_header_preproc=yes
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15670 ## ----------------------------------- ##
15671 ## Report this to llvmbugs@cs.uiuc.edu ##
15672 ## ----------------------------------- ##
15674 ) | sed "s/^/$as_me: WARNING: /" >&2
15677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 eval "$as_ac_Header=\$ac_header_preproc"
15684 ac_res=`eval echo '${'$as_ac_Header'}'`
15685 { echo "$as_me:$LINENO: result: $ac_res" >&5
15686 echo "${ECHO_T}$ac_res" >&6; }
15689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15690 cat >>confdefs.h <<_ACEOF
15691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15707 if test "$llvm_cv_enable_libffi" = "yes" ; then
15710 for ac_header in ffi.h ffi/ffi.h
15712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 ac_res=`eval echo '${'$as_ac_Header'}'`
15720 { echo "$as_me:$LINENO: result: $ac_res" >&5
15721 echo "${ECHO_T}$ac_res" >&6; }
15723 # Is the header compilable?
15724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15726 cat >conftest.$ac_ext <<_ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732 $ac_includes_default
15733 #include <$ac_header>
15735 rm -f conftest.$ac_objext
15736 if { (ac_try="$ac_compile"
15737 case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_compile") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15750 { (case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_try") 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; } &&
15759 { ac_try='test -s conftest.$ac_objext'
15760 { (case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_try") 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_header_compiler=yes
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_header_compiler=no
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779 echo "${ECHO_T}$ac_header_compiler" >&6; }
15781 # Is the header present?
15782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <$ac_header>
15792 if { (ac_try="$ac_cpp conftest.$ac_ext"
15793 case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15800 grep -v '^ *+' conftest.er1 >conftest.err
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } >/dev/null; then
15805 if test -s conftest.err; then
15806 ac_cpp_err=$ac_c_preproc_warn_flag
15807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15814 if test -z "$ac_cpp_err"; then
15815 ac_header_preproc=yes
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_preproc=no
15823 rm -f conftest.err conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6; }
15827 # So? What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834 ac_header_preproc=yes
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15850 ## ----------------------------------- ##
15851 ## Report this to llvmbugs@cs.uiuc.edu ##
15852 ## ----------------------------------- ##
15854 ) | sed "s/^/$as_me: WARNING: /" >&2
15857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 eval "$as_ac_Header=\$ac_header_preproc"
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15870 cat >>confdefs.h <<_ACEOF
15871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15881 for ac_header in CrashReporterClient.h
15883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 ac_res=`eval echo '${'$as_ac_Header'}'`
15891 { echo "$as_me:$LINENO: result: $ac_res" >&5
15892 echo "${ECHO_T}$ac_res" >&6; }
15894 # Is the header compilable?
15895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15897 cat >conftest.$ac_ext <<_ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903 $ac_includes_default
15904 #include <$ac_header>
15906 rm -f conftest.$ac_objext
15907 if { (ac_try="$ac_compile"
15908 case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_compile") 2>conftest.er1
15915 grep -v '^ *+' conftest.er1 >conftest.err
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
15920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_try") 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_try") 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_header_compiler=yes
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_header_compiler=no
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15950 echo "${ECHO_T}$ac_header_compiler" >&6; }
15952 # Is the header present?
15953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15955 cat >conftest.$ac_ext <<_ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 #include <$ac_header>
15963 if { (ac_try="$ac_cpp conftest.$ac_ext"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15971 grep -v '^ *+' conftest.er1 >conftest.err
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } >/dev/null; then
15976 if test -s conftest.err; then
15977 ac_cpp_err=$ac_c_preproc_warn_flag
15978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15985 if test -z "$ac_cpp_err"; then
15986 ac_header_preproc=yes
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 ac_header_preproc=no
15994 rm -f conftest.err conftest.$ac_ext
15995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15996 echo "${ECHO_T}$ac_header_preproc" >&6; }
15998 # So? What about this header?
15999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16005 ac_header_preproc=yes
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16021 ## ----------------------------------- ##
16022 ## Report this to llvmbugs@cs.uiuc.edu ##
16023 ## ----------------------------------- ##
16025 ) | sed "s/^/$as_me: WARNING: /" >&2
16028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 eval "$as_ac_Header=\$ac_header_preproc"
16035 ac_res=`eval echo '${'$as_ac_Header'}'`
16036 { echo "$as_me:$LINENO: result: $ac_res" >&5
16037 echo "${ECHO_T}$ac_res" >&6; }
16040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16041 cat >>confdefs.h <<_ACEOF
16042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16050 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16051 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16052 cat >conftest.$ac_ext <<_ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 extern const char *__crashreporter_info__;
16060 __crashreporter_info__ = "test";
16065 rm -f conftest.$ac_objext conftest$ac_exeext
16066 if { (ac_try="$ac_link"
16067 case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_link") 2>conftest.er1
16074 grep -v '^ *+' conftest.er1 >conftest.err
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16080 { (case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_try") 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest$ac_exeext'
16090 { (case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_try") 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 { echo "$as_me:$LINENO: result: yes" >&5
16100 echo "${ECHO_T}yes" >&6; }
16102 cat >>confdefs.h <<\_ACEOF
16103 #define HAVE_CRASHREPORTER_INFO 1
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16110 { echo "$as_me:$LINENO: result: no" >&5
16111 echo "${ECHO_T}no" >&6; }
16113 cat >>confdefs.h <<\_ACEOF
16114 #define HAVE_CRASHREPORTER_INFO 0
16119 rm -f core conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16125 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16126 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16127 if test "${ac_cv_huge_val_sanity+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16132 ac_cpp='$CXXCPP $CPPFLAGS'
16133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16137 ac_save_CXXFLAGS=$CXXFLAGS
16139 if test "$cross_compiling" = yes; then
16140 ac_cv_huge_val_sanity=yes
16142 cat >conftest.$ac_ext <<_ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16152 double x = HUGE_VAL; return x != x;
16157 rm -f conftest$ac_exeext
16158 if { (ac_try="$ac_link"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_link") 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16168 { (case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173 (eval "$ac_try") 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 ac_cv_huge_val_sanity=yes
16179 echo "$as_me: program exited with status $ac_status" >&5
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 ( exit $ac_status )
16184 ac_cv_huge_val_sanity=no
16186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16190 CXXFLAGS=$ac_save_CXXFLAGS
16192 ac_cpp='$CPP $CPPFLAGS'
16193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16199 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16200 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16201 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16204 { echo "$as_me:$LINENO: checking for pid_t" >&5
16205 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16206 if test "${ac_cv_type_pid_t+set}" = set; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 cat >conftest.$ac_ext <<_ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h. */
16215 $ac_includes_default
16216 typedef pid_t ac__type_new_;
16220 if ((ac__type_new_ *) 0)
16222 if (sizeof (ac__type_new_))
16228 rm -f conftest.$ac_objext
16229 if { (ac_try="$ac_compile"
16230 case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_compile") 2>conftest.er1
16237 grep -v '^ *+' conftest.er1 >conftest.err
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16243 { (case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_try") 2>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest.$ac_objext'
16253 { (case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_try") 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_cv_type_pid_t=yes
16264 echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.$ac_ext >&5
16267 ac_cv_type_pid_t=no
16270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16273 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16274 if test $ac_cv_type_pid_t = yes; then
16278 cat >>confdefs.h <<_ACEOF
16284 { echo "$as_me:$LINENO: checking for size_t" >&5
16285 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16286 if test "${ac_cv_type_size_t+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 $ac_includes_default
16296 typedef size_t ac__type_new_;
16300 if ((ac__type_new_ *) 0)
16302 if (sizeof (ac__type_new_))
16308 rm -f conftest.$ac_objext
16309 if { (ac_try="$ac_compile"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_compile") 2>conftest.er1
16317 grep -v '^ *+' conftest.er1 >conftest.err
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_try") 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 ac_cv_type_size_t=yes
16344 echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16347 ac_cv_type_size_t=no
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16353 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16354 if test $ac_cv_type_size_t = yes; then
16358 cat >>confdefs.h <<_ACEOF
16359 #define size_t unsigned int
16365 cat >>confdefs.h <<_ACEOF
16366 #define RETSIGTYPE void
16369 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16370 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16371 if test "${ac_cv_struct_tm+set}" = set; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16374 cat >conftest.$ac_ext <<_ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 #include <sys/types.h>
16386 struct tm *tp; tp->tm_sec;
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_cv_struct_tm=time.h
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_cv_struct_tm=sys/time.h
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16436 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16437 if test $ac_cv_struct_tm = sys/time.h; then
16439 cat >>confdefs.h <<\_ACEOF
16440 #define TM_IN_SYS_TIME 1
16445 { echo "$as_me:$LINENO: checking for int64_t" >&5
16446 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16447 if test "${ac_cv_type_int64_t+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 $ac_includes_default
16457 typedef int64_t ac__type_new_;
16461 if ((ac__type_new_ *) 0)
16463 if (sizeof (ac__type_new_))
16469 rm -f conftest.$ac_objext
16470 if { (ac_try="$ac_compile"
16471 case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_compile") 2>conftest.er1
16478 grep -v '^ *+' conftest.er1 >conftest.err
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } &&
16483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16484 { (case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
16494 { (case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_try") 2>&5
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_cv_type_int64_t=yes
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16508 ac_cv_type_int64_t=no
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16513 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16514 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16515 if test $ac_cv_type_int64_t = yes; then
16517 cat >>confdefs.h <<_ACEOF
16518 #define HAVE_INT64_T 1
16523 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16524 echo "$as_me: error: Type int64_t required but not found" >&2;}
16525 { (exit 1); exit 1; }; }
16528 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16529 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16530 if test "${ac_cv_type_uint64_t+set}" = set; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 cat >conftest.$ac_ext <<_ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 $ac_includes_default
16540 typedef uint64_t ac__type_new_;
16544 if ((ac__type_new_ *) 0)
16546 if (sizeof (ac__type_new_))
16552 rm -f conftest.$ac_objext
16553 if { (ac_try="$ac_compile"
16554 case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_compile") 2>conftest.er1
16561 grep -v '^ *+' conftest.er1 >conftest.err
16563 cat conftest.err >&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } &&
16566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16567 { (case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_try") 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; } &&
16576 { ac_try='test -s conftest.$ac_objext'
16577 { (case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_try") 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_type_uint64_t=yes
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_type_uint64_t=no
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16597 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16598 if test $ac_cv_type_uint64_t = yes; then
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_UINT64_T 1
16606 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16607 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16608 if test "${ac_cv_type_u_int64_t+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 cat >conftest.$ac_ext <<_ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 $ac_includes_default
16618 typedef u_int64_t ac__type_new_;
16622 if ((ac__type_new_ *) 0)
16624 if (sizeof (ac__type_new_))
16630 rm -f conftest.$ac_objext
16631 if { (ac_try="$ac_compile"
16632 case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_compile") 2>conftest.er1
16639 grep -v '^ *+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
16644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest.$ac_objext'
16655 { (case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_try") 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_type_u_int64_t=yes
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_cv_type_u_int64_t=no
16672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16675 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16676 if test $ac_cv_type_u_int64_t = yes; then
16678 cat >>confdefs.h <<_ACEOF
16679 #define HAVE_U_INT64_T 1
16684 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16685 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16686 { (exit 1); exit 1; }; }
16700 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 cat >conftest.$ac_ext <<_ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16716 #define $ac_func innocuous_$ac_func
16718 /* System header to define __stub macros and hopefully few prototypes,
16719 which can conflict with char $ac_func (); below.
16720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16721 <limits.h> exists even on freestanding compilers. */
16724 # include <limits.h>
16726 # include <assert.h>
16731 /* Override any GCC internal prototype to avoid an error.
16732 Use char because int might match the return type of a GCC
16733 builtin and then its argument prototype would still apply. */
16738 /* The GNU C library defines this for functions which it implements
16739 to always fail with ENOSYS. Some functions are actually named
16740 something starting with __ and the normal name is an alias. */
16741 #if defined __stub_$ac_func || defined __stub___$ac_func
16748 return $ac_func ();
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (ac_try="$ac_link"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_link") 2>conftest.er1
16762 grep -v '^ *+' conftest.er1 >conftest.err
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest$ac_exeext'
16778 { (case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_try") 2>&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 eval "$as_ac_var=yes"
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 eval "$as_ac_var=no"
16795 rm -f core conftest.err conftest.$ac_objext \
16796 conftest$ac_exeext conftest.$ac_ext
16798 ac_res=`eval echo '${'$as_ac_var'}'`
16799 { echo "$as_me:$LINENO: result: $ac_res" >&5
16800 echo "${ECHO_T}$ac_res" >&6; }
16801 if test `eval echo '${'$as_ac_var'}'` = yes; then
16802 cat >>confdefs.h <<_ACEOF
16803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16813 for ac_func in powf fmodf strtof round
16815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 cat >conftest.$ac_ext <<_ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16829 #define $ac_func innocuous_$ac_func
16831 /* System header to define __stub macros and hopefully few prototypes,
16832 which can conflict with char $ac_func (); below.
16833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16834 <limits.h> exists even on freestanding compilers. */
16837 # include <limits.h>
16839 # include <assert.h>
16844 /* Override any GCC internal prototype to avoid an error.
16845 Use char because int might match the return type of a GCC
16846 builtin and then its argument prototype would still apply. */
16851 /* The GNU C library defines this for functions which it implements
16852 to always fail with ENOSYS. Some functions are actually named
16853 something starting with __ and the normal name is an alias. */
16854 #if defined __stub_$ac_func || defined __stub___$ac_func
16861 return $ac_func ();
16866 rm -f conftest.$ac_objext conftest$ac_exeext
16867 if { (ac_try="$ac_link"
16868 case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_link") 2>conftest.er1
16875 grep -v '^ *+' conftest.er1 >conftest.err
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; } &&
16890 { ac_try='test -s conftest$ac_exeext'
16891 { (case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_try") 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 eval "$as_ac_var=yes"
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16905 eval "$as_ac_var=no"
16908 rm -f core conftest.err conftest.$ac_objext \
16909 conftest$ac_exeext conftest.$ac_ext
16911 ac_res=`eval echo '${'$as_ac_var'}'`
16912 { echo "$as_me:$LINENO: result: $ac_res" >&5
16913 echo "${ECHO_T}$ac_res" >&6; }
16914 if test `eval echo '${'$as_ac_var'}'` = yes; then
16915 cat >>confdefs.h <<_ACEOF
16916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16927 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 cat >conftest.$ac_ext <<_ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16943 #define $ac_func innocuous_$ac_func
16945 /* System header to define __stub macros and hopefully few prototypes,
16946 which can conflict with char $ac_func (); below.
16947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16948 <limits.h> exists even on freestanding compilers. */
16951 # include <limits.h>
16953 # include <assert.h>
16958 /* Override any GCC internal prototype to avoid an error.
16959 Use char because int might match the return type of a GCC
16960 builtin and then its argument prototype would still apply. */
16965 /* The GNU C library defines this for functions which it implements
16966 to always fail with ENOSYS. Some functions are actually named
16967 something starting with __ and the normal name is an alias. */
16968 #if defined __stub_$ac_func || defined __stub___$ac_func
16975 return $ac_func ();
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (ac_try="$ac_link"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_link") 2>conftest.er1
16989 grep -v '^ *+' conftest.er1 >conftest.err
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest$ac_exeext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 eval "$as_ac_var=yes"
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 eval "$as_ac_var=no"
17022 rm -f core conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
17025 ac_res=`eval echo '${'$as_ac_var'}'`
17026 { echo "$as_me:$LINENO: result: $ac_res" >&5
17027 echo "${ECHO_T}$ac_res" >&6; }
17028 if test `eval echo '${'$as_ac_var'}'` = yes; then
17029 cat >>confdefs.h <<_ACEOF
17030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17039 for ac_func in isatty mkdtemp mkstemp
17041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 cat >conftest.$ac_ext <<_ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17055 #define $ac_func innocuous_$ac_func
17057 /* System header to define __stub macros and hopefully few prototypes,
17058 which can conflict with char $ac_func (); below.
17059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17060 <limits.h> exists even on freestanding compilers. */
17063 # include <limits.h>
17065 # include <assert.h>
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17077 /* The GNU C library defines this for functions which it implements
17078 to always fail with ENOSYS. Some functions are actually named
17079 something starting with __ and the normal name is an alias. */
17080 #if defined __stub_$ac_func || defined __stub___$ac_func
17087 return $ac_func ();
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17101 grep -v '^ *+' conftest.er1 >conftest.err
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } &&
17106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17107 { (case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_try") 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest$ac_exeext'
17117 { (case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_try") 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 eval "$as_ac_var=yes"
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17131 eval "$as_ac_var=no"
17134 rm -f core conftest.err conftest.$ac_objext \
17135 conftest$ac_exeext conftest.$ac_ext
17137 ac_res=`eval echo '${'$as_ac_var'}'`
17138 { echo "$as_me:$LINENO: result: $ac_res" >&5
17139 echo "${ECHO_T}$ac_res" >&6; }
17140 if test `eval echo '${'$as_ac_var'}'` = yes; then
17141 cat >>confdefs.h <<_ACEOF
17142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17154 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 cat >conftest.$ac_ext <<_ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17170 #define $ac_func innocuous_$ac_func
17172 /* System header to define __stub macros and hopefully few prototypes,
17173 which can conflict with char $ac_func (); below.
17174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17175 <limits.h> exists even on freestanding compilers. */
17178 # include <limits.h>
17180 # include <assert.h>
17185 /* Override any GCC internal prototype to avoid an error.
17186 Use char because int might match the return type of a GCC
17187 builtin and then its argument prototype would still apply. */
17192 /* The GNU C library defines this for functions which it implements
17193 to always fail with ENOSYS. Some functions are actually named
17194 something starting with __ and the normal name is an alias. */
17195 #if defined __stub_$ac_func || defined __stub___$ac_func
17202 return $ac_func ();
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_link") 2>conftest.er1
17216 grep -v '^ *+' conftest.er1 >conftest.err
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } &&
17221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17222 { (case "(($ac_try" in
17223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_try") 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; } &&
17231 { ac_try='test -s conftest$ac_exeext'
17232 { (case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_try") 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 eval "$as_ac_var=yes"
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 eval "$as_ac_var=no"
17249 rm -f core conftest.err conftest.$ac_objext \
17250 conftest$ac_exeext conftest.$ac_ext
17252 ac_res=`eval echo '${'$as_ac_var'}'`
17253 { echo "$as_me:$LINENO: result: $ac_res" >&5
17254 echo "${ECHO_T}$ac_res" >&6; }
17255 if test `eval echo '${'$as_ac_var'}'` = yes; then
17256 cat >>confdefs.h <<_ACEOF
17257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17266 for ac_func in strerror strerror_r setenv
17268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 cat >conftest.$ac_ext <<_ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17282 #define $ac_func innocuous_$ac_func
17284 /* System header to define __stub macros and hopefully few prototypes,
17285 which can conflict with char $ac_func (); below.
17286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17287 <limits.h> exists even on freestanding compilers. */
17290 # include <limits.h>
17292 # include <assert.h>
17297 /* Override any GCC internal prototype to avoid an error.
17298 Use char because int might match the return type of a GCC
17299 builtin and then its argument prototype would still apply. */
17304 /* The GNU C library defines this for functions which it implements
17305 to always fail with ENOSYS. Some functions are actually named
17306 something starting with __ and the normal name is an alias. */
17307 #if defined __stub_$ac_func || defined __stub___$ac_func
17314 return $ac_func ();
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (ac_try="$ac_link"
17321 case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_link") 2>conftest.er1
17328 grep -v '^ *+' conftest.er1 >conftest.err
17330 cat conftest.err >&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } &&
17333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17334 { (case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_try") 2>&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try='test -s conftest$ac_exeext'
17344 { (case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_try") 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 eval "$as_ac_var=yes"
17355 echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17358 eval "$as_ac_var=no"
17361 rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17364 ac_res=`eval echo '${'$as_ac_var'}'`
17365 { echo "$as_me:$LINENO: result: $ac_res" >&5
17366 echo "${ECHO_T}$ac_res" >&6; }
17367 if test `eval echo '${'$as_ac_var'}'` = yes; then
17368 cat >>confdefs.h <<_ACEOF
17369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17379 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17387 cat >conftest.$ac_ext <<_ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17395 #define $ac_func innocuous_$ac_func
17397 /* System header to define __stub macros and hopefully few prototypes,
17398 which can conflict with char $ac_func (); below.
17399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17400 <limits.h> exists even on freestanding compilers. */
17403 # include <limits.h>
17405 # include <assert.h>
17410 /* Override any GCC internal prototype to avoid an error.
17411 Use char because int might match the return type of a GCC
17412 builtin and then its argument prototype would still apply. */
17417 /* The GNU C library defines this for functions which it implements
17418 to always fail with ENOSYS. Some functions are actually named
17419 something starting with __ and the normal name is an alias. */
17420 #if defined __stub_$ac_func || defined __stub___$ac_func
17427 return $ac_func ();
17432 rm -f conftest.$ac_objext conftest$ac_exeext
17433 if { (ac_try="$ac_link"
17434 case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_link") 2>conftest.er1
17441 grep -v '^ *+' conftest.er1 >conftest.err
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest$ac_exeext'
17457 { (case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_try") 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 eval "$as_ac_var=yes"
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 eval "$as_ac_var=no"
17474 rm -f core conftest.err conftest.$ac_objext \
17475 conftest$ac_exeext conftest.$ac_ext
17477 ac_res=`eval echo '${'$as_ac_var'}'`
17478 { echo "$as_me:$LINENO: result: $ac_res" >&5
17479 echo "${ECHO_T}$ac_res" >&6; }
17480 if test `eval echo '${'$as_ac_var'}'` = yes; then
17481 cat >>confdefs.h <<_ACEOF
17482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17493 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 cat >conftest.$ac_ext <<_ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17509 #define $ac_func innocuous_$ac_func
17511 /* System header to define __stub macros and hopefully few prototypes,
17512 which can conflict with char $ac_func (); below.
17513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17514 <limits.h> exists even on freestanding compilers. */
17517 # include <limits.h>
17519 # include <assert.h>
17524 /* Override any GCC internal prototype to avoid an error.
17525 Use char because int might match the return type of a GCC
17526 builtin and then its argument prototype would still apply. */
17531 /* The GNU C library defines this for functions which it implements
17532 to always fail with ENOSYS. Some functions are actually named
17533 something starting with __ and the normal name is an alias. */
17534 #if defined __stub_$ac_func || defined __stub___$ac_func
17541 return $ac_func ();
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (ac_try="$ac_link"
17548 case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_link") 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest$ac_exeext'
17571 { (case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_try") 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 eval "$as_ac_var=yes"
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 eval "$as_ac_var=no"
17588 rm -f core conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17591 ac_res=`eval echo '${'$as_ac_var'}'`
17592 { echo "$as_me:$LINENO: result: $ac_res" >&5
17593 echo "${ECHO_T}$ac_res" >&6; }
17594 if test `eval echo '${'$as_ac_var'}'` = yes; then
17595 cat >>confdefs.h <<_ACEOF
17596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17602 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17603 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17604 if test "${llvm_cv_c_printf_a+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17608 ac_cpp='$CPP $CPPFLAGS'
17609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17613 if test "$cross_compiling" = yes; then
17614 llvmac_cv_c_printf_a=no
17616 cat >conftest.$ac_ext <<_ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17625 #include <stdlib.h>
17631 volatile double A, B;
17635 sprintf(Buffer, "%a", A);
17639 if (A != 0x1.999999999999ap-4)
17646 rm -f conftest$ac_exeext
17647 if { (ac_try="$ac_link"
17648 case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_link") 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 llvm_cv_c_printf_a=yes
17668 echo "$as_me: program exited with status $ac_status" >&5
17669 echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17672 ( exit $ac_status )
17673 llvmac_cv_c_printf_a=no
17675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17680 ac_cpp='$CPP $CPPFLAGS'
17681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17686 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17687 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17688 if test "$llvm_cv_c_printf_a" = "yes"; then
17690 cat >>confdefs.h <<\_ACEOF
17691 #define HAVE_PRINTF_A 1
17697 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17698 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17699 if test "${ac_cv_func_rand48+set}" = set; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 ac_cpp='$CXXCPP $CPPFLAGS'
17704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17708 cat >conftest.$ac_ext <<_ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 #include <stdlib.h>
17718 srand48(0);lrand48();drand48();
17723 rm -f conftest.$ac_objext
17724 if { (ac_try="$ac_compile"
17725 case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_compile") 2>conftest.er1
17732 grep -v '^ *+' conftest.er1 >conftest.err
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
17748 { (case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753 (eval "$ac_try") 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 ac_cv_func_rand48=yes
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 ac_cv_func_rand48=no
17765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767 ac_cpp='$CPP $CPPFLAGS'
17768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17773 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17774 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17776 if test "$ac_cv_func_rand48" = "yes" ; then
17778 cat >>confdefs.h <<\_ACEOF
17779 #define HAVE_RAND48 1
17785 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17786 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17787 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17790 cat >conftest.$ac_ext <<_ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17796 $ac_includes_default
17801 char *p = (char *) strerror_s;
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_compile") 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest.$ac_objext'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 ac_cv_have_decl_strerror_s=yes
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ac_cv_have_decl_strerror_s=no
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17854 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17855 if test $ac_cv_have_decl_strerror_s = yes; then
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_DECL_STRERROR_S 1
17863 cat >>confdefs.h <<_ACEOF
17864 #define HAVE_DECL_STRERROR_S 0
17872 if test "$llvm_cv_os_type" = "MingW" ; then
17873 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17874 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17875 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17876 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 ac_check_lib_save_LIBS=$LIBS
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17887 /* Override any GCC internal prototype to avoid an error.
17888 Use char because int might match the return type of a GCC
17889 builtin and then its argument prototype would still apply. */
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (ac_try="$ac_link"
17904 case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_link") 2>conftest.er1
17911 grep -v '^ *+' conftest.er1 >conftest.err
17913 cat conftest.err >&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } &&
17916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_try") 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest$ac_exeext'
17927 { (case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_try") 2>&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936 ac_cv_lib_gcc__alloca=yes
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17941 ac_cv_lib_gcc__alloca=no
17944 rm -f core conftest.err conftest.$ac_objext \
17945 conftest$ac_exeext conftest.$ac_ext
17946 LIBS=$ac_check_lib_save_LIBS
17948 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17949 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17950 if test $ac_cv_lib_gcc__alloca = yes; then
17952 cat >>confdefs.h <<\_ACEOF
17953 #define HAVE__ALLOCA 1
17958 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17959 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17960 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 ac_check_lib_save_LIBS=$LIBS
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17972 /* Override any GCC internal prototype to avoid an error.
17973 Use char because int might match the return type of a GCC
17974 builtin and then its argument prototype would still apply. */
17982 return __alloca ();
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_link") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_lib_gcc___alloca=yes
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_cv_lib_gcc___alloca=no
18029 rm -f core conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18033 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18034 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18035 if test $ac_cv_lib_gcc___alloca = yes; then
18037 cat >>confdefs.h <<\_ACEOF
18038 #define HAVE___ALLOCA 1
18043 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18044 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18045 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 ac_check_lib_save_LIBS=$LIBS
18050 cat >conftest.$ac_ext <<_ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18057 /* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18067 return __chkstk ();
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (ac_try="$ac_link"
18074 case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_link") 2>conftest.er1
18081 grep -v '^ *+' conftest.er1 >conftest.err
18083 cat conftest.err >&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } &&
18086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18087 { (case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_try") 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest$ac_exeext'
18097 { (case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_try") 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_lib_gcc___chkstk=yes
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_cv_lib_gcc___chkstk=no
18114 rm -f core conftest.err conftest.$ac_objext \
18115 conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18118 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18119 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18120 if test $ac_cv_lib_gcc___chkstk = yes; then
18122 cat >>confdefs.h <<\_ACEOF
18123 #define HAVE___CHKSTK 1
18128 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18129 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18130 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 ac_check_lib_save_LIBS=$LIBS
18135 cat >conftest.$ac_ext <<_ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18142 /* Override any GCC internal prototype to avoid an error.
18143 Use char because int might match the return type of a GCC
18144 builtin and then its argument prototype would still apply. */
18152 return ___chkstk ();
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_link") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1 >conftest.err
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172 { (case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; } &&
18181 { ac_try='test -s conftest$ac_exeext'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_cv_lib_gcc____chkstk=yes
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 ac_cv_lib_gcc____chkstk=no
18199 rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18201 LIBS=$ac_check_lib_save_LIBS
18203 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18204 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18205 if test $ac_cv_lib_gcc____chkstk = yes; then
18207 cat >>confdefs.h <<\_ACEOF
18208 #define HAVE____CHKSTK 1
18214 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18215 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18216 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 ac_check_lib_save_LIBS=$LIBS
18221 cat >conftest.$ac_ext <<_ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18238 return __ashldi3 ();
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (ac_try="$ac_link"
18245 case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_link") 2>conftest.er1
18252 grep -v '^ *+' conftest.er1 >conftest.err
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } &&
18257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18258 { (case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_try") 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try='test -s conftest$ac_exeext'
18268 { (case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_try") 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_cv_lib_gcc___ashldi3=yes
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 ac_cv_lib_gcc___ashldi3=no
18285 rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
18287 LIBS=$ac_check_lib_save_LIBS
18289 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18290 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18291 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18293 cat >>confdefs.h <<\_ACEOF
18294 #define HAVE___ASHLDI3 1
18299 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18300 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18301 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 ac_check_lib_save_LIBS=$LIBS
18306 cat >conftest.$ac_ext <<_ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18313 /* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18323 return __ashrdi3 ();
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (ac_try="$ac_link"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_link") 2>conftest.er1
18337 grep -v '^ *+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest$ac_exeext'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_lib_gcc___ashrdi3=yes
18364 echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18367 ac_cv_lib_gcc___ashrdi3=no
18370 rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18374 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18375 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18376 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18378 cat >>confdefs.h <<\_ACEOF
18379 #define HAVE___ASHRDI3 1
18384 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18385 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18386 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 ac_check_lib_save_LIBS=$LIBS
18391 cat >conftest.$ac_ext <<_ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18398 /* Override any GCC internal prototype to avoid an error.
18399 Use char because int might match the return type of a GCC
18400 builtin and then its argument prototype would still apply. */
18408 return __divdi3 ();
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (ac_try="$ac_link"
18415 case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_link") 2>conftest.er1
18422 grep -v '^ *+' conftest.er1 >conftest.err
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } &&
18427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18428 { (case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_try") 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest$ac_exeext'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_lib_gcc___divdi3=yes
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ac_cv_lib_gcc___divdi3=no
18455 rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457 LIBS=$ac_check_lib_save_LIBS
18459 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18460 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18461 if test $ac_cv_lib_gcc___divdi3 = yes; then
18463 cat >>confdefs.h <<\_ACEOF
18464 #define HAVE___DIVDI3 1
18469 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18470 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18471 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 ac_check_lib_save_LIBS=$LIBS
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18483 /* Override any GCC internal prototype to avoid an error.
18484 Use char because int might match the return type of a GCC
18485 builtin and then its argument prototype would still apply. */
18493 return __fixdfdi ();
18498 rm -f conftest.$ac_objext conftest$ac_exeext
18499 if { (ac_try="$ac_link"
18500 case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_link") 2>conftest.er1
18507 grep -v '^ *+' conftest.er1 >conftest.err
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest$ac_exeext'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 ac_cv_lib_gcc___fixdfdi=yes
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 ac_cv_lib_gcc___fixdfdi=no
18540 rm -f core conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18544 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18545 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18546 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE___FIXDFDI 1
18554 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18555 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18556 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18559 ac_check_lib_save_LIBS=$LIBS
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18568 /* Override any GCC internal prototype to avoid an error.
18569 Use char because int might match the return type of a GCC
18570 builtin and then its argument prototype would still apply. */
18578 return __fixsfdi ();
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (ac_try="$ac_link"
18585 case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_link") 2>conftest.er1
18592 grep -v '^ *+' conftest.er1 >conftest.err
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598 { (case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_try") 2>&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; } &&
18607 { ac_try='test -s conftest$ac_exeext'
18608 { (case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_try") 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 ac_cv_lib_gcc___fixsfdi=yes
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 ac_cv_lib_gcc___fixsfdi=no
18625 rm -f core conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18629 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18630 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18631 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18633 cat >>confdefs.h <<\_ACEOF
18634 #define HAVE___FIXSFDI 1
18639 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18640 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18641 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 ac_check_lib_save_LIBS=$LIBS
18646 cat >conftest.$ac_ext <<_ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18653 /* Override any GCC internal prototype to avoid an error.
18654 Use char because int might match the return type of a GCC
18655 builtin and then its argument prototype would still apply. */
18659 char __floatdidf ();
18663 return __floatdidf ();
18668 rm -f conftest.$ac_objext conftest$ac_exeext
18669 if { (ac_try="$ac_link"
18670 case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_link") 2>conftest.er1
18677 grep -v '^ *+' conftest.er1 >conftest.err
18679 cat conftest.err >&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest$ac_exeext'
18693 { (case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_try") 2>&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 ac_cv_lib_gcc___floatdidf=yes
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_lib_gcc___floatdidf=no
18710 rm -f core conftest.err conftest.$ac_objext \
18711 conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18714 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18715 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18716 if test $ac_cv_lib_gcc___floatdidf = yes; then
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE___FLOATDIDF 1
18724 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18725 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18726 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 ac_check_lib_save_LIBS=$LIBS
18731 cat >conftest.$ac_ext <<_ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18738 /* Override any GCC internal prototype to avoid an error.
18739 Use char because int might match the return type of a GCC
18740 builtin and then its argument prototype would still apply. */
18748 return __lshrdi3 ();
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_link") 2>conftest.er1
18762 grep -v '^ *+' conftest.er1 >conftest.err
18764 cat conftest.err >&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
18767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18768 { (case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_try") 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; } &&
18777 { ac_try='test -s conftest$ac_exeext'
18778 { (case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_try") 2>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 ac_cv_lib_gcc___lshrdi3=yes
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ac_cv_lib_gcc___lshrdi3=no
18795 rm -f core conftest.err conftest.$ac_objext \
18796 conftest$ac_exeext conftest.$ac_ext
18797 LIBS=$ac_check_lib_save_LIBS
18799 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18800 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18801 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18803 cat >>confdefs.h <<\_ACEOF
18804 #define HAVE___LSHRDI3 1
18809 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18810 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18811 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18814 ac_check_lib_save_LIBS=$LIBS
18816 cat >conftest.$ac_ext <<_ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18823 /* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18833 return __moddi3 ();
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_link") 2>conftest.er1
18847 grep -v '^ *+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } &&
18852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18853 { (case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_try") 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; } &&
18862 { ac_try='test -s conftest$ac_exeext'
18863 { (case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_cv_lib_gcc___moddi3=yes
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18877 ac_cv_lib_gcc___moddi3=no
18880 rm -f core conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18882 LIBS=$ac_check_lib_save_LIBS
18884 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18885 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18886 if test $ac_cv_lib_gcc___moddi3 = yes; then
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE___MODDI3 1
18894 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18895 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18896 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 ac_check_lib_save_LIBS=$LIBS
18901 cat >conftest.$ac_ext <<_ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18908 /* Override any GCC internal prototype to avoid an error.
18909 Use char because int might match the return type of a GCC
18910 builtin and then its argument prototype would still apply. */
18918 return __udivdi3 ();
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (ac_try="$ac_link"
18925 case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_link") 2>conftest.er1
18932 grep -v '^ *+' conftest.er1 >conftest.err
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
18937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18938 { (case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_try") 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest$ac_exeext'
18948 { (case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_try") 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_cv_lib_gcc___udivdi3=yes
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18962 ac_cv_lib_gcc___udivdi3=no
18965 rm -f core conftest.err conftest.$ac_objext \
18966 conftest$ac_exeext conftest.$ac_ext
18967 LIBS=$ac_check_lib_save_LIBS
18969 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18970 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18971 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18973 cat >>confdefs.h <<\_ACEOF
18974 #define HAVE___UDIVDI3 1
18979 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18980 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18981 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18984 ac_check_lib_save_LIBS=$LIBS
18986 cat >conftest.$ac_ext <<_ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18993 /* Override any GCC internal prototype to avoid an error.
18994 Use char because int might match the return type of a GCC
18995 builtin and then its argument prototype would still apply. */
19003 return __umoddi3 ();
19008 rm -f conftest.$ac_objext conftest$ac_exeext
19009 if { (ac_try="$ac_link"
19010 case "(($ac_try" in
19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012 *) ac_try_echo=$ac_try;;
19014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015 (eval "$ac_link") 2>conftest.er1
19017 grep -v '^ *+' conftest.er1 >conftest.err
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19023 { (case "(($ac_try" in
19024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025 *) ac_try_echo=$ac_try;;
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028 (eval "$ac_try") 2>&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; } &&
19032 { ac_try='test -s conftest$ac_exeext'
19033 { (case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_try") 2>&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_lib_gcc___umoddi3=yes
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_cv_lib_gcc___umoddi3=no
19050 rm -f core conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19052 LIBS=$ac_check_lib_save_LIBS
19054 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19055 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19056 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19058 cat >>confdefs.h <<\_ACEOF
19059 #define HAVE___UMODDI3 1
19065 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19066 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19067 if test "${ac_cv_lib_gcc___main+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 ac_check_lib_save_LIBS=$LIBS
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19079 /* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_link") 2>conftest.er1
19103 grep -v '^ *+' conftest.er1 >conftest.err
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
19108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109 { (case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_try") 2>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_try") 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 ac_cv_lib_gcc___main=yes
19130 echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 ac_cv_lib_gcc___main=no
19136 rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19141 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19142 if test $ac_cv_lib_gcc___main = yes; then
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE___MAIN 1
19150 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19151 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19152 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 ac_check_lib_save_LIBS=$LIBS
19157 cat >conftest.$ac_ext <<_ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19164 /* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19174 return __cmpdi2 ();
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_link") 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest$ac_exeext'
19204 { (case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_try") 2>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 ac_cv_lib_gcc___cmpdi2=yes
19215 echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19218 ac_cv_lib_gcc___cmpdi2=no
19221 rm -f core conftest.err conftest.$ac_objext \
19222 conftest$ac_exeext conftest.$ac_ext
19223 LIBS=$ac_check_lib_save_LIBS
19225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19226 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19227 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE___CMPDI2 1
19237 if test "$llvm_cv_os_type" = "MingW" ; then
19238 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19239 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19240 cat >conftest.$ac_ext <<_ACEOF
19241 #include <windows.h>
19242 #include <imagehlp.h>
19243 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19244 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19246 rm -f conftest.$ac_objext
19247 if { (ac_try="$ac_compile"
19248 case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_compile") 2>conftest.er1
19255 grep -v '^ *+' conftest.er1 >conftest.err
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } &&
19260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } &&
19270 { ac_try='test -s conftest.$ac_objext'
19271 { (case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_try") 2>&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19281 { echo "$as_me:$LINENO: result: yes" >&5
19282 echo "${ECHO_T}yes" >&6; }
19283 llvm_cv_win32_elmcb_pcstr="PCSTR"
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19290 { echo "$as_me:$LINENO: result: no" >&5
19291 echo "${ECHO_T}no" >&6; }
19292 llvm_cv_win32_elmcb_pcstr="PSTR"
19296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298 cat >>confdefs.h <<_ACEOF
19299 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19305 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19306 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19307 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 ac_cpp='$CXXCPP $CPPFLAGS'
19312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19316 cat >conftest.$ac_ext <<_ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19331 rm -f conftest.$ac_objext
19332 if { (ac_try="$ac_compile"
19333 case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_compile") 2>conftest.er1
19340 grep -v '^ *+' conftest.er1 >conftest.err
19342 cat conftest.err >&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } &&
19345 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19346 { (case "(($ac_try" in
19347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_try") 2>&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest.$ac_objext'
19356 { (case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_try") 2>&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 ac_cv_func_isnan_in_math_h=yes
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 ac_cv_func_isnan_in_math_h=no
19373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375 ac_cpp='$CPP $CPPFLAGS'
19376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19381 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19382 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19385 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19387 cat >>confdefs.h <<\_ACEOF
19388 #define HAVE_ISNAN_IN_MATH_H 1
19393 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19394 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19395 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 ac_cpp='$CXXCPP $CPPFLAGS'
19400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19404 cat >conftest.$ac_ext <<_ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19419 rm -f conftest.$ac_objext
19420 if { (ac_try="$ac_compile"
19421 case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_compile") 2>conftest.er1
19428 grep -v '^ *+' conftest.er1 >conftest.err
19430 cat conftest.err >&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
19433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19434 { (case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_try") 2>&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; } &&
19443 { ac_try='test -s conftest.$ac_objext'
19444 { (case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_try") 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_cv_func_isnan_in_cmath=yes
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19458 ac_cv_func_isnan_in_cmath=no
19461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19463 ac_cpp='$CPP $CPPFLAGS'
19464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19469 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19470 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19472 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19474 cat >>confdefs.h <<\_ACEOF
19475 #define HAVE_ISNAN_IN_CMATH 1
19480 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19481 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19482 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19486 ac_cpp='$CXXCPP $CPPFLAGS'
19487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19491 cat >conftest.$ac_ext <<_ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19501 float f; std::isnan(f);
19506 rm -f conftest.$ac_objext
19507 if { (ac_try="$ac_compile"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_compile") 2>conftest.er1
19515 grep -v '^ *+' conftest.er1 >conftest.err
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } &&
19520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19521 { (case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_try") 2>&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; } &&
19530 { ac_try='test -s conftest.$ac_objext'
19531 { (case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_try") 2>&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19540 ac_cv_func_std_isnan_in_cmath=yes
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 ac_cv_func_std_isnan_in_cmath=no
19548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19550 ac_cpp='$CPP $CPPFLAGS'
19551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19556 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19557 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19559 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19561 cat >>confdefs.h <<\_ACEOF
19562 #define HAVE_STD_ISNAN_IN_CMATH 1
19568 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19569 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19570 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19574 ac_cpp='$CXXCPP $CPPFLAGS'
19575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19579 cat >conftest.$ac_ext <<_ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19594 rm -f conftest.$ac_objext
19595 if { (ac_try="$ac_compile"
19596 case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_compile") 2>conftest.er1
19603 grep -v '^ *+' conftest.er1 >conftest.err
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
19608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19609 { (case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_try") 2>&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; } &&
19618 { ac_try='test -s conftest.$ac_objext'
19619 { (case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624 (eval "$ac_try") 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_cv_func_isinf_in_math_h=yes
19630 echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19633 ac_cv_func_isinf_in_math_h=no
19636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19638 ac_cpp='$CPP $CPPFLAGS'
19639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19644 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19645 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19647 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19649 cat >>confdefs.h <<\_ACEOF
19650 #define HAVE_ISINF_IN_MATH_H 1
19655 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19656 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19657 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19661 ac_cpp='$CXXCPP $CPPFLAGS'
19662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_compile") 2>conftest.er1
19690 grep -v '^ *+' conftest.er1 >conftest.err
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } &&
19695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19696 { (case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_try") 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try='test -s conftest.$ac_objext'
19706 { (case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_try") 2>&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 ac_cv_func_isinf_in_cmath=yes
19717 echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19720 ac_cv_func_isinf_in_cmath=no
19723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19725 ac_cpp='$CPP $CPPFLAGS'
19726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19731 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19732 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19734 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19736 cat >>confdefs.h <<\_ACEOF
19737 #define HAVE_ISINF_IN_CMATH 1
19742 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19743 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19744 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 ac_cpp='$CXXCPP $CPPFLAGS'
19749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19753 cat >conftest.$ac_ext <<_ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19763 float f; std::isinf(f)}
19768 rm -f conftest.$ac_objext
19769 if { (ac_try="$ac_compile"
19770 case "(($ac_try" in
19771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772 *) ac_try_echo=$ac_try;;
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_compile") 2>conftest.er1
19777 grep -v '^ *+' conftest.er1 >conftest.err
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } &&
19782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19783 { (case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_try") 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; } &&
19792 { ac_try='test -s conftest.$ac_objext'
19793 { (case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_try") 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_cv_func_std_isinf_in_cmath=yes
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 ac_cv_func_std_isinf_in_cmath=no
19810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812 ac_cpp='$CPP $CPPFLAGS'
19813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19818 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19819 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19821 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19823 cat >>confdefs.h <<\_ACEOF
19824 #define HAVE_STD_ISINF_IN_CMATH 1
19829 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19830 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19831 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19835 ac_cpp='$CXXCPP $CPPFLAGS'
19836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <ieeefp.h>
19850 float f; finite(f);
19855 rm -f conftest.$ac_objext
19856 if { (ac_try="$ac_compile"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_compile") 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
19869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19870 { (case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_try") 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; } &&
19879 { ac_try='test -s conftest.$ac_objext'
19880 { (case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_try") 2>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; }; then
19889 ac_cv_func_finite_in_ieeefp_h=yes
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 ac_cv_func_finite_in_ieeefp_h=no
19897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19899 ac_cpp='$CPP $CPPFLAGS'
19900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19905 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19906 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19908 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19910 cat >>confdefs.h <<\_ACEOF
19911 #define HAVE_FINITE_IN_IEEEFP_H 1
19918 if test "$llvm_cv_platform_type" = "Unix" ; then
19921 for ac_header in stdlib.h unistd.h
19923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19930 ac_res=`eval echo '${'$as_ac_Header'}'`
19931 { echo "$as_me:$LINENO: result: $ac_res" >&5
19932 echo "${ECHO_T}$ac_res" >&6; }
19934 # Is the header compilable?
19935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19937 cat >conftest.$ac_ext <<_ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 $ac_includes_default
19944 #include <$ac_header>
19946 rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_compile") 2>conftest.er1
19955 grep -v '^ *+' conftest.er1 >conftest.err
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
19960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; } &&
19970 { ac_try='test -s conftest.$ac_objext'
19971 { (case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_try") 2>&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19980 ac_header_compiler=yes
19982 echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19985 ac_header_compiler=no
19988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19990 echo "${ECHO_T}$ac_header_compiler" >&6; }
19992 # Is the header present?
19993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19995 cat >conftest.$ac_ext <<_ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 #include <$ac_header>
20003 if { (ac_try="$ac_cpp conftest.$ac_ext"
20004 case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } >/dev/null; then
20016 if test -s conftest.err; then
20017 ac_cpp_err=$ac_c_preproc_warn_flag
20018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20025 if test -z "$ac_cpp_err"; then
20026 ac_header_preproc=yes
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_header_preproc=no
20034 rm -f conftest.err conftest.$ac_ext
20035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20036 echo "${ECHO_T}$ac_header_preproc" >&6; }
20038 # So? What about this header?
20039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20045 ac_header_preproc=yes
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20061 ## ----------------------------------- ##
20062 ## Report this to llvmbugs@cs.uiuc.edu ##
20063 ## ----------------------------------- ##
20065 ) | sed "s/^/$as_me: WARNING: /" >&2
20068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 eval "$as_ac_Header=\$ac_header_preproc"
20075 ac_res=`eval echo '${'$as_ac_Header'}'`
20076 { echo "$as_me:$LINENO: result: $ac_res" >&5
20077 echo "${ECHO_T}$ac_res" >&6; }
20080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20081 cat >>confdefs.h <<_ACEOF
20082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20090 for ac_func in getpagesize
20092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 cat >conftest.$ac_ext <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20106 #define $ac_func innocuous_$ac_func
20108 /* System header to define __stub macros and hopefully few prototypes,
20109 which can conflict with char $ac_func (); below.
20110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20111 <limits.h> exists even on freestanding compilers. */
20114 # include <limits.h>
20116 # include <assert.h>
20121 /* Override any GCC internal prototype to avoid an error.
20122 Use char because int might match the return type of a GCC
20123 builtin and then its argument prototype would still apply. */
20128 /* The GNU C library defines this for functions which it implements
20129 to always fail with ENOSYS. Some functions are actually named
20130 something starting with __ and the normal name is an alias. */
20131 #if defined __stub_$ac_func || defined __stub___$ac_func
20138 return $ac_func ();
20143 rm -f conftest.$ac_objext conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_link") 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20158 { (case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_try") 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; } &&
20167 { ac_try='test -s conftest$ac_exeext'
20168 { (case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_try") 2>&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; }; then
20177 eval "$as_ac_var=yes"
20179 echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20182 eval "$as_ac_var=no"
20185 rm -f core conftest.err conftest.$ac_objext \
20186 conftest$ac_exeext conftest.$ac_ext
20188 ac_res=`eval echo '${'$as_ac_var'}'`
20189 { echo "$as_me:$LINENO: result: $ac_res" >&5
20190 echo "${ECHO_T}$ac_res" >&6; }
20191 if test `eval echo '${'$as_ac_var'}'` = yes; then
20192 cat >>confdefs.h <<_ACEOF
20193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20199 { echo "$as_me:$LINENO: checking for working mmap" >&5
20200 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20201 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 if test "$cross_compiling" = yes; then
20205 ac_cv_func_mmap_fixed_mapped=no
20207 cat >conftest.$ac_ext <<_ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 $ac_includes_default
20214 /* malloc might have been renamed as rpl_malloc. */
20217 /* Thanks to Mike Haertel and Jim Avera for this test.
20218 Here is a matrix of mmap possibilities:
20219 mmap private not fixed
20220 mmap private fixed at somewhere currently unmapped
20221 mmap private fixed at somewhere already mapped
20222 mmap shared not fixed
20223 mmap shared fixed at somewhere currently unmapped
20224 mmap shared fixed at somewhere already mapped
20225 For private mappings, we should verify that changes cannot be read()
20226 back from the file, nor mmap's back from the file at a different
20227 address. (There have been systems where private was not correctly
20228 implemented like the infamous i386 svr4.0, and systems where the
20229 VM page cache was not coherent with the file system buffer cache
20230 like early versions of FreeBSD and possibly contemporary NetBSD.)
20231 For shared mappings, we should conversely verify that changes get
20232 propagated back to all the places they're supposed to be.
20234 Grep wants private fixed already mapped.
20235 The main things grep needs to know about mmap are:
20236 * does it exist and is it safe to write into the mmap'd area
20237 * how to use it (BSD variants) */
20240 #include <sys/mman.h>
20242 #if !STDC_HEADERS && !HAVE_STDLIB_H
20246 /* This mess was copied from the GNU getpagesize.h. */
20247 #if !HAVE_GETPAGESIZE
20248 /* Assume that all systems that can run configure have sys/param.h. */
20249 # if !HAVE_SYS_PARAM_H
20250 # define HAVE_SYS_PARAM_H 1
20253 # ifdef _SC_PAGESIZE
20254 # define getpagesize() sysconf(_SC_PAGESIZE)
20255 # else /* no _SC_PAGESIZE */
20256 # if HAVE_SYS_PARAM_H
20257 # include <sys/param.h>
20258 # ifdef EXEC_PAGESIZE
20259 # define getpagesize() EXEC_PAGESIZE
20260 # else /* no EXEC_PAGESIZE */
20262 # define getpagesize() NBPG * CLSIZE
20265 # endif /* no CLSIZE */
20266 # else /* no NBPG */
20268 # define getpagesize() NBPC
20269 # else /* no NBPC */
20271 # define getpagesize() PAGESIZE
20272 # endif /* PAGESIZE */
20273 # endif /* no NBPC */
20274 # endif /* no NBPG */
20275 # endif /* no EXEC_PAGESIZE */
20276 # else /* no HAVE_SYS_PARAM_H */
20277 # define getpagesize() 8192 /* punt totally */
20278 # endif /* no HAVE_SYS_PARAM_H */
20279 # endif /* no _SC_PAGESIZE */
20281 #endif /* no HAVE_GETPAGESIZE */
20286 char *data, *data2, *data3;
20290 pagesize = getpagesize ();
20292 /* First, make a file with some known garbage in it. */
20293 data = (char *) malloc (pagesize);
20296 for (i = 0; i < pagesize; ++i)
20297 *(data + i) = rand ();
20299 fd = creat ("conftest.mmap", 0600);
20302 if (write (fd, data, pagesize) != pagesize)
20306 /* Next, try to mmap the file at a fixed address which already has
20307 something else allocated at it. If we can, also make sure that
20308 we see the same garbage. */
20309 fd = open ("conftest.mmap", O_RDWR);
20312 data2 = (char *) malloc (2 * pagesize);
20315 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20316 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20317 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20319 for (i = 0; i < pagesize; ++i)
20320 if (*(data + i) != *(data2 + i))
20323 /* Finally, make sure that changes to the mapped area do not
20324 percolate back to the file as seen by read(). (This is a bug on
20325 some variants of i386 svr4.0.) */
20326 for (i = 0; i < pagesize; ++i)
20327 *(data2 + i) = *(data2 + i) + 1;
20328 data3 = (char *) malloc (pagesize);
20331 if (read (fd, data3, pagesize) != pagesize)
20333 for (i = 0; i < pagesize; ++i)
20334 if (*(data + i) != *(data3 + i))
20340 rm -f conftest$ac_exeext
20341 if { (ac_try="$ac_link"
20342 case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347 (eval "$ac_link") 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20351 { (case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_try") 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; }; then
20360 ac_cv_func_mmap_fixed_mapped=yes
20362 echo "$as_me: program exited with status $ac_status" >&5
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 ( exit $ac_status )
20367 ac_cv_func_mmap_fixed_mapped=no
20369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20374 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20375 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20376 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20378 cat >>confdefs.h <<\_ACEOF
20379 #define HAVE_MMAP 1
20383 rm -f conftest.mmap
20385 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20386 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20387 if test "${ac_cv_func_mmap_file+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 ac_cpp='$CPP $CPPFLAGS'
20392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20396 if test "$cross_compiling" = yes; then
20397 ac_cv_func_mmap_file=no
20399 cat >conftest.$ac_ext <<_ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20407 #include <sys/types.h>
20408 #include <sys/mman.h>
20416 fd = creat ("foo",0777);
20417 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20419 return (fd != (int) MAP_FAILED);
20424 rm -f conftest$ac_exeext
20425 if { (ac_try="$ac_link"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_link") 2>&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20435 { (case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_try") 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; }; then
20444 ac_cv_func_mmap_file=yes
20446 echo "$as_me: program exited with status $ac_status" >&5
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 ( exit $ac_status )
20451 ac_cv_func_mmap_file=no
20453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20458 ac_cpp='$CPP $CPPFLAGS'
20459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20465 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20466 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20467 if test "$ac_cv_func_mmap_file" = yes; then
20469 cat >>confdefs.h <<\_ACEOF
20470 #define HAVE_MMAP_FILE
20477 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20478 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20479 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 if test "$llvm_cv_os_type" = "Interix" ; then
20483 ac_cv_need_dev_zero_for_mmap=yes
20485 ac_cv_need_dev_zero_for_mmap=no
20489 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20490 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20491 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20493 cat >>confdefs.h <<\_ACEOF
20494 #define NEED_DEV_ZERO_FOR_MMAP 1
20499 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20501 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20502 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20504 if test "$ac_cv_func_mmap_file" = "no"
20506 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20507 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20511 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20512 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20514 ac_cpp='$CXXCPP $CPPFLAGS'
20515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20519 cat >conftest.$ac_ext <<_ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h. */
20526 volatile unsigned long val = 1;
20527 __sync_synchronize();
20528 __sync_val_compare_and_swap(&val, 1, 0);
20529 __sync_add_and_fetch(&val, 1);
20530 __sync_sub_and_fetch(&val, 1);
20535 rm -f conftest.$ac_objext conftest$ac_exeext
20536 if { (ac_try="$ac_link"
20537 case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_link") 2>conftest.er1
20544 grep -v '^ *+' conftest.er1 >conftest.err
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
20549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20550 { (case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555 (eval "$ac_try") 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; } &&
20559 { ac_try='test -s conftest$ac_exeext'
20560 { (case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_try") 2>&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; }; then
20570 ac_cpp='$CPP $CPPFLAGS'
20571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20575 { echo "$as_me:$LINENO: result: yes" >&5
20576 echo "${ECHO_T}yes" >&6; }
20578 cat >>confdefs.h <<\_ACEOF
20579 #define LLVM_HAS_ATOMICS 1
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20586 { echo "$as_me:$LINENO: result: no" >&5
20587 echo "${ECHO_T}no" >&6; }
20589 cat >>confdefs.h <<\_ACEOF
20590 #define LLVM_HAS_ATOMICS 0
20593 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20594 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20597 rm -f core conftest.err conftest.$ac_objext \
20598 conftest$ac_exeext conftest.$ac_ext
20601 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20602 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20603 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20604 if test "${llvm_cv_linux_mixed+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 ac_cpp='$CPP $CPPFLAGS'
20609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20613 cat >conftest.$ac_ext <<_ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20620 error: Not x86-64 even if uname says so!
20631 rm -f conftest.$ac_objext
20632 if { (ac_try="$ac_compile"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_compile") 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_try") 2>&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest.$ac_objext'
20656 { (case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_try") 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 llvm_cv_linux_mixed=no
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 llvm_cv_linux_mixed=yes
20673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20675 ac_cpp='$CPP $CPPFLAGS'
20676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20682 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20683 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20685 if test "$llvm_cv_linux_mixed" = "yes"; then
20686 llvm_cv_target_arch="x86"
20692 for ac_func in __dso_handle
20694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20708 #define $ac_func innocuous_$ac_func
20710 /* System header to define __stub macros and hopefully few prototypes,
20711 which can conflict with char $ac_func (); below.
20712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20713 <limits.h> exists even on freestanding compilers. */
20716 # include <limits.h>
20718 # include <assert.h>
20723 /* Override any GCC internal prototype to avoid an error.
20724 Use char because int might match the return type of a GCC
20725 builtin and then its argument prototype would still apply. */
20730 /* The GNU C library defines this for functions which it implements
20731 to always fail with ENOSYS. Some functions are actually named
20732 something starting with __ and the normal name is an alias. */
20733 #if defined __stub_$ac_func || defined __stub___$ac_func
20740 return $ac_func ();
20745 rm -f conftest.$ac_objext conftest$ac_exeext
20746 if { (ac_try="$ac_link"
20747 case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_link") 2>conftest.er1
20754 grep -v '^ *+' conftest.er1 >conftest.err
20756 cat conftest.err >&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } &&
20759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20760 { (case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765 (eval "$ac_try") 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; } &&
20769 { ac_try='test -s conftest$ac_exeext'
20770 { (case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_try") 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 eval "$as_ac_var=yes"
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 eval "$as_ac_var=no"
20787 rm -f core conftest.err conftest.$ac_objext \
20788 conftest$ac_exeext conftest.$ac_ext
20790 ac_res=`eval echo '${'$as_ac_var'}'`
20791 { echo "$as_me:$LINENO: result: $ac_res" >&5
20792 echo "${ECHO_T}$ac_res" >&6; }
20793 if test `eval echo '${'$as_ac_var'}'` = yes; then
20794 cat >>confdefs.h <<_ACEOF
20795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20802 SHLIBEXT=$libltdl_cv_shlibext
20805 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20808 # Translate the various configuration directories and other basic
20809 # information into substitutions that will end up in Makefile.config.in
20810 # that these configured values can be used by the makefiles
20811 if test "${prefix}" = "NONE" ; then
20812 prefix="/usr/local"
20814 eval LLVM_PREFIX="${prefix}";
20815 eval LLVM_BINDIR="${prefix}/bin";
20816 eval LLVM_LIBDIR="${prefix}/lib";
20817 eval LLVM_DATADIR="${prefix}/share/llvm";
20818 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20819 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20820 eval LLVM_INCLUDEDIR="${prefix}/include";
20821 eval LLVM_INFODIR="${prefix}/info";
20822 eval LLVM_MANDIR="${prefix}/man";
20823 LLVM_CONFIGTIME=`date`
20835 # Place the various directores into the config.h file as #defines so that we
20836 # can know about the installation paths within LLVM.
20838 cat >>confdefs.h <<_ACEOF
20839 #define LLVM_PREFIX "$LLVM_PREFIX"
20843 cat >>confdefs.h <<_ACEOF
20844 #define LLVM_BINDIR "$LLVM_BINDIR"
20848 cat >>confdefs.h <<_ACEOF
20849 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20853 cat >>confdefs.h <<_ACEOF
20854 #define LLVM_DATADIR "$LLVM_DATADIR"
20858 cat >>confdefs.h <<_ACEOF
20859 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_INFODIR "$LLVM_INFODIR"
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_MANDIR "$LLVM_MANDIR"
20883 cat >>confdefs.h <<_ACEOF
20884 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20888 cat >>confdefs.h <<_ACEOF
20889 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20893 # Determine which bindings to build.
20894 if test "$BINDINGS_TO_BUILD" = auto ; then
20895 BINDINGS_TO_BUILD=""
20896 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20897 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20900 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20903 # This isn't really configurey, but it avoids having to repeat the list in
20908 # Do any work necessary to ensure that bindings have what they need.
20909 binding_prereqs_failed=0
20910 for a_binding in $BINDINGS_TO_BUILD ; do
20911 case "$a_binding" in
20913 if test "x$OCAMLC" = x ; then
20914 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20915 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20916 binding_prereqs_failed=1
20918 if test "x$OCAMLDEP" = x ; then
20919 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20920 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20921 binding_prereqs_failed=1
20923 if test "x$OCAMLOPT" = x ; then
20924 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20925 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20927 if test "x$with_ocaml_libdir" != xauto ; then
20928 OCAML_LIBDIR=$with_ocaml_libdir
20931 ocaml_stdlib="`"$OCAMLC" -where`"
20932 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20934 # ocaml stdlib is beneath our prefix; use stdlib
20935 OCAML_LIBDIR=$ocaml_stdlib
20938 # ocaml stdlib is outside our prefix; use libdir/ocaml
20939 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20946 if test "$binding_prereqs_failed" = 1 ; then
20947 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20948 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20949 { (exit 1); exit 1; }; }
20952 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20953 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20954 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 ac_cpp='$CXXCPP $CPPFLAGS'
20959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20963 oldcxxflags="$CXXFLAGS"
20964 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20980 rm -f conftest.$ac_objext
20981 if { (ac_try="$ac_compile"
20982 case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_compile") 2>conftest.er1
20989 grep -v '^ *+' conftest.er1 >conftest.err
20991 cat conftest.err >&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } &&
20994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20995 { (case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_try") 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; } &&
21004 { ac_try='test -s conftest.$ac_objext'
21005 { (case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_try") 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 llvm_cv_cxx_visibility_inlines_hidden=yes
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 llvm_cv_cxx_visibility_inlines_hidden=no
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023 CXXFLAGS="$oldcxxflags"
21025 ac_cpp='$CPP $CPPFLAGS'
21026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21032 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21033 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21034 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21035 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21038 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21043 if test "$llvm_cv_link_use_r" = "yes" ; then
21050 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21051 RDYNAMIC="-Wl,-export-dynamic"
21058 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21065 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21067 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21069 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21071 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21073 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21076 ac_config_files="$ac_config_files Makefile.config"
21079 ac_config_files="$ac_config_files llvm.spec"
21082 ac_config_files="$ac_config_files docs/doxygen.cfg"
21084 if test -f ${srcdir}/tools/clang/README.txt; then
21085 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21089 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21092 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21095 ac_config_commands="$ac_config_commands setup"
21097 ac_config_commands="$ac_config_commands Makefile"
21100 ac_config_commands="$ac_config_commands Makefile.common"
21103 ac_config_commands="$ac_config_commands examples/Makefile"
21106 ac_config_commands="$ac_config_commands lib/Makefile"
21109 ac_config_commands="$ac_config_commands runtime/Makefile"
21112 ac_config_commands="$ac_config_commands test/Makefile"
21115 ac_config_commands="$ac_config_commands test/Makefile.tests"
21118 ac_config_commands="$ac_config_commands unittests/Makefile"
21121 ac_config_commands="$ac_config_commands tools/Makefile"
21124 ac_config_commands="$ac_config_commands utils/Makefile"
21127 ac_config_commands="$ac_config_commands projects/Makefile"
21130 ac_config_commands="$ac_config_commands bindings/Makefile"
21133 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21137 cat >confcache <<\_ACEOF
21138 # This file is a shell script that caches the results of configure
21139 # tests run on this system so they can be shared between configure
21140 # scripts and configure runs, see configure's option --config-cache.
21141 # It is not useful on other systems. If it contains results you don't
21142 # want to keep, you may remove or edit it.
21144 # config.status only pays attention to the cache file if you give it
21145 # the --recheck option to rerun configure.
21147 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21148 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21149 # following values.
21153 # The following way of writing the cache mishandles newlines in values,
21154 # but we know of no workaround that is simple, portable, and efficient.
21155 # So, we kill variables containing newlines.
21156 # Ultrix sh set writes to stderr and can't be redirected directly,
21157 # and sets the high bit in the cache file unless we assign to the vars.
21159 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21160 eval ac_val=\$$ac_var
21164 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21165 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21168 _ | IFS | as_nl) ;; #(
21169 *) $as_unset $ac_var ;;
21175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21176 *${as_nl}ac_space=\ *)
21177 # `set' does not quote correctly, so add quotes (double-quote
21178 # substitution turns \\\\ into \\, and sed turns \\ into \).
21181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21184 # `set' quotes correctly as required by POSIX, so do not add quotes.
21185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21199 if test -w "$cache_file"; then
21200 test "x$cache_file" != "x/dev/null" &&
21201 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21202 echo "$as_me: updating cache $cache_file" >&6;}
21203 cat confcache >$cache_file
21205 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21206 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21212 # Let make expand exec_prefix.
21213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21215 DEFS=-DHAVE_CONFIG_H
21219 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21220 # 1. Remove the extension, and $U if already installed.
21221 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21222 ac_i=`echo "$ac_i" | sed "$ac_script"`
21223 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21224 # will be set to the directory where LIBOBJS objects are built.
21225 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21226 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21228 LIBOBJS=$ac_libobjs
21230 LTLIBOBJS=$ac_ltlibobjs
21233 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21234 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21235 Usually this means the macro was only invoked conditionally." >&5
21236 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21237 Usually this means the macro was only invoked conditionally." >&2;}
21238 { (exit 1); exit 1; }; }
21240 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21241 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21242 Usually this means the macro was only invoked conditionally." >&5
21243 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21244 Usually this means the macro was only invoked conditionally." >&2;}
21245 { (exit 1); exit 1; }; }
21248 : ${CONFIG_STATUS=./config.status}
21249 ac_clean_files_save=$ac_clean_files
21250 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21251 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21252 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21253 cat >$CONFIG_STATUS <<_ACEOF
21255 # Generated by $as_me.
21256 # Run this file to recreate the current configuration.
21257 # Compiler output produced by configure, useful for debugging
21258 # configure, is in config.log if it exists.
21261 ac_cs_recheck=false
21263 SHELL=\${CONFIG_SHELL-$SHELL}
21266 cat >>$CONFIG_STATUS <<\_ACEOF
21267 ## --------------------- ##
21268 ## M4sh Initialization. ##
21269 ## --------------------- ##
21271 # Be Bourne compatible
21272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21275 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21276 # is contrary to our usage. Disable this feature.
21277 alias -g '${1+"$@"}'='"$@"'
21278 setopt NO_GLOB_SUBST
21280 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21282 BIN_SH=xpg4; export BIN_SH # for Tru64
21283 DUALCASE=1; export DUALCASE # for MKS sh
21287 # Avoid depending upon Character Ranges.
21288 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21289 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21290 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21291 as_cr_digits='0123456789'
21292 as_cr_alnum=$as_cr_Letters$as_cr_digits
21294 # The user is always right.
21295 if test "${PATH_SEPARATOR+set}" != set; then
21296 echo "#! /bin/sh" >conf$$.sh
21297 echo "exit 0" >>conf$$.sh
21299 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21307 # Support unset when possible.
21308 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21316 # We need space, tab and new line, in precisely that order. Quoting is
21317 # there to prevent editors from complaining about space-tab.
21318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21319 # splitting by setting IFS to empty value.)
21324 # Find who we are. Look in the path if we contain no directory separator.
21326 *[\\/]* ) as_myself=$0 ;;
21327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21328 for as_dir in $PATH
21331 test -z "$as_dir" && as_dir=.
21332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21338 # We did not find ourselves, most probably we were run as `sh COMMAND'
21339 # in which case we are not to be found in the path.
21340 if test "x$as_myself" = x; then
21343 if test ! -f "$as_myself"; then
21344 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21345 { (exit 1); exit 1; }
21348 # Work around bugs in pre-3.0 UWIN ksh.
21349 for as_var in ENV MAIL MAILPATH
21350 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21358 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21359 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21360 LC_TELEPHONE LC_TIME
21362 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21363 eval $as_var=C; export $as_var
21365 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21369 # Required to use basename.
21370 if expr a : '\(a\)' >/dev/null 2>&1 &&
21371 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21377 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21378 as_basename=basename
21384 # Name of the executable.
21385 as_me=`$as_basename -- "$0" ||
21386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21387 X"$0" : 'X\(//\)$' \| \
21388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21390 sed '/^.*\/\([^/][^/]*\)\/*$/{
21409 as_lineno_1=$LINENO
21410 as_lineno_2=$LINENO
21411 test "x$as_lineno_1" != "x$as_lineno_2" &&
21412 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21414 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21415 # uniformly replaced by the line number. The first 'sed' inserts a
21416 # line-number line after each line using $LINENO; the second 'sed'
21417 # does the real work. The second script uses 'N' to pair each
21418 # line-number line with the line containing $LINENO, and appends
21419 # trailing '-' during substitution so that $LINENO is not a special
21420 # case at line end.
21421 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21422 # scripts with optimization help from Paolo Bonzini. Blame Lee
21423 # E. McMahon (1931-1989) for sed's syntax. :-)
21435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21438 ' >$as_me.lineno &&
21439 chmod +x "$as_me.lineno" ||
21440 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21441 { (exit 1); exit 1; }; }
21443 # Don't try to exec as it changes $[0], causing all sort of problems
21444 # (the dirname of $[0] is not the place where we might find the
21445 # original and so on. Autoconf is especially sensitive to this).
21446 . "./$as_me.lineno"
21447 # Exit status is that of the last command.
21452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21458 ECHO_C= ECHO_N= ECHO_T=
21459 case `echo -n x` in
21461 case `echo 'x\c'` in
21462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21469 if expr a : '\(a\)' >/dev/null 2>&1 &&
21470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21476 rm -f conf$$ conf$$.exe conf$$.file
21477 if test -d conf$$.dir; then
21478 rm -f conf$$.dir/conf$$.file
21484 if ln -s conf$$.file conf$$ 2>/dev/null; then
21486 # ... but there are two gotchas:
21487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21489 # In both cases, we have to default to `cp -p'.
21490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21492 elif ln conf$$.file conf$$ 2>/dev/null; then
21497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21498 rmdir conf$$.dir 2>/dev/null
21500 if mkdir -p . 2>/dev/null; then
21503 test -d ./-p && rmdir ./-p
21507 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21508 # systems may use methods other than mode bits to determine executability.
21509 cat >conf$$.file <<_ASEOF
21513 chmod +x conf$$.file
21514 if test -x conf$$.file >/dev/null 2>&1; then
21515 as_executable_p="test -x"
21521 # Sed expression to map a string onto a valid CPP name.
21522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21524 # Sed expression to map a string onto a valid variable name.
21525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21530 # Save the log message, to keep $[0] and so on meaningful, and to
21531 # report actual input values of CONFIG_FILES etc. instead of their
21532 # values after options handling.
21534 This file was extended by llvm $as_me 3.1svn, which was
21535 generated by GNU Autoconf 2.60. Invocation command line was
21537 CONFIG_FILES = $CONFIG_FILES
21538 CONFIG_HEADERS = $CONFIG_HEADERS
21539 CONFIG_LINKS = $CONFIG_LINKS
21540 CONFIG_COMMANDS = $CONFIG_COMMANDS
21543 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21548 cat >>$CONFIG_STATUS <<_ACEOF
21549 # Files that config.status was made for.
21550 config_files="$ac_config_files"
21551 config_headers="$ac_config_headers"
21552 config_commands="$ac_config_commands"
21556 cat >>$CONFIG_STATUS <<\_ACEOF
21558 \`$as_me' instantiates files from templates according to the
21559 current configuration.
21561 Usage: $0 [OPTIONS] [FILE]...
21563 -h, --help print this help, then exit
21564 -V, --version print version number, then exit
21565 -q, --quiet do not print progress messages
21566 -d, --debug don't remove temporary files
21567 --recheck update $as_me by reconfiguring in the same conditions
21568 --file=FILE[:TEMPLATE]
21569 instantiate the configuration file FILE
21570 --header=FILE[:TEMPLATE]
21571 instantiate the configuration header FILE
21573 Configuration files:
21576 Configuration headers:
21579 Configuration commands:
21582 Report bugs to <bug-autoconf@gnu.org>."
21585 cat >>$CONFIG_STATUS <<_ACEOF
21587 llvm config.status 3.1svn
21588 configured by $0, generated by GNU Autoconf 2.60,
21589 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21591 Copyright (C) 2006 Free Software Foundation, Inc.
21592 This config.status script is free software; the Free Software Foundation
21593 gives unlimited permission to copy, distribute and modify it."
21600 cat >>$CONFIG_STATUS <<\_ACEOF
21601 # If no file are specified by the user, then we need to provide default
21602 # value. By we need to know if files were specified by the user.
21608 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21609 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21620 # Handling of the options.
21621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21623 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21624 echo "$ac_cs_version"; exit ;;
21625 --debug | --debu | --deb | --de | --d | -d )
21627 --file | --fil | --fi | --f )
21629 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21630 ac_need_defaults=false;;
21631 --header | --heade | --head | --hea )
21633 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21634 ac_need_defaults=false;;
21636 # Conflict between --help and --header
21637 { echo "$as_me: error: ambiguous option: $1
21638 Try \`$0 --help' for more information." >&2
21639 { (exit 1); exit 1; }; };;
21640 --help | --hel | -h )
21641 echo "$ac_cs_usage"; exit ;;
21642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21643 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21646 # This is an error.
21647 -*) { echo "$as_me: error: unrecognized option: $1
21648 Try \`$0 --help' for more information." >&2
21649 { (exit 1); exit 1; }; } ;;
21651 *) ac_config_targets="$ac_config_targets $1"
21652 ac_need_defaults=false ;;
21658 ac_configure_extra_args=
21660 if $ac_cs_silent; then
21662 ac_configure_extra_args="$ac_configure_extra_args --silent"
21666 cat >>$CONFIG_STATUS <<_ACEOF
21667 if \$ac_cs_recheck; then
21668 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21669 CONFIG_SHELL=$SHELL
21670 export CONFIG_SHELL
21671 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21675 cat >>$CONFIG_STATUS <<\_ACEOF
21679 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21680 ## Running $as_me. ##
21686 cat >>$CONFIG_STATUS <<_ACEOF
21690 llvm_src="${srcdir}"
21694 cat >>$CONFIG_STATUS <<\_ACEOF
21696 # Handling of arguments.
21697 for ac_config_target in $ac_config_targets
21699 case $ac_config_target in
21700 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21701 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21702 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21703 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21704 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21705 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21706 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21707 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21708 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21709 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21710 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21711 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21712 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21713 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21714 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21715 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21716 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21717 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21718 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21719 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21720 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21721 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21722 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21723 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21724 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21725 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21726 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21728 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21729 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21730 { (exit 1); exit 1; }; };;
21735 # If the user did not use the arguments to specify the items to instantiate,
21736 # then the envvar interface is used. Set only those that are not.
21737 # We use the long form for the default assignment because of an extremely
21738 # bizarre bug on SunOS 4.1.3.
21739 if $ac_need_defaults; then
21740 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21741 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21742 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21745 # Have a temporary directory for convenience. Make it in the build tree
21746 # simply because there is no reason against having it here, and in addition,
21747 # creating and moving files from /tmp can sometimes cause problems.
21748 # Hook for its removal unless debugging.
21749 # Note that there is a small window in which the directory will not be cleaned:
21750 # after its creation but before its name has been assigned to `$tmp'.
21754 trap 'exit_status=$?
21755 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21757 trap '{ (exit 1); exit 1; }' 1 2 13 15
21759 # Create a (secure) tmp directory for tmp files.
21762 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21763 test -n "$tmp" && test -d "$tmp"
21766 tmp=./conf$$-$RANDOM
21767 (umask 077 && mkdir "$tmp")
21770 echo "$me: cannot create a temporary directory in ." >&2
21771 { (exit 1); exit 1; }
21775 # Set up the sed scripts for CONFIG_FILES section.
21778 # No need to generate the scripts if there are no CONFIG_FILES.
21779 # This happens for instance when ./config.status config.h
21780 if test -n "$CONFIG_FILES"; then
21787 for ac_last_try in false false false false false :; do
21788 cat >conf$$subs.sed <<_ACEOF
21789 SHELL!$SHELL$ac_delim
21790 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21791 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21792 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21793 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21794 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21795 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21796 exec_prefix!$exec_prefix$ac_delim
21797 prefix!$prefix$ac_delim
21798 program_transform_name!$program_transform_name$ac_delim
21799 bindir!$bindir$ac_delim
21800 sbindir!$sbindir$ac_delim
21801 libexecdir!$libexecdir$ac_delim
21802 datarootdir!$datarootdir$ac_delim
21803 datadir!$datadir$ac_delim
21804 sysconfdir!$sysconfdir$ac_delim
21805 sharedstatedir!$sharedstatedir$ac_delim
21806 localstatedir!$localstatedir$ac_delim
21807 includedir!$includedir$ac_delim
21808 oldincludedir!$oldincludedir$ac_delim
21809 docdir!$docdir$ac_delim
21810 infodir!$infodir$ac_delim
21811 htmldir!$htmldir$ac_delim
21812 dvidir!$dvidir$ac_delim
21813 pdfdir!$pdfdir$ac_delim
21814 psdir!$psdir$ac_delim
21815 libdir!$libdir$ac_delim
21816 localedir!$localedir$ac_delim
21817 mandir!$mandir$ac_delim
21818 DEFS!$DEFS$ac_delim
21819 ECHO_C!$ECHO_C$ac_delim
21820 ECHO_N!$ECHO_N$ac_delim
21821 ECHO_T!$ECHO_T$ac_delim
21822 LIBS!$LIBS$ac_delim
21823 build_alias!$build_alias$ac_delim
21824 host_alias!$host_alias$ac_delim
21825 target_alias!$target_alias$ac_delim
21826 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21828 CFLAGS!$CFLAGS$ac_delim
21829 LDFLAGS!$LDFLAGS$ac_delim
21830 CPPFLAGS!$CPPFLAGS$ac_delim
21831 ac_ct_CC!$ac_ct_CC$ac_delim
21832 EXEEXT!$EXEEXT$ac_delim
21833 OBJEXT!$OBJEXT$ac_delim
21835 CXXFLAGS!$CXXFLAGS$ac_delim
21836 ac_ct_CXX!$ac_ct_CXX$ac_delim
21838 subdirs!$subdirs$ac_delim
21839 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21840 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21841 build!$build$ac_delim
21842 build_cpu!$build_cpu$ac_delim
21843 build_vendor!$build_vendor$ac_delim
21844 build_os!$build_os$ac_delim
21845 host!$host$ac_delim
21846 host_cpu!$host_cpu$ac_delim
21847 host_vendor!$host_vendor$ac_delim
21848 host_os!$host_os$ac_delim
21849 target!$target$ac_delim
21850 target_cpu!$target_cpu$ac_delim
21851 target_vendor!$target_vendor$ac_delim
21852 target_os!$target_os$ac_delim
21854 HOST_OS!$HOST_OS$ac_delim
21855 TARGET_OS!$TARGET_OS$ac_delim
21856 LINKALL!$LINKALL$ac_delim
21857 NOLINKALL!$NOLINKALL$ac_delim
21858 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21859 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21860 ARCH!$ARCH$ac_delim
21861 ENDIAN!$ENDIAN$ac_delim
21862 GREP!$GREP$ac_delim
21863 EGREP!$EGREP$ac_delim
21864 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21865 BUILD_CC!$BUILD_CC$ac_delim
21866 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21867 BUILD_CXX!$BUILD_CXX$ac_delim
21868 CVSBUILD!$CVSBUILD$ac_delim
21869 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21870 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21871 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21872 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21873 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21874 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21875 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21876 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21878 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21879 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21880 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21881 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21882 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21883 ENABLE_PIC!$ENABLE_PIC$ac_delim
21884 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21885 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21888 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21890 elif $ac_last_try; then
21891 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21892 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21893 { (exit 1); exit 1; }; }
21895 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21899 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21900 if test -n "$ac_eof"; then
21901 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21902 ac_eof=`expr $ac_eof + 1`
21905 cat >>$CONFIG_STATUS <<_ACEOF
21906 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21910 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21911 s/^/s,@/; s/!/@,|#_!!_#|/
21914 s/'"$ac_delim"'$/,g/; t
21916 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21917 ' >>$CONFIG_STATUS <conf$$subs.sed
21918 rm -f conf$$subs.sed
21919 cat >>$CONFIG_STATUS <<_ACEOF
21925 for ac_last_try in false false false false false :; do
21926 cat >conf$$subs.sed <<_ACEOF
21927 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21928 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21929 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21930 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21931 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21932 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21933 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21934 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21935 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21936 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21937 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21938 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21940 ifGNUmake!$ifGNUmake$ac_delim
21941 LN_S!$LN_S$ac_delim
21944 DATE!$DATE$ac_delim
21945 FIND!$FIND$ac_delim
21946 MKDIR!$MKDIR$ac_delim
21948 RANLIB!$RANLIB$ac_delim
21953 BINPWD!$BINPWD$ac_delim
21954 GRAPHVIZ!$GRAPHVIZ$ac_delim
21957 NEATO!$NEATO$ac_delim
21958 TWOPI!$TWOPI$ac_delim
21959 CIRCO!$CIRCO$ac_delim
21961 DOTTY!$DOTTY$ac_delim
21962 XDOT_PY!$XDOT_PY$ac_delim
21963 PERL!$PERL$ac_delim
21964 HAVE_PERL!$HAVE_PERL$ac_delim
21965 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21966 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21967 INSTALL_DATA!$INSTALL_DATA$ac_delim
21968 BZIP2!$BZIP2$ac_delim
21970 DOXYGEN!$DOXYGEN$ac_delim
21971 GROFF!$GROFF$ac_delim
21972 GZIPBIN!$GZIPBIN$ac_delim
21973 POD2HTML!$POD2HTML$ac_delim
21974 POD2MAN!$POD2MAN$ac_delim
21975 PDFROFF!$PDFROFF$ac_delim
21976 RUNTEST!$RUNTEST$ac_delim
21977 TCLSH!$TCLSH$ac_delim
21979 OCAMLC!$OCAMLC$ac_delim
21980 OCAMLOPT!$OCAMLOPT$ac_delim
21981 OCAMLDEP!$OCAMLDEP$ac_delim
21982 OCAMLDOC!$OCAMLDOC$ac_delim
21984 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21985 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21986 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21987 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21988 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21989 LIBADD_DL!$LIBADD_DL$ac_delim
21990 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21991 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21992 USE_UDIS86!$USE_UDIS86$ac_delim
21993 USE_OPROFILE!$USE_OPROFILE$ac_delim
21994 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21995 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21996 MMAP_FILE!$MMAP_FILE$ac_delim
21997 SHLIBEXT!$SHLIBEXT$ac_delim
21998 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21999 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22000 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22001 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22002 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22003 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22004 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22005 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22006 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22007 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22008 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22009 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22010 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22011 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22012 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22013 RPATH!$RPATH$ac_delim
22014 RDYNAMIC!$RDYNAMIC$ac_delim
22015 LIBOBJS!$LIBOBJS$ac_delim
22016 LTLIBOBJS!$LTLIBOBJS$ac_delim
22019 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22021 elif $ac_last_try; then
22022 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22023 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22024 { (exit 1); exit 1; }; }
22026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22030 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22031 if test -n "$ac_eof"; then
22032 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22033 ac_eof=`expr $ac_eof + 1`
22036 cat >>$CONFIG_STATUS <<_ACEOF
22037 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22038 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22041 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22042 s/^/s,@/; s/!/@,|#_!!_#|/
22045 s/'"$ac_delim"'$/,g/; t
22047 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22048 ' >>$CONFIG_STATUS <conf$$subs.sed
22049 rm -f conf$$subs.sed
22050 cat >>$CONFIG_STATUS <<_ACEOF
22057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22059 # trailing colons and then remove the whole line if VPATH becomes empty
22060 # (actually we leave an empty line to preserve line numbers).
22061 if test "x$srcdir" = x.; then
22062 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22063 s/:*\$(srcdir):*/:/
22064 s/:*\${srcdir}:*/:/
22066 s/^\([^=]*=[ ]*\):*/\1/
22072 cat >>$CONFIG_STATUS <<\_ACEOF
22073 fi # test -n "$CONFIG_FILES"
22076 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22079 :[FHLC]) ac_mode=$ac_tag; continue;;
22081 case $ac_mode$ac_tag in
22083 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22084 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22085 { (exit 1); exit 1; }; };;
22086 :[FH]-) ac_tag=-:-;;
22087 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22104 -) ac_f="$tmp/stdin";;
22105 *) # Look for the file first in the build tree, then in the source tree
22106 # (if the path is not absolute). The absolute path cannot be DOS-style,
22107 # because $ac_f cannot contain `:'.
22111 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22113 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22114 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22115 { (exit 1); exit 1; }; };;
22117 ac_file_inputs="$ac_file_inputs $ac_f"
22120 # Let's still pretend it is `configure' which instantiates (i.e., don't
22121 # use $as_me), people would be surprised to read:
22122 # /* config.h. Generated by config.status. */
22123 configure_input="Generated from "`IFS=:
22124 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22125 if test x"$ac_file" != x-; then
22126 configure_input="$ac_file. $configure_input"
22127 { echo "$as_me:$LINENO: creating $ac_file" >&5
22128 echo "$as_me: creating $ac_file" >&6;}
22132 *:-:* | *:-) cat >"$tmp/stdin";;
22137 ac_dir=`$as_dirname -- "$ac_file" ||
22138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22139 X"$ac_file" : 'X\(//\)[^/]' \| \
22140 X"$ac_file" : 'X\(//\)$' \| \
22141 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22147 /^X\(\/\/\)[^/].*/{
22162 -*) as_dir=./$as_dir;;
22164 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22168 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22169 *) as_qdir=$as_dir;;
22171 as_dirs="'$as_qdir' $as_dirs"
22172 as_dir=`$as_dirname -- "$as_dir" ||
22173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22174 X"$as_dir" : 'X\(//\)[^/]' \| \
22175 X"$as_dir" : 'X\(//\)$' \| \
22176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22182 /^X\(\/\/\)[^/].*/{
22195 test -d "$as_dir" && break
22197 test -z "$as_dirs" || eval "mkdir $as_dirs"
22198 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22199 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22200 { (exit 1); exit 1; }; }; }
22204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22206 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22207 # A ".." for each directory in $ac_dir_suffix.
22208 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22209 case $ac_top_builddir_sub in
22210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22214 ac_abs_top_builddir=$ac_pwd
22215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22216 # for backward compatibility:
22217 ac_top_builddir=$ac_top_build_prefix
22220 .) # We are building in place.
22222 ac_top_srcdir=$ac_top_builddir_sub
22223 ac_abs_top_srcdir=$ac_pwd ;;
22224 [\\/]* | ?:[\\/]* ) # Absolute name.
22225 ac_srcdir=$srcdir$ac_dir_suffix;
22226 ac_top_srcdir=$srcdir
22227 ac_abs_top_srcdir=$srcdir ;;
22228 *) # Relative name.
22229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22230 ac_top_srcdir=$ac_top_build_prefix$srcdir
22231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22243 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22244 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22248 cat >>$CONFIG_STATUS <<\_ACEOF
22249 # If the template does not know about datarootdir, expand it.
22250 # FIXME: This hack should be removed a few years after 2.60.
22251 ac_datarootdir_hack=; ac_datarootdir_seen=
22253 case `sed -n '/datarootdir/ {
22262 ' $ac_file_inputs` in
22263 *datarootdir*) ac_datarootdir_seen=yes;;
22264 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22265 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22266 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22268 cat >>$CONFIG_STATUS <<_ACEOF
22269 ac_datarootdir_hack='
22270 s&@datadir@&$datadir&g
22271 s&@docdir@&$docdir&g
22272 s&@infodir@&$infodir&g
22273 s&@localedir@&$localedir&g
22274 s&@mandir@&$mandir&g
22275 s&\\\${datarootdir}&$datarootdir&g' ;;
22279 # Neutralize VPATH when `$srcdir' = `.'.
22280 # Shell code in configure.ac might set extrasub.
22281 # FIXME: do we really want to maintain this feature?
22282 cat >>$CONFIG_STATUS <<_ACEOF
22286 cat >>$CONFIG_STATUS <<\_ACEOF
22288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22289 s&@configure_input@&$configure_input&;t t
22290 s&@top_builddir@&$ac_top_builddir_sub&;t t
22291 s&@srcdir@&$ac_srcdir&;t t
22292 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22293 s&@top_srcdir@&$ac_top_srcdir&;t t
22294 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22295 s&@builddir@&$ac_builddir&;t t
22296 s&@abs_builddir@&$ac_abs_builddir&;t t
22297 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22298 s&@INSTALL@&$ac_INSTALL&;t t
22299 $ac_datarootdir_hack
22300 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22303 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22304 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22305 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22306 which seems to be undefined. Please make sure it is defined." >&5
22307 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22308 which seems to be undefined. Please make sure it is defined." >&2;}
22312 -) cat "$tmp/out"; rm -f "$tmp/out";;
22313 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22322 # Transform confdefs.h into a sed script `conftest.defines', that
22323 # substitutes the proper values into config.h.in to produce config.h.
22324 rm -f conftest.defines conftest.tail
22325 # First, append a space to every undef/define line, to ease matching.
22326 echo 's/$/ /' >conftest.defines
22327 # Then, protect against being on the right side of a sed subst, or in
22328 # an unquoted here document, in config.status. If some macros were
22329 # called several times there might be several #defines for the same
22330 # symbol, which is useless. But do not sort them, since the last
22331 # AC_DEFINE must be honored.
22332 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22333 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22334 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22335 # PARAMS is the parameter list in the macro definition--in most cases, it's
22336 # just an empty string.
22337 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22338 ac_dB='\\)[ (].*,\\1define\\2'
22346 s/^[ ]*#[ ]*define[ ][ ]*//
22351 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22352 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22353 ' >>conftest.defines
22355 # Remove the space that was appended to ease matching.
22356 # Then replace #undef with comments. This is necessary, for
22357 # example, in the case of _POSIX_SOURCE, which is predefined and required
22358 # on some systems where configure will not decide to define it.
22359 # (The regexp can be short, since the line contains either #define or #undef.)
22361 s,^[ #]*u.*,/* & */,' >>conftest.defines
22363 # Break up conftest.defines:
22364 ac_max_sed_lines=50
22366 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22367 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22368 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22370 ac_in='$ac_file_inputs'
22371 ac_out='"$tmp/out1"'
22372 ac_nxt='"$tmp/out2"'
22376 # Write a here document:
22377 cat >>$CONFIG_STATUS <<_ACEOF
22378 # First, check the format of the line:
22379 cat >"\$tmp/defines.sed" <<\\CEOF
22380 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22381 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22385 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22387 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22388 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22389 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22390 grep . conftest.tail >/dev/null || break
22391 rm -f conftest.defines
22392 mv conftest.tail conftest.defines
22394 rm -f conftest.defines conftest.tail
22396 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22397 cat >>$CONFIG_STATUS <<\_ACEOF
22398 if test x"$ac_file" != x-; then
22399 echo "/* $configure_input */" >"$tmp/config.h"
22400 cat "$ac_result" >>"$tmp/config.h"
22401 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22402 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22403 echo "$as_me: $ac_file is unchanged" >&6;}
22406 mv "$tmp/config.h" $ac_file
22409 echo "/* $configure_input */"
22415 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22416 echo "$as_me: executing $ac_file commands" >&6;}
22421 case $ac_file$ac_mode in
22422 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22424 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22426 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22427 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22428 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22429 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22430 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22431 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22432 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22433 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22434 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22435 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22436 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22437 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22438 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22439 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22440 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22441 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22442 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22443 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22444 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22445 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22446 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22447 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22453 { (exit 0); exit 0; }
22455 chmod +x $CONFIG_STATUS
22456 ac_clean_files=$ac_clean_files_save
22459 # configure is writing to config.log, and then calls config.status.
22460 # config.status does its own redirection, appending to config.log.
22461 # Unfortunately, on DOS this fails, as config.log is still kept open
22462 # by configure, so config.status won't be able to write to it; its
22463 # output is simply discarded. So we exec the FD to /dev/null,
22464 # effectively closing config.log, so it can be properly (re)opened and
22465 # appended to by config.status. When coming back to configure, we
22466 # need to make the FD available again.
22467 if test "$no_create" != yes; then
22469 ac_config_status_args=
22470 test "$silent" = yes &&
22471 ac_config_status_args="$ac_config_status_args --quiet"
22473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22476 # would make configure fail if this is the last instruction.
22477 $ac_cs_success || { (exit 1); exit 1; }
22481 # CONFIG_SUBDIRS section.
22483 if test "$no_recursion" != yes; then
22485 # Remove --cache-file and --srcdir arguments so they do not pile up.
22486 ac_sub_configure_args=
22488 eval "set x $ac_configure_args"
22492 if test -n "$ac_prev"; then
22497 -cache-file | --cache-file | --cache-fil | --cache-fi \
22498 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22499 ac_prev=cache_file ;;
22500 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22501 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22504 --config-cache | -C)
22506 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22508 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22510 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22512 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22516 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22518 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22522 # Always prepend --prefix to ensure using the same prefix
22523 # in subdir configurations.
22524 ac_arg="--prefix=$prefix"
22526 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22528 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22531 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22533 # Do not complain, so a configure script can configure whichever
22534 # parts of a large source tree are present.
22535 test -d "$srcdir/$ac_dir" || continue
22537 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22538 echo "$as_me:$LINENO: $ac_msg" >&5
22542 -*) as_dir=./$as_dir;;
22544 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22548 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22549 *) as_qdir=$as_dir;;
22551 as_dirs="'$as_qdir' $as_dirs"
22552 as_dir=`$as_dirname -- "$as_dir" ||
22553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22554 X"$as_dir" : 'X\(//\)[^/]' \| \
22555 X"$as_dir" : 'X\(//\)$' \| \
22556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22562 /^X\(\/\/\)[^/].*/{
22575 test -d "$as_dir" && break
22577 test -z "$as_dirs" || eval "mkdir $as_dirs"
22578 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22579 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22580 { (exit 1); exit 1; }; }; }
22584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22587 # A ".." for each directory in $ac_dir_suffix.
22588 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22589 case $ac_top_builddir_sub in
22590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22594 ac_abs_top_builddir=$ac_pwd
22595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22596 # for backward compatibility:
22597 ac_top_builddir=$ac_top_build_prefix
22600 .) # We are building in place.
22602 ac_top_srcdir=$ac_top_builddir_sub
22603 ac_abs_top_srcdir=$ac_pwd ;;
22604 [\\/]* | ?:[\\/]* ) # Absolute name.
22605 ac_srcdir=$srcdir$ac_dir_suffix;
22606 ac_top_srcdir=$srcdir
22607 ac_abs_top_srcdir=$srcdir ;;
22608 *) # Relative name.
22609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22610 ac_top_srcdir=$ac_top_build_prefix$srcdir
22611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22618 # Check for guested configure; otherwise get Cygnus style configure.
22619 if test -f "$ac_srcdir/configure.gnu"; then
22620 ac_sub_configure=$ac_srcdir/configure.gnu
22621 elif test -f "$ac_srcdir/configure"; then
22622 ac_sub_configure=$ac_srcdir/configure
22623 elif test -f "$ac_srcdir/configure.in"; then
22624 # This should be Cygnus configure.
22625 ac_sub_configure=$ac_aux_dir/configure
22627 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22628 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22632 # The recursion is here.
22633 if test -n "$ac_sub_configure"; then
22634 # Make the cache file name correct relative to the subdirectory.
22635 case $cache_file in
22636 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22637 *) # Relative name.
22638 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22641 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22642 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22643 # The eval makes quoting arguments work.
22644 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22645 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22646 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22647 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22648 { (exit 1); exit 1; }; }