2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
5 # Report bugs to <http://llvm.org/bugs/>.
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-2012 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.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
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
690 ENABLE_EXPENSIVE_CHECKS
706 LLVM_ENUM_ASM_PRINTERS
707 LLVM_ENUM_ASM_PARSERS
708 LLVM_ENUM_DISASSEMBLERS
754 HAVE_LINK_VERSION_SCRIPT
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
766 INTEL_JITEVENTS_INCDIR
767 INTEL_JITEVENTS_LIBDIR
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.2svn 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.2svn:";;
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, hexagon,
1421 xcore, msp430, nvptx, and cpp (default=all)
1422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
1424 --enable-libffi Check for the presence of libffi (default is NO)
1425 --enable-ltdl-install install libltdl
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-optimize-option Select the compiler options to use for optimized
1432 --with-extra-options Specify additional options to compile LLVM with
1433 --with-extra-ld-options Specify additional options to link LLVM with
1434 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 --with-clang-srcdir Directory to the out-of-tree Clang source
1437 --with-clang-resource-dir
1438 Relative directory from the Clang binary for
1440 --with-c-include-dirs Colon separated list of directories clang will
1442 --with-gcc-toolchain Directory where gcc is installed.
1443 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1444 --with-binutils-include Specify path to binutils/include/ containing
1445 plugin-api.h file for gold plugin.
1446 --with-bug-report-url Specify the URL where bug reports should be
1447 submitted (default=http://llvm.org/bugs/)
1448 --with-internal-prefix Installation directory for internal files
1449 --with-udis86=<path> Use udis86 external x86 disassembler library
1450 --with-oprofile=<prefix>
1451 Tell OProfile >= 0.9.4 how to symbolize JIT output
1452 --with-intel-jitevents=<vtune-amplifier-dir>
1453 Specify location of run-time support library for
1455 (default=/opt/intel/vtune_amplifier_xe_2011)
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to <http://llvm.org/bugs/>.
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" || continue
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1499 .) # We are building in place.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1532 LLVM configure 3.2svn
1533 generated by GNU Autoconf 2.60
1535 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1536 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1540 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1544 cat >config.log <<_ACEOF
1545 This file contains any messages produced by compilers while
1546 running configure, to aid debugging if configure makes a mistake.
1548 It was created by LLVM $as_me 3.2svn, which was
1549 generated by GNU Autoconf 2.60. Invocation command line was
1561 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1571 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1572 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1573 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1574 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1575 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1576 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 test -z "$as_dir" && as_dir=.
1585 echo "PATH: $as_dir"
1601 # Keep a trace of the command line.
1602 # Strip out --no-create and --no-recursion so they do not pile up.
1603 # Strip out --silent because we don't want to record it for future runs.
1604 # Also quote any args containing shell meta-characters.
1605 # Make two passes to allow for proper duplicate-argument suppression.
1609 ac_must_keep_next=false
1615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617 | -silent | --silent | --silen | --sile | --sil)
1620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1626 if test $ac_must_keep_next = true; then
1627 ac_must_keep_next=false # Got value, back to normal.
1630 *=* | --config-cache | -C | -disable-* | --disable-* \
1631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633 | -with-* | --with-* | -without-* | --without-* | --x)
1634 case "$ac_configure_args0 " in
1635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 -* ) ac_must_keep_next=true ;;
1641 ac_configure_args="$ac_configure_args '$ac_arg'"
1646 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649 # When interrupted or exit'd, cleanup temporary files, and complete
1650 # config.log. We remove comments because anyway the quotes in there
1651 # would cause problems or look ugly.
1652 # WARNING: Use '\'' to represent an apostrophe within the trap.
1653 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1654 trap 'exit_status=$?
1655 # Save into config.log some information that might help in debugging.
1660 ## ---------------- ##
1661 ## Cache variables. ##
1662 ## ---------------- ##
1665 # The following way of writing the cache mishandles newlines in values,
1667 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668 eval ac_val=\$$ac_var
1672 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676 _ | IFS | as_nl) ;; #(
1677 *) $as_unset $ac_var ;;
1682 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683 *${as_nl}ac_space=\ *)
1685 "s/'\''/'\''\\\\'\'''\''/g;
1686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1697 ## ----------------- ##
1698 ## Output variables. ##
1699 ## ----------------- ##
1702 for ac_var in $ac_subst_vars
1704 eval ac_val=\$$ac_var
1706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708 echo "$ac_var='\''$ac_val'\''"
1712 if test -n "$ac_subst_files"; then
1714 ## ------------------- ##
1715 ## File substitutions. ##
1716 ## ------------------- ##
1719 for ac_var in $ac_subst_files
1721 eval ac_val=\$$ac_var
1723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 echo "$ac_var='\''$ac_val'\''"
1730 if test -s confdefs.h; then
1740 test "$ac_signal" != 0 &&
1741 echo "$as_me: caught signal $ac_signal"
1742 echo "$as_me: exit $exit_status"
1744 rm -f core *.core core.conftest.* &&
1745 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748 for ac_signal in 1 2 13 15; do
1749 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1753 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1754 rm -f -r conftest* confdefs.h
1756 # Predefined preprocessor variables.
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_NAME "$PACKAGE_NAME"
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_STRING "$PACKAGE_STRING"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 # Let the site file select an alternate cache file if it wants to.
1784 # Prefer explicitly selected file to automatically selected ones.
1785 if test -n "$CONFIG_SITE"; then
1786 set x "$CONFIG_SITE"
1787 elif test "x$prefix" != xNONE; then
1788 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790 set x "$ac_default_prefix/share/config.site" \
1791 "$ac_default_prefix/etc/config.site"
1796 if test -r "$ac_site_file"; then
1797 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798 echo "$as_me: loading site script $ac_site_file" >&6;}
1799 sed 's/^/| /' "$ac_site_file" >&5
1804 if test -r "$cache_file"; then
1805 # Some versions of bash will fail to source /dev/null (special
1806 # files actually), so we avoid doing that.
1807 if test -f "$cache_file"; then
1808 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809 echo "$as_me: loading cache $cache_file" >&6;}
1811 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812 *) . "./$cache_file";;
1816 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817 echo "$as_me: creating cache $cache_file" >&6;}
1821 # Check that the precious variables saved in the cache have kept the same
1823 ac_cache_corrupted=false
1824 for ac_var in $ac_precious_vars; do
1825 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826 eval ac_new_set=\$ac_env_${ac_var}_set
1827 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828 eval ac_new_val=\$ac_env_${ac_var}_value
1829 case $ac_old_set,$ac_new_set in
1831 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1833 ac_cache_corrupted=: ;;
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1840 if test "x$ac_old_val" != "x$ac_new_val"; then
1841 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1844 echo "$as_me: former value: $ac_old_val" >&2;}
1845 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1846 echo "$as_me: current value: $ac_new_val" >&2;}
1847 ac_cache_corrupted=:
1850 # Pass precious variables to config.status.
1851 if test "$ac_new_set" = set; then
1853 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1854 *) ac_arg=$ac_var=$ac_new_val ;;
1856 case " $ac_configure_args " in
1857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1858 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1862 if $ac_cache_corrupted; then
1863 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867 { (exit 1); exit 1; }; }
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902 cat >>confdefs.h <<\_ACEOF
1903 #define LLVM_VERSION_MAJOR 3
1907 cat >>confdefs.h <<\_ACEOF
1908 #define LLVM_VERSION_MINOR 2
1912 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1921 for ac_dir in autoconf "$srcdir"/autoconf; do
1922 if test -f "$ac_dir/install-sh"; then
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1926 elif test -f "$ac_dir/install.sh"; then
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1930 elif test -f "$ac_dir/shtool"; then
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1936 if test -z "$ac_aux_dir"; then
1937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
1942 # These three variables are undocumented and unsupported,
1943 # and are intended to be withdrawn in a future Autoconf release.
1944 # They can cause serious problems if a builder's source tree is in a directory
1945 # whose full name contains unusual characters.
1946 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1952 if test ${srcdir} != "." ; then
1953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 if test -n "$ac_tool_prefix"; then
1966 for ac_prog in clang llvm-gcc gcc
1968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 if test -n "$CC"; then
1997 { echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6; }
2000 { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2005 test -n "$CC" && break
2008 if test -z "$CC"; then
2010 for ac_prog in clang llvm-gcc gcc
2012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy $ac_prog; ac_word=$2
2014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 if test -n "$ac_ct_CC"; then
2020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_ac_ct_CC="$ac_prog"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040 if test -n "$ac_ct_CC"; then
2041 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042 echo "${ECHO_T}$ac_ct_CC" >&6; }
2044 { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2049 test -n "$ac_ct_CC" && break
2052 if test "x$ac_ct_CC" = x; then
2055 case $cross_compiling:$ac_tool_warned in
2057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2058 whose name does not start with the host triplet. If you think this
2059 configuration is useful to you, please write to autoconf@gnu.org." >&5
2060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2061 whose name does not start with the host triplet. If you think this
2062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2063 ac_tool_warned=yes ;;
2070 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&5
2072 echo "$as_me: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&2;}
2074 { (exit 1); exit 1; }; }
2076 # Provide some information about the compiler.
2077 echo "$as_me:$LINENO: checking for C compiler version" >&5
2078 ac_compiler=`set X $ac_compile; echo $2`
2079 { (ac_try="$ac_compiler --version >&5"
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085 (eval "$ac_compiler --version >&5") 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089 { (ac_try="$ac_compiler -v >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler -v >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (ac_try="$ac_compiler -V >&5"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -V >&5") 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2110 cat >conftest.$ac_ext <<_ACEOF
2113 cat confdefs.h >>conftest.$ac_ext
2114 cat >>conftest.$ac_ext <<_ACEOF
2115 /* end confdefs.h. */
2125 ac_clean_files_save=$ac_clean_files
2126 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2127 # Try to create an executable without -o first, disregard a.out.
2128 # It will help us diagnose broken compilers, and finding out an intuition
2130 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2131 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2132 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2134 # List of possible output files, starting from the most likely.
2135 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2136 # only as a last resort. b.out is created by i960 compilers.
2137 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2139 # The IRIX 6 linker writes into existing files which may not be
2140 # executable, retaining their permissions. Remove them first so a
2141 # subsequent execution test works.
2143 for ac_file in $ac_files
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2147 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2152 if { (ac_try="$ac_link_default"
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158 (eval "$ac_link_default") 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2163 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2164 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2165 # so that the user can short-circuit this test for compilers unknown to
2167 for ac_file in $ac_files
2169 test -f "$ac_file" || continue
2171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2174 # We found the default executable, but exeext='' is most
2178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # We set ac_cv_exeext here because the later test for it is not
2183 # safe: cross compilers may not add the suffix if given an `-o'
2184 # argument, so we may need to know it at that point already.
2185 # Even if this section looks crufty: it has the advantage of
2192 test "$ac_cv_exeext" = no && ac_cv_exeext=
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2198 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&2;}
2202 { (exit 77); exit 77; }; }
2205 ac_exeext=$ac_cv_exeext
2206 { echo "$as_me:$LINENO: result: $ac_file" >&5
2207 echo "${ECHO_T}$ac_file" >&6; }
2209 # Check that the compiler produces executables we can run. If not, either
2210 # the compiler is broken, or we cross compile.
2211 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2213 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214 # If not cross compiling, check that we can run a simple program.
2215 if test "$cross_compiling" != yes; then
2216 if { ac_try='./$ac_file'
2217 { (case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2222 (eval "$ac_try") 2>&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2228 if test "$cross_compiling" = maybe; then
2231 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2241 { echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6; }
2244 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245 ac_clean_files=$ac_clean_files_save
2246 # Check that the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2250 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251 echo "${ECHO_T}$cross_compiling" >&6; }
2253 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2255 if { (ac_try="$ac_link"
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261 (eval "$ac_link") 2>&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
2265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2267 # work properly (i.e., refer to `conftest.exe'), while it won't with
2269 for ac_file in conftest.exe conftest conftest.*; do
2270 test -f "$ac_file" || continue
2272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2286 rm -f conftest$ac_cv_exeext
2287 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2290 rm -f conftest.$ac_ext
2291 EXEEXT=$ac_cv_exeext
2293 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2295 if test "${ac_cv_objext+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 cat >conftest.$ac_ext <<_ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2313 rm -f conftest.o conftest.obj
2314 if { (ac_try="$ac_compile"
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2320 (eval "$ac_compile") 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 for ac_file in conftest.o conftest.obj conftest.*; do
2325 test -f "$ac_file" || continue;
2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2328 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2336 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
2343 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2346 echo "${ECHO_T}$ac_cv_objext" >&6; }
2347 OBJEXT=$ac_cv_objext
2349 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2350 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2351 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 cat >conftest.$ac_ext <<_ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2372 rm -f conftest.$ac_objext
2373 if { (ac_try="$ac_compile"
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compile") 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2387 { (case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_try") 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2418 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2419 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2420 GCC=`test $ac_compiler_gnu = yes && echo yes`
2421 ac_test_CFLAGS=${CFLAGS+set}
2422 ac_save_CFLAGS=$CFLAGS
2423 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2424 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_cc_g+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 ac_save_c_werror_flag=$ac_c_werror_flag
2429 ac_c_werror_flag=yes
2432 cat >conftest.$ac_ext <<_ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2447 rm -f conftest.$ac_objext
2448 if { (ac_try="$ac_compile"
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_compile") 2>conftest.er1
2456 grep -v '^ *+' conftest.er1 >conftest.err
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_try") 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2502 rm -f conftest.$ac_objext
2503 if { (ac_try="$ac_compile"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_compile") 2>conftest.er1
2511 grep -v '^ *+' conftest.er1 >conftest.err
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 ac_c_werror_flag=$ac_save_c_werror_flag
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2558 rm -f conftest.$ac_objext
2559 if { (ac_try="$ac_compile"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compile") 2>conftest.er1
2567 grep -v '^ *+' conftest.er1 >conftest.err
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2573 { (case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_try") 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_c_werror_flag=$ac_save_c_werror_flag
2609 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2611 if test "$ac_test_CFLAGS" = set; then
2612 CFLAGS=$ac_save_CFLAGS
2613 elif test $ac_cv_prog_cc_g = yes; then
2614 if test "$GCC" = yes; then
2620 if test "$GCC" = yes; then
2626 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2627 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_cc_c89+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 ac_cv_prog_cc_c89=no
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2641 #include <sys/types.h>
2642 #include <sys/stat.h>
2643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2644 struct buf { int x; };
2645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646 static char *e (p, i)
2652 static char *f (char * (*g) (char **, int), char **p, ...)
2657 s = g (p, va_arg (v,int));
2662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2663 function prototypes and stuff, but not '\xHH' hex character constants.
2664 These don't provoke an error unfortunately, instead are silently treated
2665 as 'x'. The following induces an error, until -std is added to get
2666 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2667 array size at least. It's necessary to write '\x00'==0 to get something
2668 that's true only with -std. */
2669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2671 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2672 inside strings and character constants. */
2674 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2676 int test (int i, double x);
2677 struct s1 {int (*f) (int a);};
2678 struct s2 {int (*f) (double a);};
2679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2685 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2690 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2691 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693 CC="$ac_save_CC $ac_arg"
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compile") 2>conftest.er1
2703 grep -v '^ *+' conftest.er1 >conftest.err
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2709 { (case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_try") 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_prog_cc_c89=$ac_arg
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2736 rm -f core conftest.err conftest.$ac_objext
2737 test "x$ac_cv_prog_cc_c89" != "xno" && break
2739 rm -f conftest.$ac_ext
2744 case "x$ac_cv_prog_cc_c89" in
2746 { echo "$as_me:$LINENO: result: none needed" >&5
2747 echo "${ECHO_T}none needed" >&6; } ;;
2749 { echo "$as_me:$LINENO: result: unsupported" >&5
2750 echo "${ECHO_T}unsupported" >&6; } ;;
2752 CC="$CC $ac_cv_prog_cc_c89"
2753 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2754 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765 ac_cpp='$CXXCPP $CPPFLAGS'
2766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2769 if test -z "$CXX"; then
2770 if test -n "$CCC"; then
2773 if test -n "$ac_tool_prefix"; then
2774 for ac_prog in clang++ llvm-g++ g++
2776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_CXX+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 if test -n "$CXX"; then
2784 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 if test -n "$CXX"; then
2805 { echo "$as_me:$LINENO: result: $CXX" >&5
2806 echo "${ECHO_T}$CXX" >&6; }
2808 { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2813 test -n "$CXX" && break
2816 if test -z "$CXX"; then
2818 for ac_prog in clang++ llvm-g++ g++
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2824 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 if test -n "$ac_ct_CXX"; then
2828 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_ac_ct_CXX="$ac_prog"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2848 if test -n "$ac_ct_CXX"; then
2849 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2850 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2852 { echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6; }
2857 test -n "$ac_ct_CXX" && break
2860 if test "x$ac_ct_CXX" = x; then
2863 case $cross_compiling:$ac_tool_warned in
2865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2866 whose name does not start with the host triplet. If you think this
2867 configuration is useful to you, please write to autoconf@gnu.org." >&5
2868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet. If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2871 ac_tool_warned=yes ;;
2879 # Provide some information about the compiler.
2880 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2881 ac_compiler=`set X $ac_compile; echo $2`
2882 { (ac_try="$ac_compiler --version >&5"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler --version >&5") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892 { (ac_try="$ac_compiler -v >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler -v >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -V >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -V >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2913 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2914 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2915 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2982 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2983 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2984 GXX=`test $ac_compiler_gnu = yes && echo yes`
2985 ac_test_CXXFLAGS=${CXXFLAGS+set}
2986 ac_save_CXXFLAGS=$CXXFLAGS
2987 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2988 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2989 if test "${ac_cv_prog_cxx_g+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2993 ac_cxx_werror_flag=yes
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 ac_cv_prog_cxx_g=yes
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_cv_prog_cxx_g=yes
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3173 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3174 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3175 if test "$ac_test_CXXFLAGS" = set; then
3176 CXXFLAGS=$ac_save_CXXFLAGS
3177 elif test $ac_cv_prog_cxx_g = yes; then
3178 if test "$GXX" = yes; then
3184 if test "$GXX" = yes; then
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3202 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3203 # On Suns, sometimes $CPP names a directory.
3204 if test -n "$CPP" && test -d "$CPP"; then
3207 if test -z "$CPP"; then
3208 if test "${ac_cv_prog_CPP+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 # Double quotes because CPP needs to be expanded
3212 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215 for ac_c_preproc_warn_flag in '' yes
3217 # Use a header file that comes with gcc, so configuring glibc
3218 # with a fresh cross-compiler works.
3219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220 # <limits.h> exists even on freestanding compilers.
3221 # On the NeXT, cc -E runs the code through the compiler's parser,
3222 # not just through cpp. "Syntax error" is here to catch this case.
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3230 # include <limits.h>
3232 # include <assert.h>
3236 if { (ac_try="$ac_cpp conftest.$ac_ext"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244 grep -v '^ *+' conftest.er1 >conftest.err
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } >/dev/null; then
3249 if test -s conftest.err; then
3250 ac_cpp_err=$ac_c_preproc_warn_flag
3251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3258 if test -z "$ac_cpp_err"; then
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 # Broken: fails on valid input.
3268 rm -f conftest.err conftest.$ac_ext
3270 # OK, works on sane cases. Now check whether nonexistent headers
3271 # can be detected and how.
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3278 #include <ac_nonexistent.h>
3280 if { (ac_try="$ac_cpp conftest.$ac_ext"
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3288 grep -v '^ *+' conftest.er1 >conftest.err
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } >/dev/null; then
3293 if test -s conftest.err; then
3294 ac_cpp_err=$ac_c_preproc_warn_flag
3295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302 if test -z "$ac_cpp_err"; then
3303 # Broken: success on invalid input.
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 # Passes both tests.
3314 rm -f conftest.err conftest.$ac_ext
3317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318 rm -f conftest.err conftest.$ac_ext
3319 if $ac_preproc_ok; then
3331 { echo "$as_me:$LINENO: result: $CPP" >&5
3332 echo "${ECHO_T}$CPP" >&6; }
3334 for ac_c_preproc_warn_flag in '' yes
3336 # Use a header file that comes with gcc, so configuring glibc
3337 # with a fresh cross-compiler works.
3338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339 # <limits.h> exists even on freestanding compilers.
3340 # On the NeXT, cc -E runs the code through the compiler's parser,
3341 # not just through cpp. "Syntax error" is here to catch this case.
3342 cat >conftest.$ac_ext <<_ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3349 # include <limits.h>
3351 # include <assert.h>
3355 if { (ac_try="$ac_cpp conftest.$ac_ext"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377 if test -z "$ac_cpp_err"; then
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Broken: fails on valid input.
3387 rm -f conftest.err conftest.$ac_ext
3389 # OK, works on sane cases. Now check whether nonexistent headers
3390 # can be detected and how.
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #include <ac_nonexistent.h>
3399 if { (ac_try="$ac_cpp conftest.$ac_ext"
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null; then
3412 if test -s conftest.err; then
3413 ac_cpp_err=$ac_c_preproc_warn_flag
3414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 if test -z "$ac_cpp_err"; then
3422 # Broken: success on invalid input.
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 # Passes both tests.
3433 rm -f conftest.err conftest.$ac_ext
3436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437 rm -f conftest.err conftest.$ac_ext
3438 if $ac_preproc_ok; then
3441 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3442 See \`config.log' for more details." >&5
3443 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3444 See \`config.log' for more details." >&2;}
3445 { (exit 1); exit 1; }; }
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 if test -d ${srcdir}/projects/llvm-gcc ; then
3458 subdirs="$subdirs projects/llvm-gcc"
3462 if test -d ${srcdir}/projects/test-suite ; then
3463 subdirs="$subdirs projects/test-suite"
3467 if test -d ${srcdir}/projects/llvm-test ; then
3468 subdirs="$subdirs projects/llvm-test"
3472 if test -d ${srcdir}/projects/poolalloc ; then
3473 subdirs="$subdirs projects/poolalloc"
3477 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3478 subdirs="$subdirs projects/llvm-poolalloc"
3482 for i in `ls ${srcdir}/projects`
3484 if test -d ${srcdir}/projects/${i} ; then
3486 sample) subdirs="$subdirs projects/sample"
3488 privbracket) subdirs="$subdirs projects/privbracket"
3490 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3492 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3494 llvm-java) subdirs="$subdirs projects/llvm-java"
3496 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3498 safecode) subdirs="$subdirs projects/safecode"
3500 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3509 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3510 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3516 # Check whether --enable-polly was given.
3517 if test "${enable_polly+set}" = set; then
3518 enableval=$enable_polly;
3523 case "$enableval" in
3528 default) ENABLE_POLLY=1
3530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3531 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3532 { (exit 1); exit 1; }; } ;;
3536 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3539 subdirs="$subdirs tools/polly"
3544 # Make sure we can run config.sub.
3545 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3546 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3547 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3548 { (exit 1); exit 1; }; }
3550 { echo "$as_me:$LINENO: checking build system type" >&5
3551 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3552 if test "${ac_cv_build+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 ac_build_alias=$build_alias
3556 test "x$ac_build_alias" = x &&
3557 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3558 test "x$ac_build_alias" = x &&
3559 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3560 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3561 { (exit 1); exit 1; }; }
3562 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3563 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3564 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3565 { (exit 1); exit 1; }; }
3568 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3569 echo "${ECHO_T}$ac_cv_build" >&6; }
3570 case $ac_cv_build in
3572 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3573 echo "$as_me: error: invalid value of canonical build" >&2;}
3574 { (exit 1); exit 1; }; };;
3577 ac_save_IFS=$IFS; IFS='-'
3583 # Remember, the first character of IFS is used to create $*,
3584 # except with old shells:
3587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590 { echo "$as_me:$LINENO: checking host system type" >&5
3591 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3592 if test "${ac_cv_host+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 if test "x$host_alias" = x; then
3596 ac_cv_host=$ac_cv_build
3598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3599 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3600 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3601 { (exit 1); exit 1; }; }
3605 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3606 echo "${ECHO_T}$ac_cv_host" >&6; }
3609 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3610 echo "$as_me: error: invalid value of canonical host" >&2;}
3611 { (exit 1); exit 1; }; };;
3614 ac_save_IFS=$IFS; IFS='-'
3620 # Remember, the first character of IFS is used to create $*,
3621 # except with old shells:
3624 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627 { echo "$as_me:$LINENO: checking target system type" >&5
3628 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3629 if test "${ac_cv_target+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 if test "x$target_alias" = x; then
3633 ac_cv_target=$ac_cv_host
3635 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3636 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3637 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3638 { (exit 1); exit 1; }; }
3642 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3643 echo "${ECHO_T}$ac_cv_target" >&6; }
3644 case $ac_cv_target in
3646 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3647 echo "$as_me: error: invalid value of canonical target" >&2;}
3648 { (exit 1); exit 1; }; };;
3650 target=$ac_cv_target
3651 ac_save_IFS=$IFS; IFS='-'
3657 # Remember, the first character of IFS is used to create $*,
3658 # except with old shells:
3661 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3664 # The aliases save the names the user supplied, while $host etc.
3665 # will get canonicalized.
3666 test -n "$target_alias" &&
3667 test "$program_prefix$program_suffix$program_transform_name" = \
3669 program_prefix=${target_alias}-
3671 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3672 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3673 if test "${llvm_cv_os_type+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="AIX"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="IRIX"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="Cygwin"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,-all_load"
3694 llvm_cv_no_link_all_option="-Wl,-noall_load"
3695 llvm_cv_os_type="Darwin"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,-all_load"
3699 llvm_cv_no_link_all_option="-Wl,-noall_load"
3700 llvm_cv_os_type="Minix"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-freebsd* | *-*-kfreebsd-gnu)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="FreeBSD"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="OpenBSD"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="NetBSD"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="DragonFly"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="HP-UX"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="Interix"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="Linux"
3736 llvm_cv_platform_type="Unix" ;;
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="GNU"
3741 llvm_cv_platform_type="Unix" ;;
3743 llvm_cv_link_all_option="-Wl,-z,allextract"
3744 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3745 llvm_cv_os_type="SunOS"
3746 llvm_cv_platform_type="Unix" ;;
3748 llvm_cv_link_all_option="-Wl,-z,allextract"
3749 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3750 llvm_cv_os_type="AuroraUX"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Win32"
3756 llvm_cv_platform_type="Win32" ;;
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="MingW"
3761 llvm_cv_platform_type="Win32" ;;
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="Haiku"
3766 llvm_cv_platform_type="Unix" ;;
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="Freestanding"
3771 llvm_cv_platform_type="Unix" ;;
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Freestanding"
3776 llvm_cv_platform_type="Unix" ;;
3778 llvm_cv_link_all_option=""
3779 llvm_cv_no_link_all_option=""
3780 llvm_cv_os_type="Unknown"
3781 llvm_cv_platform_type="Unknown" ;;
3784 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3785 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3787 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3788 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3789 if test "${llvm_cv_target_os_type+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 llvm_cv_target_os_type="AIX" ;;
3796 llvm_cv_target_os_type="IRIX" ;;
3798 llvm_cv_target_os_type="Cygwin" ;;
3800 llvm_cv_target_os_type="Darwin" ;;
3802 llvm_cv_target_os_type="Minix" ;;
3803 *-*-freebsd* | *-*-kfreebsd-gnu)
3804 llvm_cv_target_os_type="FreeBSD" ;;
3806 llvm_cv_target_os_type="OpenBSD" ;;
3808 llvm_cv_target_os_type="NetBSD" ;;
3810 llvm_cv_target_os_type="DragonFly" ;;
3812 llvm_cv_target_os_type="HP-UX" ;;
3814 llvm_cv_target_os_type="Interix" ;;
3816 llvm_cv_target_os_type="Linux" ;;
3818 llvm_cv_target_os_type="GNU" ;;
3820 llvm_cv_target_os_type="SunOS" ;;
3822 llvm_cv_target_os_type="AuroraUX" ;;
3824 llvm_cv_target_os_type="Win32" ;;
3826 llvm_cv_target_os_type="MingW" ;;
3828 llvm_cv_target_os_type="Haiku" ;;
3830 llvm_cv_target_os_type="RTEMS" ;;
3832 llvm_cv_target_os_type="NativeClient" ;;
3834 llvm_cv_target_os_type="Freestanding" ;;
3836 llvm_cv_target_os_type="Unknown" ;;
3839 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3840 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3842 if test "$llvm_cv_os_type" = "Unknown" ; then
3843 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3844 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3845 { (exit 1); exit 1; }; }
3850 HOST_OS=$llvm_cv_os_type
3852 TARGET_OS=$llvm_cv_target_os_type
3855 LINKALL=$llvm_cv_link_all_option
3857 NOLINKALL=$llvm_cv_no_link_all_option
3860 case $llvm_cv_platform_type in
3863 cat >>confdefs.h <<\_ACEOF
3864 #define LLVM_ON_UNIX 1
3874 cat >>confdefs.h <<\_ACEOF
3875 #define LLVM_ON_WIN32 1
3885 { echo "$as_me:$LINENO: checking target architecture" >&5
3886 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3887 if test "${llvm_cv_target_arch+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 i?86-*) llvm_cv_target_arch="x86" ;;
3892 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3893 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3894 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3895 arm*-*) llvm_cv_target_arch="ARM" ;;
3896 mips-*) llvm_cv_target_arch="Mips" ;;
3897 mipsel-*) llvm_cv_target_arch="Mips" ;;
3898 xcore-*) llvm_cv_target_arch="XCore" ;;
3899 msp430-*) llvm_cv_target_arch="MSP430" ;;
3900 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3901 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3902 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3903 *) llvm_cv_target_arch="Unknown" ;;
3906 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3907 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3909 if test "$llvm_cv_target_arch" = "Unknown" ; then
3910 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3911 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3914 case "$llvm_cv_target_arch" in
3915 x86) LLVM_NATIVE_ARCH="X86" ;;
3916 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3917 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3920 ARCH=$llvm_cv_target_arch
3924 i?86-*) host_arch="x86" ;;
3925 amd64-* | x86_64-*) host_arch="x86_64" ;;
3926 sparc*-*) host_arch="Sparc" ;;
3927 powerpc*-*) host_arch="PowerPC" ;;
3928 arm*-*) host_arch="ARM" ;;
3929 mips-*) host_arch="Mips" ;;
3930 mipsel-*) host_arch="Mips" ;;
3931 xcore-*) host_arch="XCore" ;;
3932 msp430-*) host_arch="MSP430" ;;
3933 hexagon-*) host_arch="Hexagon" ;;
3934 mblaze-*) host_arch="MBlaze" ;;
3935 *) host_arch="Unknown" ;;
3938 if test "$host_arch" = "Unknown" ; then
3939 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3940 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3943 HOST_ARCH=$host_arch
3948 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3949 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3950 if test "${ac_cv_path_GREP+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 # Extract the first word of "grep ggrep" to use in msg output
3954 if test -z "$GREP"; then
3955 set dummy grep ggrep; ac_prog_name=$2
3956 if test "${ac_cv_path_GREP+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 ac_path_GREP_found=false
3960 # Loop through the user's path and test for each of PROGNAME-LIST
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3965 test -z "$as_dir" && as_dir=.
3966 for ac_prog in grep ggrep; do
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3969 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3970 # Check for GNU ac_path_GREP and select it if it is found.
3971 # Check for GNU $ac_path_GREP
3972 case `"$ac_path_GREP" --version 2>&1` in
3974 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3977 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3980 cat "conftest.in" "conftest.in" >"conftest.tmp"
3981 mv "conftest.tmp" "conftest.in"
3982 cp "conftest.in" "conftest.nl"
3983 echo 'GREP' >> "conftest.nl"
3984 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3986 ac_count=`expr $ac_count + 1`
3987 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3988 # Best one so far, save it but keep looking for a better one
3989 ac_cv_path_GREP="$ac_path_GREP"
3990 ac_path_GREP_max=$ac_count
3992 # 10*(2^10) chars as input seems more than enough
3993 test $ac_count -gt 10 && break
3995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3999 $ac_path_GREP_found && break 3
4009 GREP="$ac_cv_path_GREP"
4010 if test -z "$GREP"; then
4011 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4012 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4013 { (exit 1); exit 1; }; }
4017 ac_cv_path_GREP=$GREP
4022 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4023 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4024 GREP="$ac_cv_path_GREP"
4027 { echo "$as_me:$LINENO: checking for egrep" >&5
4028 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4029 if test "${ac_cv_path_EGREP+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4033 then ac_cv_path_EGREP="$GREP -E"
4035 # Extract the first word of "egrep" to use in msg output
4036 if test -z "$EGREP"; then
4037 set dummy egrep; ac_prog_name=$2
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 ac_path_EGREP_found=false
4042 # Loop through the user's path and test for each of PROGNAME-LIST
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4047 test -z "$as_dir" && as_dir=.
4048 for ac_prog in egrep; do
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4051 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4052 # Check for GNU ac_path_EGREP and select it if it is found.
4053 # Check for GNU $ac_path_EGREP
4054 case `"$ac_path_EGREP" --version 2>&1` in
4056 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4059 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4062 cat "conftest.in" "conftest.in" >"conftest.tmp"
4063 mv "conftest.tmp" "conftest.in"
4064 cp "conftest.in" "conftest.nl"
4065 echo 'EGREP' >> "conftest.nl"
4066 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4068 ac_count=`expr $ac_count + 1`
4069 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4070 # Best one so far, save it but keep looking for a better one
4071 ac_cv_path_EGREP="$ac_path_EGREP"
4072 ac_path_EGREP_max=$ac_count
4074 # 10*(2^10) chars as input seems more than enough
4075 test $ac_count -gt 10 && break
4077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4081 $ac_path_EGREP_found && break 3
4091 EGREP="$ac_cv_path_EGREP"
4092 if test -z "$EGREP"; then
4093 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4094 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4095 { (exit 1); exit 1; }; }
4099 ac_cv_path_EGREP=$EGREP
4105 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4106 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4107 EGREP="$ac_cv_path_EGREP"
4110 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4112 if test "${ac_cv_header_stdc+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_cv_header_stdc=yes
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 ac_cv_header_stdc=no
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 if test $ac_cv_header_stdc = yes; then
4179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "memchr" >/dev/null 2>&1; then
4193 ac_cv_header_stdc=no
4199 if test $ac_cv_header_stdc = yes; then
4200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211 $EGREP "free" >/dev/null 2>&1; then
4214 ac_cv_header_stdc=no
4220 if test $ac_cv_header_stdc = yes; then
4221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4222 if test "$cross_compiling" = yes; then
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4233 #if ((' ' & 0x0FF) == 0x020)
4234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4237 # define ISLOWER(c) \
4238 (('a' <= (c) && (c) <= 'i') \
4239 || ('j' <= (c) && (c) <= 'r') \
4240 || ('s' <= (c) && (c) <= 'z'))
4241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4249 for (i = 0; i < 256; i++)
4250 if (XOR (islower (i), ISLOWER (i))
4251 || toupper (i) != TOUPPER (i))
4256 rm -f conftest$ac_exeext
4257 if { (ac_try="$ac_link"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_link") 2>&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4278 echo "$as_me: program exited with status $ac_status" >&5
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4283 ac_cv_header_stdc=no
4285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4291 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4292 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4293 if test $ac_cv_header_stdc = yes; then
4295 cat >>confdefs.h <<\_ACEOF
4296 #define STDC_HEADERS 1
4301 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4311 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4312 inttypes.h stdint.h unistd.h
4314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 cat >conftest.$ac_ext <<_ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4328 #include <$ac_header>
4330 rm -f conftest.$ac_objext
4331 if { (ac_try="$ac_compile"
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_compile") 2>conftest.er1
4339 grep -v '^ *+' conftest.er1 >conftest.err
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4345 { (case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_try") 2>&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_try") 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 eval "$as_ac_Header=yes"
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 eval "$as_ac_Header=no"
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 ac_res=`eval echo '${'$as_ac_Header'}'`
4375 { echo "$as_me:$LINENO: result: $ac_res" >&5
4376 echo "${ECHO_T}$ac_res" >&6; }
4377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4378 cat >>confdefs.h <<_ACEOF
4379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4388 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4389 if test "${ac_cv_c_bigendian+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 # See if sys/param.h defines the BYTE_ORDER macro.
4393 cat >conftest.$ac_ext <<_ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 #include <sys/types.h>
4400 #include <sys/param.h>
4405 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4413 rm -f conftest.$ac_objext
4414 if { (ac_try="$ac_compile"
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_compile") 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4428 { (case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_try") 2>&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_try") 2>&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 # It does; now see whether it defined to BIG_ENDIAN or not.
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <sys/types.h>
4455 #include <sys/param.h>
4460 #if BYTE_ORDER != BIG_ENDIAN
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_c_bigendian=yes
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 ac_cv_c_bigendian=no
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 # It does not; compile a test program.
4516 if test "$cross_compiling" = yes; then
4517 # try to guess the endianness by grepping values into an object file
4518 ac_cv_c_bigendian=unknown
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4526 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4527 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4528 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4529 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4530 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4534 _ascii (); _ebcdic ();
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_compile") 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } &&
4553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4554 { (case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_try") 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest.$ac_objext'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_try") 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4574 ac_cv_c_bigendian=yes
4576 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4577 if test "$ac_cv_c_bigendian" = unknown; then
4578 ac_cv_c_bigendian=no
4580 # finding both strings is unlikely to happen, but who knows?
4581 ac_cv_c_bigendian=unknown
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 cat >conftest.$ac_ext <<_ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 $ac_includes_default
4604 /* Are we little or big endian? From Harbison&Steele. */
4608 char c[sizeof (long int)];
4611 return u.c[sizeof (long int) - 1] == 1;
4617 rm -f conftest$ac_exeext
4618 if { (ac_try="$ac_link"
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_link") 2>&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4628 { (case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633 (eval "$ac_try") 2>&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 ac_cv_c_bigendian=no
4639 echo "$as_me: program exited with status $ac_status" >&5
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4644 ac_cv_c_bigendian=yes
4646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4655 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4656 case $ac_cv_c_bigendian in
4664 { { echo "$as_me:$LINENO: error: unknown endianness
4665 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4666 echo "$as_me: error: unknown endianness
4667 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4668 { (exit 1); exit 1; }; } ;;
4672 if test "$cross_compiling" = yes; then
4673 LLVM_CROSS_COMPILING=1
4676 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4677 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4678 if test "${ac_cv_build_exeext+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4682 ac_cv_build_exeext=.exe
4684 ac_build_prefix=${build_alias}-
4686 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4687 set dummy ${ac_build_prefix}gcc; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 if test -n "$BUILD_CC"; then
4694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 BUILD_CC=$ac_cv_prog_BUILD_CC
4714 if test -n "$BUILD_CC"; then
4715 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4716 echo "${ECHO_T}$BUILD_CC" >&6; }
4718 { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4723 if test -z "$BUILD_CC"; then
4724 # Extract the first word of "gcc", so it can be a program name with args.
4725 set dummy gcc; ac_word=$2
4726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 if test -n "$BUILD_CC"; then
4732 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_BUILD_CC="gcc"
4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 BUILD_CC=$ac_cv_prog_BUILD_CC
4752 if test -n "$BUILD_CC"; then
4753 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4754 echo "${ECHO_T}$BUILD_CC" >&6; }
4756 { echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6; }
4761 if test -z "$BUILD_CC"; then
4762 # Extract the first word of "cc", so it can be a program name with args.
4763 set dummy cc; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 if test -n "$BUILD_CC"; then
4770 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4781 ac_prog_rejected=yes
4784 ac_cv_prog_BUILD_CC="cc"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 if test $ac_prog_rejected = yes; then
4793 # We found a bogon in the path, so make sure we never use it.
4794 set dummy $ac_cv_prog_BUILD_CC
4796 if test $# != 0; then
4797 # We chose a different compiler from the bogus one.
4798 # However, it has the same basename, so the bogon will be chosen
4799 # first if we set BUILD_CC to just the basename; use the full file name.
4801 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4806 BUILD_CC=$ac_cv_prog_BUILD_CC
4807 if test -n "$BUILD_CC"; then
4808 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4809 echo "${ECHO_T}$BUILD_CC" >&6; }
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4818 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4819 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4820 { (exit 1); exit 1; }; }
4821 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4823 echo 'int main () { return 0; }' > conftest.$ac_ext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4826 (eval $ac_build_link) 2>&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; then
4830 for file in conftest.*; do
4832 *.c | *.o | *.obj | *.dSYM) ;;
4833 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4837 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4838 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4839 { (exit 1); exit 1; }; }
4842 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4847 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4848 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4849 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4850 ac_build_exeext=$BUILD_EXEEXT
4852 ac_build_prefix=${build_alias}-
4853 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4854 set dummy ${ac_build_prefix}g++; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$BUILD_CXX"; then
4861 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4881 if test -n "$BUILD_CXX"; then
4882 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4883 echo "${ECHO_T}$BUILD_CXX" >&6; }
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 if test -z "$BUILD_CXX"; then
4891 # Extract the first word of "g++", so it can be a program name with args.
4892 set dummy g++; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 if test -n "$BUILD_CXX"; then
4899 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_BUILD_CXX="g++"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4919 if test -n "$BUILD_CXX"; then
4920 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4921 echo "${ECHO_T}$BUILD_CXX" >&6; }
4923 { echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6; }
4928 if test -z "$BUILD_CXX"; then
4929 # Extract the first word of "c++", so it can be a program name with args.
4930 set dummy c++; ac_word=$2
4931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4933 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 if test -n "$BUILD_CXX"; then
4937 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4948 ac_prog_rejected=yes
4951 ac_cv_prog_BUILD_CXX="c++"
4952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 if test $ac_prog_rejected = yes; then
4960 # We found a bogon in the path, so make sure we never use it.
4961 set dummy $ac_cv_prog_BUILD_CXX
4963 if test $# != 0; then
4964 # We chose a different compiler from the bogus one.
4965 # However, it has the same basename, so the bogon will be chosen
4966 # first if we set BUILD_CXX to just the basename; use the full file name.
4968 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4973 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4974 if test -n "$BUILD_CXX"; then
4975 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4976 echo "${ECHO_T}$BUILD_CXX" >&6; }
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4986 LLVM_CROSS_COMPILING=0
4990 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5001 # Check whether --enable-libcpp was given.
5002 if test "${enable_libcpp+set}" = set; then
5003 enableval=$enable_libcpp;
5008 case "$enableval" in
5009 yes) ENABLE_LIBCPP=1
5013 default) ENABLE_LIBCPP=0
5015 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5016 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5017 { (exit 1); exit 1; }; } ;;
5020 # Check whether --enable-optimized was given.
5021 if test "${enable_optimized+set}" = set; then
5022 enableval=$enable_optimized;
5027 if test ${enableval} = "no" ; then
5031 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5035 # Check whether --enable-profiling was given.
5036 if test "${enable_profiling+set}" = set; then
5037 enableval=$enable_profiling;
5042 if test ${enableval} = "no" ; then
5046 ENABLE_PROFILING=ENABLE_PROFILING=1
5050 # Check whether --enable-assertions was given.
5051 if test "${enable_assertions+set}" = set; then
5052 enableval=$enable_assertions;
5057 if test ${enableval} = "yes" ; then
5061 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5065 # Check whether --enable-expensive-checks was given.
5066 if test "${enable_expensive_checks+set}" = set; then
5067 enableval=$enable_expensive_checks;
5072 if test ${enableval} = "yes" ; then
5073 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5075 EXPENSIVE_CHECKS=yes
5078 ENABLE_EXPENSIVE_CHECKS=
5084 # Check whether --enable-debug-runtime was given.
5085 if test "${enable_debug_runtime+set}" = set; then
5086 enableval=$enable_debug_runtime;
5091 if test ${enableval} = "no" ; then
5095 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5099 # Check whether --enable-debug-symbols was given.
5100 if test "${enable_debug_symbols+set}" = set; then
5101 enableval=$enable_debug_symbols;
5106 if test ${enableval} = "no" ; then
5110 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5114 # Check whether --enable-jit was given.
5115 if test "${enable_jit+set}" = set; then
5116 enableval=$enable_jit;
5121 if test ${enableval} = "no"
5126 case "$llvm_cv_target_arch" in
5127 x86) TARGET_HAS_JIT=1
5129 Sparc) TARGET_HAS_JIT=0
5131 PowerPC) TARGET_HAS_JIT=1
5133 x86_64) TARGET_HAS_JIT=1
5135 ARM) TARGET_HAS_JIT=1
5137 Mips) TARGET_HAS_JIT=1
5139 XCore) TARGET_HAS_JIT=0
5141 MSP430) TARGET_HAS_JIT=0
5143 Hexagon) TARGET_HAS_JIT=0
5145 MBlaze) TARGET_HAS_JIT=0
5147 NVPTX) TARGET_HAS_JIT=0
5154 # Check whether --enable-docs was given.
5155 if test "${enable_docs+set}" = set; then
5156 enableval=$enable_docs;
5161 case "$enableval" in
5166 default) ENABLE_DOCS=1
5168 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5169 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5170 { (exit 1); exit 1; }; } ;;
5173 # Check whether --enable-doxygen was given.
5174 if test "${enable_doxygen+set}" = set; then
5175 enableval=$enable_doxygen;
5180 case "$enableval" in
5181 yes) ENABLE_DOXYGEN=1
5183 no) ENABLE_DOXYGEN=0
5185 default) ENABLE_DOXYGEN=0
5187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5188 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
5192 # Check whether --enable-threads was given.
5193 if test "${enable_threads+set}" = set; then
5194 enableval=$enable_threads;
5199 case "$enableval" in
5200 yes) LLVM_ENABLE_THREADS=1
5202 no) LLVM_ENABLE_THREADS=0
5204 default) LLVM_ENABLE_THREADS=1
5206 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5207 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5208 { (exit 1); exit 1; }; } ;;
5211 cat >>confdefs.h <<_ACEOF
5212 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5216 # Check whether --enable-pthreads was given.
5217 if test "${enable_pthreads+set}" = set; then
5218 enableval=$enable_pthreads;
5223 case "$enableval" in
5224 yes) ENABLE_PTHREADS=1
5226 no) ENABLE_PTHREADS=0
5228 default) ENABLE_PTHREADS=1
5230 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5231 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5232 { (exit 1); exit 1; }; } ;;
5235 # Check whether --enable-pic was given.
5236 if test "${enable_pic+set}" = set; then
5237 enableval=$enable_pic;
5242 case "$enableval" in
5247 default) ENABLE_PIC=1
5249 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5250 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5251 { (exit 1); exit 1; }; } ;;
5254 cat >>confdefs.h <<_ACEOF
5255 #define ENABLE_PIC $ENABLE_PIC
5259 # Check whether --enable-shared was given.
5260 if test "${enable_shared+set}" = set; then
5261 enableval=$enable_shared;
5266 case "$enableval" in
5267 yes) ENABLE_SHARED=1
5271 default) ENABLE_SHARED=0
5273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5278 # Check whether --enable-embed-stdcxx was given.
5279 if test "${enable_embed_stdcxx+set}" = set; then
5280 enableval=$enable_embed_stdcxx;
5285 case "$enableval" in
5286 yes) ENABLE_EMBED_STDCXX=1
5288 no) ENABLE_EMBED_STDCXX=0
5290 default) ENABLE_EMBED_STDCXX=0
5292 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5293 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5294 { (exit 1); exit 1; }; } ;;
5297 # Check whether --enable-timestamps was given.
5298 if test "${enable_timestamps+set}" = set; then
5299 enableval=$enable_timestamps;
5304 case "$enableval" in
5305 yes) ENABLE_TIMESTAMPS=1
5307 no) ENABLE_TIMESTAMPS=0
5309 default) ENABLE_TIMESTAMPS=1
5311 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5312 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5313 { (exit 1); exit 1; }; } ;;
5316 cat >>confdefs.h <<_ACEOF
5317 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5322 # Check whether --enable-targets was given.
5323 if test "${enable_targets+set}" = set; then
5324 enableval=$enable_targets;
5329 if test "$enableval" = host-only ; then
5332 case "$enableval" in
5333 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5334 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5336 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5338 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5339 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5340 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5341 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5343 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5344 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5345 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5346 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5347 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5348 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5349 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5350 host) case "$llvm_cv_target_arch" in
5351 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5353 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5354 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5355 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5356 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5358 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5359 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5360 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5361 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5362 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5363 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5364 echo "$as_me: error: Can not set target to build" >&2;}
5365 { (exit 1); exit 1; }; } ;;
5367 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5368 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5369 { (exit 1); exit 1; }; } ;;
5374 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5377 for a_target in $TARGETS_TO_BUILD; do
5378 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5384 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5385 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5386 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5387 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5388 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5389 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5391 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5392 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5414 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5421 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5431 LLVM_ENUM_TARGETS=""
5432 LLVM_ENUM_ASM_PRINTERS=""
5433 LLVM_ENUM_ASM_PARSERS=""
5434 LLVM_ENUM_DISASSEMBLERS=""
5435 for target_to_build in $TARGETS_TO_BUILD; do
5436 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5437 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5438 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5440 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5441 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5443 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5444 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5453 # Check whether --with-optimize-option was given.
5454 if test "${with_optimize_option+set}" = set; then
5455 withval=$with_optimize_option;
5460 { echo "$as_me:$LINENO: checking optimization flags" >&5
5461 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5464 case "$llvm_cv_os_type" in
5465 FreeBSD) optimize_option=-O2 ;;
5466 MingW) optimize_option=-O2 ;;
5467 *) optimize_option=-O3 ;;
5469 *) optimize_option="$withval" ;;
5471 OPTIMIZE_OPTION=$optimize_option
5473 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5474 echo "${ECHO_T}$optimize_option" >&6; }
5477 # Check whether --with-extra-options was given.
5478 if test "${with_extra_options+set}" = set; then
5479 withval=$with_extra_options;
5485 default) EXTRA_OPTIONS= ;;
5486 *) EXTRA_OPTIONS=$withval ;;
5488 EXTRA_OPTIONS=$EXTRA_OPTIONS
5492 # Check whether --with-extra-ld-options was given.
5493 if test "${with_extra_ld_options+set}" = set; then
5494 withval=$with_extra_ld_options;
5500 default) EXTRA_LD_OPTIONS= ;;
5501 *) EXTRA_LD_OPTIONS=$withval ;;
5503 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5506 # Check whether --enable-bindings was given.
5507 if test "${enable_bindings+set}" = set; then
5508 enableval=$enable_bindings;
5513 BINDINGS_TO_BUILD=""
5514 case "$enableval" in
5515 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5516 all ) BINDINGS_TO_BUILD="ocaml" ;;
5517 none | no) BINDINGS_TO_BUILD="" ;;
5518 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5519 case "$a_binding" in
5520 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5521 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5522 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5523 { (exit 1); exit 1; }; } ;;
5530 # Check whether --with-ocaml-libdir was given.
5531 if test "${with_ocaml_libdir+set}" = set; then
5532 withval=$with_ocaml_libdir;
5538 auto) with_ocaml_libdir="$withval" ;;
5539 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5540 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5541 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5542 { (exit 1); exit 1; }; } ;;
5546 # Check whether --with-clang-srcdir was given.
5547 if test "${with_clang_srcdir+set}" = set; then
5548 withval=$with_clang_srcdir;
5554 -) clang_src_root="" ;;
5555 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5556 *) clang_src_root="$ac_pwd/$withval" ;;
5558 CLANG_SRC_ROOT=$clang_src_root
5562 # Check whether --with-clang-resource-dir was given.
5563 if test "${with_clang_resource_dir+set}" = set; then
5564 withval=$with_clang_resource_dir;
5570 cat >>confdefs.h <<_ACEOF
5571 #define CLANG_RESOURCE_DIR "$withval"
5576 # Check whether --with-c-include-dirs was given.
5577 if test "${with_c_include_dirs+set}" = set; then
5578 withval=$with_c_include_dirs;
5584 cat >>confdefs.h <<_ACEOF
5585 #define C_INCLUDE_DIRS "$withval"
5589 # Clang normally uses the system c++ headers and libraries. With this option,
5590 # clang will use the ones provided by a gcc installation instead. This option should
5591 # be passed the same value that was used with --prefix when configuring gcc.
5593 # Check whether --with-gcc-toolchain was given.
5594 if test "${with_gcc_toolchain+set}" = set; then
5595 withval=$with_gcc_toolchain;
5601 cat >>confdefs.h <<_ACEOF
5602 #define GCC_INSTALL_PREFIX "$withval"
5607 # Check whether --with-default-sysroot was given.
5608 if test "${with_default_sysroot+set}" = set; then
5609 withval=$with_default_sysroot;
5615 cat >>confdefs.h <<_ACEOF
5616 #define DEFAULT_SYSROOT "$withval"
5621 # Check whether --with-binutils-include was given.
5622 if test "${with_binutils_include+set}" = set; then
5623 withval=$with_binutils_include;
5629 default) WITH_BINUTILS_INCDIR=default ;;
5630 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5631 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5632 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5633 { (exit 1); exit 1; }; } ;;
5635 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5636 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5638 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5639 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5640 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5641 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5642 { (exit 1); exit 1; }; };
5647 # Check whether --with-bug-report-url was given.
5648 if test "${with_bug_report_url+set}" = set; then
5649 withval=$with_bug_report_url;
5651 withval="http://llvm.org/bugs/"
5655 cat >>confdefs.h <<_ACEOF
5656 #define BUG_REPORT_URL "$withval"
5660 # Check whether --enable-libffi was given.
5661 if test "${enable_libffi+set}" = set; then
5662 enableval=$enable_libffi; case "$enableval" in
5663 yes) llvm_cv_enable_libffi="yes" ;;
5664 no) llvm_cv_enable_libffi="no" ;;
5665 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5666 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5667 { (exit 1); exit 1; }; } ;;
5670 llvm_cv_enable_libffi=no
5675 # Check whether --with-internal-prefix was given.
5676 if test "${with_internal_prefix+set}" = set; then
5677 withval=$with_internal_prefix;
5682 INTERNAL_PREFIX=$withval
5686 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5687 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5688 if test "${lt_cv_path_NM+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 if test -n "$NM"; then
5692 # Let the user override the test.
5695 lt_nm_to_check="${ac_tool_prefix}nm"
5696 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5697 lt_nm_to_check="$lt_nm_to_check nm"
5699 for lt_tmp_nm in $lt_nm_to_check; do
5700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5701 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5703 test -z "$ac_dir" && ac_dir=.
5704 tmp_nm="$ac_dir/$lt_tmp_nm"
5705 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5706 # Check to see if the nm accepts a BSD-compat flag.
5707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5708 # nm: unknown option "B" ignored
5709 # Tru64's nm complains that /dev/null is an invalid object file
5710 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5711 */dev/null* | *'Invalid file or object type'*)
5712 lt_cv_path_NM="$tmp_nm -B"
5716 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5718 lt_cv_path_NM="$tmp_nm -p"
5722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5723 continue # so that we can try to find one that supports BSD flags
5732 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5735 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5736 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5741 { echo "$as_me:$LINENO: checking for GNU make" >&5
5742 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5743 if test "${llvm_cv_gnu_make_command+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 llvm_cv_gnu_make_command=''
5747 for a in "$MAKE" make gmake gnumake ; do
5748 if test -z "$a" ; then continue ; fi ;
5749 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5751 llvm_cv_gnu_make_command=$a ;
5756 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5757 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5758 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5762 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5763 echo "${ECHO_T}\"Not found\"" >&6; };
5767 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5768 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5770 if test "$LN_S" = "ln -s"; then
5771 { echo "$as_me:$LINENO: result: yes" >&5
5772 echo "${ECHO_T}yes" >&6; }
5774 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5775 echo "${ECHO_T}no, using $LN_S" >&6; }
5778 # Extract the first word of "cmp", so it can be a program name with args.
5779 set dummy cmp; ac_word=$2
5780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5782 if test "${ac_cv_path_CMP+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5810 if test -n "$CMP"; then
5811 { echo "$as_me:$LINENO: result: $CMP" >&5
5812 echo "${ECHO_T}$CMP" >&6; }
5814 { echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6; }
5819 # Extract the first word of "cp", so it can be a program name with args.
5820 set dummy cp; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_path_CP+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5838 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5851 if test -n "$CP"; then
5852 { echo "$as_me:$LINENO: result: $CP" >&5
5853 echo "${ECHO_T}$CP" >&6; }
5855 { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5860 # Extract the first word of "date", so it can be a program name with args.
5861 set dummy date; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_path_DATE+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5891 DATE=$ac_cv_path_DATE
5892 if test -n "$DATE"; then
5893 { echo "$as_me:$LINENO: result: $DATE" >&5
5894 echo "${ECHO_T}$DATE" >&6; }
5896 { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5901 # Extract the first word of "find", so it can be a program name with args.
5902 set dummy find; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_path_FIND+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5932 FIND=$ac_cv_path_FIND
5933 if test -n "$FIND"; then
5934 { echo "$as_me:$LINENO: result: $FIND" >&5
5935 echo "${ECHO_T}$FIND" >&6; }
5937 { echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6; }
5942 # Extract the first word of "grep", so it can be a program name with args.
5943 set dummy grep; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_path_GREP+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5973 GREP=$ac_cv_path_GREP
5974 if test -n "$GREP"; then
5975 { echo "$as_me:$LINENO: result: $GREP" >&5
5976 echo "${ECHO_T}$GREP" >&6; }
5978 { echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6; }
5983 # Extract the first word of "mkdir", so it can be a program name with args.
5984 set dummy mkdir; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_path_MKDIR+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6014 MKDIR=$ac_cv_path_MKDIR
6015 if test -n "$MKDIR"; then
6016 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6017 echo "${ECHO_T}$MKDIR" >&6; }
6019 { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6024 # Extract the first word of "mv", so it can be a program name with args.
6025 set dummy mv; ac_word=$2
6026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6028 if test "${ac_cv_path_MV+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6056 if test -n "$MV"; then
6057 { echo "$as_me:$LINENO: result: $MV" >&5
6058 echo "${ECHO_T}$MV" >&6; }
6060 { echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6; }
6065 if test -n "$ac_tool_prefix"; then
6066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_prog_RANLIB+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 if test -n "$RANLIB"; then
6074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 RANLIB=$ac_cv_prog_RANLIB
6094 if test -n "$RANLIB"; then
6095 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6096 echo "${ECHO_T}$RANLIB" >&6; }
6098 { echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6; }
6104 if test -z "$ac_cv_prog_RANLIB"; then
6105 ac_ct_RANLIB=$RANLIB
6106 # Extract the first word of "ranlib", so it can be a program name with args.
6107 set dummy ranlib; ac_word=$2
6108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 if test -n "$ac_ct_RANLIB"; then
6114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_prog_ac_ct_RANLIB="ranlib"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6134 if test -n "$ac_ct_RANLIB"; then
6135 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6136 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6138 { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6142 if test "x$ac_ct_RANLIB" = x; then
6145 case $cross_compiling:$ac_tool_warned in
6147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148 whose name does not start with the host triplet. If you think this
6149 configuration is useful to you, please write to autoconf@gnu.org." >&5
6150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet. If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153 ac_tool_warned=yes ;;
6155 RANLIB=$ac_ct_RANLIB
6158 RANLIB="$ac_cv_prog_RANLIB"
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ar; ac_word=$2
6164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6166 if test "${ac_cv_prog_AR+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 if test -n "$AR"; then
6170 ac_cv_prog_AR="$AR" # Let the user override the test.
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_AR="${ac_tool_prefix}ar"
6180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 if test -n "$AR"; then
6191 { echo "$as_me:$LINENO: result: $AR" >&5
6192 echo "${ECHO_T}$AR" >&6; }
6194 { echo "$as_me:$LINENO: result: no" >&5
6195 echo "${ECHO_T}no" >&6; }
6200 if test -z "$ac_cv_prog_AR"; then
6202 # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy ar; ac_word=$2
6204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 if test -n "$ac_ct_AR"; then
6210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_prog_ac_ct_AR="ar"
6220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6232 echo "${ECHO_T}$ac_ct_AR" >&6; }
6234 { echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6; }
6238 if test "x$ac_ct_AR" = x; then
6241 case $cross_compiling:$ac_tool_warned in
6243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6244 whose name does not start with the host triplet. If you think this
6245 configuration is useful to you, please write to autoconf@gnu.org." >&5
6246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6247 whose name does not start with the host triplet. If you think this
6248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6249 ac_tool_warned=yes ;;
6257 # Extract the first word of "rm", so it can be a program name with args.
6258 set dummy rm; ac_word=$2
6259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261 if test "${ac_cv_path_RM+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6289 if test -n "$RM"; then
6290 { echo "$as_me:$LINENO: result: $RM" >&5
6291 echo "${ECHO_T}$RM" >&6; }
6293 { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6298 # Extract the first word of "sed", so it can be a program name with args.
6299 set dummy sed; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_SED+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6330 if test -n "$SED"; then
6331 { echo "$as_me:$LINENO: result: $SED" >&5
6332 echo "${ECHO_T}$SED" >&6; }
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6339 # Extract the first word of "tar", so it can be a program name with args.
6340 set dummy tar; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_path_TAR+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6371 if test -n "$TAR"; then
6372 { echo "$as_me:$LINENO: result: $TAR" >&5
6373 echo "${ECHO_T}$TAR" >&6; }
6375 { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6380 # Extract the first word of "pwd", so it can be a program name with args.
6381 set dummy pwd; ac_word=$2
6382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6384 if test "${ac_cv_path_BINPWD+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6411 BINPWD=$ac_cv_path_BINPWD
6412 if test -n "$BINPWD"; then
6413 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6414 echo "${ECHO_T}$BINPWD" >&6; }
6416 { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6422 # Extract the first word of "Graphviz", so it can be a program name with args.
6423 set dummy Graphviz; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6453 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6454 if test -n "$GRAPHVIZ"; then
6455 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6456 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6458 { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6463 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6465 cat >>confdefs.h <<\_ACEOF
6466 #define HAVE_GRAPHVIZ 1
6469 if test "$llvm_cv_os_type" = "MingW" ; then
6470 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6473 cat >>confdefs.h <<_ACEOF
6474 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6478 # Extract the first word of "dot", so it can be a program name with args.
6479 set dummy dot; ac_word=$2
6480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482 if test "${ac_cv_path_DOT+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6510 if test -n "$DOT"; then
6511 { echo "$as_me:$LINENO: result: $DOT" >&5
6512 echo "${ECHO_T}$DOT" >&6; }
6514 { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6519 if test "$DOT" != "echo dot" ; then
6521 cat >>confdefs.h <<\_ACEOF
6525 if test "$llvm_cv_os_type" = "MingW" ; then
6526 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6529 cat >>confdefs.h <<_ACEOF
6530 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6534 # Extract the first word of "fdp", so it can be a program name with args.
6535 set dummy fdp; ac_word=$2
6536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6538 if test "${ac_cv_path_FDP+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6566 if test -n "$FDP"; then
6567 { echo "$as_me:$LINENO: result: $FDP" >&5
6568 echo "${ECHO_T}$FDP" >&6; }
6570 { echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6; }
6575 if test "$FDP" != "echo fdp" ; then
6577 cat >>confdefs.h <<\_ACEOF
6581 if test "$llvm_cv_os_type" = "MingW" ; then
6582 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6585 cat >>confdefs.h <<_ACEOF
6586 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6590 # Extract the first word of "neato", so it can be a program name with args.
6591 set dummy neato; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_path_NEATO+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6609 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6621 NEATO=$ac_cv_path_NEATO
6622 if test -n "$NEATO"; then
6623 { echo "$as_me:$LINENO: result: $NEATO" >&5
6624 echo "${ECHO_T}$NEATO" >&6; }
6626 { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6631 if test "$NEATO" != "echo neato" ; then
6633 cat >>confdefs.h <<\_ACEOF
6634 #define HAVE_NEATO 1
6637 if test "$llvm_cv_os_type" = "MingW" ; then
6638 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6641 cat >>confdefs.h <<_ACEOF
6642 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6646 # Extract the first word of "twopi", so it can be a program name with args.
6647 set dummy twopi; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_path_TWOPI+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6677 TWOPI=$ac_cv_path_TWOPI
6678 if test -n "$TWOPI"; then
6679 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6680 echo "${ECHO_T}$TWOPI" >&6; }
6682 { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6687 if test "$TWOPI" != "echo twopi" ; then
6689 cat >>confdefs.h <<\_ACEOF
6690 #define HAVE_TWOPI 1
6693 if test "$llvm_cv_os_type" = "MingW" ; then
6694 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6697 cat >>confdefs.h <<_ACEOF
6698 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6702 # Extract the first word of "circo", so it can be a program name with args.
6703 set dummy circo; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_path_CIRCO+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6733 CIRCO=$ac_cv_path_CIRCO
6734 if test -n "$CIRCO"; then
6735 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6736 echo "${ECHO_T}$CIRCO" >&6; }
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6743 if test "$CIRCO" != "echo circo" ; then
6745 cat >>confdefs.h <<\_ACEOF
6746 #define HAVE_CIRCO 1
6749 if test "$llvm_cv_os_type" = "MingW" ; then
6750 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6753 cat >>confdefs.h <<_ACEOF
6754 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6758 for ac_prog in gv gsview32
6760 # Extract the first word of "$ac_prog", so it can be a program name with args.
6761 set dummy $ac_prog; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_GV+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 if test -n "$GV"; then
6792 { echo "$as_me:$LINENO: result: $GV" >&5
6793 echo "${ECHO_T}$GV" >&6; }
6795 { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6800 test -n "$GV" && break
6802 test -n "$GV" || GV="echo gv"
6804 if test "$GV" != "echo gv" ; then
6806 cat >>confdefs.h <<\_ACEOF
6810 if test "$llvm_cv_os_type" = "MingW" ; then
6811 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6814 cat >>confdefs.h <<_ACEOF
6815 #define LLVM_PATH_GV "$GV${EXEEXT}"
6819 # Extract the first word of "dotty", so it can be a program name with args.
6820 set dummy dotty; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_DOTTY+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6850 DOTTY=$ac_cv_path_DOTTY
6851 if test -n "$DOTTY"; then
6852 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6853 echo "${ECHO_T}$DOTTY" >&6; }
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6860 if test "$DOTTY" != "echo dotty" ; then
6862 cat >>confdefs.h <<\_ACEOF
6863 #define HAVE_DOTTY 1
6866 if test "$llvm_cv_os_type" = "MingW" ; then
6867 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6870 cat >>confdefs.h <<_ACEOF
6871 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6875 # Extract the first word of "xdot.py", so it can be a program name with args.
6876 set dummy xdot.py; ac_word=$2
6877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6879 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6906 XDOT_PY=$ac_cv_path_XDOT_PY
6907 if test -n "$XDOT_PY"; then
6908 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6909 echo "${ECHO_T}$XDOT_PY" >&6; }
6911 { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6916 if test "$XDOT_PY" != "echo xdot.py" ; then
6918 cat >>confdefs.h <<\_ACEOF
6919 #define HAVE_XDOT_PY 1
6922 if test "$llvm_cv_os_type" = "MingW" ; then
6923 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6926 cat >>confdefs.h <<_ACEOF
6927 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6932 # Find a good install program. We prefer a C program (faster),
6933 # so one script is as good as another. But avoid the broken or
6934 # incompatible versions:
6935 # SysV /etc/install, /usr/sbin/install
6936 # SunOS /usr/etc/install
6937 # IRIX /sbin/install
6939 # AmigaOS /C/install, which installs bootblocks on floppy discs
6940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6943 # OS/2's system install, which has a completely different semantic
6944 # ./install, which can be erroneously created by make from ./install.sh.
6945 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6946 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6947 if test -z "$INSTALL"; then
6948 if test "${ac_cv_path_install+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir=.
6956 # Account for people who put trailing slashes in PATH elements.
6958 ./ | .// | /cC/* | \
6959 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6960 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6963 # OSF1 and SCO ODT 3.0 have their own names for install.
6964 # Don't use installbsd from OSF since it installs stuff as root
6966 for ac_prog in ginstall scoinst install; do
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6969 if test $ac_prog = install &&
6970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6971 # AIX install. It has an incompatible calling convention.
6973 elif test $ac_prog = install &&
6974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6975 # program-specific install script used by HP pwplus--don't use.
6978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6991 if test "${ac_cv_path_install+set}" = set; then
6992 INSTALL=$ac_cv_path_install
6994 # As a last resort, use the slow shell script. Don't cache a
6995 # value for INSTALL within a source directory, because that will
6996 # break other packages using the cache if that directory is
6997 # removed, or if the value is a relative name.
6998 INSTALL=$ac_install_sh
7001 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7002 echo "${ECHO_T}$INSTALL" >&6; }
7004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7005 # It thinks the first close brace ends the variable substitution.
7006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7013 [\\/$]* | ?:[\\/]* ) ;;
7014 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7017 # Extract the first word of "bzip2", so it can be a program name with args.
7018 set dummy bzip2; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_BZIP2+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 BZIP2=$ac_cv_path_BZIP2
7048 if test -n "$BZIP2"; then
7049 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7050 echo "${ECHO_T}$BZIP2" >&6; }
7052 { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7057 # Extract the first word of "cat", so it can be a program name with args.
7058 set dummy cat; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_CAT+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 if test -n "$CAT"; then
7089 { echo "$as_me:$LINENO: result: $CAT" >&5
7090 echo "${ECHO_T}$CAT" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7097 # Extract the first word of "doxygen", so it can be a program name with args.
7098 set dummy doxygen; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 DOXYGEN=$ac_cv_path_DOXYGEN
7128 if test -n "$DOXYGEN"; then
7129 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7130 echo "${ECHO_T}$DOXYGEN" >&6; }
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7137 # Extract the first word of "groff", so it can be a program name with args.
7138 set dummy groff; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_GROFF+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 GROFF=$ac_cv_path_GROFF
7168 if test -n "$GROFF"; then
7169 { echo "$as_me:$LINENO: result: $GROFF" >&5
7170 echo "${ECHO_T}$GROFF" >&6; }
7172 { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7177 # Extract the first word of "gzip", so it can be a program name with args.
7178 set dummy gzip; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 GZIPBIN=$ac_cv_path_GZIPBIN
7208 if test -n "$GZIPBIN"; then
7209 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7210 echo "${ECHO_T}$GZIPBIN" >&6; }
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7217 # Extract the first word of "pdfroff", so it can be a program name with args.
7218 set dummy pdfroff; ac_word=$2
7219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221 if test "${ac_cv_path_PDFROFF+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 PDFROFF=$ac_cv_path_PDFROFF
7248 if test -n "$PDFROFF"; then
7249 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7250 echo "${ECHO_T}$PDFROFF" >&6; }
7252 { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7257 # Extract the first word of "zip", so it can be a program name with args.
7258 set dummy zip; ac_word=$2
7259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261 if test "${ac_cv_path_ZIP+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 if test -n "$ZIP"; then
7289 { echo "$as_me:$LINENO: result: $ZIP" >&5
7290 echo "${ECHO_T}$ZIP" >&6; }
7292 { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7297 for ac_prog in ocamlc
7299 # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_OCAMLC+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 OCAMLC=$ac_cv_path_OCAMLC
7330 if test -n "$OCAMLC"; then
7331 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7332 echo "${ECHO_T}$OCAMLC" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7339 test -n "$OCAMLC" && break
7342 for ac_prog in ocamlopt
7344 # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 OCAMLOPT=$ac_cv_path_OCAMLOPT
7375 if test -n "$OCAMLOPT"; then
7376 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7377 echo "${ECHO_T}$OCAMLOPT" >&6; }
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7384 test -n "$OCAMLOPT" && break
7387 for ac_prog in ocamldep
7389 # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy $ac_prog; ac_word=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 OCAMLDEP=$ac_cv_path_OCAMLDEP
7420 if test -n "$OCAMLDEP"; then
7421 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7422 echo "${ECHO_T}$OCAMLDEP" >&6; }
7424 { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7429 test -n "$OCAMLDEP" && break
7432 for ac_prog in ocamldoc
7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy $ac_prog; ac_word=$2
7436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 OCAMLDOC=$ac_cv_path_OCAMLDOC
7465 if test -n "$OCAMLDOC"; then
7466 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7467 echo "${ECHO_T}$OCAMLDOC" >&6; }
7469 { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7474 test -n "$OCAMLDOC" && break
7477 for ac_prog in gas as
7479 # Extract the first word of "$ac_prog", so it can be a program name with args.
7480 set dummy $ac_prog; ac_word=$2
7481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483 if test "${ac_cv_path_GAS+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 if test -n "$GAS"; then
7511 { echo "$as_me:$LINENO: result: $GAS" >&5
7512 echo "${ECHO_T}$GAS" >&6; }
7514 { echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6; }
7519 test -n "$GAS" && break
7523 { echo "$as_me:$LINENO: checking for linker version" >&5
7524 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7525 if test "${llvm_cv_link_version+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 version_string="$(ld -v 2>&1 | head -1)"
7532 if (echo "$version_string" | grep -q "ld64"); then
7533 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7535 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7539 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7540 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7542 cat >>confdefs.h <<_ACEOF
7543 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7548 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7549 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7550 if test "${llvm_cv_link_use_r+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7560 CFLAGS="$CFLAGS -Wl,-R."
7561 cat >conftest.$ac_ext <<_ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (ac_try="$ac_link"
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583 (eval "$ac_link") 2>conftest.er1
7585 grep -v '^ *+' conftest.er1 >conftest.err
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } &&
7590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7591 { (case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_try") 2>&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_try") 2>&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 llvm_cv_link_use_r=yes
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 llvm_cv_link_use_r=no
7618 rm -f core conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7630 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7631 if test "$llvm_cv_link_use_r" = yes ; then
7633 cat >>confdefs.h <<\_ACEOF
7634 #define HAVE_LINK_R 1
7640 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7641 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7642 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7653 cat >conftest.$ac_ext <<_ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (ac_try="$ac_link"
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_link") 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7683 { (case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_try") 2>&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; } &&
7692 { ac_try='test -s conftest$ac_exeext'
7693 { (case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_try") 2>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 llvm_cv_link_use_export_dynamic=yes
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 llvm_cv_link_use_export_dynamic=no
7710 rm -f core conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7722 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7723 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7725 cat >>confdefs.h <<\_ACEOF
7726 #define HAVE_LINK_EXPORT_DYNAMIC 1
7732 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7733 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7734 if test "${llvm_cv_link_use_version_script+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7745 # The following code is from the autoconf manual,
7746 # "11.13: Limitations of Usual Tools".
7747 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7748 # Use mktemp if possible; otherwise fall back on mkdir,
7749 # with $RANDOM to make collisions less likely.
7753 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7755 test -n "$tmp" && test -d "$tmp"
7757 tmp=$TMPDIR/foo$$-$RANDOM
7758 (umask 077 && mkdir "$tmp")
7761 echo "{" > "$tmp/export.map"
7762 echo " global: main;" >> "$tmp/export.map"
7763 echo " local: *;" >> "$tmp/export.map"
7764 echo "};" >> "$tmp/export.map"
7766 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7767 cat >conftest.$ac_ext <<_ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7782 rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (ac_try="$ac_link"
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_link") 2>conftest.er1
7791 grep -v '^ *+' conftest.er1 >conftest.err
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7797 { (case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802 (eval "$ac_try") 2>&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; } &&
7806 { ac_try='test -s conftest$ac_exeext'
7807 { (case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_try") 2>&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; }; then
7816 llvm_cv_link_use_version_script=yes
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 llvm_cv_link_use_version_script=no
7824 rm -f core conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
7826 rm "$tmp/export.map"
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7838 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7839 if test "$llvm_cv_link_use_version_script" = yes ; then
7840 HAVE_LINK_VERSION_SCRIPT=1
7847 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7848 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7849 if test "${ac_cv_c_const+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7862 /* FIXME: Include the comments suggested by Paul. */
7864 /* Ultrix mips cc rejects this. */
7865 typedef int charset[2];
7867 /* SunOS 4.1.1 cc rejects this. */
7868 char const *const *ccp;
7870 /* NEC SVR4.0.2 mips cc rejects this. */
7871 struct point {int x, y;};
7872 static struct point const zero = {0,0};
7873 /* AIX XL C 1.02.0.0 rejects this.
7874 It does not let you subtract one const X* pointer from another in
7875 an arm of an if-expression whose if-part is not a constant
7877 const char *g = "string";
7878 ccp = &g + (g ? g-g : 0);
7879 /* HPUX 7.0 cc rejects these. */
7882 ccp = (char const *const *) p;
7883 { /* SCO 3.2v4 cc rejects this. */
7885 char const *s = 0 ? (char *) 0 : (char const *) 0;
7890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7892 const int *foo = &x[0];
7895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7896 typedef const int *iptr;
7900 { /* AIX XL C 1.02.0.0 rejects this saying
7901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7902 struct s { int j; const int *ap[3]; };
7903 struct s *b; b->j = 5;
7905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7909 return !x[0] && !zero.x;
7916 rm -f conftest.$ac_objext
7917 if { (ac_try="$ac_compile"
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7925 grep -v '^ *+' conftest.er1 >conftest.err
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } &&
7930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7931 { (case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_try") 2>&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest.$ac_objext'
7941 { (case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_try") 2>&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7961 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7962 if test $ac_cv_c_const = no; then
7964 cat >>confdefs.h <<\_ACEOF
7976 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7977 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7978 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7979 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <sys/types.h>
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8010 grep -v '^ *+' conftest.er1 >conftest.err
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8016 { (case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_try") 2>&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try='test -s conftest.$ac_objext'
8026 { (case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_try") 2>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 eval "$as_ac_Header=yes"
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8040 eval "$as_ac_Header=no"
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 ac_res=`eval echo '${'$as_ac_Header'}'`
8046 { echo "$as_me:$LINENO: result: $ac_res" >&5
8047 echo "${ECHO_T}$ac_res" >&6; }
8048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8049 cat >>confdefs.h <<_ACEOF
8050 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8053 ac_header_dirent=$ac_hdr; break
8057 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8058 if test $ac_header_dirent = dirent.h; then
8059 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8060 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8061 if test "${ac_cv_search_opendir+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 ac_func_search_save_LIBS=$LIBS
8065 cat >conftest.$ac_ext <<_ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8072 /* Override any GCC internal prototype to avoid an error.
8073 Use char because int might match the return type of a GCC
8074 builtin and then its argument prototype would still apply. */
8087 for ac_lib in '' dir; do
8088 if test -z "$ac_lib"; then
8089 ac_res="none required"
8092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (ac_try="$ac_link"
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_link") 2>conftest.er1
8103 grep -v '^ *+' conftest.er1 >conftest.err
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8109 { (case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_try") 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_try") 2>&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_search_opendir=$ac_res
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8136 rm -f core conftest.err conftest.$ac_objext \
8138 if test "${ac_cv_search_opendir+set}" = set; then
8142 if test "${ac_cv_search_opendir+set}" = set; then
8145 ac_cv_search_opendir=no
8148 LIBS=$ac_func_search_save_LIBS
8150 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8151 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8152 ac_res=$ac_cv_search_opendir
8153 if test "$ac_res" != no; then
8154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8159 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8160 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8161 if test "${ac_cv_search_opendir+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 ac_func_search_save_LIBS=$LIBS
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8172 /* Override any GCC internal prototype to avoid an error.
8173 Use char because int might match the return type of a GCC
8174 builtin and then its argument prototype would still apply. */
8187 for ac_lib in '' x; do
8188 if test -z "$ac_lib"; then
8189 ac_res="none required"
8192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209 { (case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_try") 2>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest$ac_exeext'
8219 { (case "(($ac_try" in
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_try") 2>&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_cv_search_opendir=$ac_res
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8236 rm -f core conftest.err conftest.$ac_objext \
8238 if test "${ac_cv_search_opendir+set}" = set; then
8242 if test "${ac_cv_search_opendir+set}" = set; then
8245 ac_cv_search_opendir=no
8248 LIBS=$ac_func_search_save_LIBS
8250 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8251 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8252 ac_res=$ac_cv_search_opendir
8253 if test "$ac_res" != no; then
8254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8261 for ac_header in dlfcn.h
8263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 ac_res=`eval echo '${'$as_ac_Header'}'`
8271 { echo "$as_me:$LINENO: result: $ac_res" >&5
8272 echo "${ECHO_T}$ac_res" >&6; }
8274 # Is the header compilable?
8275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8277 cat >conftest.$ac_ext <<_ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 $ac_includes_default
8284 #include <$ac_header>
8286 rm -f conftest.$ac_objext
8287 if { (ac_try="$ac_compile"
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8295 grep -v '^ *+' conftest.er1 >conftest.err
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8301 { (case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_try") 2>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try='test -s conftest.$ac_objext'
8311 { (case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_try") 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 ac_header_compiler=yes
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 ac_header_compiler=no
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8330 echo "${ECHO_T}$ac_header_compiler" >&6; }
8332 # Is the header present?
8333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 #include <$ac_header>
8343 if { (ac_try="$ac_cpp conftest.$ac_ext"
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8351 grep -v '^ *+' conftest.er1 >conftest.err
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } >/dev/null; then
8356 if test -s conftest.err; then
8357 ac_cpp_err=$ac_c_preproc_warn_flag
8358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8365 if test -z "$ac_cpp_err"; then
8366 ac_header_preproc=yes
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_header_preproc=no
8374 rm -f conftest.err conftest.$ac_ext
8375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8376 echo "${ECHO_T}$ac_header_preproc" >&6; }
8378 # So? What about this header?
8379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8385 ac_header_preproc=yes
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8401 ## ------------------------------------ ##
8402 ## Report this to http://llvm.org/bugs/ ##
8403 ## ------------------------------------ ##
8405 ) | sed "s/^/$as_me: WARNING: /" >&2
8408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 eval "$as_ac_Header=\$ac_header_preproc"
8415 ac_res=`eval echo '${'$as_ac_Header'}'`
8416 { echo "$as_me:$LINENO: result: $ac_res" >&5
8417 echo "${ECHO_T}$ac_res" >&6; }
8420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8421 cat >>confdefs.h <<_ACEOF
8422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8429 # Check whether --enable-ltdl-install was given.
8430 if test "${enable_ltdl_install+set}" = set; then
8431 enableval=$enable_ltdl_install;
8437 if test x"${enable_ltdl_install-no}" != xno; then
8439 INSTALL_LTDL_FALSE='#'
8441 INSTALL_LTDL_TRUE='#'
8447 if test x"${enable_ltdl_convenience-no}" != xno; then
8448 CONVENIENCE_LTDL_TRUE=
8449 CONVENIENCE_LTDL_FALSE='#'
8451 CONVENIENCE_LTDL_TRUE='#'
8452 CONVENIENCE_LTDL_FALSE=
8456 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8457 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8459 libname_spec='lib$name'
8467 shlibpath_overrides_runpath=unknown
8469 dynamic_linker="$host_os ld.so"
8470 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8471 if test "$GCC" = yes; then
8472 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8473 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8474 # if the path contains ";" then we assume it to be the separator
8475 # otherwise default to the standard path separator (i.e. ":") - it is
8476 # assumed that no part of a normal pathname contains ";" but that should
8477 # okay in the real world where ";" in dirpaths is itself problematic.
8478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8483 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8485 need_lib_prefix=unknown
8486 hardcode_into_libs=no
8488 # when you set need_version to no, make sure it does not cause -set_version
8489 # flags to be left without arguments
8490 need_version=unknown
8495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8496 shlibpath_var=LIBPATH
8498 # AIX 3 has no versioning support, so we append a major version to the name.
8499 soname_spec='${libname}${release}${shared_ext}$major'
8506 hardcode_into_libs=yes
8507 if test "$host_cpu" = ia64; then
8508 # AIX 5 supports IA64
8509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8510 shlibpath_var=LD_LIBRARY_PATH
8512 # With GCC up to 2.95.x, collect2 would create an import file
8513 # for dependence libraries. The import file would start with
8514 # the line `#! .'. This would cause the generated library to
8515 # depend on `.', always an invalid library. This was fixed in
8516 # development snapshots of GCC prior to 3.0.
8518 aix4 | aix4.[01] | aix4.[01].*)
8519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8521 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8529 # soname into executable. Probably we can add versioning support to
8530 # collect2, so additional links can be useful in future.
8531 if test "$aix_use_runtimelinking" = yes; then
8532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8533 # instead of lib<name>.a to let people know that these are not
8534 # typical AIX shared libraries.
8535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8537 # We preserve .a as extension for shared libraries through AIX4.2
8538 # and later when we are not doing run time linking.
8539 library_names_spec='${libname}${release}.a $libname.a'
8540 soname_spec='${libname}${release}${shared_ext}$major'
8542 shlibpath_var=LIBPATH
8547 library_names_spec='$libname.ixlibrary $libname.a'
8548 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8549 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'
8553 library_names_spec='${libname}${shared_ext}'
8554 dynamic_linker="$host_os ld.so"
8555 shlibpath_var=LIBRARY_PATH
8561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562 soname_spec='${libname}${release}${shared_ext}$major'
8563 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8564 shlibpath_var=LD_LIBRARY_PATH
8565 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8566 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8567 # the default ld.so.conf also contains /usr/contrib/lib and
8568 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8569 # libtool to hard-code these into programs
8572 cygwin* | mingw* | pw32*)
8573 version_type=windows
8578 case $GCC,$host_os in
8579 yes,cygwin* | yes,mingw* | yes,pw32*)
8580 library_names_spec='$libname.dll.a'
8581 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8582 postinstall_cmds='base_file=`basename \${file}`~
8583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8584 dldir=$destdir/`dirname \$dlpath`~
8585 test -d \$dldir || mkdir -p \$dldir~
8586 $install_prog $dir/$dlname \$dldir/$dlname~
8587 chmod a+x \$dldir/$dlname'
8588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8589 dlpath=$dir/\$dldll~
8591 shlibpath_overrides_runpath=yes
8595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8597 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8600 # MinGW DLLs use traditional 'lib' prefix
8601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8603 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8604 # It is most probably a Windows format PATH printed by
8605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8606 # path with ; separators, and with drive letters. We can handle the
8607 # drive letters (cygwin fileutils understands them), so leave them,
8608 # especially as we might pass files found there to a mingw objdump,
8609 # which wouldn't understand a cygwinified path. Ahh.
8610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8616 # pw32 DLLs use 'pw' prefix rather than 'lib'
8617 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8623 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8626 dynamic_linker='Win32 ld.exe'
8627 # FIXME: first we should search . and the directory the executable is in
8631 darwin* | rhapsody*)
8632 dynamic_linker="$host_os dyld"
8636 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8637 soname_spec='${libname}${release}${major}$shared_ext'
8638 shlibpath_overrides_runpath=yes
8639 shlibpath_var=DYLD_LIBRARY_PATH
8640 shrext_cmds='.dylib'
8641 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8642 if test "$GCC" = yes; then
8643 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"`
8645 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8647 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8655 soname_spec='${libname}${release}${shared_ext}$major'
8656 shlibpath_var=LD_LIBRARY_PATH
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8668 soname_spec='${libname}${release}${shared_ext}$major'
8669 shlibpath_var=LD_LIBRARY_PATH
8670 shlibpath_overrides_runpath=no
8671 hardcode_into_libs=yes
8672 dynamic_linker='GNU ld.so'
8675 freebsd* | dragonfly*)
8676 # DragonFly does not have aout. When/if they implement a new
8677 # versioning mechanism, adjust this.
8678 if test -x /usr/bin/objformat; then
8679 objformat=`/usr/bin/objformat`
8682 freebsd[123].*) objformat=aout ;;
8686 version_type=freebsd-$objformat
8687 case $version_type in
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8698 shlibpath_var=LD_LIBRARY_PATH
8701 shlibpath_overrides_runpath=yes
8703 freebsd3.[01]* | freebsdelf3.[01]*)
8704 shlibpath_overrides_runpath=yes
8705 hardcode_into_libs=yes
8707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8709 shlibpath_overrides_runpath=no
8710 hardcode_into_libs=yes
8712 freebsd*) # from 4.6 on
8713 shlibpath_overrides_runpath=yes
8714 hardcode_into_libs=yes
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 shlibpath_var=LD_LIBRARY_PATH
8726 hardcode_into_libs=yes
8729 hpux9* | hpux10* | hpux11*)
8730 # Give a soname corresponding to the major version so that dld.sl refuses to
8731 # link against other versions.
8738 hardcode_into_libs=yes
8739 dynamic_linker="$host_os dld.so"
8740 shlibpath_var=LD_LIBRARY_PATH
8741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 if test "X$HPUX_IA64_MODE" = X32; then
8745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8753 hardcode_into_libs=yes
8754 dynamic_linker="$host_os dld.sl"
8755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758 soname_spec='${libname}${release}${shared_ext}$major'
8759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8764 dynamic_linker="$host_os dld.sl"
8765 shlibpath_var=SHLIB_PATH
8766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8771 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8772 postinstall_cmds='chmod 555 $lib'
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 shlibpath_overrides_runpath=no
8784 hardcode_into_libs=yes
8787 irix5* | irix6* | nonstopux*)
8789 nonstopux*) version_type=nonstopux ;;
8791 if test "$lt_cv_prog_gnu_ld" = yes; then
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8802 irix5* | nonstopux*)
8806 case $LD in # libtool.m4 will add one of these switches to LD
8807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8808 libsuff= shlibsuff= libmagic=32-bit;;
8809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8810 libsuff=32 shlibsuff=N32 libmagic=N32;;
8811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8812 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8813 *) libsuff= shlibsuff= libmagic=never-match;;
8817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8818 shlibpath_overrides_runpath=no
8819 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8820 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8821 hardcode_into_libs=yes
8824 # No shared lib support for Linux oldld, aout, or coff.
8825 linux*oldld* | linux*aout* | linux*coff*)
8829 # This must be Linux ELF.
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8835 soname_spec='${libname}${release}${shared_ext}$major'
8836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8837 shlibpath_var=LD_LIBRARY_PATH
8838 shlibpath_overrides_runpath=no
8839 # This implies no fast_install, which is unacceptable.
8840 # Some rework will be needed to allow for fast_install
8841 # before this can be enabled.
8842 hardcode_into_libs=yes
8844 # Append ld.so.conf contents to the search path
8845 if test -f /etc/ld.so.conf; then
8846 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' ' '`
8847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8850 # We used to test for /lib/ld.so.1 and disable shared libraries on
8851 # powerpc, because MkLinux only supported shared libraries with the
8852 # GNU dynamic linker. Since this was broken with cross compilers,
8853 # most powerpc-linux boxes support dynamic linking these days and
8854 # people can always --disable-shared, the test was removed, and we
8855 # assume the GNU/Linux dynamic linker is in use.
8856 dynamic_linker='GNU/Linux ld.so'
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 shlibpath_var=LD_LIBRARY_PATH
8866 shlibpath_overrides_runpath=no
8867 hardcode_into_libs=yes
8868 dynamic_linker='GNU ld.so'
8875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8878 dynamic_linker='NetBSD (a.out) ld.so'
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 dynamic_linker='NetBSD ld.elf_so'
8884 shlibpath_var=LD_LIBRARY_PATH
8885 shlibpath_overrides_runpath=yes
8886 hardcode_into_libs=yes
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath=yes
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 shlibpath_var=LD_LIBRARY_PATH
8903 shlibpath_overrides_runpath=yes
8908 sys_lib_dlsearch_path_spec="/usr/lib"
8910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8912 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8913 *) need_version=no ;;
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8917 shlibpath_var=LD_LIBRARY_PATH
8918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8920 openbsd2.[89] | openbsd2.[89].*)
8921 shlibpath_overrides_runpath=no
8924 shlibpath_overrides_runpath=yes
8928 shlibpath_overrides_runpath=yes
8933 libname_spec='$name'
8936 library_names_spec='$libname${shared_ext} $libname.a'
8937 dynamic_linker='OS/2 ld.exe'
8938 shlibpath_var=LIBPATH
8941 osf3* | osf4* | osf5*)
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=yes
8960 hardcode_into_libs=yes
8961 # ldd complains unless libraries are executable
8962 postinstall_cmds='chmod +x $lib'
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=yes
8971 if test "$with_gnu_ld" = yes; then
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 case $host_vendor in
8984 shlibpath_overrides_runpath=no
8986 export_dynamic_flag_spec='${wl}-Blargedynsym'
8987 runpath_var=LD_RUN_PATH
8995 shlibpath_overrides_runpath=no
8996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9002 if test -d /usr/nec ;then
9004 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9005 soname_spec='$libname${shared_ext}.$major'
9006 shlibpath_var=LD_LIBRARY_PATH
9010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9011 version_type=freebsd-elf
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 hardcode_into_libs=yes
9018 if test "$with_gnu_ld" = yes; then
9019 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9020 shlibpath_overrides_runpath=no
9022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9023 shlibpath_overrides_runpath=yes
9026 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9030 sys_lib_dlsearch_path_spec='/usr/lib'
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9044 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9045 echo "${ECHO_T}$dynamic_linker" >&6; }
9046 test "$dynamic_linker" = no && can_build_shared=no
9048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9049 if test "$GCC" = yes; then
9050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9054 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9055 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9056 if test "${libltdl_cv_shlibext+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 eval libltdl_cv_shlibext=$shrext_cmds
9064 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9065 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9066 if test -n "$libltdl_cv_shlibext"; then
9068 cat >>confdefs.h <<_ACEOF
9069 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9075 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9076 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9077 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 libltdl_cv_shlibpath_var="$shlibpath_var"
9082 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9083 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9084 if test -n "$libltdl_cv_shlibpath_var"; then
9086 cat >>confdefs.h <<_ACEOF
9087 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9093 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9094 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9095 if test "${libltdl_cv_sys_search_path+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9100 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9101 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9102 if test -n "$libltdl_cv_sys_search_path"; then
9104 for dir in $libltdl_cv_sys_search_path; do
9105 if test -z "$sys_search_path"; then
9106 sys_search_path="$dir"
9108 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9112 cat >>confdefs.h <<_ACEOF
9113 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9118 { echo "$as_me:$LINENO: checking for objdir" >&5
9119 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9120 if test "${libltdl_cv_objdir+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 libltdl_cv_objdir="$objdir"
9124 if test -n "$objdir"; then
9127 rm -f .libs 2>/dev/null
9128 mkdir .libs 2>/dev/null
9129 if test -d .libs; then
9130 libltdl_cv_objdir=.libs
9132 # MS-DOS does not allow filenames that begin with a dot.
9133 libltdl_cv_objdir=_libs
9135 rmdir .libs 2>/dev/null
9139 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9140 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9142 cat >>confdefs.h <<_ACEOF
9143 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9151 # Check for command to grab the raw symbol name followed by C symbol from nm.
9152 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9153 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9154 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 # These are sane defaults that work on at least a few old systems.
9159 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9161 # Character class describing NM global symbol codes.
9162 symcode='[BCDEGRST]'
9164 # Regexp to match symbols that can be accessed directly from C.
9165 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9167 # Transform an extracted symbol line into a proper C declaration
9168 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9170 # Transform an extracted symbol line into symbol name and symbol address
9171 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'"
9173 # Define system-specific variables.
9178 cygwin* | mingw* | pw32*)
9179 symcode='[ABCDGISTW]'
9181 hpux*) # Its linker distinguishes data from code symbols
9182 if test "$host_cpu" = ia64; then
9183 symcode='[ABCDEGRST]'
9185 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9186 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'"
9189 if test "$host_cpu" = ia64; then
9190 symcode='[ABCDGIRSTW]'
9191 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9192 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'"
9196 symcode='[BCDEGRST]'
9199 symcode='[BCDEGQRST]'
9210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9218 # Handle CRLF in mingw tool chain
9222 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9226 # If we're using GNU nm, then use its standard symbol codes.
9227 case `$NM -V 2>&1` in
9228 *GNU* | *'with BFD'*)
9229 symcode='[ABCDGIRSTW]' ;;
9232 # Try without a prefix undercore, then with it.
9233 for ac_symprfx in "" "_"; do
9235 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9236 symxfrm="\\1 $ac_symprfx\\2 \\2"
9238 # Write the raw and C identifiers.
9239 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9241 # Check to see that the pipe works correctly.
9245 cat > conftest.$ac_ext <<EOF
9250 void nm_test_func(){}
9254 int main(){nm_test_var='a';nm_test_func();return(0);}
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258 (eval $ac_compile) 2>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; then
9262 # Now try to grab the symbols.
9264 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9265 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && test -s "$nlist"; then
9269 # Try sorting and uniquifying the output.
9270 if sort "$nlist" | uniq > "$nlist"T; then
9271 mv -f "$nlist"T "$nlist"
9276 # Make sure that we snagged all the symbols we need.
9277 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9278 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9279 cat <<EOF > conftest.$ac_ext
9285 # Now generate the symbol file.
9286 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9288 cat <<EOF >> conftest.$ac_ext
9289 #if defined (__STDC__) && __STDC__
9290 # define lt_ptr_t void *
9292 # define lt_ptr_t char *
9296 /* The mapping between symbol names and symbols. */
9301 lt_preloaded_symbols[] =
9304 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9305 cat <<\EOF >> conftest.$ac_ext
9313 # Now try linking the two files.
9314 mv conftest.$ac_objext conftstm.$ac_objext
9315 lt_save_LIBS="$LIBS"
9316 lt_save_CFLAGS="$CFLAGS"
9317 LIBS="conftstm.$ac_objext"
9318 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9326 LIBS="$lt_save_LIBS"
9327 CFLAGS="$lt_save_CFLAGS"
9329 echo "cannot find nm_test_func in $nlist" >&5
9332 echo "cannot find nm_test_var in $nlist" >&5
9335 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9338 echo "$progname: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 rm -f conftest* conftst*
9343 # Do not use the global_symbol_pipe unless it works.
9344 if test "$pipe_works" = yes; then
9347 lt_cv_sys_global_symbol_pipe=
9353 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9354 lt_cv_sys_global_symbol_to_cdecl=
9356 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9357 { echo "$as_me:$LINENO: result: failed" >&5
9358 echo "${ECHO_T}failed" >&6; }
9360 { echo "$as_me:$LINENO: result: ok" >&5
9361 echo "${ECHO_T}ok" >&6; }
9365 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9366 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9367 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9371 libltdl_cv_preloaded_symbols=yes
9373 libltdl_cv_preloaded_symbols=no
9377 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9378 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9379 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_PRELOADED_SYMBOLS 1
9390 ac_cpp='$CPP $CPPFLAGS'
9391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9396 { echo "$as_me:$LINENO: checking for shl_load" >&5
9397 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9398 if test "${ac_cv_func_shl_load+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9409 #define shl_load innocuous_shl_load
9411 /* System header to define __stub macros and hopefully few prototypes,
9412 which can conflict with char shl_load (); below.
9413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414 <limits.h> exists even on freestanding compilers. */
9417 # include <limits.h>
9419 # include <assert.h>
9424 /* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
9431 /* The GNU C library defines this for functions which it implements
9432 to always fail with ENOSYS. Some functions are actually named
9433 something starting with __ and the normal name is an alias. */
9434 #if defined __stub_shl_load || defined __stub___shl_load
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_link") 2>conftest.er1
9455 grep -v '^ *+' conftest.er1 >conftest.err
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } &&
9460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9461 { (case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_try") 2>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; } &&
9470 { ac_try='test -s conftest$ac_exeext'
9471 { (case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_try") 2>&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 ac_cv_func_shl_load=yes
9482 echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9485 ac_cv_func_shl_load=no
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9491 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9492 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9493 if test $ac_cv_func_shl_load = yes; then
9495 cat >>confdefs.h <<\_ACEOF
9496 #define HAVE_SHL_LOAD 1
9500 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9501 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9502 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 ac_check_lib_save_LIBS=$LIBS
9507 cat >conftest.$ac_ext <<_ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9514 /* Override any GCC internal prototype to avoid an error.
9515 Use char because int might match the return type of a GCC
9516 builtin and then its argument prototype would still apply. */
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_link") 2>conftest.er1
9538 grep -v '^ *+' conftest.er1 >conftest.err
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9544 { (case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_try") 2>&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try='test -s conftest$ac_exeext'
9554 { (case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_try") 2>&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_cv_lib_dld_shl_load=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_cv_lib_dld_shl_load=no
9571 rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9575 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9576 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9577 if test $ac_cv_lib_dld_shl_load = yes; then
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_SHL_LOAD 1
9583 LIBADD_DL="$LIBADD_DL -ldld"
9585 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9587 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 ac_check_lib_save_LIBS=$LIBS
9592 cat >conftest.$ac_ext <<_ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9599 /* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (ac_try="$ac_link"
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_link") 2>conftest.er1
9623 grep -v '^ *+' conftest.er1 >conftest.err
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9629 { (case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_try") 2>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest$ac_exeext'
9639 { (case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_try") 2>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_cv_lib_dl_dlopen=yes
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 ac_cv_lib_dl_dlopen=no
9656 rm -f core conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9658 LIBS=$ac_check_lib_save_LIBS
9660 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9661 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9662 if test $ac_cv_lib_dl_dlopen = yes; then
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_LIBDL 1
9668 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9703 { (case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_try") 2>&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (case "(($ac_try" in
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_try") 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_LIBDL 1
9726 libltdl_cv_func_dlopen="yes"
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9732 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9733 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 ac_check_lib_save_LIBS=$LIBS
9738 cat >conftest.$ac_ext <<_ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9745 /* Override any GCC internal prototype to avoid an error.
9746 Use char because int might match the return type of a GCC
9747 builtin and then its argument prototype would still apply. */
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9769 grep -v '^ *+' conftest.er1 >conftest.err
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9775 { (case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_try") 2>&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; } &&
9784 { ac_try='test -s conftest$ac_exeext'
9785 { (case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_try") 2>&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_lib_svld_dlopen=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_cv_lib_svld_dlopen=no
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9806 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9807 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9808 if test $ac_cv_lib_svld_dlopen = yes; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_LIBDL 1
9814 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9816 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9817 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9818 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 ac_check_lib_save_LIBS=$LIBS
9823 cat >conftest.$ac_ext <<_ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9830 /* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (ac_try="$ac_link"
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_link") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9860 { (case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_try") 2>&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_try") 2>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_lib_dld_dld_link=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_cv_lib_dld_dld_link=no
9887 rm -f core conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9889 LIBS=$ac_check_lib_save_LIBS
9891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9892 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9893 if test $ac_cv_lib_dld_dld_link = yes; then
9895 cat >>confdefs.h <<\_ACEOF
9899 LIBADD_DL="$LIBADD_DL -ldld"
9901 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9902 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9903 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9914 #define _dyld_func_lookup innocuous__dyld_func_lookup
9916 /* System header to define __stub macros and hopefully few prototypes,
9917 which can conflict with char _dyld_func_lookup (); below.
9918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919 <limits.h> exists even on freestanding compilers. */
9922 # include <limits.h>
9924 # include <assert.h>
9927 #undef _dyld_func_lookup
9929 /* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
9935 char _dyld_func_lookup ();
9936 /* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9946 return _dyld_func_lookup ();
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_cv_func__dyld_func_lookup=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_cv_func__dyld_func_lookup=no
9993 rm -f core conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9996 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9997 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9998 if test $ac_cv_func__dyld_func_lookup = yes; then
10000 cat >>confdefs.h <<\_ACEOF
10001 #define HAVE_DYLD 1
10015 rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10027 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10029 lt_save_LIBS="$LIBS"
10030 LIBS="$LIBS $LIBADD_DL"
10032 for ac_func in dlerror
10034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10048 #define $ac_func innocuous_$ac_func
10050 /* System header to define __stub macros and hopefully few prototypes,
10051 which can conflict with char $ac_func (); below.
10052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053 <limits.h> exists even on freestanding compilers. */
10056 # include <limits.h>
10058 # include <assert.h>
10063 /* Override any GCC internal prototype to avoid an error.
10064 Use char because int might match the return type of a GCC
10065 builtin and then its argument prototype would still apply. */
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined __stub_$ac_func || defined __stub___$ac_func
10080 return $ac_func ();
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_link") 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; } &&
10109 { ac_try='test -s conftest$ac_exeext'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 eval "$as_ac_var=yes"
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 eval "$as_ac_var=no"
10127 rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10130 ac_res=`eval echo '${'$as_ac_var'}'`
10131 { echo "$as_me:$LINENO: result: $ac_res" >&5
10132 echo "${ECHO_T}$ac_res" >&6; }
10133 if test `eval echo '${'$as_ac_var'}'` = yes; then
10134 cat >>confdefs.h <<_ACEOF
10135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10141 LIBS="$lt_save_LIBS"
10144 ac_cpp='$CPP $CPPFLAGS'
10145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10151 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10152 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10153 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_cv_sys_symbol_underscore=no
10157 cat > conftest.$ac_ext <<EOF
10158 void nm_test_func(){}
10159 int main(){nm_test_func;return 0;}
10161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10162 (eval $ac_compile) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; then
10166 # Now try to grab the symbols.
10167 ac_nlist=conftest.nm
10168 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10169 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && test -s "$ac_nlist"; then
10173 # See whether the symbols have a leading underscore.
10174 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10175 ac_cv_sys_symbol_underscore=yes
10177 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10180 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10184 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10187 echo "configure: failed program was:" >&5
10193 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10194 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10197 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10198 if test x"$libltdl_cv_func_dlopen" = xyes ||
10199 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10200 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10201 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10202 if test "${libltdl_cv_need_uscore+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 libltdl_cv_need_uscore=unknown
10207 LIBS="$LIBS $LIBADD_DL"
10208 if test "$cross_compiling" = yes; then :
10209 libltdl_cv_need_uscore=cross
10211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10212 lt_status=$lt_dlunknown
10213 cat > conftest.$ac_ext <<EOF
10214 #line 10214 "configure"
10215 #include "confdefs.h"
10224 # define LT_DLGLOBAL RTLD_GLOBAL
10227 # define LT_DLGLOBAL DL_GLOBAL
10229 # define LT_DLGLOBAL 0
10233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10234 find out it does not work in some platform. */
10235 #ifndef LT_DLLAZY_OR_NOW
10237 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10240 # define LT_DLLAZY_OR_NOW DL_LAZY
10243 # define LT_DLLAZY_OR_NOW RTLD_NOW
10246 # define LT_DLLAZY_OR_NOW DL_NOW
10248 # define LT_DLLAZY_OR_NOW 0
10256 extern "C" void exit (int);
10259 void fnord() { int i=42;}
10262 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10263 int status = $lt_dlunknown;
10267 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10268 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10269 /* dlclose (self); */
10277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278 (eval $ac_link) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10282 (./conftest; exit; ) >&5 2>/dev/null
10284 case x$lt_status in
10285 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10286 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10287 x$lt_dlunknown|x*) ;;
10290 # compilation failed
10299 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10300 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10304 if test x"$libltdl_cv_need_uscore" = xyes; then
10306 cat >>confdefs.h <<\_ACEOF
10307 #define NEED_USCORE 1
10313 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10314 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10315 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 # PORTME does your system automatically load deplibs for dlopen?
10319 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10320 # For now, we just catch OSes we know something about -- in the
10321 # future, we'll try test this programmatically.
10322 libltdl_cv_sys_dlopen_deplibs=unknown
10324 aix3*|aix4.1.*|aix4.2.*)
10325 # Unknown whether this is true for these versions of AIX, but
10326 # we want this `case' here to explicitly catch those versions.
10327 libltdl_cv_sys_dlopen_deplibs=unknown
10330 libltdl_cv_sys_dlopen_deplibs=yes
10333 # Assuming the user has installed a libdl from somewhere, this is true
10334 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10335 libltdl_cv_sys_dlopen_deplibs=yes
10337 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10338 # GNU and its variants, using gnu ld.so (Glibc)
10339 libltdl_cv_sys_dlopen_deplibs=yes
10342 libltdl_cv_sys_dlopen_deplibs=yes
10345 libltdl_cv_sys_dlopen_deplibs=yes
10347 irix[12345]*|irix6.[01]*)
10348 # Catch all versions of IRIX before 6.2, and indicate that we don't
10349 # know how it worked for any of those versions.
10350 libltdl_cv_sys_dlopen_deplibs=unknown
10353 # The case above catches anything before 6.2, and it's known that
10354 # at 6.2 and later dlopen does load deplibs.
10355 libltdl_cv_sys_dlopen_deplibs=yes
10358 libltdl_cv_sys_dlopen_deplibs=yes
10361 libltdl_cv_sys_dlopen_deplibs=yes
10364 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10365 # it did *not* use an RPATH in a shared library to find objects the
10366 # library depends on, so we explicitly say `no'.
10367 libltdl_cv_sys_dlopen_deplibs=no
10369 osf5.0|osf5.0a|osf5.1)
10370 # dlopen *does* load deplibs and with the right loader patch applied
10371 # it even uses RPATH in a shared library to search for shared objects
10372 # that the library depends on, but there's no easy way to know if that
10373 # patch is installed. Since this is the case, all we can really
10374 # say is unknown -- it depends on the patch being installed. If
10375 # it is, this changes to `yes'. Without it, it would be `no'.
10376 libltdl_cv_sys_dlopen_deplibs=unknown
10379 # the two cases above should catch all versions of osf <= 5.1. Read
10380 # the comments above for what we know about them.
10381 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10382 # is used to find them so we can finally say `yes'.
10383 libltdl_cv_sys_dlopen_deplibs=yes
10386 libltdl_cv_sys_dlopen_deplibs=yes
10388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10389 libltdl_cv_sys_dlopen_deplibs=yes
10394 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10395 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10396 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10398 cat >>confdefs.h <<\_ACEOF
10399 #define LTDL_DLOPEN_DEPLIBS 1
10405 for ac_header in argz.h
10407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 ac_res=`eval echo '${'$as_ac_Header'}'`
10415 { echo "$as_me:$LINENO: result: $ac_res" >&5
10416 echo "${ECHO_T}$ac_res" >&6; }
10418 # Is the header compilable?
10419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10421 cat >conftest.$ac_ext <<_ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427 $ac_includes_default
10428 #include <$ac_header>
10430 rm -f conftest.$ac_objext
10431 if { (ac_try="$ac_compile"
10432 case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_compile") 2>conftest.er1
10439 grep -v '^ *+' conftest.er1 >conftest.err
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10445 { (case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_try") 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } &&
10454 { ac_try='test -s conftest.$ac_objext'
10455 { (case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_try") 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_header_compiler=yes
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_header_compiler=no
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10474 echo "${ECHO_T}$ac_header_compiler" >&6; }
10476 # Is the header present?
10477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10479 cat >conftest.$ac_ext <<_ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 #include <$ac_header>
10487 if { (ac_try="$ac_cpp conftest.$ac_ext"
10488 case "(($ac_try" in
10489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490 *) ac_try_echo=$ac_try;;
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10495 grep -v '^ *+' conftest.er1 >conftest.err
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } >/dev/null; then
10500 if test -s conftest.err; then
10501 ac_cpp_err=$ac_c_preproc_warn_flag
10502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10509 if test -z "$ac_cpp_err"; then
10510 ac_header_preproc=yes
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10515 ac_header_preproc=no
10518 rm -f conftest.err conftest.$ac_ext
10519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10520 echo "${ECHO_T}$ac_header_preproc" >&6; }
10522 # So? What about this header?
10523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10529 ac_header_preproc=yes
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10545 ## ------------------------------------ ##
10546 ## Report this to http://llvm.org/bugs/ ##
10547 ## ------------------------------------ ##
10549 ) | sed "s/^/$as_me: WARNING: /" >&2
10552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 eval "$as_ac_Header=\$ac_header_preproc"
10559 ac_res=`eval echo '${'$as_ac_Header'}'`
10560 { echo "$as_me:$LINENO: result: $ac_res" >&5
10561 echo "${ECHO_T}$ac_res" >&6; }
10564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10565 cat >>confdefs.h <<_ACEOF
10566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10574 { echo "$as_me:$LINENO: checking for error_t" >&5
10575 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10576 if test "${ac_cv_type_error_t+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10589 typedef error_t ac__type_new_;
10593 if ((ac__type_new_ *) 0)
10595 if (sizeof (ac__type_new_))
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_type_error_t=yes
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_cv_type_error_t=no
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10646 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10647 if test $ac_cv_type_error_t = yes; then
10649 cat >>confdefs.h <<_ACEOF
10650 #define HAVE_ERROR_T 1
10656 cat >>confdefs.h <<\_ACEOF
10657 #define error_t int
10668 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10684 #define $ac_func innocuous_$ac_func
10686 /* System header to define __stub macros and hopefully few prototypes,
10687 which can conflict with char $ac_func (); below.
10688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10689 <limits.h> exists even on freestanding compilers. */
10692 # include <limits.h>
10694 # include <assert.h>
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10706 /* The GNU C library defines this for functions which it implements
10707 to always fail with ENOSYS. Some functions are actually named
10708 something starting with __ and the normal name is an alias. */
10709 #if defined __stub_$ac_func || defined __stub___$ac_func
10716 return $ac_func ();
10721 rm -f conftest.$ac_objext conftest$ac_exeext
10722 if { (ac_try="$ac_link"
10723 case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_link") 2>conftest.er1
10730 grep -v '^ *+' conftest.er1 >conftest.err
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_try") 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest$ac_exeext'
10746 { (case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_try") 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10755 eval "$as_ac_var=yes"
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 eval "$as_ac_var=no"
10763 rm -f core conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10766 ac_res=`eval echo '${'$as_ac_var'}'`
10767 { echo "$as_me:$LINENO: result: $ac_res" >&5
10768 echo "${ECHO_T}$ac_res" >&6; }
10769 if test `eval echo '${'$as_ac_var'}'` = yes; then
10770 cat >>confdefs.h <<_ACEOF
10771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10804 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 ac_res=`eval echo '${'$as_ac_Header'}'`
10815 { echo "$as_me:$LINENO: result: $ac_res" >&5
10816 echo "${ECHO_T}$ac_res" >&6; }
10818 # Is the header compilable?
10819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10821 cat >conftest.$ac_ext <<_ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 $ac_includes_default
10828 #include <$ac_header>
10830 rm -f conftest.$ac_objext
10831 if { (ac_try="$ac_compile"
10832 case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_compile") 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10845 { (case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_try") 2>&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try='test -s conftest.$ac_objext'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_header_compiler=yes
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_header_compiler=no
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10874 echo "${ECHO_T}$ac_header_compiler" >&6; }
10876 # Is the header present?
10877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 #include <$ac_header>
10887 if { (ac_try="$ac_cpp conftest.$ac_ext"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10895 grep -v '^ *+' conftest.er1 >conftest.err
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } >/dev/null; then
10900 if test -s conftest.err; then
10901 ac_cpp_err=$ac_c_preproc_warn_flag
10902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10909 if test -z "$ac_cpp_err"; then
10910 ac_header_preproc=yes
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 ac_header_preproc=no
10918 rm -f conftest.err conftest.$ac_ext
10919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10920 echo "${ECHO_T}$ac_header_preproc" >&6; }
10922 # So? What about this header?
10923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10929 ac_header_preproc=yes
10932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10945 ## ------------------------------------ ##
10946 ## Report this to http://llvm.org/bugs/ ##
10947 ## ------------------------------------ ##
10949 ) | sed "s/^/$as_me: WARNING: /" >&2
10952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 eval "$as_ac_Header=\$ac_header_preproc"
10959 ac_res=`eval echo '${'$as_ac_Header'}'`
10960 { echo "$as_me:$LINENO: result: $ac_res" >&5
10961 echo "${ECHO_T}$ac_res" >&6; }
10964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10965 cat >>confdefs.h <<_ACEOF
10966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10977 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 ac_res=`eval echo '${'$as_ac_Header'}'`
10987 { echo "$as_me:$LINENO: result: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10990 # Is the header compilable?
10991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
10999 $ac_includes_default
11000 #include <$ac_header>
11002 rm -f conftest.$ac_objext
11003 if { (ac_try="$ac_compile"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_compile") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017 { (case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_try") 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest.$ac_objext'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 ac_header_compiler=yes
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11041 ac_header_compiler=no
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11046 echo "${ECHO_T}$ac_header_compiler" >&6; }
11048 # Is the header present?
11049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <$ac_header>
11059 if { (ac_try="$ac_cpp conftest.$ac_ext"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11067 grep -v '^ *+' conftest.er1 >conftest.err
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } >/dev/null; then
11072 if test -s conftest.err; then
11073 ac_cpp_err=$ac_c_preproc_warn_flag
11074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11081 if test -z "$ac_cpp_err"; then
11082 ac_header_preproc=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_header_preproc=no
11090 rm -f conftest.err conftest.$ac_ext
11091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11092 echo "${ECHO_T}$ac_header_preproc" >&6; }
11094 # So? What about this header?
11095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11101 ac_header_preproc=yes
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11117 ## ------------------------------------ ##
11118 ## Report this to http://llvm.org/bugs/ ##
11119 ## ------------------------------------ ##
11121 ) | sed "s/^/$as_me: WARNING: /" >&2
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 eval "$as_ac_Header=\$ac_header_preproc"
11131 ac_res=`eval echo '${'$as_ac_Header'}'`
11132 { echo "$as_me:$LINENO: result: $ac_res" >&5
11133 echo "${ECHO_T}$ac_res" >&6; }
11136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11137 cat >>confdefs.h <<_ACEOF
11138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11147 for ac_header in string.h strings.h
11149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 ac_res=`eval echo '${'$as_ac_Header'}'`
11157 { echo "$as_me:$LINENO: result: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11160 # Is the header compilable?
11161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <$ac_header>
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11181 grep -v '^ *+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } &&
11186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_try") 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 ac_header_compiler=yes
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_header_compiler=no
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11216 echo "${ECHO_T}$ac_header_compiler" >&6; }
11218 # Is the header present?
11219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 #include <$ac_header>
11229 if { (ac_try="$ac_cpp conftest.$ac_ext"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11237 grep -v '^ *+' conftest.er1 >conftest.err
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } >/dev/null; then
11242 if test -s conftest.err; then
11243 ac_cpp_err=$ac_c_preproc_warn_flag
11244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11251 if test -z "$ac_cpp_err"; then
11252 ac_header_preproc=yes
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ac_header_preproc=no
11260 rm -f conftest.err conftest.$ac_ext
11261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 echo "${ECHO_T}$ac_header_preproc" >&6; }
11264 # So? What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11271 ac_header_preproc=yes
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11287 ## ------------------------------------ ##
11288 ## Report this to http://llvm.org/bugs/ ##
11289 ## ------------------------------------ ##
11291 ) | sed "s/^/$as_me: WARNING: /" >&2
11294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 eval "$as_ac_Header=\$ac_header_preproc"
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11318 for ac_func in strchr index
11320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11334 #define $ac_func innocuous_$ac_func
11336 /* System header to define __stub macros and hopefully few prototypes,
11337 which can conflict with char $ac_func (); below.
11338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339 <limits.h> exists even on freestanding compilers. */
11342 # include <limits.h>
11344 # include <assert.h>
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined __stub_$ac_func || defined __stub___$ac_func
11366 return $ac_func ();
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (ac_try="$ac_link"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_link") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest$ac_exeext'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 eval "$as_ac_var=yes"
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 eval "$as_ac_var=no"
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11416 ac_res=`eval echo '${'$as_ac_var'}'`
11417 { echo "$as_me:$LINENO: result: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11419 if test `eval echo '${'$as_ac_var'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11429 for ac_func in strrchr rindex
11431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11445 #define $ac_func innocuous_$ac_func
11447 /* System header to define __stub macros and hopefully few prototypes,
11448 which can conflict with char $ac_func (); below.
11449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450 <limits.h> exists even on freestanding compilers. */
11453 # include <limits.h>
11455 # include <assert.h>
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11467 /* The GNU C library defines this for functions which it implements
11468 to always fail with ENOSYS. Some functions are actually named
11469 something starting with __ and the normal name is an alias. */
11470 #if defined __stub_$ac_func || defined __stub___$ac_func
11477 return $ac_func ();
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_link") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
11496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 eval "$as_ac_var=yes"
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 eval "$as_ac_var=no"
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11527 ac_res=`eval echo '${'$as_ac_var'}'`
11528 { echo "$as_me:$LINENO: result: $ac_res" >&5
11529 echo "${ECHO_T}$ac_res" >&6; }
11530 if test `eval echo '${'$as_ac_var'}'` = yes; then
11531 cat >>confdefs.h <<_ACEOF
11532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11540 for ac_func in memcpy bcopy
11542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 cat >conftest.$ac_ext <<_ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11556 #define $ac_func innocuous_$ac_func
11558 /* System header to define __stub macros and hopefully few prototypes,
11559 which can conflict with char $ac_func (); below.
11560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11561 <limits.h> exists even on freestanding compilers. */
11564 # include <limits.h>
11566 # include <assert.h>
11571 /* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined __stub_$ac_func || defined __stub___$ac_func
11588 return $ac_func ();
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_link") 2>conftest.er1
11602 grep -v '^ *+' conftest.er1 >conftest.err
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11608 { (case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_try") 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_try") 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 eval "$as_ac_var=yes"
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11632 eval "$as_ac_var=no"
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11638 ac_res=`eval echo '${'$as_ac_var'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11641 if test `eval echo '${'$as_ac_var'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11651 for ac_func in memmove strcmp
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11667 #define $ac_func innocuous_$ac_func
11669 /* System header to define __stub macros and hopefully few prototypes,
11670 which can conflict with char $ac_func (); below.
11671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672 <limits.h> exists even on freestanding compilers. */
11675 # include <limits.h>
11677 # include <assert.h>
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11689 /* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11699 return $ac_func ();
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 eval "$as_ac_var=yes"
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11743 eval "$as_ac_var=no"
11746 rm -f core conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11749 ac_res=`eval echo '${'$as_ac_var'}'`
11750 { echo "$as_me:$LINENO: result: $ac_res" >&5
11751 echo "${ECHO_T}$ac_res" >&6; }
11752 if test `eval echo '${'$as_ac_var'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11763 for ac_func in closedir opendir readdir
11765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779 #define $ac_func innocuous_$ac_func
11781 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11787 # include <limits.h>
11789 # include <assert.h>
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11801 /* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11811 return $ac_func ();
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_link") 2>conftest.er1
11825 grep -v '^ *+' conftest.er1 >conftest.err
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 eval "$as_ac_var=yes"
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 eval "$as_ac_var=no"
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11861 ac_res=`eval echo '${'$as_ac_var'}'`
11862 { echo "$as_me:$LINENO: result: $ac_res" >&5
11863 echo "${ECHO_T}$ac_res" >&6; }
11864 if test `eval echo '${'$as_ac_var'}'` = yes; then
11865 cat >>confdefs.h <<_ACEOF
11866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11874 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11875 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11888 if test "$GCC" != "yes" && test "$ICC" != "yes"
11890 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11891 echo "$as_me: error: gcc|icc required but not found" >&2;}
11892 { (exit 1); exit 1; }; }
11895 if test "$GXX" != "yes" && test "$IXX" != "yes"
11897 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11898 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11899 { (exit 1); exit 1; }; }
11902 if test "$GCC" = "yes"
11904 cat >conftest.$ac_ext <<_ACEOF
11905 #if !defined(__GNUC__) || __GNUC__ < 3
11906 #error Unsupported GCC version
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest.$ac_objext'
11935 { (case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_try") 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11950 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11951 { (exit 1); exit 1; }; }
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 if test -z "$llvm_cv_gnu_make_command"
11959 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11960 echo "$as_me: error: GNU Make required but not found" >&2;}
11961 { (exit 1); exit 1; }; }
11964 { echo "$as_me:$LINENO: result: ok" >&5
11965 echo "${ECHO_T}ok" >&6; }
11967 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11968 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11969 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11971 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11973 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11975 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11976 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
11980 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11981 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11982 if test "${ac_cv_lib_m_sin+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 ac_check_lib_save_LIBS=$LIBS
11987 cat >conftest.$ac_ext <<_ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11994 /* Override any GCC internal prototype to avoid an error.
11995 Use char because int might match the return type of a GCC
11996 builtin and then its argument prototype would still apply. */
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (ac_try="$ac_link"
12011 case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_link") 2>conftest.er1
12018 grep -v '^ *+' conftest.er1 >conftest.err
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12024 { (case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_try") 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest$ac_exeext'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_lib_m_sin=yes
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12051 rm -f core conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12053 LIBS=$ac_check_lib_save_LIBS
12055 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12056 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12057 if test $ac_cv_lib_m_sin = yes; then
12058 cat >>confdefs.h <<_ACEOF
12059 #define HAVE_LIBM 1
12066 if test "$llvm_cv_os_type" = "MingW" ; then
12068 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12069 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12070 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12073 ac_check_lib_save_LIBS=$LIBS
12074 LIBS="-limagehlp $LIBS"
12075 cat >conftest.$ac_ext <<_ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_link") 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12115 { ac_try='test -s conftest$ac_exeext'
12116 { (case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_try") 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 ac_cv_lib_imagehlp_main=yes
12127 echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12130 ac_cv_lib_imagehlp_main=no
12133 rm -f core conftest.err conftest.$ac_objext \
12134 conftest$ac_exeext conftest.$ac_ext
12135 LIBS=$ac_check_lib_save_LIBS
12137 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12138 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12139 if test $ac_cv_lib_imagehlp_main = yes; then
12140 cat >>confdefs.h <<_ACEOF
12141 #define HAVE_LIBIMAGEHLP 1
12144 LIBS="-limagehlp $LIBS"
12149 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12150 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_psapi_main+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-lpsapi $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_link") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187 { (case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_try") 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest$ac_exeext'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_cv_lib_psapi_main=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 ac_cv_lib_psapi_main=no
12214 rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12216 LIBS=$ac_check_lib_save_LIBS
12218 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12219 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12220 if test $ac_cv_lib_psapi_main = yes; then
12221 cat >>confdefs.h <<_ACEOF
12222 #define HAVE_LIBPSAPI 1
12225 LIBS="-lpsapi $LIBS"
12231 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12232 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12233 if test "${ac_cv_search_dlopen+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 ac_func_search_save_LIBS=$LIBS
12237 cat >conftest.$ac_ext <<_ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12244 /* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
12259 for ac_lib in '' dl; do
12260 if test -z "$ac_lib"; then
12261 ac_res="none required"
12264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12275 grep -v '^ *+' conftest.er1 >conftest.err
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281 { (case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_try") 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest$ac_exeext'
12291 { (case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_try") 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_cv_search_dlopen=$ac_res
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12308 rm -f core conftest.err conftest.$ac_objext \
12310 if test "${ac_cv_search_dlopen+set}" = set; then
12314 if test "${ac_cv_search_dlopen+set}" = set; then
12317 ac_cv_search_dlopen=no
12319 rm conftest.$ac_ext
12320 LIBS=$ac_func_search_save_LIBS
12322 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12323 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12324 ac_res=$ac_cv_search_dlopen
12325 if test "$ac_res" != no; then
12326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12328 cat >>confdefs.h <<\_ACEOF
12329 #define HAVE_DLOPEN 1
12333 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12334 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12338 if test "$llvm_cv_enable_libffi" = "yes" ; then
12339 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12340 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12341 if test "${ac_cv_search_ffi_call+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 ac_func_search_save_LIBS=$LIBS
12345 cat >conftest.$ac_ext <<_ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12352 /* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12362 return ffi_call ();
12367 for ac_lib in '' ffi; do
12368 if test -z "$ac_lib"; then
12369 ac_res="none required"
12372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_link") 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest$ac_exeext'
12399 { (case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_try") 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 ac_cv_search_ffi_call=$ac_res
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12416 rm -f core conftest.err conftest.$ac_objext \
12418 if test "${ac_cv_search_ffi_call+set}" = set; then
12422 if test "${ac_cv_search_ffi_call+set}" = set; then
12425 ac_cv_search_ffi_call=no
12427 rm conftest.$ac_ext
12428 LIBS=$ac_func_search_save_LIBS
12430 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12431 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12432 ac_res=$ac_cv_search_ffi_call
12433 if test "$ac_res" != no; then
12434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12436 cat >>confdefs.h <<\_ACEOF
12437 #define HAVE_FFI_CALL 1
12441 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12442 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12443 { (exit 1); exit 1; }; }
12448 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12449 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12450 if test "${ac_cv_search_mallinfo+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 ac_func_search_save_LIBS=$LIBS
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12461 /* Override any GCC internal prototype to avoid an error.
12462 Use char because int might match the return type of a GCC
12463 builtin and then its argument prototype would still apply. */
12471 return mallinfo ();
12476 for ac_lib in '' malloc; do
12477 if test -z "$ac_lib"; then
12478 ac_res="none required"
12481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (ac_try="$ac_link"
12485 case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_link") 2>conftest.er1
12492 grep -v '^ *+' conftest.er1 >conftest.err
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest$ac_exeext'
12508 { (case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_try") 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 ac_cv_search_mallinfo=$ac_res
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12525 rm -f core conftest.err conftest.$ac_objext \
12527 if test "${ac_cv_search_mallinfo+set}" = set; then
12531 if test "${ac_cv_search_mallinfo+set}" = set; then
12534 ac_cv_search_mallinfo=no
12536 rm conftest.$ac_ext
12537 LIBS=$ac_func_search_save_LIBS
12539 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12540 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12541 ac_res=$ac_cv_search_mallinfo
12542 if test "$ac_res" != no; then
12543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12545 cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_MALLINFO 1
12552 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12554 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12555 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12556 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 ac_check_lib_save_LIBS=$LIBS
12560 LIBS="-lpthread $LIBS"
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12568 /* Override any GCC internal prototype to avoid an error.
12569 Use char because int might match the return type of a GCC
12570 builtin and then its argument prototype would still apply. */
12574 char pthread_mutex_init ();
12578 return pthread_mutex_init ();
12583 rm -f conftest.$ac_objext conftest$ac_exeext
12584 if { (ac_try="$ac_link"
12585 case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_link") 2>conftest.er1
12592 grep -v '^ *+' conftest.er1 >conftest.err
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } &&
12597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12598 { (case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_try") 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } &&
12607 { ac_try='test -s conftest$ac_exeext'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 ac_cv_lib_pthread_pthread_mutex_init=yes
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12622 ac_cv_lib_pthread_pthread_mutex_init=no
12625 rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12629 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12630 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12631 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12632 cat >>confdefs.h <<_ACEOF
12633 #define HAVE_LIBPTHREAD 1
12636 LIBS="-lpthread $LIBS"
12640 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12641 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12642 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 ac_func_search_save_LIBS=$LIBS
12646 cat >conftest.$ac_ext <<_ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12653 /* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply. */
12659 char pthread_mutex_lock ();
12663 return pthread_mutex_lock ();
12668 for ac_lib in '' pthread; do
12669 if test -z "$ac_lib"; then
12670 ac_res="none required"
12673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12675 rm -f conftest.$ac_objext conftest$ac_exeext
12676 if { (ac_try="$ac_link"
12677 case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_link") 2>conftest.er1
12684 grep -v '^ *+' conftest.er1 >conftest.err
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest$ac_exeext'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_cv_search_pthread_mutex_lock=$ac_res
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12717 rm -f core conftest.err conftest.$ac_objext \
12719 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12723 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12726 ac_cv_search_pthread_mutex_lock=no
12728 rm conftest.$ac_ext
12729 LIBS=$ac_func_search_save_LIBS
12731 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12732 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12733 ac_res=$ac_cv_search_pthread_mutex_lock
12734 if test "$ac_res" != no; then
12735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12737 cat >>confdefs.h <<\_ACEOF
12738 #define HAVE_PTHREAD_MUTEX_LOCK 1
12743 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12744 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12745 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 ac_func_search_save_LIBS=$LIBS
12749 cat >conftest.$ac_ext <<_ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12762 char pthread_rwlock_init ();
12766 return pthread_rwlock_init ();
12771 for ac_lib in '' pthread; do
12772 if test -z "$ac_lib"; then
12773 ac_res="none required"
12776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_cv_search_pthread_rwlock_init=$ac_res
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12820 rm -f core conftest.err conftest.$ac_objext \
12822 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12826 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12829 ac_cv_search_pthread_rwlock_init=no
12831 rm conftest.$ac_ext
12832 LIBS=$ac_func_search_save_LIBS
12834 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12835 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12836 ac_res=$ac_cv_search_pthread_rwlock_init
12837 if test "$ac_res" != no; then
12838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12840 cat >>confdefs.h <<\_ACEOF
12841 #define HAVE_PTHREAD_RWLOCK_INIT 1
12846 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12847 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12848 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 ac_func_search_save_LIBS=$LIBS
12852 cat >conftest.$ac_ext <<_ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12865 char pthread_getspecific ();
12869 return pthread_getspecific ();
12874 for ac_lib in '' pthread; do
12875 if test -z "$ac_lib"; then
12876 ac_res="none required"
12879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (ac_try="$ac_link"
12883 case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_link") 2>conftest.er1
12890 grep -v '^ *+' conftest.er1 >conftest.err
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest$ac_exeext'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_cv_search_pthread_getspecific=$ac_res
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12923 rm -f core conftest.err conftest.$ac_objext \
12925 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12929 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12932 ac_cv_search_pthread_getspecific=no
12934 rm conftest.$ac_ext
12935 LIBS=$ac_func_search_save_LIBS
12937 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12938 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12939 ac_res=$ac_cv_search_pthread_getspecific
12940 if test "$ac_res" != no; then
12941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_PTHREAD_GETSPECIFIC 1
12952 # Check whether --with-udis86 was given.
12953 if test "${with_udis86+set}" = set; then
12954 withval=$with_udis86;
12959 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12962 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12963 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12964 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-ludis86 $LIBS"
12969 cat >conftest.$ac_ext <<_ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12976 /* Override any GCC internal prototype to avoid an error.
12977 Use char because int might match the return type of a GCC
12978 builtin and then its argument prototype would still apply. */
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_link") 2>conftest.er1
13000 grep -v '^ *+' conftest.er1 >conftest.err
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006 { (case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_try") 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; } &&
13015 { ac_try='test -s conftest$ac_exeext'
13016 { (case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_try") 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 ac_cv_lib_udis86_ud_init=yes
13027 echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13030 ac_cv_lib_udis86_ud_init=no
13033 rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
13035 LIBS=$ac_check_lib_save_LIBS
13037 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13038 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13039 if test $ac_cv_lib_udis86_ud_init = yes; then
13040 cat >>confdefs.h <<_ACEOF
13041 #define HAVE_LIBUDIS86 1
13044 LIBS="-ludis86 $LIBS"
13048 echo "Error! You need to have libudis86 around."
13060 cat >>confdefs.h <<_ACEOF
13061 #define USE_UDIS86 $USE_UDIS86
13066 # Check whether --with-oprofile was given.
13067 if test "${with_oprofile+set}" = set; then
13068 withval=$with_oprofile;
13072 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13073 no) llvm_cv_oppath=
13076 *) llvm_cv_oppath="${withval}/lib/oprofile"
13077 BUILD_FLAGS="-I${withval}/include";;
13079 case $llvm_cv_os_type in
13081 if test -n "$llvm_cv_oppath" ; then
13082 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13083 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13084 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13085 if test "${ac_cv_search_bfd_init+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 ac_func_search_save_LIBS=$LIBS
13089 cat >conftest.$ac_ext <<_ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13096 /* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
13106 return bfd_init ();
13111 for ac_lib in '' bfd; do
13112 if test -z "$ac_lib"; then
13113 ac_res="none required"
13116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13118 rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (ac_try="$ac_link"
13120 case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_link") 2>conftest.er1
13127 grep -v '^ *+' conftest.er1 >conftest.err
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
13132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13133 { (case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_try") 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_search_bfd_init=$ac_res
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13160 rm -f core conftest.err conftest.$ac_objext \
13162 if test "${ac_cv_search_bfd_init+set}" = set; then
13166 if test "${ac_cv_search_bfd_init+set}" = set; then
13169 ac_cv_search_bfd_init=no
13171 rm conftest.$ac_ext
13172 LIBS=$ac_func_search_save_LIBS
13174 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13175 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13176 ac_res=$ac_cv_search_bfd_init
13177 if test "$ac_res" != no; then
13178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13182 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13183 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13184 if test "${ac_cv_search_op_open_agent+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 ac_func_search_save_LIBS=$LIBS
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13201 char op_open_agent ();
13205 return op_open_agent ();
13210 for ac_lib in '' opagent; do
13211 if test -z "$ac_lib"; then
13212 ac_res="none required"
13215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13226 grep -v '^ *+' conftest.er1 >conftest.err
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest$ac_exeext'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 ac_cv_search_op_open_agent=$ac_res
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13259 rm -f core conftest.err conftest.$ac_objext \
13261 if test "${ac_cv_search_op_open_agent+set}" = set; then
13265 if test "${ac_cv_search_op_open_agent+set}" = set; then
13268 ac_cv_search_op_open_agent=no
13270 rm conftest.$ac_ext
13271 LIBS=$ac_func_search_save_LIBS
13273 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13274 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13275 ac_res=$ac_cv_search_op_open_agent
13276 if test "$ac_res" != no; then
13277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13281 echo "Error! You need to have libopagent around."
13286 if test "${ac_cv_header_opagent_h+set}" = set; then
13287 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13288 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13289 if test "${ac_cv_header_opagent_h+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13293 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13295 # Is the header compilable?
13296 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13297 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13298 cat >conftest.$ac_ext <<_ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 $ac_includes_default
13305 #include <opagent.h>
13307 rm -f conftest.$ac_objext
13308 if { (ac_try="$ac_compile"
13309 case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_compile") 2>conftest.er1
13316 grep -v '^ *+' conftest.er1 >conftest.err
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13322 { (case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_try") 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; }; then
13341 ac_header_compiler=yes
13343 echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13346 ac_header_compiler=no
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13351 echo "${ECHO_T}$ac_header_compiler" >&6; }
13353 # Is the header present?
13354 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13355 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include <opagent.h>
13364 if { (ac_try="$ac_cpp conftest.$ac_ext"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } >/dev/null; then
13377 if test -s conftest.err; then
13378 ac_cpp_err=$ac_c_preproc_warn_flag
13379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13386 if test -z "$ac_cpp_err"; then
13387 ac_header_preproc=yes
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_header_preproc=no
13395 rm -f conftest.err conftest.$ac_ext
13396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13397 echo "${ECHO_T}$ac_header_preproc" >&6; }
13399 # So? What about this header?
13400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13402 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13403 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13405 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13406 ac_header_preproc=yes
13409 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13410 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13412 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13414 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13416 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13418 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13420 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13422 ## ------------------------------------ ##
13423 ## Report this to http://llvm.org/bugs/ ##
13424 ## ------------------------------------ ##
13426 ) | sed "s/^/$as_me: WARNING: /" >&2
13429 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13430 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13431 if test "${ac_cv_header_opagent_h+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 ac_cv_header_opagent_h=$ac_header_preproc
13436 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13437 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13440 if test $ac_cv_header_opagent_h = yes; then
13444 echo "Error! You need to have opagent.h around."
13452 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13453 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13454 { (exit 1); exit 1; }; } ;;
13465 cat >>confdefs.h <<_ACEOF
13466 #define LLVM_USE_OPROFILE $USE_OPROFILE
13471 # Check whether --with-intel-jitevents was given.
13472 if test "${with_intel_jitevents+set}" = set; then
13473 withval=$with_intel_jitevents;
13474 case $llvm_cv_os_type in
13475 Linux|Win32|Cygwin|MingW) ;;
13477 { { echo "$as_me:$LINENO: error:
13478 Intel JIT API support is available on Linux and Windows only.\"" >&5
13479 echo "$as_me: error:
13480 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13481 { (exit 1); exit 1; }; } ;;
13484 USE_INTEL_JITEVENTS=1
13486 case "$llvm_cv_target_arch" in
13487 x86) llvm_intel_jitevents_archdir="lib32";;
13488 x86_64) llvm_intel_jitevents_archdir="lib64";;
13489 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13492 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13493 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13495 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13496 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13503 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13504 BUILD_FLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13506 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13507 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13508 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 ac_func_search_save_LIBS=$LIBS
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13525 char iJIT_IsProfilingActive ();
13529 return iJIT_IsProfilingActive ();
13534 for ac_lib in '' jitprofiling; do
13535 if test -z "$ac_lib"; then
13536 ac_res="none required"
13539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (ac_try="$ac_link"
13543 case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_link") 2>conftest.er1
13550 grep -v '^ *+' conftest.er1 >conftest.err
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13556 { (case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_try") 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; } &&
13565 { ac_try='test -s conftest$ac_exeext'
13566 { (case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_try") 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13577 echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13583 rm -f core conftest.err conftest.$ac_objext \
13585 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13589 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13592 ac_cv_search_iJIT_IsProfilingActive=no
13594 rm conftest.$ac_ext
13595 LIBS=$ac_func_search_save_LIBS
13597 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13598 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13599 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13600 if test "$ac_res" != no; then
13601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13605 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13610 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13611 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13612 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13613 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13617 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13619 # Is the header compilable?
13620 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13621 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13622 cat >conftest.$ac_ext <<_ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13628 $ac_includes_default
13629 #include <jitprofiling.h>
13631 rm -f conftest.$ac_objext
13632 if { (ac_try="$ac_compile"
13633 case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_compile") 2>conftest.er1
13640 grep -v '^ *+' conftest.er1 >conftest.err
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } &&
13645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13646 { (case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_try") 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest.$ac_objext'
13656 { (case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_try") 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_header_compiler=yes
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ac_header_compiler=no
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13675 echo "${ECHO_T}$ac_header_compiler" >&6; }
13677 # Is the header present?
13678 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13679 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13680 cat >conftest.$ac_ext <<_ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 #include <jitprofiling.h>
13688 if { (ac_try="$ac_cpp conftest.$ac_ext"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } >/dev/null; then
13701 if test -s conftest.err; then
13702 ac_cpp_err=$ac_c_preproc_warn_flag
13703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13710 if test -z "$ac_cpp_err"; then
13711 ac_header_preproc=yes
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_header_preproc=no
13719 rm -f conftest.err conftest.$ac_ext
13720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13721 echo "${ECHO_T}$ac_header_preproc" >&6; }
13723 # So? What about this header?
13724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13726 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13727 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13729 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13730 ac_header_preproc=yes
13733 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13734 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13736 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13737 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13738 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13739 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13740 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13741 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13742 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13743 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13744 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13746 ## ------------------------------------ ##
13747 ## Report this to http://llvm.org/bugs/ ##
13748 ## ------------------------------------ ##
13750 ) | sed "s/^/$as_me: WARNING: /" >&2
13753 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13754 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13755 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 ac_cv_header_jitprofiling_h=$ac_header_preproc
13760 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13761 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13764 if test $ac_cv_header_jitprofiling_h = yes; then
13768 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13778 USE_INTEL_JITEVENTS=0
13784 cat >>confdefs.h <<_ACEOF
13785 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13797 ac_header_dirent=no
13798 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13799 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13800 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13801 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 cat >conftest.$ac_ext <<_ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13811 #include <sys/types.h>
13823 rm -f conftest.$ac_objext
13824 if { (ac_try="$ac_compile"
13825 case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_compile") 2>conftest.er1
13832 grep -v '^ *+' conftest.er1 >conftest.err
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13838 { (case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_try") 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_try") 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 eval "$as_ac_Header=yes"
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 eval "$as_ac_Header=no"
13865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13867 ac_res=`eval echo '${'$as_ac_Header'}'`
13868 { echo "$as_me:$LINENO: result: $ac_res" >&5
13869 echo "${ECHO_T}$ac_res" >&6; }
13870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13871 cat >>confdefs.h <<_ACEOF
13872 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13875 ac_header_dirent=$ac_hdr; break
13879 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13880 if test $ac_header_dirent = dirent.h; then
13881 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13882 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13883 if test "${ac_cv_search_opendir+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 ac_func_search_save_LIBS=$LIBS
13887 cat >conftest.$ac_ext <<_ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13894 /* Override any GCC internal prototype to avoid an error.
13895 Use char because int might match the return type of a GCC
13896 builtin and then its argument prototype would still apply. */
13909 for ac_lib in '' dir; do
13910 if test -z "$ac_lib"; then
13911 ac_res="none required"
13914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13916 rm -f conftest.$ac_objext conftest$ac_exeext
13917 if { (ac_try="$ac_link"
13918 case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_link") 2>conftest.er1
13925 grep -v '^ *+' conftest.er1 >conftest.err
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } &&
13930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13931 { (case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_try") 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest$ac_exeext'
13941 { (case "(($ac_try" in
13942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13943 *) ac_try_echo=$ac_try;;
13945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13946 (eval "$ac_try") 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 ac_cv_search_opendir=$ac_res
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13958 rm -f core conftest.err conftest.$ac_objext \
13960 if test "${ac_cv_search_opendir+set}" = set; then
13964 if test "${ac_cv_search_opendir+set}" = set; then
13967 ac_cv_search_opendir=no
13969 rm conftest.$ac_ext
13970 LIBS=$ac_func_search_save_LIBS
13972 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13973 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13974 ac_res=$ac_cv_search_opendir
13975 if test "$ac_res" != no; then
13976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13982 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13983 if test "${ac_cv_search_opendir+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 ac_func_search_save_LIBS=$LIBS
13987 cat >conftest.$ac_ext <<_ACEOF
13990 cat confdefs.h >>conftest.$ac_ext
13991 cat >>conftest.$ac_ext <<_ACEOF
13992 /* end confdefs.h. */
13994 /* Override any GCC internal prototype to avoid an error.
13995 Use char because int might match the return type of a GCC
13996 builtin and then its argument prototype would still apply. */
14009 for ac_lib in '' x; do
14010 if test -z "$ac_lib"; then
14011 ac_res="none required"
14014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14016 rm -f conftest.$ac_objext conftest$ac_exeext
14017 if { (ac_try="$ac_link"
14018 case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_link") 2>conftest.er1
14025 grep -v '^ *+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14031 { (case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_try") 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; } &&
14040 { ac_try='test -s conftest$ac_exeext'
14041 { (case "(($ac_try" in
14042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_try") 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 ac_cv_search_opendir=$ac_res
14052 echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14058 rm -f core conftest.err conftest.$ac_objext \
14060 if test "${ac_cv_search_opendir+set}" = set; then
14064 if test "${ac_cv_search_opendir+set}" = set; then
14067 ac_cv_search_opendir=no
14069 rm conftest.$ac_ext
14070 LIBS=$ac_func_search_save_LIBS
14072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14074 ac_res=$ac_cv_search_opendir
14075 if test "$ac_res" != no; then
14076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14082 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14083 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14084 if test "${ac_cv_header_mmap_anon+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 ac_cpp='$CPP $CPPFLAGS'
14089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14093 cat >conftest.$ac_ext <<_ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14099 #include <sys/mman.h>
14100 #include <unistd.h>
14105 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14110 rm -f conftest.$ac_objext
14111 if { (ac_try="$ac_compile"
14112 case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_compile") 2>conftest.er1
14119 grep -v '^ *+' conftest.er1 >conftest.err
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest.$ac_objext'
14135 { (case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_try") 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 ac_cv_header_mmap_anon=yes
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14149 ac_cv_header_mmap_anon=no
14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154 ac_cpp='$CPP $CPPFLAGS'
14155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14161 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14162 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14163 if test "$ac_cv_header_mmap_anon" = yes; then
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_MMAP_ANONYMOUS 1
14171 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14172 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14173 if test "${ac_cv_header_stat_broken+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 cat >conftest.$ac_ext <<_ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 #include <sys/types.h>
14183 #include <sys/stat.h>
14185 #if defined S_ISBLK && defined S_IFDIR
14186 # if S_ISBLK (S_IFDIR)
14191 #if defined S_ISBLK && defined S_IFCHR
14192 # if S_ISBLK (S_IFCHR)
14197 #if defined S_ISLNK && defined S_IFREG
14198 # if S_ISLNK (S_IFREG)
14203 #if defined S_ISSOCK && defined S_IFREG
14204 # if S_ISSOCK (S_IFREG)
14210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14211 $EGREP "You lose" >/dev/null 2>&1; then
14212 ac_cv_header_stat_broken=yes
14214 ac_cv_header_stat_broken=no
14219 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14220 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14221 if test $ac_cv_header_stat_broken = yes; then
14223 cat >>confdefs.h <<\_ACEOF
14224 #define STAT_MACROS_BROKEN 1
14229 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14230 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14231 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 cat >conftest.$ac_ext <<_ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14240 #include <sys/types.h>
14241 #include <sys/wait.h>
14242 #ifndef WEXITSTATUS
14243 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14246 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14254 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14259 rm -f conftest.$ac_objext
14260 if { (ac_try="$ac_compile"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_compile") 2>conftest.er1
14268 grep -v '^ *+' conftest.er1 >conftest.err
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_header_sys_wait_h=yes
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_cv_header_sys_wait_h=no
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14304 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14305 if test $ac_cv_header_sys_wait_h = yes; then
14307 cat >>confdefs.h <<\_ACEOF
14308 #define HAVE_SYS_WAIT_H 1
14313 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14314 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14315 if test "${ac_cv_header_time+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 cat >conftest.$ac_ext <<_ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 #include <sys/types.h>
14325 #include <sys/time.h>
14331 if ((struct tm *) 0)
14337 rm -f conftest.$ac_objext
14338 if { (ac_try="$ac_compile"
14339 case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_compile") 2>conftest.er1
14346 grep -v '^ *+' conftest.er1 >conftest.err
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest.$ac_objext'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_cv_header_time=yes
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_cv_header_time=no
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14381 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14382 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14383 if test $ac_cv_header_time = yes; then
14385 cat >>confdefs.h <<\_ACEOF
14386 #define TIME_WITH_SYS_TIME 1
14398 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 ac_res=`eval echo '${'$as_ac_Header'}'`
14408 { echo "$as_me:$LINENO: result: $ac_res" >&5
14409 echo "${ECHO_T}$ac_res" >&6; }
14411 # Is the header compilable?
14412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14414 cat >conftest.$ac_ext <<_ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14420 $ac_includes_default
14421 #include <$ac_header>
14423 rm -f conftest.$ac_objext
14424 if { (ac_try="$ac_compile"
14425 case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_compile") 2>conftest.er1
14432 grep -v '^ *+' conftest.er1 >conftest.err
14434 cat conftest.err >&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
14437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14438 { (case "(($ac_try" in
14439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443 (eval "$ac_try") 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; } &&
14447 { ac_try='test -s conftest.$ac_objext'
14448 { (case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_try") 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; }; then
14457 ac_header_compiler=yes
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 ac_header_compiler=no
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467 echo "${ECHO_T}$ac_header_compiler" >&6; }
14469 # Is the header present?
14470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #include <$ac_header>
14480 if { (ac_try="$ac_cpp conftest.$ac_ext"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14488 grep -v '^ *+' conftest.er1 >conftest.err
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } >/dev/null; then
14493 if test -s conftest.err; then
14494 ac_cpp_err=$ac_c_preproc_warn_flag
14495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14502 if test -z "$ac_cpp_err"; then
14503 ac_header_preproc=yes
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14508 ac_header_preproc=no
14511 rm -f conftest.err conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14513 echo "${ECHO_T}$ac_header_preproc" >&6; }
14515 # So? What about this header?
14516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14522 ac_header_preproc=yes
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14538 ## ------------------------------------ ##
14539 ## Report this to http://llvm.org/bugs/ ##
14540 ## ------------------------------------ ##
14542 ) | sed "s/^/$as_me: WARNING: /" >&2
14545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 eval "$as_ac_Header=\$ac_header_preproc"
14552 ac_res=`eval echo '${'$as_ac_Header'}'`
14553 { echo "$as_me:$LINENO: result: $ac_res" >&5
14554 echo "${ECHO_T}$ac_res" >&6; }
14557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14558 cat >>confdefs.h <<_ACEOF
14559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14572 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 ac_res=`eval echo '${'$as_ac_Header'}'`
14582 { echo "$as_me:$LINENO: result: $ac_res" >&5
14583 echo "${ECHO_T}$ac_res" >&6; }
14585 # Is the header compilable?
14586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14588 cat >conftest.$ac_ext <<_ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 $ac_includes_default
14595 #include <$ac_header>
14597 rm -f conftest.$ac_objext
14598 if { (ac_try="$ac_compile"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_compile") 2>conftest.er1
14606 grep -v '^ *+' conftest.er1 >conftest.err
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
14611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14612 { (case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_try") 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest.$ac_objext'
14622 { (case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_try") 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ac_header_compiler=yes
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14636 ac_header_compiler=no
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14641 echo "${ECHO_T}$ac_header_compiler" >&6; }
14643 # Is the header present?
14644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 #include <$ac_header>
14654 if { (ac_try="$ac_cpp conftest.$ac_ext"
14655 case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14662 grep -v '^ *+' conftest.er1 >conftest.err
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } >/dev/null; then
14667 if test -s conftest.err; then
14668 ac_cpp_err=$ac_c_preproc_warn_flag
14669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14676 if test -z "$ac_cpp_err"; then
14677 ac_header_preproc=yes
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_header_preproc=no
14685 rm -f conftest.err conftest.$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14687 echo "${ECHO_T}$ac_header_preproc" >&6; }
14689 # So? What about this header?
14690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14696 ac_header_preproc=yes
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14712 ## ------------------------------------ ##
14713 ## Report this to http://llvm.org/bugs/ ##
14714 ## ------------------------------------ ##
14716 ) | sed "s/^/$as_me: WARNING: /" >&2
14719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 eval "$as_ac_Header=\$ac_header_preproc"
14726 ac_res=`eval echo '${'$as_ac_Header'}'`
14727 { echo "$as_me:$LINENO: result: $ac_res" >&5
14728 echo "${ECHO_T}$ac_res" >&6; }
14731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14742 for ac_header in utime.h windows.h
14744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 ac_res=`eval echo '${'$as_ac_Header'}'`
14752 { echo "$as_me:$LINENO: result: $ac_res" >&5
14753 echo "${ECHO_T}$ac_res" >&6; }
14755 # Is the header compilable?
14756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14758 cat >conftest.$ac_ext <<_ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 $ac_includes_default
14765 #include <$ac_header>
14767 rm -f conftest.$ac_objext
14768 if { (ac_try="$ac_compile"
14769 case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_compile") 2>conftest.er1
14776 grep -v '^ *+' conftest.er1 >conftest.err
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } &&
14781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14782 { (case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_try") 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_try") 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14801 ac_header_compiler=yes
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 ac_header_compiler=no
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14811 echo "${ECHO_T}$ac_header_compiler" >&6; }
14813 # Is the header present?
14814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14816 cat >conftest.$ac_ext <<_ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 #include <$ac_header>
14824 if { (ac_try="$ac_cpp conftest.$ac_ext"
14825 case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14832 grep -v '^ *+' conftest.er1 >conftest.err
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } >/dev/null; then
14837 if test -s conftest.err; then
14838 ac_cpp_err=$ac_c_preproc_warn_flag
14839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14846 if test -z "$ac_cpp_err"; then
14847 ac_header_preproc=yes
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 ac_header_preproc=no
14855 rm -f conftest.err conftest.$ac_ext
14856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14857 echo "${ECHO_T}$ac_header_preproc" >&6; }
14859 # So? What about this header?
14860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14866 ac_header_preproc=yes
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14882 ## ------------------------------------ ##
14883 ## Report this to http://llvm.org/bugs/ ##
14884 ## ------------------------------------ ##
14886 ) | sed "s/^/$as_me: WARNING: /" >&2
14889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 eval "$as_ac_Header=\$ac_header_preproc"
14896 ac_res=`eval echo '${'$as_ac_Header'}'`
14897 { echo "$as_me:$LINENO: result: $ac_res" >&5
14898 echo "${ECHO_T}$ac_res" >&6; }
14901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14902 cat >>confdefs.h <<_ACEOF
14903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14915 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 ac_res=`eval echo '${'$as_ac_Header'}'`
14925 { echo "$as_me:$LINENO: result: $ac_res" >&5
14926 echo "${ECHO_T}$ac_res" >&6; }
14928 # Is the header compilable?
14929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 $ac_includes_default
14938 #include <$ac_header>
14940 rm -f conftest.$ac_objext
14941 if { (ac_try="$ac_compile"
14942 case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_compile") 2>conftest.er1
14949 grep -v '^ *+' conftest.er1 >conftest.err
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
14954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14955 { (case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_try") 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try='test -s conftest.$ac_objext'
14965 { (case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970 (eval "$ac_try") 2>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
14974 ac_header_compiler=yes
14976 echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14979 ac_header_compiler=no
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14984 echo "${ECHO_T}$ac_header_compiler" >&6; }
14986 # Is the header present?
14987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14989 cat >conftest.$ac_ext <<_ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14995 #include <$ac_header>
14997 if { (ac_try="$ac_cpp conftest.$ac_ext"
14998 case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15005 grep -v '^ *+' conftest.er1 >conftest.err
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } >/dev/null; then
15010 if test -s conftest.err; then
15011 ac_cpp_err=$ac_c_preproc_warn_flag
15012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15019 if test -z "$ac_cpp_err"; then
15020 ac_header_preproc=yes
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15025 ac_header_preproc=no
15028 rm -f conftest.err conftest.$ac_ext
15029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15030 echo "${ECHO_T}$ac_header_preproc" >&6; }
15032 # So? What about this header?
15033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15039 ac_header_preproc=yes
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15055 ## ------------------------------------ ##
15056 ## Report this to http://llvm.org/bugs/ ##
15057 ## ------------------------------------ ##
15059 ) | sed "s/^/$as_me: WARNING: /" >&2
15062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 eval "$as_ac_Header=\$ac_header_preproc"
15069 ac_res=`eval echo '${'$as_ac_Header'}'`
15070 { echo "$as_me:$LINENO: result: $ac_res" >&5
15071 echo "${ECHO_T}$ac_res" >&6; }
15074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15075 cat >>confdefs.h <<_ACEOF
15076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15087 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 ac_res=`eval echo '${'$as_ac_Header'}'`
15097 { echo "$as_me:$LINENO: result: $ac_res" >&5
15098 echo "${ECHO_T}$ac_res" >&6; }
15100 # Is the header compilable?
15101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15103 cat >conftest.$ac_ext <<_ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 $ac_includes_default
15110 #include <$ac_header>
15112 rm -f conftest.$ac_objext
15113 if { (ac_try="$ac_compile"
15114 case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_compile") 2>conftest.er1
15121 grep -v '^ *+' conftest.er1 >conftest.err
15123 cat conftest.err >&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } &&
15126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15127 { (case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_try") 2>&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; } &&
15136 { ac_try='test -s conftest.$ac_objext'
15137 { (case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142 (eval "$ac_try") 2>&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; }; then
15146 ac_header_compiler=yes
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ac_header_compiler=no
15154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15156 echo "${ECHO_T}$ac_header_compiler" >&6; }
15158 # Is the header present?
15159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15161 cat >conftest.$ac_ext <<_ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15167 #include <$ac_header>
15169 if { (ac_try="$ac_cpp conftest.$ac_ext"
15170 case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15177 grep -v '^ *+' conftest.er1 >conftest.err
15179 cat conftest.err >&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } >/dev/null; then
15182 if test -s conftest.err; then
15183 ac_cpp_err=$ac_c_preproc_warn_flag
15184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15191 if test -z "$ac_cpp_err"; then
15192 ac_header_preproc=yes
15194 echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15197 ac_header_preproc=no
15200 rm -f conftest.err conftest.$ac_ext
15201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15202 echo "${ECHO_T}$ac_header_preproc" >&6; }
15204 # So? What about this header?
15205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15211 ac_header_preproc=yes
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15227 ## ------------------------------------ ##
15228 ## Report this to http://llvm.org/bugs/ ##
15229 ## ------------------------------------ ##
15231 ) | sed "s/^/$as_me: WARNING: /" >&2
15234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 eval "$as_ac_Header=\$ac_header_preproc"
15241 ac_res=`eval echo '${'$as_ac_Header'}'`
15242 { echo "$as_me:$LINENO: result: $ac_res" >&5
15243 echo "${ECHO_T}$ac_res" >&6; }
15246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15247 cat >>confdefs.h <<_ACEOF
15248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15256 for ac_header in valgrind/valgrind.h
15258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 ac_res=`eval echo '${'$as_ac_Header'}'`
15266 { echo "$as_me:$LINENO: result: $ac_res" >&5
15267 echo "${ECHO_T}$ac_res" >&6; }
15269 # Is the header compilable?
15270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15272 cat >conftest.$ac_ext <<_ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15278 $ac_includes_default
15279 #include <$ac_header>
15281 rm -f conftest.$ac_objext
15282 if { (ac_try="$ac_compile"
15283 case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15288 (eval "$ac_compile") 2>conftest.er1
15290 grep -v '^ *+' conftest.er1 >conftest.err
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15296 { (case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_try") 2>&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; } &&
15305 { ac_try='test -s conftest.$ac_objext'
15306 { (case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_try") 2>&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
15315 ac_header_compiler=yes
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15320 ac_header_compiler=no
15323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15325 echo "${ECHO_T}$ac_header_compiler" >&6; }
15327 # Is the header present?
15328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15330 cat >conftest.$ac_ext <<_ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15336 #include <$ac_header>
15338 if { (ac_try="$ac_cpp conftest.$ac_ext"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15346 grep -v '^ *+' conftest.er1 >conftest.err
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } >/dev/null; then
15351 if test -s conftest.err; then
15352 ac_cpp_err=$ac_c_preproc_warn_flag
15353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15360 if test -z "$ac_cpp_err"; then
15361 ac_header_preproc=yes
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_header_preproc=no
15369 rm -f conftest.err conftest.$ac_ext
15370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15371 echo "${ECHO_T}$ac_header_preproc" >&6; }
15373 # So? What about this header?
15374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15380 ac_header_preproc=yes
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15396 ## ------------------------------------ ##
15397 ## Report this to http://llvm.org/bugs/ ##
15398 ## ------------------------------------ ##
15400 ) | sed "s/^/$as_me: WARNING: /" >&2
15403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 eval "$as_ac_Header=\$ac_header_preproc"
15410 ac_res=`eval echo '${'$as_ac_Header'}'`
15411 { echo "$as_me:$LINENO: result: $ac_res" >&5
15412 echo "${ECHO_T}$ac_res" >&6; }
15415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15416 cat >>confdefs.h <<_ACEOF
15417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15425 for ac_header in fenv.h
15427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 ac_res=`eval echo '${'$as_ac_Header'}'`
15435 { echo "$as_me:$LINENO: result: $ac_res" >&5
15436 echo "${ECHO_T}$ac_res" >&6; }
15438 # Is the header compilable?
15439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 $ac_includes_default
15448 #include <$ac_header>
15450 rm -f conftest.$ac_objext
15451 if { (ac_try="$ac_compile"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_compile") 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15465 { (case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_try") 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; } &&
15474 { ac_try='test -s conftest.$ac_objext'
15475 { (case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_try") 2>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; }; then
15484 ac_header_compiler=yes
15486 echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15489 ac_header_compiler=no
15492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15494 echo "${ECHO_T}$ac_header_compiler" >&6; }
15496 # Is the header present?
15497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15499 cat >conftest.$ac_ext <<_ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15505 #include <$ac_header>
15507 if { (ac_try="$ac_cpp conftest.$ac_ext"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15515 grep -v '^ *+' conftest.er1 >conftest.err
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } >/dev/null; then
15520 if test -s conftest.err; then
15521 ac_cpp_err=$ac_c_preproc_warn_flag
15522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15529 if test -z "$ac_cpp_err"; then
15530 ac_header_preproc=yes
15532 echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15535 ac_header_preproc=no
15538 rm -f conftest.err conftest.$ac_ext
15539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15540 echo "${ECHO_T}$ac_header_preproc" >&6; }
15542 # So? What about this header?
15543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15549 ac_header_preproc=yes
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15565 ## ------------------------------------ ##
15566 ## Report this to http://llvm.org/bugs/ ##
15567 ## ------------------------------------ ##
15569 ) | sed "s/^/$as_me: WARNING: /" >&2
15572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 eval "$as_ac_Header=\$ac_header_preproc"
15579 ac_res=`eval echo '${'$as_ac_Header'}'`
15580 { echo "$as_me:$LINENO: result: $ac_res" >&5
15581 echo "${ECHO_T}$ac_res" >&6; }
15584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15585 cat >>confdefs.h <<_ACEOF
15586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15593 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15595 for ac_header in pthread.h
15597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15604 ac_res=`eval echo '${'$as_ac_Header'}'`
15605 { echo "$as_me:$LINENO: result: $ac_res" >&5
15606 echo "${ECHO_T}$ac_res" >&6; }
15608 # Is the header compilable?
15609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15611 cat >conftest.$ac_ext <<_ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15617 $ac_includes_default
15618 #include <$ac_header>
15620 rm -f conftest.$ac_objext
15621 if { (ac_try="$ac_compile"
15622 case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_compile") 2>conftest.er1
15629 grep -v '^ *+' conftest.er1 >conftest.err
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try='test -s conftest.$ac_objext'
15645 { (case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_try") 2>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_header_compiler=yes
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 ac_header_compiler=no
15662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15664 echo "${ECHO_T}$ac_header_compiler" >&6; }
15666 # Is the header present?
15667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15669 cat >conftest.$ac_ext <<_ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15675 #include <$ac_header>
15677 if { (ac_try="$ac_cpp conftest.$ac_ext"
15678 case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15685 grep -v '^ *+' conftest.er1 >conftest.err
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } >/dev/null; then
15690 if test -s conftest.err; then
15691 ac_cpp_err=$ac_c_preproc_warn_flag
15692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15699 if test -z "$ac_cpp_err"; then
15700 ac_header_preproc=yes
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_header_preproc=no
15708 rm -f conftest.err conftest.$ac_ext
15709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15710 echo "${ECHO_T}$ac_header_preproc" >&6; }
15712 # So? What about this header?
15713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15719 ac_header_preproc=yes
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15729 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15735 ## ------------------------------------ ##
15736 ## Report this to http://llvm.org/bugs/ ##
15737 ## ------------------------------------ ##
15739 ) | sed "s/^/$as_me: WARNING: /" >&2
15742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 eval "$as_ac_Header=\$ac_header_preproc"
15749 ac_res=`eval echo '${'$as_ac_Header'}'`
15750 { echo "$as_me:$LINENO: result: $ac_res" >&5
15751 echo "${ECHO_T}$ac_res" >&6; }
15754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15755 cat >>confdefs.h <<_ACEOF
15756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15772 if test "$llvm_cv_enable_libffi" = "yes" ; then
15775 for ac_header in ffi.h ffi/ffi.h
15777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 ac_res=`eval echo '${'$as_ac_Header'}'`
15785 { echo "$as_me:$LINENO: result: $ac_res" >&5
15786 echo "${ECHO_T}$ac_res" >&6; }
15788 # Is the header compilable?
15789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 $ac_includes_default
15798 #include <$ac_header>
15800 rm -f conftest.$ac_objext
15801 if { (ac_try="$ac_compile"
15802 case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_compile") 2>conftest.er1
15809 grep -v '^ *+' conftest.er1 >conftest.err
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15815 { (case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_try") 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try='test -s conftest.$ac_objext'
15825 { (case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_try") 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 ac_header_compiler=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 ac_header_compiler=no
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15844 echo "${ECHO_T}$ac_header_compiler" >&6; }
15846 # Is the header present?
15847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15849 cat >conftest.$ac_ext <<_ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15855 #include <$ac_header>
15857 if { (ac_try="$ac_cpp conftest.$ac_ext"
15858 case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15865 grep -v '^ *+' conftest.er1 >conftest.err
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } >/dev/null; then
15870 if test -s conftest.err; then
15871 ac_cpp_err=$ac_c_preproc_warn_flag
15872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15879 if test -z "$ac_cpp_err"; then
15880 ac_header_preproc=yes
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15885 ac_header_preproc=no
15888 rm -f conftest.err conftest.$ac_ext
15889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15890 echo "${ECHO_T}$ac_header_preproc" >&6; }
15892 # So? What about this header?
15893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15899 ac_header_preproc=yes
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15915 ## ------------------------------------ ##
15916 ## Report this to http://llvm.org/bugs/ ##
15917 ## ------------------------------------ ##
15919 ) | sed "s/^/$as_me: WARNING: /" >&2
15922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 eval "$as_ac_Header=\$ac_header_preproc"
15929 ac_res=`eval echo '${'$as_ac_Header'}'`
15930 { echo "$as_me:$LINENO: result: $ac_res" >&5
15931 echo "${ECHO_T}$ac_res" >&6; }
15934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15935 cat >>confdefs.h <<_ACEOF
15936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15946 for ac_header in CrashReporterClient.h
15948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 ac_res=`eval echo '${'$as_ac_Header'}'`
15956 { echo "$as_me:$LINENO: result: $ac_res" >&5
15957 echo "${ECHO_T}$ac_res" >&6; }
15959 # Is the header compilable?
15960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 $ac_includes_default
15969 #include <$ac_header>
15971 rm -f conftest.$ac_objext
15972 if { (ac_try="$ac_compile"
15973 case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_compile") 2>conftest.er1
15980 grep -v '^ *+' conftest.er1 >conftest.err
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15986 { (case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_try") 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
15996 { (case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_try") 2>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_header_compiler=yes
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_header_compiler=no
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16015 echo "${ECHO_T}$ac_header_compiler" >&6; }
16017 # Is the header present?
16018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16020 cat >conftest.$ac_ext <<_ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16026 #include <$ac_header>
16028 if { (ac_try="$ac_cpp conftest.$ac_ext"
16029 case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16036 grep -v '^ *+' conftest.er1 >conftest.err
16038 cat conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } >/dev/null; then
16041 if test -s conftest.err; then
16042 ac_cpp_err=$ac_c_preproc_warn_flag
16043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16050 if test -z "$ac_cpp_err"; then
16051 ac_header_preproc=yes
16053 echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16056 ac_header_preproc=no
16059 rm -f conftest.err conftest.$ac_ext
16060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16061 echo "${ECHO_T}$ac_header_preproc" >&6; }
16063 # So? What about this header?
16064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16070 ac_header_preproc=yes
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16086 ## ------------------------------------ ##
16087 ## Report this to http://llvm.org/bugs/ ##
16088 ## ------------------------------------ ##
16090 ) | sed "s/^/$as_me: WARNING: /" >&2
16093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 eval "$as_ac_Header=\$ac_header_preproc"
16100 ac_res=`eval echo '${'$as_ac_Header'}'`
16101 { echo "$as_me:$LINENO: result: $ac_res" >&5
16102 echo "${ECHO_T}$ac_res" >&6; }
16105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16106 cat >>confdefs.h <<_ACEOF
16107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16115 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16116 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16117 cat >conftest.$ac_ext <<_ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 extern const char *__crashreporter_info__;
16125 __crashreporter_info__ = "test";
16130 rm -f conftest.$ac_objext conftest$ac_exeext
16131 if { (ac_try="$ac_link"
16132 case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_link") 2>conftest.er1
16139 grep -v '^ *+' conftest.er1 >conftest.err
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16145 { (case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_try") 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest$ac_exeext'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16164 { echo "$as_me:$LINENO: result: yes" >&5
16165 echo "${ECHO_T}yes" >&6; }
16167 cat >>confdefs.h <<\_ACEOF
16168 #define HAVE_CRASHREPORTER_INFO 1
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 { echo "$as_me:$LINENO: result: no" >&5
16176 echo "${ECHO_T}no" >&6; }
16178 cat >>confdefs.h <<\_ACEOF
16179 #define HAVE_CRASHREPORTER_INFO 0
16184 rm -f core conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16190 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16191 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16192 if test "${ac_cv_huge_val_sanity+set}" = set; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 ac_cpp='$CXXCPP $CPPFLAGS'
16198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16202 ac_save_CXXFLAGS=$CXXFLAGS
16203 CXXFLAGS="$CXXFLAGS -pedantic"
16204 if test "$cross_compiling" = yes; then
16205 ac_cv_huge_val_sanity=yes
16207 cat >conftest.$ac_ext <<_ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16217 double x = HUGE_VAL; return x != x;
16222 rm -f conftest$ac_exeext
16223 if { (ac_try="$ac_link"
16224 case "(($ac_try" in
16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226 *) ac_try_echo=$ac_try;;
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229 (eval "$ac_link") 2>&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16233 { (case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_try") 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16242 ac_cv_huge_val_sanity=yes
16244 echo "$as_me: program exited with status $ac_status" >&5
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16248 ( exit $ac_status )
16249 ac_cv_huge_val_sanity=no
16251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16255 CXXFLAGS=$ac_save_CXXFLAGS
16257 ac_cpp='$CPP $CPPFLAGS'
16258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16264 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16265 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16266 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16269 { echo "$as_me:$LINENO: checking for pid_t" >&5
16270 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16271 if test "${ac_cv_type_pid_t+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 cat >conftest.$ac_ext <<_ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16280 $ac_includes_default
16281 typedef pid_t ac__type_new_;
16285 if ((ac__type_new_ *) 0)
16287 if (sizeof (ac__type_new_))
16293 rm -f conftest.$ac_objext
16294 if { (ac_try="$ac_compile"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_compile") 2>conftest.er1
16302 grep -v '^ *+' conftest.er1 >conftest.err
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308 { (case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_try") 2>&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_cv_type_pid_t=yes
16329 echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 ac_cv_type_pid_t=no
16335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16337 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16338 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16339 if test $ac_cv_type_pid_t = yes; then
16343 cat >>confdefs.h <<_ACEOF
16349 { echo "$as_me:$LINENO: checking for size_t" >&5
16350 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16351 if test "${ac_cv_type_size_t+set}" = set; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 cat >conftest.$ac_ext <<_ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16360 $ac_includes_default
16361 typedef size_t ac__type_new_;
16365 if ((ac__type_new_ *) 0)
16367 if (sizeof (ac__type_new_))
16373 rm -f conftest.$ac_objext
16374 if { (ac_try="$ac_compile"
16375 case "(($ac_try" in
16376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377 *) ac_try_echo=$ac_try;;
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380 (eval "$ac_compile") 2>conftest.er1
16382 grep -v '^ *+' conftest.er1 >conftest.err
16384 cat conftest.err >&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } &&
16387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16388 { (case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_try") 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_try") 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 ac_cv_type_size_t=yes
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16412 ac_cv_type_size_t=no
16415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16417 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16418 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16419 if test $ac_cv_type_size_t = yes; then
16423 cat >>confdefs.h <<_ACEOF
16424 #define size_t unsigned int
16430 cat >>confdefs.h <<_ACEOF
16431 #define RETSIGTYPE void
16434 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16435 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16436 if test "${ac_cv_struct_tm+set}" = set; then
16437 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 cat >conftest.$ac_ext <<_ACEOF
16442 cat confdefs.h >>conftest.$ac_ext
16443 cat >>conftest.$ac_ext <<_ACEOF
16444 /* end confdefs.h. */
16445 #include <sys/types.h>
16451 struct tm *tp; tp->tm_sec;
16456 rm -f conftest.$ac_objext
16457 if { (ac_try="$ac_compile"
16458 case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 ac_cv_struct_tm=time.h
16492 echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 ac_cv_struct_tm=sys/time.h
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16501 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16502 if test $ac_cv_struct_tm = sys/time.h; then
16504 cat >>confdefs.h <<\_ACEOF
16505 #define TM_IN_SYS_TIME 1
16510 { echo "$as_me:$LINENO: checking for int64_t" >&5
16511 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16512 if test "${ac_cv_type_int64_t+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 $ac_includes_default
16522 typedef int64_t ac__type_new_;
16526 if ((ac__type_new_ *) 0)
16528 if (sizeof (ac__type_new_))
16534 rm -f conftest.$ac_objext
16535 if { (ac_try="$ac_compile"
16536 case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_compile") 2>conftest.er1
16543 grep -v '^ *+' conftest.er1 >conftest.err
16545 cat conftest.err >&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16549 { (case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_try") 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_try") 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; }; then
16568 ac_cv_type_int64_t=yes
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16573 ac_cv_type_int64_t=no
16576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16578 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16579 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16580 if test $ac_cv_type_int64_t = yes; then
16582 cat >>confdefs.h <<_ACEOF
16583 #define HAVE_INT64_T 1
16588 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16589 echo "$as_me: error: Type int64_t required but not found" >&2;}
16590 { (exit 1); exit 1; }; }
16593 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16594 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16595 if test "${ac_cv_type_uint64_t+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16598 cat >conftest.$ac_ext <<_ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 $ac_includes_default
16605 typedef uint64_t ac__type_new_;
16609 if ((ac__type_new_ *) 0)
16611 if (sizeof (ac__type_new_))
16617 rm -f conftest.$ac_objext
16618 if { (ac_try="$ac_compile"
16619 case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_compile") 2>conftest.er1
16626 grep -v '^ *+' conftest.er1 >conftest.err
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_type_uint64_t=yes
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_cv_type_uint64_t=no
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16662 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16663 if test $ac_cv_type_uint64_t = yes; then
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_UINT64_T 1
16671 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16672 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16673 if test "${ac_cv_type_u_int64_t+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16676 cat >conftest.$ac_ext <<_ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h. */
16682 $ac_includes_default
16683 typedef u_int64_t ac__type_new_;
16687 if ((ac__type_new_ *) 0)
16689 if (sizeof (ac__type_new_))
16695 rm -f conftest.$ac_objext
16696 if { (ac_try="$ac_compile"
16697 case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16704 grep -v '^ *+' conftest.er1 >conftest.err
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_type_u_int64_t=yes
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_cv_type_u_int64_t=no
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16739 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16740 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16741 if test $ac_cv_type_u_int64_t = yes; then
16743 cat >>confdefs.h <<_ACEOF
16744 #define HAVE_U_INT64_T 1
16749 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16750 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16751 { (exit 1); exit 1; }; }
16765 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 cat >conftest.$ac_ext <<_ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16781 #define $ac_func innocuous_$ac_func
16783 /* System header to define __stub macros and hopefully few prototypes,
16784 which can conflict with char $ac_func (); below.
16785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786 <limits.h> exists even on freestanding compilers. */
16789 # include <limits.h>
16791 # include <assert.h>
16796 /* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
16803 /* The GNU C library defines this for functions which it implements
16804 to always fail with ENOSYS. Some functions are actually named
16805 something starting with __ and the normal name is an alias. */
16806 #if defined __stub_$ac_func || defined __stub___$ac_func
16813 return $ac_func ();
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_link") 2>conftest.er1
16827 grep -v '^ *+' conftest.er1 >conftest.err
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
16832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16833 { (case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_try") 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest$ac_exeext'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 eval "$as_ac_var=yes"
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16857 eval "$as_ac_var=no"
16860 rm -f core conftest.err conftest.$ac_objext \
16861 conftest$ac_exeext conftest.$ac_ext
16863 ac_res=`eval echo '${'$as_ac_var'}'`
16864 { echo "$as_me:$LINENO: result: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16866 if test `eval echo '${'$as_ac_var'}'` = yes; then
16867 cat >>confdefs.h <<_ACEOF
16868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16878 for ac_func in powf fmodf strtof round
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 cat >conftest.$ac_ext <<_ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894 #define $ac_func innocuous_$ac_func
16896 /* System header to define __stub macros and hopefully few prototypes,
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16902 # include <limits.h>
16904 # include <assert.h>
16909 /* Override any GCC internal prototype to avoid an error.
16910 Use char because int might match the return type of a GCC
16911 builtin and then its argument prototype would still apply. */
16916 /* The GNU C library defines this for functions which it implements
16917 to always fail with ENOSYS. Some functions are actually named
16918 something starting with __ and the normal name is an alias. */
16919 #if defined __stub_$ac_func || defined __stub___$ac_func
16926 return $ac_func ();
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 eval "$as_ac_var=yes"
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 eval "$as_ac_var=no"
16973 rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16976 ac_res=`eval echo '${'$as_ac_var'}'`
16977 { echo "$as_me:$LINENO: result: $ac_res" >&5
16978 echo "${ECHO_T}$ac_res" >&6; }
16979 if test `eval echo '${'$as_ac_var'}'` = yes; then
16980 cat >>confdefs.h <<_ACEOF
16981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16992 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
17000 cat >conftest.$ac_ext <<_ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17008 #define $ac_func innocuous_$ac_func
17010 /* System header to define __stub macros and hopefully few prototypes,
17011 which can conflict with char $ac_func (); below.
17012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17013 <limits.h> exists even on freestanding compilers. */
17016 # include <limits.h>
17018 # include <assert.h>
17023 /* Override any GCC internal prototype to avoid an error.
17024 Use char because int might match the return type of a GCC
17025 builtin and then its argument prototype would still apply. */
17030 /* The GNU C library defines this for functions which it implements
17031 to always fail with ENOSYS. Some functions are actually named
17032 something starting with __ and the normal name is an alias. */
17033 #if defined __stub_$ac_func || defined __stub___$ac_func
17040 return $ac_func ();
17045 rm -f conftest.$ac_objext conftest$ac_exeext
17046 if { (ac_try="$ac_link"
17047 case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_link") 2>conftest.er1
17054 grep -v '^ *+' conftest.er1 >conftest.err
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17060 { (case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_try") 2>&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try='test -s conftest$ac_exeext'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 eval "$as_ac_var=yes"
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17084 eval "$as_ac_var=no"
17087 rm -f core conftest.err conftest.$ac_objext \
17088 conftest$ac_exeext conftest.$ac_ext
17090 ac_res=`eval echo '${'$as_ac_var'}'`
17091 { echo "$as_me:$LINENO: result: $ac_res" >&5
17092 echo "${ECHO_T}$ac_res" >&6; }
17093 if test `eval echo '${'$as_ac_var'}'` = yes; then
17094 cat >>confdefs.h <<_ACEOF
17095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17104 for ac_func in isatty mkdtemp mkstemp
17106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 cat >conftest.$ac_ext <<_ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17120 #define $ac_func innocuous_$ac_func
17122 /* System header to define __stub macros and hopefully few prototypes,
17123 which can conflict with char $ac_func (); below.
17124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17125 <limits.h> exists even on freestanding compilers. */
17128 # include <limits.h>
17130 # include <assert.h>
17135 /* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17142 /* The GNU C library defines this for functions which it implements
17143 to always fail with ENOSYS. Some functions are actually named
17144 something starting with __ and the normal name is an alias. */
17145 #if defined __stub_$ac_func || defined __stub___$ac_func
17152 return $ac_func ();
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (ac_try="$ac_link"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
17166 grep -v '^ *+' conftest.er1 >conftest.err
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } &&
17171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17172 { (case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_try") 2>&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; } &&
17181 { ac_try='test -s conftest$ac_exeext'
17182 { (case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_try") 2>&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; }; then
17191 eval "$as_ac_var=yes"
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 eval "$as_ac_var=no"
17199 rm -f core conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
17202 ac_res=`eval echo '${'$as_ac_var'}'`
17203 { echo "$as_me:$LINENO: result: $ac_res" >&5
17204 echo "${ECHO_T}$ac_res" >&6; }
17205 if test `eval echo '${'$as_ac_var'}'` = yes; then
17206 cat >>confdefs.h <<_ACEOF
17207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17220 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 cat >conftest.$ac_ext <<_ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17236 #define $ac_func innocuous_$ac_func
17238 /* System header to define __stub macros and hopefully few prototypes,
17239 which can conflict with char $ac_func (); below.
17240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17241 <limits.h> exists even on freestanding compilers. */
17244 # include <limits.h>
17246 # include <assert.h>
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17258 /* The GNU C library defines this for functions which it implements
17259 to always fail with ENOSYS. Some functions are actually named
17260 something starting with __ and the normal name is an alias. */
17261 #if defined __stub_$ac_func || defined __stub___$ac_func
17268 return $ac_func ();
17273 rm -f conftest.$ac_objext conftest$ac_exeext
17274 if { (ac_try="$ac_link"
17275 case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_link") 2>conftest.er1
17282 grep -v '^ *+' conftest.er1 >conftest.err
17284 cat conftest.err >&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } &&
17287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17288 { (case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_try") 2>&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; } &&
17297 { ac_try='test -s conftest$ac_exeext'
17298 { (case "(($ac_try" in
17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_try") 2>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 eval "$as_ac_var=yes"
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 eval "$as_ac_var=no"
17315 rm -f core conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17318 ac_res=`eval echo '${'$as_ac_var'}'`
17319 { echo "$as_me:$LINENO: result: $ac_res" >&5
17320 echo "${ECHO_T}$ac_res" >&6; }
17321 if test `eval echo '${'$as_ac_var'}'` = yes; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17333 for ac_func in strerror strerror_r setenv arc4random
17335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 cat >conftest.$ac_ext <<_ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17349 #define $ac_func innocuous_$ac_func
17351 /* System header to define __stub macros and hopefully few prototypes,
17352 which can conflict with char $ac_func (); below.
17353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17354 <limits.h> exists even on freestanding compilers. */
17357 # include <limits.h>
17359 # include <assert.h>
17364 /* Override any GCC internal prototype to avoid an error.
17365 Use char because int might match the return type of a GCC
17366 builtin and then its argument prototype would still apply. */
17371 /* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374 #if defined __stub_$ac_func || defined __stub___$ac_func
17381 return $ac_func ();
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (ac_try="$ac_link"
17388 case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_link") 2>conftest.er1
17395 grep -v '^ *+' conftest.er1 >conftest.err
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
17400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17401 { (case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_try") 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest$ac_exeext'
17411 { (case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_try") 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 eval "$as_ac_var=yes"
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17425 eval "$as_ac_var=no"
17428 rm -f core conftest.err conftest.$ac_objext \
17429 conftest$ac_exeext conftest.$ac_ext
17431 ac_res=`eval echo '${'$as_ac_var'}'`
17432 { echo "$as_me:$LINENO: result: $ac_res" >&5
17433 echo "${ECHO_T}$ac_res" >&6; }
17434 if test `eval echo '${'$as_ac_var'}'` = yes; then
17435 cat >>confdefs.h <<_ACEOF
17436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17446 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 cat >conftest.$ac_ext <<_ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17462 #define $ac_func innocuous_$ac_func
17464 /* System header to define __stub macros and hopefully few prototypes,
17465 which can conflict with char $ac_func (); below.
17466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17467 <limits.h> exists even on freestanding compilers. */
17470 # include <limits.h>
17472 # include <assert.h>
17477 /* Override any GCC internal prototype to avoid an error.
17478 Use char because int might match the return type of a GCC
17479 builtin and then its argument prototype would still apply. */
17484 /* The GNU C library defines this for functions which it implements
17485 to always fail with ENOSYS. Some functions are actually named
17486 something starting with __ and the normal name is an alias. */
17487 #if defined __stub_$ac_func || defined __stub___$ac_func
17494 return $ac_func ();
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (ac_try="$ac_link"
17501 case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_link") 2>conftest.er1
17508 grep -v '^ *+' conftest.er1 >conftest.err
17510 cat conftest.err >&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } &&
17513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17514 { (case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_try") 2>&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_try") 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 eval "$as_ac_var=yes"
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 eval "$as_ac_var=no"
17541 rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17544 ac_res=`eval echo '${'$as_ac_var'}'`
17545 { echo "$as_me:$LINENO: result: $ac_res" >&5
17546 echo "${ECHO_T}$ac_res" >&6; }
17547 if test `eval echo '${'$as_ac_var'}'` = yes; then
17548 cat >>confdefs.h <<_ACEOF
17549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17560 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 cat >conftest.$ac_ext <<_ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17576 #define $ac_func innocuous_$ac_func
17578 /* System header to define __stub macros and hopefully few prototypes,
17579 which can conflict with char $ac_func (); below.
17580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17581 <limits.h> exists even on freestanding compilers. */
17584 # include <limits.h>
17586 # include <assert.h>
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17598 /* The GNU C library defines this for functions which it implements
17599 to always fail with ENOSYS. Some functions are actually named
17600 something starting with __ and the normal name is an alias. */
17601 #if defined __stub_$ac_func || defined __stub___$ac_func
17608 return $ac_func ();
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (ac_try="$ac_link"
17615 case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_link") 2>conftest.er1
17622 grep -v '^ *+' conftest.er1 >conftest.err
17624 cat conftest.err >&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } &&
17627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17628 { (case "(($ac_try" in
17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_try") 2>&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; } &&
17637 { ac_try='test -s conftest$ac_exeext'
17638 { (case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_try") 2>&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; }; then
17647 eval "$as_ac_var=yes"
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 eval "$as_ac_var=no"
17655 rm -f core conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
17658 ac_res=`eval echo '${'$as_ac_var'}'`
17659 { echo "$as_me:$LINENO: result: $ac_res" >&5
17660 echo "${ECHO_T}$ac_res" >&6; }
17661 if test `eval echo '${'$as_ac_var'}'` = yes; then
17662 cat >>confdefs.h <<_ACEOF
17663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17669 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17670 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17671 if test "${llvm_cv_c_printf_a+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 ac_cpp='$CPP $CPPFLAGS'
17676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17680 if test "$cross_compiling" = yes; then
17681 llvmac_cv_c_printf_a=no
17683 cat >conftest.$ac_ext <<_ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17692 #include <stdlib.h>
17698 volatile double A, B;
17702 sprintf(Buffer, "%a", A);
17706 if (A != 0x1.999999999999ap-4)
17713 rm -f conftest$ac_exeext
17714 if { (ac_try="$ac_link"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_link") 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17724 { (case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_try") 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
17733 llvm_cv_c_printf_a=yes
17735 echo "$as_me: program exited with status $ac_status" >&5
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 ( exit $ac_status )
17740 llvmac_cv_c_printf_a=no
17742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17747 ac_cpp='$CPP $CPPFLAGS'
17748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17753 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17754 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17755 if test "$llvm_cv_c_printf_a" = "yes"; then
17757 cat >>confdefs.h <<\_ACEOF
17758 #define HAVE_PRINTF_A 1
17764 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17765 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17766 if test "${ac_cv_func_rand48+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 ac_cpp='$CXXCPP $CPPFLAGS'
17771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17775 cat >conftest.$ac_ext <<_ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 #include <stdlib.h>
17785 srand48(0);lrand48();drand48();
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest.$ac_objext'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_func_rand48=yes
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 ac_cv_func_rand48=no
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 ac_cpp='$CPP $CPPFLAGS'
17835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17840 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17841 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17843 if test "$ac_cv_func_rand48" = "yes" ; then
17845 cat >>confdefs.h <<\_ACEOF
17846 #define HAVE_RAND48 1
17852 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17853 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17854 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 $ac_includes_default
17868 char *p = (char *) strerror_s;
17876 rm -f conftest.$ac_objext
17877 if { (ac_try="$ac_compile"
17878 case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_compile") 2>conftest.er1
17885 grep -v '^ *+' conftest.er1 >conftest.err
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
17890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17891 { (case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_try") 2>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest.$ac_objext'
17901 { (case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_try") 2>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17910 ac_cv_have_decl_strerror_s=yes
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 ac_cv_have_decl_strerror_s=no
17918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17920 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17921 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17922 if test $ac_cv_have_decl_strerror_s = yes; then
17924 cat >>confdefs.h <<_ACEOF
17925 #define HAVE_DECL_STRERROR_S 1
17930 cat >>confdefs.h <<_ACEOF
17931 #define HAVE_DECL_STRERROR_S 0
17939 if test "$llvm_cv_os_type" = "MingW" ; then
17940 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17941 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17942 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17943 echo $ECHO_N "(cached) $ECHO_C" >&6
17945 ac_check_lib_save_LIBS=$LIBS
17947 cat >conftest.$ac_ext <<_ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (ac_try="$ac_link"
17971 case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_link") 2>conftest.er1
17978 grep -v '^ *+' conftest.er1 >conftest.err
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17984 { (case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_try") 2>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; } &&
17993 { ac_try='test -s conftest$ac_exeext'
17994 { (case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_try") 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; }; then
18003 ac_cv_lib_gcc__alloca=yes
18005 echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18008 ac_cv_lib_gcc__alloca=no
18011 rm -f core conftest.err conftest.$ac_objext \
18012 conftest$ac_exeext conftest.$ac_ext
18013 LIBS=$ac_check_lib_save_LIBS
18015 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18016 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18017 if test $ac_cv_lib_gcc__alloca = yes; then
18019 cat >>confdefs.h <<\_ACEOF
18020 #define HAVE__ALLOCA 1
18025 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18026 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18027 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 ac_check_lib_save_LIBS=$LIBS
18032 cat >conftest.$ac_ext <<_ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18039 /* Override any GCC internal prototype to avoid an error.
18040 Use char because int might match the return type of a GCC
18041 builtin and then its argument prototype would still apply. */
18049 return __alloca ();
18054 rm -f conftest.$ac_objext conftest$ac_exeext
18055 if { (ac_try="$ac_link"
18056 case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061 (eval "$ac_link") 2>conftest.er1
18063 grep -v '^ *+' conftest.er1 >conftest.err
18065 cat conftest.err >&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } &&
18068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18069 { (case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_try") 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; } &&
18078 { ac_try='test -s conftest$ac_exeext'
18079 { (case "(($ac_try" in
18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081 *) ac_try_echo=$ac_try;;
18083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084 (eval "$ac_try") 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18088 ac_cv_lib_gcc___alloca=yes
18090 echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18093 ac_cv_lib_gcc___alloca=no
18096 rm -f core conftest.err conftest.$ac_objext \
18097 conftest$ac_exeext conftest.$ac_ext
18098 LIBS=$ac_check_lib_save_LIBS
18100 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18101 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18102 if test $ac_cv_lib_gcc___alloca = yes; then
18104 cat >>confdefs.h <<\_ACEOF
18105 #define HAVE___ALLOCA 1
18110 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18111 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18112 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18115 ac_check_lib_save_LIBS=$LIBS
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18124 /* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18134 return __chkstk ();
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_link") 2>conftest.er1
18148 grep -v '^ *+' conftest.er1 >conftest.err
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_try") 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_try") 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 ac_cv_lib_gcc___chkstk=yes
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 ac_cv_lib_gcc___chkstk=no
18181 rm -f core conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18183 LIBS=$ac_check_lib_save_LIBS
18185 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18186 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18187 if test $ac_cv_lib_gcc___chkstk = yes; then
18189 cat >>confdefs.h <<\_ACEOF
18190 #define HAVE___CHKSTK 1
18195 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18196 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18197 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 ac_check_lib_save_LIBS=$LIBS
18202 cat >conftest.$ac_ext <<_ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18209 /* Override any GCC internal prototype to avoid an error.
18210 Use char because int might match the return type of a GCC
18211 builtin and then its argument prototype would still apply. */
18219 return ___chkstk ();
18224 rm -f conftest.$ac_objext conftest$ac_exeext
18225 if { (ac_try="$ac_link"
18226 case "(($ac_try" in
18227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228 *) ac_try_echo=$ac_try;;
18230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231 (eval "$ac_link") 2>conftest.er1
18233 grep -v '^ *+' conftest.er1 >conftest.err
18235 cat conftest.err >&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
18238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18239 { (case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_try") 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; } &&
18248 { ac_try='test -s conftest$ac_exeext'
18249 { (case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_try") 2>&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; }; then
18258 ac_cv_lib_gcc____chkstk=yes
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 ac_cv_lib_gcc____chkstk=no
18266 rm -f core conftest.err conftest.$ac_objext \
18267 conftest$ac_exeext conftest.$ac_ext
18268 LIBS=$ac_check_lib_save_LIBS
18270 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18271 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18272 if test $ac_cv_lib_gcc____chkstk = yes; then
18274 cat >>confdefs.h <<\_ACEOF
18275 #define HAVE____CHKSTK 1
18281 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18282 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18283 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 ac_check_lib_save_LIBS=$LIBS
18288 cat >conftest.$ac_ext <<_ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18295 /* Override any GCC internal prototype to avoid an error.
18296 Use char because int might match the return type of a GCC
18297 builtin and then its argument prototype would still apply. */
18305 return __ashldi3 ();
18310 rm -f conftest.$ac_objext conftest$ac_exeext
18311 if { (ac_try="$ac_link"
18312 case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317 (eval "$ac_link") 2>conftest.er1
18319 grep -v '^ *+' conftest.er1 >conftest.err
18321 cat conftest.err >&5
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } &&
18324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18325 { (case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_try") 2>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest$ac_exeext'
18335 { (case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_try") 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_cv_lib_gcc___ashldi3=yes
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18349 ac_cv_lib_gcc___ashldi3=no
18352 rm -f core conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354 LIBS=$ac_check_lib_save_LIBS
18356 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18357 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18358 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18360 cat >>confdefs.h <<\_ACEOF
18361 #define HAVE___ASHLDI3 1
18366 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18367 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18368 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 ac_check_lib_save_LIBS=$LIBS
18373 cat >conftest.$ac_ext <<_ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18380 /* Override any GCC internal prototype to avoid an error.
18381 Use char because int might match the return type of a GCC
18382 builtin and then its argument prototype would still apply. */
18390 return __ashrdi3 ();
18395 rm -f conftest.$ac_objext conftest$ac_exeext
18396 if { (ac_try="$ac_link"
18397 case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_link") 2>conftest.er1
18404 grep -v '^ *+' conftest.er1 >conftest.err
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18410 { (case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; } &&
18419 { ac_try='test -s conftest$ac_exeext'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 ac_cv_lib_gcc___ashrdi3=yes
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 ac_cv_lib_gcc___ashrdi3=no
18437 rm -f core conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18439 LIBS=$ac_check_lib_save_LIBS
18441 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18442 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18443 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18445 cat >>confdefs.h <<\_ACEOF
18446 #define HAVE___ASHRDI3 1
18451 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18452 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18453 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18454 echo $ECHO_N "(cached) $ECHO_C" >&6
18456 ac_check_lib_save_LIBS=$LIBS
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18465 /* Override any GCC internal prototype to avoid an error.
18466 Use char because int might match the return type of a GCC
18467 builtin and then its argument prototype would still apply. */
18475 return __divdi3 ();
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (ac_try="$ac_link"
18482 case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_link") 2>conftest.er1
18489 grep -v '^ *+' conftest.er1 >conftest.err
18491 cat conftest.err >&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
18494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18495 { (case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_try") 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; } &&
18504 { ac_try='test -s conftest$ac_exeext'
18505 { (case "(($ac_try" in
18506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510 (eval "$ac_try") 2>&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; }; then
18514 ac_cv_lib_gcc___divdi3=yes
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18519 ac_cv_lib_gcc___divdi3=no
18522 rm -f core conftest.err conftest.$ac_objext \
18523 conftest$ac_exeext conftest.$ac_ext
18524 LIBS=$ac_check_lib_save_LIBS
18526 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18527 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18528 if test $ac_cv_lib_gcc___divdi3 = yes; then
18530 cat >>confdefs.h <<\_ACEOF
18531 #define HAVE___DIVDI3 1
18536 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18537 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18538 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18539 echo $ECHO_N "(cached) $ECHO_C" >&6
18541 ac_check_lib_save_LIBS=$LIBS
18543 cat >conftest.$ac_ext <<_ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h. */
18550 /* Override any GCC internal prototype to avoid an error.
18551 Use char because int might match the return type of a GCC
18552 builtin and then its argument prototype would still apply. */
18560 return __fixdfdi ();
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (ac_try="$ac_link"
18567 case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_link") 2>conftest.er1
18574 grep -v '^ *+' conftest.er1 >conftest.err
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; } &&
18589 { ac_try='test -s conftest$ac_exeext'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
18599 ac_cv_lib_gcc___fixdfdi=yes
18601 echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18604 ac_cv_lib_gcc___fixdfdi=no
18607 rm -f core conftest.err conftest.$ac_objext \
18608 conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18611 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18612 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18613 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18615 cat >>confdefs.h <<\_ACEOF
18616 #define HAVE___FIXDFDI 1
18621 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18622 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18623 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 ac_check_lib_save_LIBS=$LIBS
18628 cat >conftest.$ac_ext <<_ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18635 /* Override any GCC internal prototype to avoid an error.
18636 Use char because int might match the return type of a GCC
18637 builtin and then its argument prototype would still apply. */
18645 return __fixsfdi ();
18650 rm -f conftest.$ac_objext conftest$ac_exeext
18651 if { (ac_try="$ac_link"
18652 case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_link") 2>conftest.er1
18659 grep -v '^ *+' conftest.er1 >conftest.err
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
18664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest$ac_exeext'
18675 { (case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_try") 2>&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_cv_lib_gcc___fixsfdi=yes
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18689 ac_cv_lib_gcc___fixsfdi=no
18692 rm -f core conftest.err conftest.$ac_objext \
18693 conftest$ac_exeext conftest.$ac_ext
18694 LIBS=$ac_check_lib_save_LIBS
18696 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18697 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18698 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18700 cat >>confdefs.h <<\_ACEOF
18701 #define HAVE___FIXSFDI 1
18706 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18707 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18708 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 ac_check_lib_save_LIBS=$LIBS
18713 cat >conftest.$ac_ext <<_ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18720 /* Override any GCC internal prototype to avoid an error.
18721 Use char because int might match the return type of a GCC
18722 builtin and then its argument prototype would still apply. */
18726 char __floatdidf ();
18730 return __floatdidf ();
18735 rm -f conftest.$ac_objext conftest$ac_exeext
18736 if { (ac_try="$ac_link"
18737 case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_link") 2>conftest.er1
18744 grep -v '^ *+' conftest.er1 >conftest.err
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest$ac_exeext'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 ac_cv_lib_gcc___floatdidf=yes
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18774 ac_cv_lib_gcc___floatdidf=no
18777 rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18779 LIBS=$ac_check_lib_save_LIBS
18781 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18782 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18783 if test $ac_cv_lib_gcc___floatdidf = yes; then
18785 cat >>confdefs.h <<\_ACEOF
18786 #define HAVE___FLOATDIDF 1
18791 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18792 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18793 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18796 ac_check_lib_save_LIBS=$LIBS
18798 cat >conftest.$ac_ext <<_ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18805 /* Override any GCC internal prototype to avoid an error.
18806 Use char because int might match the return type of a GCC
18807 builtin and then its argument prototype would still apply. */
18815 return __lshrdi3 ();
18820 rm -f conftest.$ac_objext conftest$ac_exeext
18821 if { (ac_try="$ac_link"
18822 case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_link") 2>conftest.er1
18829 grep -v '^ *+' conftest.er1 >conftest.err
18831 cat conftest.err >&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } &&
18834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18835 { (case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_try") 2>&5
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; } &&
18844 { ac_try='test -s conftest$ac_exeext'
18845 { (case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850 (eval "$ac_try") 2>&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; }; then
18854 ac_cv_lib_gcc___lshrdi3=yes
18856 echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18859 ac_cv_lib_gcc___lshrdi3=no
18862 rm -f core conftest.err conftest.$ac_objext \
18863 conftest$ac_exeext conftest.$ac_ext
18864 LIBS=$ac_check_lib_save_LIBS
18866 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18867 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18868 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE___LSHRDI3 1
18876 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18877 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18878 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18881 ac_check_lib_save_LIBS=$LIBS
18883 cat >conftest.$ac_ext <<_ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18890 /* Override any GCC internal prototype to avoid an error.
18891 Use char because int might match the return type of a GCC
18892 builtin and then its argument prototype would still apply. */
18900 return __moddi3 ();
18905 rm -f conftest.$ac_objext conftest$ac_exeext
18906 if { (ac_try="$ac_link"
18907 case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_link") 2>conftest.er1
18914 grep -v '^ *+' conftest.er1 >conftest.err
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } &&
18919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18920 { (case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_try") 2>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; } &&
18929 { ac_try='test -s conftest$ac_exeext'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_lib_gcc___moddi3=yes
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_cv_lib_gcc___moddi3=no
18947 rm -f core conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
18949 LIBS=$ac_check_lib_save_LIBS
18951 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18952 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18953 if test $ac_cv_lib_gcc___moddi3 = yes; then
18955 cat >>confdefs.h <<\_ACEOF
18956 #define HAVE___MODDI3 1
18961 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18962 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18963 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 ac_check_lib_save_LIBS=$LIBS
18968 cat >conftest.$ac_ext <<_ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18975 /* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18985 return __udivdi3 ();
18990 rm -f conftest.$ac_objext conftest$ac_exeext
18991 if { (ac_try="$ac_link"
18992 case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_link") 2>conftest.er1
18999 grep -v '^ *+' conftest.er1 >conftest.err
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } &&
19004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; } &&
19014 { ac_try='test -s conftest$ac_exeext'
19015 { (case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_try") 2>&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_cv_lib_gcc___udivdi3=yes
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19029 ac_cv_lib_gcc___udivdi3=no
19032 rm -f core conftest.err conftest.$ac_objext \
19033 conftest$ac_exeext conftest.$ac_ext
19034 LIBS=$ac_check_lib_save_LIBS
19036 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19037 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19038 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19040 cat >>confdefs.h <<\_ACEOF
19041 #define HAVE___UDIVDI3 1
19046 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19047 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19048 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 ac_check_lib_save_LIBS=$LIBS
19053 cat >conftest.$ac_ext <<_ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19060 /* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19070 return __umoddi3 ();
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_link") 2>conftest.er1
19084 grep -v '^ *+' conftest.er1 >conftest.err
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } &&
19089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19090 { (case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; } &&
19099 { ac_try='test -s conftest$ac_exeext'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_cv_lib_gcc___umoddi3=yes
19111 echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19114 ac_cv_lib_gcc___umoddi3=no
19117 rm -f core conftest.err conftest.$ac_objext \
19118 conftest$ac_exeext conftest.$ac_ext
19119 LIBS=$ac_check_lib_save_LIBS
19121 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19122 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19123 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19125 cat >>confdefs.h <<\_ACEOF
19126 #define HAVE___UMODDI3 1
19132 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19133 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19134 if test "${ac_cv_lib_gcc___main+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 ac_check_lib_save_LIBS=$LIBS
19139 cat >conftest.$ac_ext <<_ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19146 /* Override any GCC internal prototype to avoid an error.
19147 Use char because int might match the return type of a GCC
19148 builtin and then its argument prototype would still apply. */
19161 rm -f conftest.$ac_objext conftest$ac_exeext
19162 if { (ac_try="$ac_link"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_link") 2>conftest.er1
19170 grep -v '^ *+' conftest.er1 >conftest.err
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19176 { (case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_try") 2>&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; } &&
19185 { ac_try='test -s conftest$ac_exeext'
19186 { (case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_try") 2>&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_lib_gcc___main=yes
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_cv_lib_gcc___main=no
19203 rm -f core conftest.err conftest.$ac_objext \
19204 conftest$ac_exeext conftest.$ac_ext
19205 LIBS=$ac_check_lib_save_LIBS
19207 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19208 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19209 if test $ac_cv_lib_gcc___main = yes; then
19211 cat >>confdefs.h <<\_ACEOF
19212 #define HAVE___MAIN 1
19217 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19218 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19219 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19220 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 ac_check_lib_save_LIBS=$LIBS
19224 cat >conftest.$ac_ext <<_ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19231 /* Override any GCC internal prototype to avoid an error.
19232 Use char because int might match the return type of a GCC
19233 builtin and then its argument prototype would still apply. */
19241 return __cmpdi2 ();
19246 rm -f conftest.$ac_objext conftest$ac_exeext
19247 if { (ac_try="$ac_link"
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_link") 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_exeext'
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
19280 ac_cv_lib_gcc___cmpdi2=yes
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19285 ac_cv_lib_gcc___cmpdi2=no
19288 rm -f core conftest.err conftest.$ac_objext \
19289 conftest$ac_exeext conftest.$ac_ext
19290 LIBS=$ac_check_lib_save_LIBS
19292 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19293 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19294 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19296 cat >>confdefs.h <<\_ACEOF
19297 #define HAVE___CMPDI2 1
19304 if test "$llvm_cv_os_type" = "MingW" ; then
19305 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19306 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19307 cat >conftest.$ac_ext <<_ACEOF
19308 #include <windows.h>
19309 #include <imagehlp.h>
19310 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19311 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19313 rm -f conftest.$ac_objext
19314 if { (ac_try="$ac_compile"
19315 case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_compile") 2>conftest.er1
19322 grep -v '^ *+' conftest.er1 >conftest.err
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } &&
19327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19328 { (case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_try") 2>&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; } &&
19337 { ac_try='test -s conftest.$ac_objext'
19338 { (case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_try") 2>&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19348 { echo "$as_me:$LINENO: result: yes" >&5
19349 echo "${ECHO_T}yes" >&6; }
19350 llvm_cv_win32_elmcb_pcstr="PCSTR"
19353 echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19357 { echo "$as_me:$LINENO: result: no" >&5
19358 echo "${ECHO_T}no" >&6; }
19359 llvm_cv_win32_elmcb_pcstr="PSTR"
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 cat >>confdefs.h <<_ACEOF
19366 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19372 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19373 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19374 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 ac_cpp='$CXXCPP $CPPFLAGS'
19379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19383 cat >conftest.$ac_ext <<_ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19398 rm -f conftest.$ac_objext
19399 if { (ac_try="$ac_compile"
19400 case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_compile") 2>conftest.er1
19407 grep -v '^ *+' conftest.er1 >conftest.err
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19413 { (case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_try") 2>&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest.$ac_objext'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_try") 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_cv_func_isnan_in_math_h=yes
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_func_isnan_in_math_h=no
19440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442 ac_cpp='$CPP $CPPFLAGS'
19443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19448 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19449 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19452 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19454 cat >>confdefs.h <<\_ACEOF
19455 #define HAVE_ISNAN_IN_MATH_H 1
19460 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19461 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19462 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 ac_cpp='$CXXCPP $CPPFLAGS'
19467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19486 rm -f conftest.$ac_objext
19487 if { (ac_try="$ac_compile"
19488 case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_compile") 2>conftest.er1
19495 grep -v '^ *+' conftest.er1 >conftest.err
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19501 { (case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_try") 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } &&
19510 { ac_try='test -s conftest.$ac_objext'
19511 { (case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_try") 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 ac_cv_func_isnan_in_cmath=yes
19522 echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19525 ac_cv_func_isnan_in_cmath=no
19528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 ac_cpp='$CPP $CPPFLAGS'
19531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19536 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19537 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19539 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE_ISNAN_IN_CMATH 1
19547 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19548 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19549 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 ac_cpp='$CXXCPP $CPPFLAGS'
19554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19558 cat >conftest.$ac_ext <<_ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19568 float f; std::isnan(f);
19573 rm -f conftest.$ac_objext
19574 if { (ac_try="$ac_compile"
19575 case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_compile") 2>conftest.er1
19582 grep -v '^ *+' conftest.er1 >conftest.err
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19588 { (case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_try") 2>&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest.$ac_objext'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19607 ac_cv_func_std_isnan_in_cmath=yes
19609 echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19612 ac_cv_func_std_isnan_in_cmath=no
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19623 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19624 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19626 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE_STD_ISNAN_IN_CMATH 1
19635 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19636 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19637 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19641 ac_cpp='$CXXCPP $CPPFLAGS'
19642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19661 rm -f conftest.$ac_objext
19662 if { (ac_try="$ac_compile"
19663 case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_compile") 2>conftest.er1
19670 grep -v '^ *+' conftest.er1 >conftest.err
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } &&
19675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19676 { (case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_try") 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; } &&
19685 { ac_try='test -s conftest.$ac_objext'
19686 { (case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_try") 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 ac_cv_func_isinf_in_math_h=yes
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19700 ac_cv_func_isinf_in_math_h=no
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19705 ac_cpp='$CPP $CPPFLAGS'
19706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19711 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19712 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19714 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19716 cat >>confdefs.h <<\_ACEOF
19717 #define HAVE_ISINF_IN_MATH_H 1
19722 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19723 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19724 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 ac_cpp='$CXXCPP $CPPFLAGS'
19729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19733 cat >conftest.$ac_ext <<_ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19748 rm -f conftest.$ac_objext
19749 if { (ac_try="$ac_compile"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_compile") 2>conftest.er1
19757 grep -v '^ *+' conftest.er1 >conftest.err
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19763 { (case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_try") 2>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; } &&
19772 { ac_try='test -s conftest.$ac_objext'
19773 { (case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_try") 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
19782 ac_cv_func_isinf_in_cmath=yes
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_func_isinf_in_cmath=no
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 ac_cpp='$CPP $CPPFLAGS'
19793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19798 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19799 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19801 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19803 cat >>confdefs.h <<\_ACEOF
19804 #define HAVE_ISINF_IN_CMATH 1
19809 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19810 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19811 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 ac_cpp='$CXXCPP $CPPFLAGS'
19816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19820 cat >conftest.$ac_ext <<_ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19830 float f; std::isinf(f);
19835 rm -f conftest.$ac_objext
19836 if { (ac_try="$ac_compile"
19837 case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_compile") 2>conftest.er1
19844 grep -v '^ *+' conftest.er1 >conftest.err
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
19849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19850 { (case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_try") 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; } &&
19859 { ac_try='test -s conftest.$ac_objext'
19860 { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_cv_func_std_isinf_in_cmath=yes
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19874 ac_cv_func_std_isinf_in_cmath=no
19877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19879 ac_cpp='$CPP $CPPFLAGS'
19880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19885 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19886 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19888 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19890 cat >>confdefs.h <<\_ACEOF
19891 #define HAVE_STD_ISINF_IN_CMATH 1
19896 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19897 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19898 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19902 ac_cpp='$CXXCPP $CPPFLAGS'
19903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19907 cat >conftest.$ac_ext <<_ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19913 #include <ieeefp.h>
19917 float f; finite(f);
19922 rm -f conftest.$ac_objext
19923 if { (ac_try="$ac_compile"
19924 case "(($ac_try" in
19925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926 *) ac_try_echo=$ac_try;;
19928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19929 (eval "$ac_compile") 2>conftest.er1
19931 grep -v '^ *+' conftest.er1 >conftest.err
19933 cat conftest.err >&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); } &&
19936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19937 { (case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_try") 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; } &&
19946 { ac_try='test -s conftest.$ac_objext'
19947 { (case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_try") 2>&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
19956 ac_cv_func_finite_in_ieeefp_h=yes
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 ac_cv_func_finite_in_ieeefp_h=no
19964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19966 ac_cpp='$CPP $CPPFLAGS'
19967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19972 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19973 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19975 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19977 cat >>confdefs.h <<\_ACEOF
19978 #define HAVE_FINITE_IN_IEEEFP_H 1
19985 if test "$llvm_cv_platform_type" = "Unix" ; then
19988 for ac_header in stdlib.h unistd.h
19990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19997 ac_res=`eval echo '${'$as_ac_Header'}'`
19998 { echo "$as_me:$LINENO: result: $ac_res" >&5
19999 echo "${ECHO_T}$ac_res" >&6; }
20001 # Is the header compilable?
20002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 $ac_includes_default
20011 #include <$ac_header>
20013 rm -f conftest.$ac_objext
20014 if { (ac_try="$ac_compile"
20015 case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_compile") 2>conftest.er1
20022 grep -v '^ *+' conftest.er1 >conftest.err
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20028 { (case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_try") 2>&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; } &&
20037 { ac_try='test -s conftest.$ac_objext'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; }; then
20047 ac_header_compiler=yes
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ac_header_compiler=no
20055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20057 echo "${ECHO_T}$ac_header_compiler" >&6; }
20059 # Is the header present?
20060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 #include <$ac_header>
20070 if { (ac_try="$ac_cpp conftest.$ac_ext"
20071 case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20078 grep -v '^ *+' conftest.er1 >conftest.err
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } >/dev/null; then
20083 if test -s conftest.err; then
20084 ac_cpp_err=$ac_c_preproc_warn_flag
20085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20092 if test -z "$ac_cpp_err"; then
20093 ac_header_preproc=yes
20095 echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20098 ac_header_preproc=no
20101 rm -f conftest.err conftest.$ac_ext
20102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20103 echo "${ECHO_T}$ac_header_preproc" >&6; }
20105 # So? What about this header?
20106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20112 ac_header_preproc=yes
20115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20128 ## ------------------------------------ ##
20129 ## Report this to http://llvm.org/bugs/ ##
20130 ## ------------------------------------ ##
20132 ) | sed "s/^/$as_me: WARNING: /" >&2
20135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 eval "$as_ac_Header=\$ac_header_preproc"
20142 ac_res=`eval echo '${'$as_ac_Header'}'`
20143 { echo "$as_me:$LINENO: result: $ac_res" >&5
20144 echo "${ECHO_T}$ac_res" >&6; }
20147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20148 cat >>confdefs.h <<_ACEOF
20149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20157 for ac_func in getpagesize
20159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 cat >conftest.$ac_ext <<_ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h. */
20171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20173 #define $ac_func innocuous_$ac_func
20175 /* System header to define __stub macros and hopefully few prototypes,
20176 which can conflict with char $ac_func (); below.
20177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20178 <limits.h> exists even on freestanding compilers. */
20181 # include <limits.h>
20183 # include <assert.h>
20188 /* Override any GCC internal prototype to avoid an error.
20189 Use char because int might match the return type of a GCC
20190 builtin and then its argument prototype would still apply. */
20195 /* The GNU C library defines this for functions which it implements
20196 to always fail with ENOSYS. Some functions are actually named
20197 something starting with __ and the normal name is an alias. */
20198 #if defined __stub_$ac_func || defined __stub___$ac_func
20205 return $ac_func ();
20210 rm -f conftest.$ac_objext conftest$ac_exeext
20211 if { (ac_try="$ac_link"
20212 case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_link") 2>conftest.er1
20219 grep -v '^ *+' conftest.er1 >conftest.err
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
20224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20225 { (case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_try") 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; } &&
20234 { ac_try='test -s conftest$ac_exeext'
20235 { (case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_try") 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 eval "$as_ac_var=yes"
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 eval "$as_ac_var=no"
20252 rm -f core conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
20255 ac_res=`eval echo '${'$as_ac_var'}'`
20256 { echo "$as_me:$LINENO: result: $ac_res" >&5
20257 echo "${ECHO_T}$ac_res" >&6; }
20258 if test `eval echo '${'$as_ac_var'}'` = yes; then
20259 cat >>confdefs.h <<_ACEOF
20260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20266 { echo "$as_me:$LINENO: checking for working mmap" >&5
20267 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20268 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 if test "$cross_compiling" = yes; then
20272 ac_cv_func_mmap_fixed_mapped=no
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 $ac_includes_default
20281 /* malloc might have been renamed as rpl_malloc. */
20284 /* Thanks to Mike Haertel and Jim Avera for this test.
20285 Here is a matrix of mmap possibilities:
20286 mmap private not fixed
20287 mmap private fixed at somewhere currently unmapped
20288 mmap private fixed at somewhere already mapped
20289 mmap shared not fixed
20290 mmap shared fixed at somewhere currently unmapped
20291 mmap shared fixed at somewhere already mapped
20292 For private mappings, we should verify that changes cannot be read()
20293 back from the file, nor mmap's back from the file at a different
20294 address. (There have been systems where private was not correctly
20295 implemented like the infamous i386 svr4.0, and systems where the
20296 VM page cache was not coherent with the file system buffer cache
20297 like early versions of FreeBSD and possibly contemporary NetBSD.)
20298 For shared mappings, we should conversely verify that changes get
20299 propagated back to all the places they're supposed to be.
20301 Grep wants private fixed already mapped.
20302 The main things grep needs to know about mmap are:
20303 * does it exist and is it safe to write into the mmap'd area
20304 * how to use it (BSD variants) */
20307 #include <sys/mman.h>
20309 #if !STDC_HEADERS && !HAVE_STDLIB_H
20313 /* This mess was copied from the GNU getpagesize.h. */
20314 #if !HAVE_GETPAGESIZE
20315 /* Assume that all systems that can run configure have sys/param.h. */
20316 # if !HAVE_SYS_PARAM_H
20317 # define HAVE_SYS_PARAM_H 1
20320 # ifdef _SC_PAGESIZE
20321 # define getpagesize() sysconf(_SC_PAGESIZE)
20322 # else /* no _SC_PAGESIZE */
20323 # if HAVE_SYS_PARAM_H
20324 # include <sys/param.h>
20325 # ifdef EXEC_PAGESIZE
20326 # define getpagesize() EXEC_PAGESIZE
20327 # else /* no EXEC_PAGESIZE */
20329 # define getpagesize() NBPG * CLSIZE
20332 # endif /* no CLSIZE */
20333 # else /* no NBPG */
20335 # define getpagesize() NBPC
20336 # else /* no NBPC */
20338 # define getpagesize() PAGESIZE
20339 # endif /* PAGESIZE */
20340 # endif /* no NBPC */
20341 # endif /* no NBPG */
20342 # endif /* no EXEC_PAGESIZE */
20343 # else /* no HAVE_SYS_PARAM_H */
20344 # define getpagesize() 8192 /* punt totally */
20345 # endif /* no HAVE_SYS_PARAM_H */
20346 # endif /* no _SC_PAGESIZE */
20348 #endif /* no HAVE_GETPAGESIZE */
20353 char *data, *data2, *data3;
20357 pagesize = getpagesize ();
20359 /* First, make a file with some known garbage in it. */
20360 data = (char *) malloc (pagesize);
20363 for (i = 0; i < pagesize; ++i)
20364 *(data + i) = rand ();
20366 fd = creat ("conftest.mmap", 0600);
20369 if (write (fd, data, pagesize) != pagesize)
20373 /* Next, try to mmap the file at a fixed address which already has
20374 something else allocated at it. If we can, also make sure that
20375 we see the same garbage. */
20376 fd = open ("conftest.mmap", O_RDWR);
20379 data2 = (char *) malloc (2 * pagesize);
20382 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20383 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20384 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20386 for (i = 0; i < pagesize; ++i)
20387 if (*(data + i) != *(data2 + i))
20390 /* Finally, make sure that changes to the mapped area do not
20391 percolate back to the file as seen by read(). (This is a bug on
20392 some variants of i386 svr4.0.) */
20393 for (i = 0; i < pagesize; ++i)
20394 *(data2 + i) = *(data2 + i) + 1;
20395 data3 = (char *) malloc (pagesize);
20398 if (read (fd, data3, pagesize) != pagesize)
20400 for (i = 0; i < pagesize; ++i)
20401 if (*(data + i) != *(data3 + i))
20407 rm -f conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418 { (case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_try") 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 ac_cv_func_mmap_fixed_mapped=yes
20429 echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20433 ( exit $ac_status )
20434 ac_cv_func_mmap_fixed_mapped=no
20436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20441 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20442 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20443 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20445 cat >>confdefs.h <<\_ACEOF
20446 #define HAVE_MMAP 1
20450 rm -f conftest.mmap
20452 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20453 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20454 if test "${ac_cv_func_mmap_file+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
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
20463 if test "$cross_compiling" = yes; then
20464 ac_cv_func_mmap_file=no
20466 cat >conftest.$ac_ext <<_ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20474 #include <sys/types.h>
20475 #include <sys/mman.h>
20483 fd = creat ("foo",0777);
20484 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20486 return (fd != (int) MAP_FAILED);
20491 rm -f conftest$ac_exeext
20492 if { (ac_try="$ac_link"
20493 case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_link") 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20502 { (case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_try") 2>&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 ac_cv_func_mmap_file=yes
20513 echo "$as_me: program exited with status $ac_status" >&5
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ( exit $ac_status )
20518 ac_cv_func_mmap_file=no
20520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20525 ac_cpp='$CPP $CPPFLAGS'
20526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20532 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20533 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20534 if test "$ac_cv_func_mmap_file" = yes; then
20536 cat >>confdefs.h <<\_ACEOF
20537 #define HAVE_MMAP_FILE
20544 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20545 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20546 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 if test "$llvm_cv_os_type" = "Interix" ; then
20550 ac_cv_need_dev_zero_for_mmap=yes
20552 ac_cv_need_dev_zero_for_mmap=no
20556 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20557 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20558 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20560 cat >>confdefs.h <<\_ACEOF
20561 #define NEED_DEV_ZERO_FOR_MMAP 1
20566 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20568 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20569 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20571 if test "$ac_cv_func_mmap_file" = "no"
20573 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20574 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20578 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20579 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20581 ac_cpp='$CXXCPP $CPPFLAGS'
20582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20586 cat >conftest.$ac_ext <<_ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h. */
20593 volatile unsigned long val = 1;
20594 __sync_synchronize();
20595 __sync_val_compare_and_swap(&val, 1, 0);
20596 __sync_add_and_fetch(&val, 1);
20597 __sync_sub_and_fetch(&val, 1);
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_link") 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20617 { (case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_try") 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; } &&
20626 { ac_try='test -s conftest$ac_exeext'
20627 { (case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_try") 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20637 ac_cpp='$CPP $CPPFLAGS'
20638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20642 { echo "$as_me:$LINENO: result: yes" >&5
20643 echo "${ECHO_T}yes" >&6; }
20645 cat >>confdefs.h <<\_ACEOF
20646 #define LLVM_HAS_ATOMICS 1
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 { echo "$as_me:$LINENO: result: no" >&5
20654 echo "${ECHO_T}no" >&6; }
20656 cat >>confdefs.h <<\_ACEOF
20657 #define LLVM_HAS_ATOMICS 0
20660 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20661 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20664 rm -f core conftest.err conftest.$ac_objext \
20665 conftest$ac_exeext conftest.$ac_ext
20668 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20669 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20670 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20671 if test "${llvm_cv_linux_mixed+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
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
20680 cat >conftest.$ac_ext <<_ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20687 error: Not x86-64 even if uname says so!
20698 rm -f conftest.$ac_objext
20699 if { (ac_try="$ac_compile"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_compile") 2>conftest.er1
20707 grep -v '^ *+' conftest.er1 >conftest.err
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } &&
20712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20713 { (case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_try") 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest.$ac_objext'
20723 { (case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_try") 2>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; }; then
20732 llvm_cv_linux_mixed=no
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20737 llvm_cv_linux_mixed=yes
20740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742 ac_cpp='$CPP $CPPFLAGS'
20743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20749 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20750 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20752 if test "$llvm_cv_linux_mixed" = "yes"; then
20753 llvm_cv_target_arch="x86"
20759 for ac_func in __dso_handle
20761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20767 cat >conftest.$ac_ext <<_ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20775 #define $ac_func innocuous_$ac_func
20777 /* System header to define __stub macros and hopefully few prototypes,
20778 which can conflict with char $ac_func (); below.
20779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20780 <limits.h> exists even on freestanding compilers. */
20783 # include <limits.h>
20785 # include <assert.h>
20790 /* Override any GCC internal prototype to avoid an error.
20791 Use char because int might match the return type of a GCC
20792 builtin and then its argument prototype would still apply. */
20797 /* The GNU C library defines this for functions which it implements
20798 to always fail with ENOSYS. Some functions are actually named
20799 something starting with __ and the normal name is an alias. */
20800 #if defined __stub_$ac_func || defined __stub___$ac_func
20807 return $ac_func ();
20812 rm -f conftest.$ac_objext conftest$ac_exeext
20813 if { (ac_try="$ac_link"
20814 case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_link") 2>conftest.er1
20821 grep -v '^ *+' conftest.er1 >conftest.err
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } &&
20826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20827 { (case "(($ac_try" in
20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829 *) ac_try_echo=$ac_try;;
20831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20832 (eval "$ac_try") 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; } &&
20836 { ac_try='test -s conftest$ac_exeext'
20837 { (case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_try") 2>&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); }; }; then
20846 eval "$as_ac_var=yes"
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20851 eval "$as_ac_var=no"
20854 rm -f core conftest.err conftest.$ac_objext \
20855 conftest$ac_exeext conftest.$ac_ext
20857 ac_res=`eval echo '${'$as_ac_var'}'`
20858 { echo "$as_me:$LINENO: result: $ac_res" >&5
20859 echo "${ECHO_T}$ac_res" >&6; }
20860 if test `eval echo '${'$as_ac_var'}'` = yes; then
20861 cat >>confdefs.h <<_ACEOF
20862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20869 SHLIBEXT=$libltdl_cv_shlibext
20872 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20875 if test "${prefix}" = "NONE" ; then
20876 prefix="/usr/local"
20878 eval LLVM_PREFIX="${prefix}";
20879 eval LLVM_BINDIR="${prefix}/bin";
20880 eval LLVM_LIBDIR="${prefix}/lib";
20881 eval LLVM_DATADIR="${prefix}/share/llvm";
20882 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20883 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20884 eval LLVM_INCLUDEDIR="${prefix}/include";
20885 eval LLVM_INFODIR="${prefix}/info";
20886 eval LLVM_MANDIR="${prefix}/man";
20887 LLVM_CONFIGTIME=`date`
20899 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20900 LLVM_CONFIGTIME="(timestamp not enabled)"
20904 cat >>confdefs.h <<_ACEOF
20905 #define LLVM_PREFIX "$LLVM_PREFIX"
20909 cat >>confdefs.h <<_ACEOF
20910 #define LLVM_BINDIR "$LLVM_BINDIR"
20914 cat >>confdefs.h <<_ACEOF
20915 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20919 cat >>confdefs.h <<_ACEOF
20920 #define LLVM_DATADIR "$LLVM_DATADIR"
20924 cat >>confdefs.h <<_ACEOF
20925 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20929 cat >>confdefs.h <<_ACEOF
20930 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20934 cat >>confdefs.h <<_ACEOF
20935 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20939 cat >>confdefs.h <<_ACEOF
20940 #define LLVM_INFODIR "$LLVM_INFODIR"
20944 cat >>confdefs.h <<_ACEOF
20945 #define LLVM_MANDIR "$LLVM_MANDIR"
20949 cat >>confdefs.h <<_ACEOF
20950 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20954 cat >>confdefs.h <<_ACEOF
20955 #define LLVM_HOSTTRIPLE "$host"
20959 cat >>confdefs.h <<_ACEOF
20960 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20964 if test "$BINDINGS_TO_BUILD" = auto ; then
20965 BINDINGS_TO_BUILD=""
20966 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20967 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20970 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20976 binding_prereqs_failed=0
20977 for a_binding in $BINDINGS_TO_BUILD ; do
20978 case "$a_binding" in
20980 if test "x$OCAMLC" = x ; then
20981 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20982 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20983 binding_prereqs_failed=1
20985 if test "x$OCAMLDEP" = x ; then
20986 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20987 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20988 binding_prereqs_failed=1
20990 if test "x$OCAMLOPT" = x ; then
20991 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20992 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20994 if test "x$with_ocaml_libdir" != xauto ; then
20995 OCAML_LIBDIR=$with_ocaml_libdir
20998 ocaml_stdlib="`"$OCAMLC" -where`"
20999 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21001 # ocaml stdlib is beneath our prefix; use stdlib
21002 OCAML_LIBDIR=$ocaml_stdlib
21005 # ocaml stdlib is outside our prefix; use libdir/ocaml
21006 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21013 if test "$binding_prereqs_failed" = 1 ; then
21014 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21015 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21016 { (exit 1); exit 1; }; }
21019 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21020 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21021 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21025 ac_cpp='$CXXCPP $CPPFLAGS'
21026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21030 oldcxxflags="$CXXFLAGS"
21031 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21032 cat >conftest.$ac_ext <<_ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } &&
21061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21062 { (case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_try") 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest.$ac_objext'
21072 { (case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_try") 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 llvm_cv_cxx_visibility_inlines_hidden=yes
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21086 llvm_cv_cxx_visibility_inlines_hidden=no
21089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090 CXXFLAGS="$oldcxxflags"
21092 ac_cpp='$CPP $CPPFLAGS'
21093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21099 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21100 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21101 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21102 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21105 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21110 if test "$llvm_cv_link_use_r" = "yes" ; then
21117 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21118 RDYNAMIC="-Wl,-export-dynamic"
21125 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21132 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21134 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21136 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21138 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21140 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21143 ac_config_files="$ac_config_files Makefile.config"
21146 ac_config_files="$ac_config_files llvm.spec"
21149 ac_config_files="$ac_config_files docs/doxygen.cfg"
21152 if test "${clang_src_root}" = ""; then
21153 clang_src_root="$srcdir/tools/clang"
21155 if test -f ${clang_src_root}/README.txt; then
21156 configh="include/clang/Config/config.h"
21157 doxy="docs/doxygen.cfg"
21158 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21160 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21164 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21167 ac_config_commands="$ac_config_commands setup"
21169 ac_config_commands="$ac_config_commands Makefile"
21172 ac_config_commands="$ac_config_commands Makefile.common"
21175 ac_config_commands="$ac_config_commands examples/Makefile"
21178 ac_config_commands="$ac_config_commands lib/Makefile"
21181 ac_config_commands="$ac_config_commands runtime/Makefile"
21184 ac_config_commands="$ac_config_commands test/Makefile"
21187 ac_config_commands="$ac_config_commands test/Makefile.tests"
21190 ac_config_commands="$ac_config_commands unittests/Makefile"
21193 ac_config_commands="$ac_config_commands tools/Makefile"
21196 ac_config_commands="$ac_config_commands utils/Makefile"
21199 ac_config_commands="$ac_config_commands projects/Makefile"
21202 ac_config_commands="$ac_config_commands bindings/Makefile"
21205 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21209 cat >confcache <<\_ACEOF
21210 # This file is a shell script that caches the results of configure
21211 # tests run on this system so they can be shared between configure
21212 # scripts and configure runs, see configure's option --config-cache.
21213 # It is not useful on other systems. If it contains results you don't
21214 # want to keep, you may remove or edit it.
21216 # config.status only pays attention to the cache file if you give it
21217 # the --recheck option to rerun configure.
21219 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21220 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21221 # following values.
21225 # The following way of writing the cache mishandles newlines in values,
21226 # but we know of no workaround that is simple, portable, and efficient.
21227 # So, we kill variables containing newlines.
21228 # Ultrix sh set writes to stderr and can't be redirected directly,
21229 # and sets the high bit in the cache file unless we assign to the vars.
21231 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21232 eval ac_val=\$$ac_var
21236 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21237 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21240 _ | IFS | as_nl) ;; #(
21241 *) $as_unset $ac_var ;;
21247 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21248 *${as_nl}ac_space=\ *)
21249 # `set' does not quote correctly, so add quotes (double-quote
21250 # substitution turns \\\\ into \\, and sed turns \\ into \).
21253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21256 # `set' quotes correctly as required by POSIX, so do not add quotes.
21257 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21266 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21268 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21270 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21271 if test -w "$cache_file"; then
21272 test "x$cache_file" != "x/dev/null" &&
21273 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21274 echo "$as_me: updating cache $cache_file" >&6;}
21275 cat confcache >$cache_file
21277 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21278 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21283 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21284 # Let make expand exec_prefix.
21285 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21287 DEFS=-DHAVE_CONFIG_H
21291 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21292 # 1. Remove the extension, and $U if already installed.
21293 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21294 ac_i=`echo "$ac_i" | sed "$ac_script"`
21295 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21296 # will be set to the directory where LIBOBJS objects are built.
21297 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21298 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21300 LIBOBJS=$ac_libobjs
21302 LTLIBOBJS=$ac_ltlibobjs
21305 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21306 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21307 Usually this means the macro was only invoked conditionally." >&5
21308 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21309 Usually this means the macro was only invoked conditionally." >&2;}
21310 { (exit 1); exit 1; }; }
21312 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21313 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21314 Usually this means the macro was only invoked conditionally." >&5
21315 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21316 Usually this means the macro was only invoked conditionally." >&2;}
21317 { (exit 1); exit 1; }; }
21320 : ${CONFIG_STATUS=./config.status}
21321 ac_clean_files_save=$ac_clean_files
21322 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21323 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21324 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21325 cat >$CONFIG_STATUS <<_ACEOF
21327 # Generated by $as_me.
21328 # Run this file to recreate the current configuration.
21329 # Compiler output produced by configure, useful for debugging
21330 # configure, is in config.log if it exists.
21333 ac_cs_recheck=false
21335 SHELL=\${CONFIG_SHELL-$SHELL}
21338 cat >>$CONFIG_STATUS <<\_ACEOF
21339 ## --------------------- ##
21340 ## M4sh Initialization. ##
21341 ## --------------------- ##
21343 # Be Bourne compatible
21344 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21347 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21348 # is contrary to our usage. Disable this feature.
21349 alias -g '${1+"$@"}'='"$@"'
21350 setopt NO_GLOB_SUBST
21352 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21354 BIN_SH=xpg4; export BIN_SH # for Tru64
21355 DUALCASE=1; export DUALCASE # for MKS sh
21359 # Avoid depending upon Character Ranges.
21360 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21363 as_cr_digits='0123456789'
21364 as_cr_alnum=$as_cr_Letters$as_cr_digits
21366 # The user is always right.
21367 if test "${PATH_SEPARATOR+set}" != set; then
21368 echo "#! /bin/sh" >conf$$.sh
21369 echo "exit 0" >>conf$$.sh
21371 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21379 # Support unset when possible.
21380 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21388 # We need space, tab and new line, in precisely that order. Quoting is
21389 # there to prevent editors from complaining about space-tab.
21390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21391 # splitting by setting IFS to empty value.)
21396 # Find who we are. Look in the path if we contain no directory separator.
21398 *[\\/]* ) as_myself=$0 ;;
21399 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21400 for as_dir in $PATH
21403 test -z "$as_dir" && as_dir=.
21404 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21410 # We did not find ourselves, most probably we were run as `sh COMMAND'
21411 # in which case we are not to be found in the path.
21412 if test "x$as_myself" = x; then
21415 if test ! -f "$as_myself"; then
21416 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21417 { (exit 1); exit 1; }
21420 # Work around bugs in pre-3.0 UWIN ksh.
21421 for as_var in ENV MAIL MAILPATH
21422 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21430 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21431 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21432 LC_TELEPHONE LC_TIME
21434 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21435 eval $as_var=C; export $as_var
21437 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21441 # Required to use basename.
21442 if expr a : '\(a\)' >/dev/null 2>&1 &&
21443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21450 as_basename=basename
21456 # Name of the executable.
21457 as_me=`$as_basename -- "$0" ||
21458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21459 X"$0" : 'X\(//\)$' \| \
21460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21462 sed '/^.*\/\([^/][^/]*\)\/*$/{
21481 as_lineno_1=$LINENO
21482 as_lineno_2=$LINENO
21483 test "x$as_lineno_1" != "x$as_lineno_2" &&
21484 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21486 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21487 # uniformly replaced by the line number. The first 'sed' inserts a
21488 # line-number line after each line using $LINENO; the second 'sed'
21489 # does the real work. The second script uses 'N' to pair each
21490 # line-number line with the line containing $LINENO, and appends
21491 # trailing '-' during substitution so that $LINENO is not a special
21492 # case at line end.
21493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21494 # scripts with optimization help from Paolo Bonzini. Blame Lee
21495 # E. McMahon (1931-1989) for sed's syntax. :-)
21507 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21510 ' >$as_me.lineno &&
21511 chmod +x "$as_me.lineno" ||
21512 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21513 { (exit 1); exit 1; }; }
21515 # Don't try to exec as it changes $[0], causing all sort of problems
21516 # (the dirname of $[0] is not the place where we might find the
21517 # original and so on. Autoconf is especially sensitive to this).
21518 . "./$as_me.lineno"
21519 # Exit status is that of the last command.
21524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21530 ECHO_C= ECHO_N= ECHO_T=
21531 case `echo -n x` in
21533 case `echo 'x\c'` in
21534 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21541 if expr a : '\(a\)' >/dev/null 2>&1 &&
21542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21548 rm -f conf$$ conf$$.exe conf$$.file
21549 if test -d conf$$.dir; then
21550 rm -f conf$$.dir/conf$$.file
21556 if ln -s conf$$.file conf$$ 2>/dev/null; then
21558 # ... but there are two gotchas:
21559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21561 # In both cases, we have to default to `cp -p'.
21562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21564 elif ln conf$$.file conf$$ 2>/dev/null; then
21569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21570 rmdir conf$$.dir 2>/dev/null
21572 if mkdir -p . 2>/dev/null; then
21575 test -d ./-p && rmdir ./-p
21579 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21580 # systems may use methods other than mode bits to determine executability.
21581 cat >conf$$.file <<_ASEOF
21585 chmod +x conf$$.file
21586 if test -x conf$$.file >/dev/null 2>&1; then
21587 as_executable_p="test -x"
21593 # Sed expression to map a string onto a valid CPP name.
21594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21596 # Sed expression to map a string onto a valid variable name.
21597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21602 # Save the log message, to keep $[0] and so on meaningful, and to
21603 # report actual input values of CONFIG_FILES etc. instead of their
21604 # values after options handling.
21606 This file was extended by LLVM $as_me 3.2svn, which was
21607 generated by GNU Autoconf 2.60. Invocation command line was
21609 CONFIG_FILES = $CONFIG_FILES
21610 CONFIG_HEADERS = $CONFIG_HEADERS
21611 CONFIG_LINKS = $CONFIG_LINKS
21612 CONFIG_COMMANDS = $CONFIG_COMMANDS
21615 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21620 cat >>$CONFIG_STATUS <<_ACEOF
21621 # Files that config.status was made for.
21622 config_files="$ac_config_files"
21623 config_headers="$ac_config_headers"
21624 config_commands="$ac_config_commands"
21628 cat >>$CONFIG_STATUS <<\_ACEOF
21630 \`$as_me' instantiates files from templates according to the
21631 current configuration.
21633 Usage: $0 [OPTIONS] [FILE]...
21635 -h, --help print this help, then exit
21636 -V, --version print version number, then exit
21637 -q, --quiet do not print progress messages
21638 -d, --debug don't remove temporary files
21639 --recheck update $as_me by reconfiguring in the same conditions
21640 --file=FILE[:TEMPLATE]
21641 instantiate the configuration file FILE
21642 --header=FILE[:TEMPLATE]
21643 instantiate the configuration header FILE
21645 Configuration files:
21648 Configuration headers:
21651 Configuration commands:
21654 Report bugs to <bug-autoconf@gnu.org>."
21657 cat >>$CONFIG_STATUS <<_ACEOF
21659 LLVM config.status 3.2svn
21660 configured by $0, generated by GNU Autoconf 2.60,
21661 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21663 Copyright (C) 2006 Free Software Foundation, Inc.
21664 This config.status script is free software; the Free Software Foundation
21665 gives unlimited permission to copy, distribute and modify it."
21672 cat >>$CONFIG_STATUS <<\_ACEOF
21673 # If no file are specified by the user, then we need to provide default
21674 # value. By we need to know if files were specified by the user.
21680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21681 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21692 # Handling of the options.
21693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21696 echo "$ac_cs_version"; exit ;;
21697 --debug | --debu | --deb | --de | --d | -d )
21699 --file | --fil | --fi | --f )
21701 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21702 ac_need_defaults=false;;
21703 --header | --heade | --head | --hea )
21705 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21706 ac_need_defaults=false;;
21708 # Conflict between --help and --header
21709 { echo "$as_me: error: ambiguous option: $1
21710 Try \`$0 --help' for more information." >&2
21711 { (exit 1); exit 1; }; };;
21712 --help | --hel | -h )
21713 echo "$ac_cs_usage"; exit ;;
21714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21715 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21718 # This is an error.
21719 -*) { echo "$as_me: error: unrecognized option: $1
21720 Try \`$0 --help' for more information." >&2
21721 { (exit 1); exit 1; }; } ;;
21723 *) ac_config_targets="$ac_config_targets $1"
21724 ac_need_defaults=false ;;
21730 ac_configure_extra_args=
21732 if $ac_cs_silent; then
21734 ac_configure_extra_args="$ac_configure_extra_args --silent"
21738 cat >>$CONFIG_STATUS <<_ACEOF
21739 if \$ac_cs_recheck; then
21740 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21741 CONFIG_SHELL=$SHELL
21742 export CONFIG_SHELL
21743 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21747 cat >>$CONFIG_STATUS <<\_ACEOF
21751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21752 ## Running $as_me. ##
21758 cat >>$CONFIG_STATUS <<_ACEOF
21762 llvm_src="${srcdir}"
21766 cat >>$CONFIG_STATUS <<\_ACEOF
21768 # Handling of arguments.
21769 for ac_config_target in $ac_config_targets
21771 case $ac_config_target in
21772 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21773 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21774 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21775 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21776 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21777 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21778 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21779 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21780 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21781 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21782 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21783 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21784 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21785 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21786 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21787 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21788 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21789 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21790 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21791 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21792 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21793 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21794 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21795 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21796 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21797 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21798 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21800 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21801 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21802 { (exit 1); exit 1; }; };;
21807 # If the user did not use the arguments to specify the items to instantiate,
21808 # then the envvar interface is used. Set only those that are not.
21809 # We use the long form for the default assignment because of an extremely
21810 # bizarre bug on SunOS 4.1.3.
21811 if $ac_need_defaults; then
21812 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21813 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21814 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21817 # Have a temporary directory for convenience. Make it in the build tree
21818 # simply because there is no reason against having it here, and in addition,
21819 # creating and moving files from /tmp can sometimes cause problems.
21820 # Hook for its removal unless debugging.
21821 # Note that there is a small window in which the directory will not be cleaned:
21822 # after its creation but before its name has been assigned to `$tmp'.
21826 trap 'exit_status=$?
21827 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21829 trap '{ (exit 1); exit 1; }' 1 2 13 15
21831 # Create a (secure) tmp directory for tmp files.
21834 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21835 test -n "$tmp" && test -d "$tmp"
21838 tmp=./conf$$-$RANDOM
21839 (umask 077 && mkdir "$tmp")
21842 echo "$me: cannot create a temporary directory in ." >&2
21843 { (exit 1); exit 1; }
21847 # Set up the sed scripts for CONFIG_FILES section.
21850 # No need to generate the scripts if there are no CONFIG_FILES.
21851 # This happens for instance when ./config.status config.h
21852 if test -n "$CONFIG_FILES"; then
21859 for ac_last_try in false false false false false :; do
21860 cat >conf$$subs.sed <<_ACEOF
21861 SHELL!$SHELL$ac_delim
21862 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21863 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21864 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21865 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21866 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21867 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21868 exec_prefix!$exec_prefix$ac_delim
21869 prefix!$prefix$ac_delim
21870 program_transform_name!$program_transform_name$ac_delim
21871 bindir!$bindir$ac_delim
21872 sbindir!$sbindir$ac_delim
21873 libexecdir!$libexecdir$ac_delim
21874 datarootdir!$datarootdir$ac_delim
21875 datadir!$datadir$ac_delim
21876 sysconfdir!$sysconfdir$ac_delim
21877 sharedstatedir!$sharedstatedir$ac_delim
21878 localstatedir!$localstatedir$ac_delim
21879 includedir!$includedir$ac_delim
21880 oldincludedir!$oldincludedir$ac_delim
21881 docdir!$docdir$ac_delim
21882 infodir!$infodir$ac_delim
21883 htmldir!$htmldir$ac_delim
21884 dvidir!$dvidir$ac_delim
21885 pdfdir!$pdfdir$ac_delim
21886 psdir!$psdir$ac_delim
21887 libdir!$libdir$ac_delim
21888 localedir!$localedir$ac_delim
21889 mandir!$mandir$ac_delim
21890 DEFS!$DEFS$ac_delim
21891 ECHO_C!$ECHO_C$ac_delim
21892 ECHO_N!$ECHO_N$ac_delim
21893 ECHO_T!$ECHO_T$ac_delim
21894 LIBS!$LIBS$ac_delim
21895 build_alias!$build_alias$ac_delim
21896 host_alias!$host_alias$ac_delim
21897 target_alias!$target_alias$ac_delim
21898 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21900 CFLAGS!$CFLAGS$ac_delim
21901 LDFLAGS!$LDFLAGS$ac_delim
21902 CPPFLAGS!$CPPFLAGS$ac_delim
21903 ac_ct_CC!$ac_ct_CC$ac_delim
21904 EXEEXT!$EXEEXT$ac_delim
21905 OBJEXT!$OBJEXT$ac_delim
21907 CXXFLAGS!$CXXFLAGS$ac_delim
21908 ac_ct_CXX!$ac_ct_CXX$ac_delim
21910 subdirs!$subdirs$ac_delim
21911 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21912 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21913 build!$build$ac_delim
21914 build_cpu!$build_cpu$ac_delim
21915 build_vendor!$build_vendor$ac_delim
21916 build_os!$build_os$ac_delim
21917 host!$host$ac_delim
21918 host_cpu!$host_cpu$ac_delim
21919 host_vendor!$host_vendor$ac_delim
21920 host_os!$host_os$ac_delim
21921 target!$target$ac_delim
21922 target_cpu!$target_cpu$ac_delim
21923 target_vendor!$target_vendor$ac_delim
21924 target_os!$target_os$ac_delim
21926 HOST_OS!$HOST_OS$ac_delim
21927 TARGET_OS!$TARGET_OS$ac_delim
21928 LINKALL!$LINKALL$ac_delim
21929 NOLINKALL!$NOLINKALL$ac_delim
21930 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21931 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21932 ARCH!$ARCH$ac_delim
21933 HOST_ARCH!$HOST_ARCH$ac_delim
21934 ENDIAN!$ENDIAN$ac_delim
21935 GREP!$GREP$ac_delim
21936 EGREP!$EGREP$ac_delim
21937 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21938 BUILD_CC!$BUILD_CC$ac_delim
21939 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21940 BUILD_CXX!$BUILD_CXX$ac_delim
21941 CVSBUILD!$CVSBUILD$ac_delim
21942 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21943 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21944 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21945 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21946 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21947 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21948 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21949 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21951 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21952 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21953 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21954 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21955 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21956 ENABLE_PIC!$ENABLE_PIC$ac_delim
21957 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21960 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21962 elif $ac_last_try; then
21963 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21964 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21965 { (exit 1); exit 1; }; }
21967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21971 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21972 if test -n "$ac_eof"; then
21973 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21974 ac_eof=`expr $ac_eof + 1`
21977 cat >>$CONFIG_STATUS <<_ACEOF
21978 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21982 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21983 s/^/s,@/; s/!/@,|#_!!_#|/
21986 s/'"$ac_delim"'$/,g/; t
21988 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21989 ' >>$CONFIG_STATUS <conf$$subs.sed
21990 rm -f conf$$subs.sed
21991 cat >>$CONFIG_STATUS <<_ACEOF
21997 for ac_last_try in false false false false false :; do
21998 cat >conf$$subs.sed <<_ACEOF
21999 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22000 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22001 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22002 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22003 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22004 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22005 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22006 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22007 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22008 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22009 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22010 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22011 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22013 ifGNUmake!$ifGNUmake$ac_delim
22014 LN_S!$LN_S$ac_delim
22017 DATE!$DATE$ac_delim
22018 FIND!$FIND$ac_delim
22019 MKDIR!$MKDIR$ac_delim
22021 RANLIB!$RANLIB$ac_delim
22026 BINPWD!$BINPWD$ac_delim
22027 GRAPHVIZ!$GRAPHVIZ$ac_delim
22030 NEATO!$NEATO$ac_delim
22031 TWOPI!$TWOPI$ac_delim
22032 CIRCO!$CIRCO$ac_delim
22034 DOTTY!$DOTTY$ac_delim
22035 XDOT_PY!$XDOT_PY$ac_delim
22036 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22037 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22038 INSTALL_DATA!$INSTALL_DATA$ac_delim
22039 BZIP2!$BZIP2$ac_delim
22041 DOXYGEN!$DOXYGEN$ac_delim
22042 GROFF!$GROFF$ac_delim
22043 GZIPBIN!$GZIPBIN$ac_delim
22044 PDFROFF!$PDFROFF$ac_delim
22046 OCAMLC!$OCAMLC$ac_delim
22047 OCAMLOPT!$OCAMLOPT$ac_delim
22048 OCAMLDEP!$OCAMLDEP$ac_delim
22049 OCAMLDOC!$OCAMLDOC$ac_delim
22051 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22052 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22053 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22054 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22055 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22056 LIBADD_DL!$LIBADD_DL$ac_delim
22057 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22058 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22059 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22060 USE_UDIS86!$USE_UDIS86$ac_delim
22061 USE_OPROFILE!$USE_OPROFILE$ac_delim
22062 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22063 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22064 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22065 BUILD_FLAGS!$BUILD_FLAGS$ac_delim
22066 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22067 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22068 MMAP_FILE!$MMAP_FILE$ac_delim
22069 SHLIBEXT!$SHLIBEXT$ac_delim
22070 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22071 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22072 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22073 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22074 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22075 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22076 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22077 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22078 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22079 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22080 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22081 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22082 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22083 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22084 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22085 RPATH!$RPATH$ac_delim
22086 RDYNAMIC!$RDYNAMIC$ac_delim
22087 LIBOBJS!$LIBOBJS$ac_delim
22088 LTLIBOBJS!$LTLIBOBJS$ac_delim
22091 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22093 elif $ac_last_try; then
22094 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22096 { (exit 1); exit 1; }; }
22098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22103 if test -n "$ac_eof"; then
22104 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22105 ac_eof=`expr $ac_eof + 1`
22108 cat >>$CONFIG_STATUS <<_ACEOF
22109 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22114 s/^/s,@/; s/!/@,|#_!!_#|/
22117 s/'"$ac_delim"'$/,g/; t
22119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22120 ' >>$CONFIG_STATUS <conf$$subs.sed
22121 rm -f conf$$subs.sed
22122 cat >>$CONFIG_STATUS <<_ACEOF
22129 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22130 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22131 # trailing colons and then remove the whole line if VPATH becomes empty
22132 # (actually we leave an empty line to preserve line numbers).
22133 if test "x$srcdir" = x.; then
22134 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22135 s/:*\$(srcdir):*/:/
22136 s/:*\${srcdir}:*/:/
22138 s/^\([^=]*=[ ]*\):*/\1/
22144 cat >>$CONFIG_STATUS <<\_ACEOF
22145 fi # test -n "$CONFIG_FILES"
22148 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22151 :[FHLC]) ac_mode=$ac_tag; continue;;
22153 case $ac_mode$ac_tag in
22155 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22156 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22157 { (exit 1); exit 1; }; };;
22158 :[FH]-) ac_tag=-:-;;
22159 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22176 -) ac_f="$tmp/stdin";;
22177 *) # Look for the file first in the build tree, then in the source tree
22178 # (if the path is not absolute). The absolute path cannot be DOS-style,
22179 # because $ac_f cannot contain `:'.
22183 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22185 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22186 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22187 { (exit 1); exit 1; }; };;
22189 ac_file_inputs="$ac_file_inputs $ac_f"
22192 # Let's still pretend it is `configure' which instantiates (i.e., don't
22193 # use $as_me), people would be surprised to read:
22194 # /* config.h. Generated by config.status. */
22195 configure_input="Generated from "`IFS=:
22196 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22197 if test x"$ac_file" != x-; then
22198 configure_input="$ac_file. $configure_input"
22199 { echo "$as_me:$LINENO: creating $ac_file" >&5
22200 echo "$as_me: creating $ac_file" >&6;}
22204 *:-:* | *:-) cat >"$tmp/stdin";;
22209 ac_dir=`$as_dirname -- "$ac_file" ||
22210 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22211 X"$ac_file" : 'X\(//\)[^/]' \| \
22212 X"$ac_file" : 'X\(//\)$' \| \
22213 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22219 /^X\(\/\/\)[^/].*/{
22234 -*) as_dir=./$as_dir;;
22236 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22240 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22241 *) as_qdir=$as_dir;;
22243 as_dirs="'$as_qdir' $as_dirs"
22244 as_dir=`$as_dirname -- "$as_dir" ||
22245 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22246 X"$as_dir" : 'X\(//\)[^/]' \| \
22247 X"$as_dir" : 'X\(//\)$' \| \
22248 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22254 /^X\(\/\/\)[^/].*/{
22267 test -d "$as_dir" && break
22269 test -z "$as_dirs" || eval "mkdir $as_dirs"
22270 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22271 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22272 { (exit 1); exit 1; }; }; }
22276 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22279 # A ".." for each directory in $ac_dir_suffix.
22280 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22281 case $ac_top_builddir_sub in
22282 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22283 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22286 ac_abs_top_builddir=$ac_pwd
22287 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22288 # for backward compatibility:
22289 ac_top_builddir=$ac_top_build_prefix
22292 .) # We are building in place.
22294 ac_top_srcdir=$ac_top_builddir_sub
22295 ac_abs_top_srcdir=$ac_pwd ;;
22296 [\\/]* | ?:[\\/]* ) # Absolute name.
22297 ac_srcdir=$srcdir$ac_dir_suffix;
22298 ac_top_srcdir=$srcdir
22299 ac_abs_top_srcdir=$srcdir ;;
22300 *) # Relative name.
22301 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22302 ac_top_srcdir=$ac_top_build_prefix$srcdir
22303 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22305 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22315 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22316 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22320 cat >>$CONFIG_STATUS <<\_ACEOF
22321 # If the template does not know about datarootdir, expand it.
22322 # FIXME: This hack should be removed a few years after 2.60.
22323 ac_datarootdir_hack=; ac_datarootdir_seen=
22325 case `sed -n '/datarootdir/ {
22334 ' $ac_file_inputs` in
22335 *datarootdir*) ac_datarootdir_seen=yes;;
22336 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22337 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22338 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22340 cat >>$CONFIG_STATUS <<_ACEOF
22341 ac_datarootdir_hack='
22342 s&@datadir@&$datadir&g
22343 s&@docdir@&$docdir&g
22344 s&@infodir@&$infodir&g
22345 s&@localedir@&$localedir&g
22346 s&@mandir@&$mandir&g
22347 s&\\\${datarootdir}&$datarootdir&g' ;;
22351 # Neutralize VPATH when `$srcdir' = `.'.
22352 # Shell code in configure.ac might set extrasub.
22353 # FIXME: do we really want to maintain this feature?
22354 cat >>$CONFIG_STATUS <<_ACEOF
22358 cat >>$CONFIG_STATUS <<\_ACEOF
22360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22361 s&@configure_input@&$configure_input&;t t
22362 s&@top_builddir@&$ac_top_builddir_sub&;t t
22363 s&@srcdir@&$ac_srcdir&;t t
22364 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22365 s&@top_srcdir@&$ac_top_srcdir&;t t
22366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22367 s&@builddir@&$ac_builddir&;t t
22368 s&@abs_builddir@&$ac_abs_builddir&;t t
22369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22370 s&@INSTALL@&$ac_INSTALL&;t t
22371 $ac_datarootdir_hack
22372 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22374 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22375 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22376 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22377 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22378 which seems to be undefined. Please make sure it is defined." >&5
22379 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22380 which seems to be undefined. Please make sure it is defined." >&2;}
22384 -) cat "$tmp/out"; rm -f "$tmp/out";;
22385 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22394 # Transform confdefs.h into a sed script `conftest.defines', that
22395 # substitutes the proper values into config.h.in to produce config.h.
22396 rm -f conftest.defines conftest.tail
22397 # First, append a space to every undef/define line, to ease matching.
22398 echo 's/$/ /' >conftest.defines
22399 # Then, protect against being on the right side of a sed subst, or in
22400 # an unquoted here document, in config.status. If some macros were
22401 # called several times there might be several #defines for the same
22402 # symbol, which is useless. But do not sort them, since the last
22403 # AC_DEFINE must be honored.
22404 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22405 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22406 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22407 # PARAMS is the parameter list in the macro definition--in most cases, it's
22408 # just an empty string.
22409 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22410 ac_dB='\\)[ (].*,\\1define\\2'
22418 s/^[ ]*#[ ]*define[ ][ ]*//
22423 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22424 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22425 ' >>conftest.defines
22427 # Remove the space that was appended to ease matching.
22428 # Then replace #undef with comments. This is necessary, for
22429 # example, in the case of _POSIX_SOURCE, which is predefined and required
22430 # on some systems where configure will not decide to define it.
22431 # (The regexp can be short, since the line contains either #define or #undef.)
22433 s,^[ #]*u.*,/* & */,' >>conftest.defines
22435 # Break up conftest.defines:
22436 ac_max_sed_lines=50
22438 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22439 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22440 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22442 ac_in='$ac_file_inputs'
22443 ac_out='"$tmp/out1"'
22444 ac_nxt='"$tmp/out2"'
22448 # Write a here document:
22449 cat >>$CONFIG_STATUS <<_ACEOF
22450 # First, check the format of the line:
22451 cat >"\$tmp/defines.sed" <<\\CEOF
22452 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22453 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22457 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22459 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22460 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22461 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22462 grep . conftest.tail >/dev/null || break
22463 rm -f conftest.defines
22464 mv conftest.tail conftest.defines
22466 rm -f conftest.defines conftest.tail
22468 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22469 cat >>$CONFIG_STATUS <<\_ACEOF
22470 if test x"$ac_file" != x-; then
22471 echo "/* $configure_input */" >"$tmp/config.h"
22472 cat "$ac_result" >>"$tmp/config.h"
22473 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22474 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22475 echo "$as_me: $ac_file is unchanged" >&6;}
22478 mv "$tmp/config.h" $ac_file
22481 echo "/* $configure_input */"
22487 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22488 echo "$as_me: executing $ac_file commands" >&6;}
22493 case $ac_file$ac_mode in
22494 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22495 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22496 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22497 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22498 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22499 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22500 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22501 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22502 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22503 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22504 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22505 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22506 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22507 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22508 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22509 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22510 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22511 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22512 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22513 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22514 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22515 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22516 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22517 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22518 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22519 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22525 { (exit 0); exit 0; }
22527 chmod +x $CONFIG_STATUS
22528 ac_clean_files=$ac_clean_files_save
22531 # configure is writing to config.log, and then calls config.status.
22532 # config.status does its own redirection, appending to config.log.
22533 # Unfortunately, on DOS this fails, as config.log is still kept open
22534 # by configure, so config.status won't be able to write to it; its
22535 # output is simply discarded. So we exec the FD to /dev/null,
22536 # effectively closing config.log, so it can be properly (re)opened and
22537 # appended to by config.status. When coming back to configure, we
22538 # need to make the FD available again.
22539 if test "$no_create" != yes; then
22541 ac_config_status_args=
22542 test "$silent" = yes &&
22543 ac_config_status_args="$ac_config_status_args --quiet"
22545 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22547 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22548 # would make configure fail if this is the last instruction.
22549 $ac_cs_success || { (exit 1); exit 1; }
22553 # CONFIG_SUBDIRS section.
22555 if test "$no_recursion" != yes; then
22557 # Remove --cache-file and --srcdir arguments so they do not pile up.
22558 ac_sub_configure_args=
22560 eval "set x $ac_configure_args"
22564 if test -n "$ac_prev"; then
22569 -cache-file | --cache-file | --cache-fil | --cache-fi \
22570 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22571 ac_prev=cache_file ;;
22572 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22573 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22576 --config-cache | -C)
22578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22582 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22584 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22588 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22590 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22594 # Always prepend --prefix to ensure using the same prefix
22595 # in subdir configurations.
22596 ac_arg="--prefix=$prefix"
22598 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22600 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22603 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22605 # Do not complain, so a configure script can configure whichever
22606 # parts of a large source tree are present.
22607 test -d "$srcdir/$ac_dir" || continue
22609 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22610 echo "$as_me:$LINENO: $ac_msg" >&5
22614 -*) as_dir=./$as_dir;;
22616 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22620 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22621 *) as_qdir=$as_dir;;
22623 as_dirs="'$as_qdir' $as_dirs"
22624 as_dir=`$as_dirname -- "$as_dir" ||
22625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22626 X"$as_dir" : 'X\(//\)[^/]' \| \
22627 X"$as_dir" : 'X\(//\)$' \| \
22628 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22634 /^X\(\/\/\)[^/].*/{
22647 test -d "$as_dir" && break
22649 test -z "$as_dirs" || eval "mkdir $as_dirs"
22650 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22651 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22652 { (exit 1); exit 1; }; }; }
22656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22658 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22659 # A ".." for each directory in $ac_dir_suffix.
22660 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22661 case $ac_top_builddir_sub in
22662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22666 ac_abs_top_builddir=$ac_pwd
22667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22668 # for backward compatibility:
22669 ac_top_builddir=$ac_top_build_prefix
22672 .) # We are building in place.
22674 ac_top_srcdir=$ac_top_builddir_sub
22675 ac_abs_top_srcdir=$ac_pwd ;;
22676 [\\/]* | ?:[\\/]* ) # Absolute name.
22677 ac_srcdir=$srcdir$ac_dir_suffix;
22678 ac_top_srcdir=$srcdir
22679 ac_abs_top_srcdir=$srcdir ;;
22680 *) # Relative name.
22681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22682 ac_top_srcdir=$ac_top_build_prefix$srcdir
22683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22690 # Check for guested configure; otherwise get Cygnus style configure.
22691 if test -f "$ac_srcdir/configure.gnu"; then
22692 ac_sub_configure=$ac_srcdir/configure.gnu
22693 elif test -f "$ac_srcdir/configure"; then
22694 ac_sub_configure=$ac_srcdir/configure
22695 elif test -f "$ac_srcdir/configure.in"; then
22696 # This should be Cygnus configure.
22697 ac_sub_configure=$ac_aux_dir/configure
22699 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22700 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22704 # The recursion is here.
22705 if test -n "$ac_sub_configure"; then
22706 # Make the cache file name correct relative to the subdirectory.
22707 case $cache_file in
22708 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22709 *) # Relative name.
22710 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22713 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22714 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22715 # The eval makes quoting arguments work.
22716 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22717 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22718 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22719 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22720 { (exit 1); exit 1; }; }