2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
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-2013 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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
695 ENABLE_EXPENSIVE_CHECKS
713 LLVM_ENUM_ASM_PRINTERS
714 LLVM_ENUM_ASM_PARSERS
715 LLVM_ENUM_DISASSEMBLERS
761 HAVE_LINK_VERSION_SCRIPT
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
797 ENABLE_VISIBILITY_INLINES_HIDDEN
804 ac_precious_vars='build_alias
815 ac_subdirs_all='projects/llvm-gcc
819 projects/llvm-poolalloc
822 projects/llvm-stacker
830 # Initialize some variables set by options.
832 ac_init_version=false
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
842 program_transform_name=s,x,x,
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 # Accept the important Cygnus configure options, so we can diagnose typos.
894 case $ac_dashdash$ac_option in
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
916 cache_file=config.cache ;;
918 -datadir | --datadir | --datadi | --datad)
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
930 -disable-* | --disable-*)
931 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935 { (exit 1); exit 1; }; }
936 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937 eval enable_$ac_feature=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 -enable-* | --enable-*)
950 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
953 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954 { (exit 1); exit 1; }; }
955 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
956 eval enable_$ac_feature=\$ac_optarg ;;
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
971 -help | --help | --hel | --he | -h)
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 htmldir=$ac_optarg ;;
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1001 -libdir | --libdir | --libdi | --libd)
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1092 -psdir | --psdir | --psdi | --psd | --ps)
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 sbindir=$ac_optarg ;;
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 sharedstatedir=$ac_optarg ;;
1118 -site | --site | --sit)
1120 -site=* | --site=* | --sit=*)
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1147 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package| sed 's/-/_/g'`
1153 eval with_$ac_package=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1159 { echo "$as_me: error: invalid package name: $ac_package" >&2
1160 { (exit 1); exit 1; }; }
1161 ac_package=`echo $ac_package | sed 's/-/_/g'`
1162 eval with_$ac_package=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) { echo "$as_me: error: unrecognized option: $ac_option
1183 Try \`$0 --help' for more information." >&2
1184 { (exit 1); exit 1; }; }
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1192 { (exit 1); exit 1; }; }
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 { echo "$as_me: error: missing argument to $ac_option" >&2
1210 { (exit 1); exit 1; }; }
1213 # Be sure to have absolute directory names.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1225 { (exit 1); exit 1; }; }
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 { echo "$as_me: error: Working directory cannot be determined" >&2
1256 { (exit 1); exit 1; }; }
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 { echo "$as_me: error: pwd does not report name of working directory" >&2
1259 { (exit 1); exit 1; }; }
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$0" ||
1267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$0" : 'X\(//\)[^/]' \| \
1269 X"$0" : 'X\(//\)$' \| \
1270 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1299 { (exit 1); exit 1; }; }
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1304 { (exit 1); exit 1; }; }
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-polly Use polly if available (default is YES)
1404 --enable-libcpp Use libc++ if available (default is NO)
1405 --enable-cxx11 Use c++11 if available (default is NO)
1406 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1407 --enable-clang-static-analyzer
1408 Enable building of clang Static Analyzer (default is
1410 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1411 --enable-optimized Compile with optimizations enabled (default is NO)
1412 --enable-profiling Compile with profiling enabled (default is NO)
1413 --enable-assertions Compile with assertion checks enabled (default is
1415 --enable-werror Compile with -Werror enabled (default is NO)
1416 --enable-expensive-checks
1417 Compile with expensive debug checks enabled (default
1419 --enable-debug-runtime Build runtime libs with debug symbols (default is
1421 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1422 optimization is on and YES if it's off)
1423 --enable-keep-symbols Do not strip installed executables)
1424 --enable-jit Enable Just In Time Compiling (default is YES)
1425 --enable-docs Build documents (default is YES)
1426 --enable-doxygen Build doxygen documentation (default is NO)
1427 --enable-threads Use threads if available (default is YES)
1428 --enable-pthreads Use pthreads if available (default is YES)
1429 --enable-pic Build LLVM with Position Independent Code (default
1431 --enable-shared Build a shared library and link tools against it
1433 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1434 Win32 DLL (default is NO)
1435 --enable-timestamps Enable embedding timestamp information in build
1437 --enable-backtraces Enable embedding backtraces on crash (default is
1439 --enable-targets Build specific host targets: all or
1440 target1,target2,... Valid targets are: host, x86,
1441 x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1442 msp430, nvptx, and cpp (default=all)
1443 --enable-experimental-targets
1444 Build experimental host targets: disable or
1445 target1,target2,... (default=disable)
1446 --enable-bindings Build specific language bindings:
1447 all,auto,none,{binding-name} (default=auto)
1448 --enable-libffi Check for the presence of libffi (default is NO)
1449 --enable-ltdl-install install libltdl
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-optimize-option Select the compiler options to use for optimized
1456 --with-extra-options Specify additional options to compile LLVM with
1457 --with-extra-ld-options Specify additional options to link LLVM with
1458 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 --with-clang-srcdir Directory to the out-of-tree Clang source
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1464 --with-c-include-dirs Colon separated list of directories clang will
1466 --with-gcc-toolchain Directory where gcc is installed.
1467 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1468 --with-binutils-include Specify path to binutils/include/ containing
1469 plugin-api.h file for gold plugin.
1470 --with-bug-report-url Specify the URL where bug reports should be
1471 submitted (default=http://llvm.org/bugs/)
1472 --with-internal-prefix Installation directory for internal files
1473 --with-python path to python
1474 --with-udis86=<path> Use udis86 external x86 disassembler library
1475 --with-oprofile=<prefix>
1476 Tell OProfile >= 0.9.4 how to symbolize JIT output
1477 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1494 Report bugs to <http://llvm.org/bugs/>.
1499 if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" || continue
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1522 .) # We are building in place.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1546 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1555 LLVM configure 3.3svn
1556 generated by GNU Autoconf 2.60
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1563 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1567 cat >config.log <<_ACEOF
1568 This file contains any messages produced by compilers while
1569 running configure, to aid debugging if configure makes a mistake.
1571 It was created by LLVM $as_me 3.3svn, which was
1572 generated by GNU Autoconf 2.60. Invocation command line was
1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1585 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1586 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1587 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1588 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1591 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1593 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1594 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1596 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1597 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1598 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1599 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 echo "PATH: $as_dir"
1624 # Keep a trace of the command line.
1625 # Strip out --no-create and --no-recursion so they do not pile up.
1626 # Strip out --silent because we don't want to record it for future runs.
1627 # Also quote any args containing shell meta-characters.
1628 # Make two passes to allow for proper duplicate-argument suppression.
1632 ac_must_keep_next=false
1638 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1640 | -silent | --silent | --silen | --sile | --sil)
1643 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1646 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1648 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1649 if test $ac_must_keep_next = true; then
1650 ac_must_keep_next=false # Got value, back to normal.
1653 *=* | --config-cache | -C | -disable-* | --disable-* \
1654 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1655 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1656 | -with-* | --with-* | -without-* | --without-* | --x)
1657 case "$ac_configure_args0 " in
1658 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1661 -* ) ac_must_keep_next=true ;;
1664 ac_configure_args="$ac_configure_args '$ac_arg'"
1669 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1670 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1672 # When interrupted or exit'd, cleanup temporary files, and complete
1673 # config.log. We remove comments because anyway the quotes in there
1674 # would cause problems or look ugly.
1675 # WARNING: Use '\'' to represent an apostrophe within the trap.
1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1677 trap 'exit_status=$?
1678 # Save into config.log some information that might help in debugging.
1683 ## ---------------- ##
1684 ## Cache variables. ##
1685 ## ---------------- ##
1688 # The following way of writing the cache mishandles newlines in values,
1690 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1691 eval ac_val=\$$ac_var
1695 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1699 _ | IFS | as_nl) ;; #(
1700 *) $as_unset $ac_var ;;
1705 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706 *${as_nl}ac_space=\ *)
1708 "s/'\''/'\''\\\\'\'''\''/g;
1709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720 ## ----------------- ##
1721 ## Output variables. ##
1722 ## ----------------- ##
1725 for ac_var in $ac_subst_vars
1727 eval ac_val=\$$ac_var
1729 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 echo "$ac_var='\''$ac_val'\''"
1735 if test -n "$ac_subst_files"; then
1737 ## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##
1742 for ac_var in $ac_subst_files
1744 eval ac_val=\$$ac_var
1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 echo "$ac_var='\''$ac_val'\''"
1753 if test -s confdefs.h; then
1763 test "$ac_signal" != 0 &&
1764 echo "$as_me: caught signal $ac_signal"
1765 echo "$as_me: exit $exit_status"
1767 rm -f core *.core core.conftest.* &&
1768 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1771 for ac_signal in 1 2 13 15; do
1772 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1777 rm -f -r conftest* confdefs.h
1779 # Predefined preprocessor variables.
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 # Let the site file select an alternate cache file if it wants to.
1807 # Prefer explicitly selected file to automatically selected ones.
1808 if test -n "$CONFIG_SITE"; then
1809 set x "$CONFIG_SITE"
1810 elif test "x$prefix" != xNONE; then
1811 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 set x "$ac_default_prefix/share/config.site" \
1814 "$ac_default_prefix/etc/config.site"
1819 if test -r "$ac_site_file"; then
1820 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821 echo "$as_me: loading site script $ac_site_file" >&6;}
1822 sed 's/^/| /' "$ac_site_file" >&5
1827 if test -r "$cache_file"; then
1828 # Some versions of bash will fail to source /dev/null (special
1829 # files actually), so we avoid doing that.
1830 if test -f "$cache_file"; then
1831 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832 echo "$as_me: loading cache $cache_file" >&6;}
1834 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835 *) . "./$cache_file";;
1839 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840 echo "$as_me: creating cache $cache_file" >&6;}
1844 # Check that the precious variables saved in the cache have kept the same
1846 ac_cache_corrupted=false
1847 for ac_var in $ac_precious_vars; do
1848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849 eval ac_new_set=\$ac_env_${ac_var}_set
1850 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851 eval ac_new_val=\$ac_env_${ac_var}_value
1852 case $ac_old_set,$ac_new_set in
1854 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856 ac_cache_corrupted=: ;;
1858 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860 ac_cache_corrupted=: ;;
1863 if test "x$ac_old_val" != "x$ac_new_val"; then
1864 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1866 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1867 echo "$as_me: former value: $ac_old_val" >&2;}
1868 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1869 echo "$as_me: current value: $ac_new_val" >&2;}
1870 ac_cache_corrupted=:
1873 # Pass precious variables to config.status.
1874 if test "$ac_new_set" = set; then
1876 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1877 *) ac_arg=$ac_var=$ac_new_val ;;
1879 case " $ac_configure_args " in
1880 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1881 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885 if $ac_cache_corrupted; then
1886 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890 { (exit 1); exit 1; }; }
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925 cat >>confdefs.h <<\_ACEOF
1926 #define LLVM_VERSION_MAJOR 3
1930 cat >>confdefs.h <<\_ACEOF
1931 #define LLVM_VERSION_MINOR 3
1935 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1944 for ac_dir in autoconf "$srcdir"/autoconf; do
1945 if test -f "$ac_dir/install-sh"; then
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 elif test -f "$ac_dir/install.sh"; then
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 elif test -f "$ac_dir/shtool"; then
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1959 if test -z "$ac_aux_dir"; then
1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975 if test ${srcdir} != "." ; then
1976 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1977 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1978 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1979 { (exit 1); exit 1; }; }
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988 if test -n "$ac_tool_prefix"; then
1989 for ac_prog in clang llvm-gcc gcc
1991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$CC"; then
1999 ac_cv_prog_CC="$CC" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 if test -n "$CC"; then
2020 { echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6; }
2023 { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2028 test -n "$CC" && break
2031 if test -z "$CC"; then
2033 for ac_prog in clang llvm-gcc gcc
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$ac_ct_CC"; then
2043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052 ac_cv_prog_ac_ct_CC="$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6; }
2067 { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2072 test -n "$ac_ct_CC" && break
2075 if test "x$ac_ct_CC" = x; then
2078 case $cross_compiling:$ac_tool_warned in
2080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2081 whose name does not start with the host triplet. If you think this
2082 configuration is useful to you, please write to autoconf@gnu.org." >&5
2083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2084 whose name does not start with the host triplet. If you think this
2085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2086 ac_tool_warned=yes ;;
2093 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&2;}
2097 { (exit 1); exit 1; }; }
2099 # Provide some information about the compiler.
2100 echo "$as_me:$LINENO: checking for C compiler version" >&5
2101 ac_compiler=`set X $ac_compile; echo $2`
2102 { (ac_try="$ac_compiler --version >&5"
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108 (eval "$ac_compiler --version >&5") 2>&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112 { (ac_try="$ac_compiler -v >&5"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler -v >&5") 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (ac_try="$ac_compiler -V >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler -V >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2133 cat >conftest.$ac_ext <<_ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2153 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2154 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2157 # List of possible output files, starting from the most likely.
2158 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2159 # only as a last resort. b.out is created by i960 compilers.
2160 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2162 # The IRIX 6 linker writes into existing files which may not be
2163 # executable, retaining their permissions. Remove them first so a
2164 # subsequent execution test works.
2166 for ac_file in $ac_files
2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2170 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2175 if { (ac_try="$ac_link_default"
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2181 (eval "$ac_link_default") 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; then
2185 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2186 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2187 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2188 # so that the user can short-circuit this test for compilers unknown to
2190 for ac_file in $ac_files
2192 test -f "$ac_file" || continue
2194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2197 # We found the default executable, but exeext='' is most
2201 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2203 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205 # We set ac_cv_exeext here because the later test for it is not
2206 # safe: cross compilers may not add the suffix if given an `-o'
2207 # argument, so we may need to know it at that point already.
2208 # Even if this section looks crufty: it has the advantage of
2215 test "$ac_cv_exeext" = no && ac_cv_exeext=
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&2;}
2225 { (exit 77); exit 77; }; }
2228 ac_exeext=$ac_cv_exeext
2229 { echo "$as_me:$LINENO: result: $ac_file" >&5
2230 echo "${ECHO_T}$ac_file" >&6; }
2232 # Check that the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try='./$ac_file'
2240 { (case "(($ac_try" in
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245 (eval "$ac_try") 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2251 if test "$cross_compiling" = maybe; then
2254 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2267 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268 ac_clean_files=$ac_clean_files_save
2269 # Check that the compiler produces executables we can run. If not, either
2270 # the compiler is broken, or we cross compile.
2271 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2272 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2273 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274 echo "${ECHO_T}$cross_compiling" >&6; }
2276 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2278 if { (ac_try="$ac_link"
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284 (eval "$ac_link") 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2290 # work properly (i.e., refer to `conftest.exe'), while it won't with
2292 for ac_file in conftest.exe conftest conftest.*; do
2293 test -f "$ac_file" || continue
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest$ac_cv_exeext
2310 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2316 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 cat >conftest.$ac_ext <<_ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2336 rm -f conftest.o conftest.obj
2337 if { (ac_try="$ac_compile"
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_compile") 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 for ac_file in conftest.o conftest.obj conftest.*; do
2348 test -f "$ac_file" || continue;
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2368 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6; }
2370 OBJEXT=$ac_cv_objext
2372 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 cat >conftest.$ac_ext <<_ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2395 rm -f conftest.$ac_objext
2396 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410 { (case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_try") 2>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_try") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2441 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2442 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2443 GCC=`test $ac_compiler_gnu = yes && echo yes`
2444 ac_test_CFLAGS=${CFLAGS+set}
2445 ac_save_CFLAGS=$CFLAGS
2446 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2447 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_cc_g+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 ac_save_c_werror_flag=$ac_c_werror_flag
2452 ac_c_werror_flag=yes
2455 cat >conftest.$ac_ext <<_ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2470 rm -f conftest.$ac_objext
2471 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2479 grep -v '^ *+' conftest.er1 >conftest.err
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_try") 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; } &&
2494 { ac_try='test -s conftest.$ac_objext'
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2510 cat >conftest.$ac_ext <<_ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2525 rm -f conftest.$ac_objext
2526 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2534 grep -v '^ *+' conftest.er1 >conftest.err
2536 cat conftest.err >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2540 { (case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_try") 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_try") 2>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2564 ac_c_werror_flag=$ac_save_c_werror_flag
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2581 rm -f conftest.$ac_objext
2582 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2590 grep -v '^ *+' conftest.er1 >conftest.err
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2596 { (case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_try") 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_try") 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_c_werror_flag=$ac_save_c_werror_flag
2632 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2633 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2634 if test "$ac_test_CFLAGS" = set; then
2635 CFLAGS=$ac_save_CFLAGS
2636 elif test $ac_cv_prog_cc_g = yes; then
2637 if test "$GCC" = yes; then
2643 if test "$GCC" = yes; then
2649 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2650 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2651 if test "${ac_cv_prog_cc_c89+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 ac_cv_prog_cc_c89=no
2656 cat >conftest.$ac_ext <<_ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2664 #include <sys/types.h>
2665 #include <sys/stat.h>
2666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2667 struct buf { int x; };
2668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669 static char *e (p, i)
2675 static char *f (char * (*g) (char **, int), char **p, ...)
2680 s = g (p, va_arg (v,int));
2685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2686 function prototypes and stuff, but not '\xHH' hex character constants.
2687 These don't provoke an error unfortunately, instead are silently treated
2688 as 'x'. The following induces an error, until -std is added to get
2689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2690 array size at least. It's necessary to write '\x00'==0 to get something
2691 that's true only with -std. */
2692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2695 inside strings and character constants. */
2697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2699 int test (int i, double x);
2700 struct s1 {int (*f) (int a);};
2701 struct s2 {int (*f) (double a);};
2702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2716 CC="$ac_save_CC $ac_arg"
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2726 grep -v '^ *+' conftest.er1 >conftest.err
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2732 { (case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_try") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_try") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_cv_prog_cc_c89=$ac_arg
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f core conftest.err conftest.$ac_objext
2760 test "x$ac_cv_prog_cc_c89" != "xno" && break
2762 rm -f conftest.$ac_ext
2767 case "x$ac_cv_prog_cc_c89" in
2769 { echo "$as_me:$LINENO: result: none needed" >&5
2770 echo "${ECHO_T}none needed" >&6; } ;;
2772 { echo "$as_me:$LINENO: result: unsupported" >&5
2773 echo "${ECHO_T}unsupported" >&6; } ;;
2775 CC="$CC $ac_cv_prog_cc_c89"
2776 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788 ac_cpp='$CXXCPP $CPPFLAGS'
2789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2792 if test -z "$CXX"; then
2793 if test -n "$CCC"; then
2796 if test -n "$ac_tool_prefix"; then
2797 for ac_prog in clang++ llvm-g++ g++
2799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803 if test "${ac_cv_prog_CXX+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -n "$CXX"; then
2807 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CXX"; then
2828 { echo "$as_me:$LINENO: result: $CXX" >&5
2829 echo "${ECHO_T}$CXX" >&6; }
2831 { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2836 test -n "$CXX" && break
2839 if test -z "$CXX"; then
2841 for ac_prog in clang++ llvm-g++ g++
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 if test -n "$ac_ct_CXX"; then
2851 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_ac_ct_CXX="$ac_prog"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2871 if test -n "$ac_ct_CXX"; then
2872 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2873 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2875 { echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6; }
2880 test -n "$ac_ct_CXX" && break
2883 if test "x$ac_ct_CXX" = x; then
2886 case $cross_compiling:$ac_tool_warned in
2888 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2889 whose name does not start with the host triplet. If you think this
2890 configuration is useful to you, please write to autoconf@gnu.org." >&5
2891 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2892 whose name does not start with the host triplet. If you think this
2893 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2894 ac_tool_warned=yes ;;
2902 # Provide some information about the compiler.
2903 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2904 ac_compiler=`set X $ac_compile; echo $2`
2905 { (ac_try="$ac_compiler --version >&5"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compiler --version >&5") 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915 { (ac_try="$ac_compiler -v >&5"
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler -v >&5") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925 { (ac_try="$ac_compiler -V >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler -V >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2936 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2937 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2938 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2974 { (case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_try") 2>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; } &&
2983 { ac_try='test -s conftest.$ac_objext'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3005 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3006 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3007 GXX=`test $ac_compiler_gnu = yes && echo yes`
3008 ac_test_CXXFLAGS=${CXXFLAGS+set}
3009 ac_save_CXXFLAGS=$CXXFLAGS
3010 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3011 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_cxx_g+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3016 ac_cxx_werror_flag=yes
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
3068 ac_cv_prog_cxx_g=yes
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 ac_cv_prog_cxx_g=yes
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3197 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3198 if test "$ac_test_CXXFLAGS" = set; then
3199 CXXFLAGS=$ac_save_CXXFLAGS
3200 elif test $ac_cv_prog_cxx_g = yes; then
3201 if test "$GXX" = yes; then
3207 if test "$GXX" = yes; then
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 ac_cpp='$CPP $CPPFLAGS'
3221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3225 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3226 # On Suns, sometimes $CPP names a directory.
3227 if test -n "$CPP" && test -d "$CPP"; then
3230 if test -z "$CPP"; then
3231 if test "${ac_cv_prog_CPP+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 # Double quotes because CPP needs to be expanded
3235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3238 for ac_c_preproc_warn_flag in '' yes
3240 # Use a header file that comes with gcc, so configuring glibc
3241 # with a fresh cross-compiler works.
3242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243 # <limits.h> exists even on freestanding compilers.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp. "Syntax error" is here to catch this case.
3246 cat >conftest.$ac_ext <<_ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3253 # include <limits.h>
3255 # include <assert.h>
3259 if { (ac_try="$ac_cpp conftest.$ac_ext"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3267 grep -v '^ *+' conftest.er1 >conftest.err
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } >/dev/null; then
3272 if test -s conftest.err; then
3273 ac_cpp_err=$ac_c_preproc_warn_flag
3274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3281 if test -z "$ac_cpp_err"; then
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 # Broken: fails on valid input.
3291 rm -f conftest.err conftest.$ac_ext
3293 # OK, works on sane cases. Now check whether nonexistent headers
3294 # can be detected and how.
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3301 #include <ac_nonexistent.h>
3303 if { (ac_try="$ac_cpp conftest.$ac_ext"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3311 grep -v '^ *+' conftest.er1 >conftest.err
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null; then
3316 if test -s conftest.err; then
3317 ac_cpp_err=$ac_c_preproc_warn_flag
3318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325 if test -z "$ac_cpp_err"; then
3326 # Broken: success on invalid input.
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 # Passes both tests.
3337 rm -f conftest.err conftest.$ac_ext
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3354 { echo "$as_me:$LINENO: result: $CPP" >&5
3355 echo "${ECHO_T}$CPP" >&6; }
3357 for ac_c_preproc_warn_flag in '' yes
3359 # Use a header file that comes with gcc, so configuring glibc
3360 # with a fresh cross-compiler works.
3361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362 # <limits.h> exists even on freestanding compilers.
3363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp. "Syntax error" is here to catch this case.
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3372 # include <limits.h>
3374 # include <assert.h>
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386 grep -v '^ *+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev/null; then
3391 if test -s conftest.err; then
3392 ac_cpp_err=$ac_c_preproc_warn_flag
3393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3400 if test -z "$ac_cpp_err"; then
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 # Broken: fails on valid input.
3410 rm -f conftest.err conftest.$ac_ext
3412 # OK, works on sane cases. Now check whether nonexistent headers
3413 # can be detected and how.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include <ac_nonexistent.h>
3422 if { (ac_try="$ac_cpp conftest.$ac_ext"
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3430 grep -v '^ *+' conftest.er1 >conftest.err
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 if test -z "$ac_cpp_err"; then
3445 # Broken: success on invalid input.
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 # Passes both tests.
3456 rm -f conftest.err conftest.$ac_ext
3459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3460 rm -f conftest.err conftest.$ac_ext
3461 if $ac_preproc_ok; then
3464 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3465 See \`config.log' for more details." >&5
3466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3467 See \`config.log' for more details." >&2;}
3468 { (exit 1); exit 1; }; }
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 if test "$CXX" = "clang++" ; then
3479 { echo "$as_me:$LINENO: checking whether clang works" >&5
3480 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3482 ac_cpp='$CXXCPP $CPPFLAGS'
3483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3495 #if __has_include (<cxxabi.h>)
3498 #if __has_include (<unwind.h>)
3510 rm -f conftest.$ac_objext
3511 if { (ac_try="$ac_compile"
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_compile") 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3525 { (case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530 (eval "$ac_try") 2>&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_try") 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3545 { echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6; }
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3553 { echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6; }
3555 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3556 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3557 { (exit 1); exit 1; }; }
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 if test -d ${srcdir}/projects/llvm-gcc ; then
3573 subdirs="$subdirs projects/llvm-gcc"
3577 if test -d ${srcdir}/projects/test-suite ; then
3578 subdirs="$subdirs projects/test-suite"
3582 if test -d ${srcdir}/projects/llvm-test ; then
3583 subdirs="$subdirs projects/llvm-test"
3587 if test -d ${srcdir}/projects/poolalloc ; then
3588 subdirs="$subdirs projects/poolalloc"
3592 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3593 subdirs="$subdirs projects/llvm-poolalloc"
3597 for i in `ls ${srcdir}/projects`
3599 if test -d ${srcdir}/projects/${i} ; then
3601 sample) subdirs="$subdirs projects/sample"
3603 privbracket) subdirs="$subdirs projects/privbracket"
3605 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3607 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3609 llvm-java) subdirs="$subdirs projects/llvm-java"
3611 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3613 safecode) subdirs="$subdirs projects/safecode"
3615 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3624 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3625 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3631 # Check whether --enable-polly was given.
3632 if test "${enable_polly+set}" = set; then
3633 enableval=$enable_polly;
3638 case "$enableval" in
3643 default) ENABLE_POLLY=1
3645 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3646 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3647 { (exit 1); exit 1; }; } ;;
3651 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3654 subdirs="$subdirs tools/polly"
3659 # Make sure we can run config.sub.
3660 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3661 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3662 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3663 { (exit 1); exit 1; }; }
3665 { echo "$as_me:$LINENO: checking build system type" >&5
3666 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3667 if test "${ac_cv_build+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 ac_build_alias=$build_alias
3671 test "x$ac_build_alias" = x &&
3672 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3673 test "x$ac_build_alias" = x &&
3674 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3675 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3676 { (exit 1); exit 1; }; }
3677 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3678 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3679 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3680 { (exit 1); exit 1; }; }
3683 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3684 echo "${ECHO_T}$ac_cv_build" >&6; }
3685 case $ac_cv_build in
3687 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3688 echo "$as_me: error: invalid value of canonical build" >&2;}
3689 { (exit 1); exit 1; }; };;
3692 ac_save_IFS=$IFS; IFS='-'
3698 # Remember, the first character of IFS is used to create $*,
3699 # except with old shells:
3702 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3705 { echo "$as_me:$LINENO: checking host system type" >&5
3706 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3707 if test "${ac_cv_host+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 if test "x$host_alias" = x; then
3711 ac_cv_host=$ac_cv_build
3713 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3714 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3715 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3716 { (exit 1); exit 1; }; }
3720 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3721 echo "${ECHO_T}$ac_cv_host" >&6; }
3724 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3725 echo "$as_me: error: invalid value of canonical host" >&2;}
3726 { (exit 1); exit 1; }; };;
3729 ac_save_IFS=$IFS; IFS='-'
3735 # Remember, the first character of IFS is used to create $*,
3736 # except with old shells:
3739 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3742 { echo "$as_me:$LINENO: checking target system type" >&5
3743 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3744 if test "${ac_cv_target+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if test "x$target_alias" = x; then
3748 ac_cv_target=$ac_cv_host
3750 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3751 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3752 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3753 { (exit 1); exit 1; }; }
3757 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3758 echo "${ECHO_T}$ac_cv_target" >&6; }
3759 case $ac_cv_target in
3761 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3762 echo "$as_me: error: invalid value of canonical target" >&2;}
3763 { (exit 1); exit 1; }; };;
3765 target=$ac_cv_target
3766 ac_save_IFS=$IFS; IFS='-'
3772 # Remember, the first character of IFS is used to create $*,
3773 # except with old shells:
3776 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3779 # The aliases save the names the user supplied, while $host etc.
3780 # will get canonicalized.
3781 test -n "$target_alias" &&
3782 test "$program_prefix$program_suffix$program_transform_name" = \
3784 program_prefix=${target_alias}-
3786 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3787 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3788 if test "${llvm_cv_os_type+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 llvm_cv_link_all_option="-Wl,--whole-archive"
3794 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3795 llvm_cv_os_type="AIX"
3796 llvm_cv_platform_type="Unix" ;;
3798 llvm_cv_link_all_option="-Wl,--whole-archive"
3799 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3800 llvm_cv_os_type="IRIX"
3801 llvm_cv_platform_type="Unix" ;;
3803 llvm_cv_link_all_option="-Wl,--whole-archive"
3804 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805 llvm_cv_os_type="Cygwin"
3806 llvm_cv_platform_type="Unix" ;;
3808 llvm_cv_link_all_option="-Wl,-all_load"
3809 llvm_cv_no_link_all_option="-Wl,-noall_load"
3810 llvm_cv_os_type="Darwin"
3811 llvm_cv_platform_type="Unix" ;;
3813 llvm_cv_link_all_option="-Wl,-all_load"
3814 llvm_cv_no_link_all_option="-Wl,-noall_load"
3815 llvm_cv_os_type="Minix"
3816 llvm_cv_platform_type="Unix" ;;
3817 *-*-freebsd* | *-*-kfreebsd-gnu)
3818 llvm_cv_link_all_option="-Wl,--whole-archive"
3819 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3820 llvm_cv_os_type="FreeBSD"
3821 llvm_cv_platform_type="Unix" ;;
3823 llvm_cv_link_all_option="-Wl,--whole-archive"
3824 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3825 llvm_cv_os_type="OpenBSD"
3826 llvm_cv_platform_type="Unix" ;;
3828 llvm_cv_link_all_option="-Wl,--whole-archive"
3829 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830 llvm_cv_os_type="NetBSD"
3831 llvm_cv_platform_type="Unix" ;;
3833 llvm_cv_link_all_option="-Wl,--whole-archive"
3834 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835 llvm_cv_os_type="DragonFly"
3836 llvm_cv_platform_type="Unix" ;;
3838 llvm_cv_link_all_option="-Wl,--whole-archive"
3839 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840 llvm_cv_os_type="HP-UX"
3841 llvm_cv_platform_type="Unix" ;;
3843 llvm_cv_link_all_option="-Wl,--whole-archive"
3844 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845 llvm_cv_os_type="Interix"
3846 llvm_cv_platform_type="Unix" ;;
3848 llvm_cv_link_all_option="-Wl,--whole-archive"
3849 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850 llvm_cv_os_type="Linux"
3851 llvm_cv_platform_type="Unix" ;;
3853 llvm_cv_link_all_option="-Wl,--whole-archive"
3854 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855 llvm_cv_os_type="GNU"
3856 llvm_cv_platform_type="Unix" ;;
3858 llvm_cv_link_all_option="-Wl,-z,allextract"
3859 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3860 llvm_cv_os_type="SunOS"
3861 llvm_cv_platform_type="Unix" ;;
3863 llvm_cv_link_all_option="-Wl,-z,allextract"
3864 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3865 llvm_cv_os_type="AuroraUX"
3866 llvm_cv_platform_type="Unix" ;;
3868 llvm_cv_link_all_option="-Wl,--whole-archive"
3869 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3870 llvm_cv_os_type="Win32"
3871 llvm_cv_platform_type="Win32" ;;
3873 llvm_cv_link_all_option="-Wl,--whole-archive"
3874 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3875 llvm_cv_os_type="MingW"
3876 llvm_cv_platform_type="Win32" ;;
3878 llvm_cv_link_all_option="-Wl,--whole-archive"
3879 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880 llvm_cv_os_type="Haiku"
3881 llvm_cv_platform_type="Unix" ;;
3883 llvm_cv_link_all_option="-Wl,--whole-archive"
3884 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885 llvm_cv_os_type="Freestanding"
3886 llvm_cv_platform_type="Unix" ;;
3888 llvm_cv_link_all_option="-Wl,--whole-archive"
3889 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890 llvm_cv_os_type="Freestanding"
3891 llvm_cv_platform_type="Unix" ;;
3893 llvm_cv_link_all_option=""
3894 llvm_cv_no_link_all_option=""
3895 llvm_cv_os_type="Unknown"
3896 llvm_cv_platform_type="Unknown" ;;
3899 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3900 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3902 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3903 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3904 if test "${llvm_cv_target_os_type+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 llvm_cv_target_os_type="AIX" ;;
3911 llvm_cv_target_os_type="IRIX" ;;
3913 llvm_cv_target_os_type="Cygwin" ;;
3915 llvm_cv_target_os_type="Darwin" ;;
3917 llvm_cv_target_os_type="Minix" ;;
3918 *-*-freebsd* | *-*-kfreebsd-gnu)
3919 llvm_cv_target_os_type="FreeBSD" ;;
3921 llvm_cv_target_os_type="OpenBSD" ;;
3923 llvm_cv_target_os_type="NetBSD" ;;
3925 llvm_cv_target_os_type="DragonFly" ;;
3927 llvm_cv_target_os_type="HP-UX" ;;
3929 llvm_cv_target_os_type="Interix" ;;
3931 llvm_cv_target_os_type="Linux" ;;
3933 llvm_cv_target_os_type="GNU" ;;
3935 llvm_cv_target_os_type="SunOS" ;;
3937 llvm_cv_target_os_type="AuroraUX" ;;
3939 llvm_cv_target_os_type="Win32" ;;
3941 llvm_cv_target_os_type="MingW" ;;
3943 llvm_cv_target_os_type="Haiku" ;;
3945 llvm_cv_target_os_type="RTEMS" ;;
3947 llvm_cv_target_os_type="NativeClient" ;;
3949 llvm_cv_target_os_type="Freestanding" ;;
3951 llvm_cv_target_os_type="Unknown" ;;
3954 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3955 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3957 if test "$llvm_cv_os_type" = "Unknown" ; then
3958 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3959 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3960 { (exit 1); exit 1; }; }
3965 HOST_OS=$llvm_cv_os_type
3967 TARGET_OS=$llvm_cv_target_os_type
3970 LINKALL=$llvm_cv_link_all_option
3972 NOLINKALL=$llvm_cv_no_link_all_option
3975 case $llvm_cv_platform_type in
3978 cat >>confdefs.h <<\_ACEOF
3979 #define LLVM_ON_UNIX 1
3989 cat >>confdefs.h <<\_ACEOF
3990 #define LLVM_ON_WIN32 1
4000 { echo "$as_me:$LINENO: checking target architecture" >&5
4001 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4002 if test "${llvm_cv_target_arch+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 i?86-*) llvm_cv_target_arch="x86" ;;
4007 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4008 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4009 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4010 arm*-*) llvm_cv_target_arch="ARM" ;;
4011 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4012 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4013 xcore-*) llvm_cv_target_arch="XCore" ;;
4014 msp430-*) llvm_cv_target_arch="MSP430" ;;
4015 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4016 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4017 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4018 *) llvm_cv_target_arch="Unknown" ;;
4021 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4022 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4024 if test "$llvm_cv_target_arch" = "Unknown" ; then
4025 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4026 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4029 case "$llvm_cv_target_arch" in
4030 x86) LLVM_NATIVE_ARCH="X86" ;;
4031 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4032 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4035 ARCH=$llvm_cv_target_arch
4039 i?86-*) host_arch="x86" ;;
4040 amd64-* | x86_64-*) host_arch="x86_64" ;;
4041 sparc*-*) host_arch="Sparc" ;;
4042 powerpc*-*) host_arch="PowerPC" ;;
4043 arm*-*) host_arch="ARM" ;;
4044 mips-* | mips64-*) host_arch="Mips" ;;
4045 mipsel-* | mips64el-*) host_arch="Mips" ;;
4046 xcore-*) host_arch="XCore" ;;
4047 msp430-*) host_arch="MSP430" ;;
4048 hexagon-*) host_arch="Hexagon" ;;
4049 mblaze-*) host_arch="MBlaze" ;;
4050 *) host_arch="Unknown" ;;
4053 if test "$host_arch" = "Unknown" ; then
4054 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4055 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4058 HOST_ARCH=$host_arch
4063 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4064 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4065 if test "${ac_cv_path_GREP+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 # Extract the first word of "grep ggrep" to use in msg output
4069 if test -z "$GREP"; then
4070 set dummy grep ggrep; ac_prog_name=$2
4071 if test "${ac_cv_path_GREP+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 ac_path_GREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in grep ggrep; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4084 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4085 # Check for GNU ac_path_GREP and select it if it is found.
4086 # Check for GNU $ac_path_GREP
4087 case `"$ac_path_GREP" --version 2>&1` in
4089 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4092 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4095 cat "conftest.in" "conftest.in" >"conftest.tmp"
4096 mv "conftest.tmp" "conftest.in"
4097 cp "conftest.in" "conftest.nl"
4098 echo 'GREP' >> "conftest.nl"
4099 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101 ac_count=`expr $ac_count + 1`
4102 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4103 # Best one so far, save it but keep looking for a better one
4104 ac_cv_path_GREP="$ac_path_GREP"
4105 ac_path_GREP_max=$ac_count
4107 # 10*(2^10) chars as input seems more than enough
4108 test $ac_count -gt 10 && break
4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4114 $ac_path_GREP_found && break 3
4124 GREP="$ac_cv_path_GREP"
4125 if test -z "$GREP"; then
4126 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4127 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4128 { (exit 1); exit 1; }; }
4132 ac_cv_path_GREP=$GREP
4137 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4138 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4139 GREP="$ac_cv_path_GREP"
4142 { echo "$as_me:$LINENO: checking for egrep" >&5
4143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4144 if test "${ac_cv_path_EGREP+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4148 then ac_cv_path_EGREP="$GREP -E"
4150 # Extract the first word of "egrep" to use in msg output
4151 if test -z "$EGREP"; then
4152 set dummy egrep; ac_prog_name=$2
4153 if test "${ac_cv_path_EGREP+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 ac_path_EGREP_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162 test -z "$as_dir" && as_dir=.
4163 for ac_prog in egrep; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4166 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4167 # Check for GNU ac_path_EGREP and select it if it is found.
4168 # Check for GNU $ac_path_EGREP
4169 case `"$ac_path_EGREP" --version 2>&1` in
4171 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4174 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 echo 'EGREP' >> "conftest.nl"
4181 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183 ac_count=`expr $ac_count + 1`
4184 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_EGREP="$ac_path_EGREP"
4187 ac_path_EGREP_max=$ac_count
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196 $ac_path_EGREP_found && break 3
4206 EGREP="$ac_cv_path_EGREP"
4207 if test -z "$EGREP"; then
4208 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4209 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4210 { (exit 1); exit 1; }; }
4214 ac_cv_path_EGREP=$EGREP
4220 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4221 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4222 EGREP="$ac_cv_path_EGREP"
4225 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4226 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4227 if test "${ac_cv_header_stdc+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 ac_cv_header_stdc=yes
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 ac_cv_header_stdc=no
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 if test $ac_cv_header_stdc = yes; then
4294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305 $EGREP "memchr" >/dev/null 2>&1; then
4308 ac_cv_header_stdc=no
4314 if test $ac_cv_header_stdc = yes; then
4315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4316 cat >conftest.$ac_ext <<_ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "free" >/dev/null 2>&1; then
4329 ac_cv_header_stdc=no
4335 if test $ac_cv_header_stdc = yes; then
4336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4337 if test "$cross_compiling" = yes; then
4340 cat >conftest.$ac_ext <<_ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4348 #if ((' ' & 0x0FF) == 0x020)
4349 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4350 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4352 # define ISLOWER(c) \
4353 (('a' <= (c) && (c) <= 'i') \
4354 || ('j' <= (c) && (c) <= 'r') \
4355 || ('s' <= (c) && (c) <= 'z'))
4356 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4359 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4364 for (i = 0; i < 256; i++)
4365 if (XOR (islower (i), ISLOWER (i))
4366 || toupper (i) != TOUPPER (i))
4371 rm -f conftest$ac_exeext
4372 if { (ac_try="$ac_link"
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_link") 2>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4382 { (case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_try") 2>&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4393 echo "$as_me: program exited with status $ac_status" >&5
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_cv_header_stdc=no
4400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4406 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4407 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4408 if test $ac_cv_header_stdc = yes; then
4410 cat >>confdefs.h <<\_ACEOF
4411 #define STDC_HEADERS 1
4416 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4426 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4427 inttypes.h stdint.h unistd.h
4429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 $ac_includes_default
4443 #include <$ac_header>
4445 rm -f conftest.$ac_objext
4446 if { (ac_try="$ac_compile"
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_compile") 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4460 { (case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_try") 2>&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; } &&
4469 { ac_try='test -s conftest.$ac_objext'
4470 { (case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_try") 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 eval "$as_ac_Header=yes"
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 eval "$as_ac_Header=no"
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 ac_res=`eval echo '${'$as_ac_Header'}'`
4490 { echo "$as_me:$LINENO: result: $ac_res" >&5
4491 echo "${ECHO_T}$ac_res" >&6; }
4492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4493 cat >>confdefs.h <<_ACEOF
4494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4502 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4503 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4504 if test "${ac_cv_c_bigendian+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 # See if sys/param.h defines the BYTE_ORDER macro.
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <sys/types.h>
4515 #include <sys/param.h>
4520 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4528 rm -f conftest.$ac_objext
4529 if { (ac_try="$ac_compile"
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_compile") 2>conftest.er1
4537 grep -v '^ *+' conftest.er1 >conftest.err
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4543 { (case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_try") 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 { (case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_try") 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4562 # It does; now see whether it defined to BIG_ENDIAN or not.
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 #include <sys/types.h>
4570 #include <sys/param.h>
4575 #if BYTE_ORDER != BIG_ENDIAN
4583 rm -f conftest.$ac_objext
4584 if { (ac_try="$ac_compile"
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590 (eval "$ac_compile") 2>conftest.er1
4592 grep -v '^ *+' conftest.er1 >conftest.err
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4598 { (case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_try") 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_try") 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_c_bigendian=yes
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 ac_cv_c_bigendian=no
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 # It does not; compile a test program.
4631 if test "$cross_compiling" = yes; then
4632 # try to guess the endianness by grepping values into an object file
4633 ac_cv_c_bigendian=unknown
4634 cat >conftest.$ac_ext <<_ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4641 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4642 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4643 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4644 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4645 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4649 _ascii (); _ebcdic ();
4654 rm -f conftest.$ac_objext
4655 if { (ac_try="$ac_compile"
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_compile") 2>conftest.er1
4663 grep -v '^ *+' conftest.er1 >conftest.err
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4669 { (case "(($ac_try" in
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674 (eval "$ac_try") 2>&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; } &&
4678 { ac_try='test -s conftest.$ac_objext'
4679 { (case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_try") 2>&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4689 ac_cv_c_bigendian=yes
4691 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4692 if test "$ac_cv_c_bigendian" = unknown; then
4693 ac_cv_c_bigendian=no
4695 # finding both strings is unlikely to happen, but who knows?
4696 ac_cv_c_bigendian=unknown
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 cat >conftest.$ac_ext <<_ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 $ac_includes_default
4719 /* Are we little or big endian? From Harbison&Steele. */
4723 char c[sizeof (long int)];
4726 return u.c[sizeof (long int) - 1] == 1;
4732 rm -f conftest$ac_exeext
4733 if { (ac_try="$ac_link"
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_link") 2>&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4743 { (case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_try") 2>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_c_bigendian=no
4754 echo "$as_me: program exited with status $ac_status" >&5
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_cv_c_bigendian=yes
4761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4770 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4771 case $ac_cv_c_bigendian in
4779 { { echo "$as_me:$LINENO: error: unknown endianness
4780 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4781 echo "$as_me: error: unknown endianness
4782 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4783 { (exit 1); exit 1; }; } ;;
4787 if test "$cross_compiling" = yes; then
4788 LLVM_CROSS_COMPILING=1
4791 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4792 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4793 if test "${ac_cv_build_exeext+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4797 ac_cv_build_exeext=.exe
4799 ac_build_prefix=${build_alias}-
4801 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4802 set dummy ${ac_build_prefix}gcc; ac_word=$2
4803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4805 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 if test -n "$BUILD_CC"; then
4809 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 BUILD_CC=$ac_cv_prog_BUILD_CC
4829 if test -n "$BUILD_CC"; then
4830 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4831 echo "${ECHO_T}$BUILD_CC" >&6; }
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4838 if test -z "$BUILD_CC"; then
4839 # Extract the first word of "gcc", so it can be a program name with args.
4840 set dummy gcc; ac_word=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 if test -n "$BUILD_CC"; then
4847 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_prog_BUILD_CC="gcc"
4857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 BUILD_CC=$ac_cv_prog_BUILD_CC
4867 if test -n "$BUILD_CC"; then
4868 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4869 echo "${ECHO_T}$BUILD_CC" >&6; }
4871 { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4876 if test -z "$BUILD_CC"; then
4877 # Extract the first word of "cc", so it can be a program name with args.
4878 set dummy cc; ac_word=$2
4879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4881 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 if test -n "$BUILD_CC"; then
4885 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4896 ac_prog_rejected=yes
4899 ac_cv_prog_BUILD_CC="cc"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 if test $ac_prog_rejected = yes; then
4908 # We found a bogon in the path, so make sure we never use it.
4909 set dummy $ac_cv_prog_BUILD_CC
4911 if test $# != 0; then
4912 # We chose a different compiler from the bogus one.
4913 # However, it has the same basename, so the bogon will be chosen
4914 # first if we set BUILD_CC to just the basename; use the full file name.
4916 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4921 BUILD_CC=$ac_cv_prog_BUILD_CC
4922 if test -n "$BUILD_CC"; then
4923 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4924 echo "${ECHO_T}$BUILD_CC" >&6; }
4926 { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4933 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4934 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4935 { (exit 1); exit 1; }; }
4936 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4938 echo 'int main () { return 0; }' > conftest.$ac_ext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4941 (eval $ac_build_link) 2>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; then
4945 for file in conftest.*; do
4947 *.c | *.o | *.obj | *.dSYM) ;;
4948 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4952 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4953 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4954 { (exit 1); exit 1; }; }
4957 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4962 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4963 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4964 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4965 ac_build_exeext=$BUILD_EXEEXT
4967 ac_build_prefix=${build_alias}-
4968 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4969 set dummy ${ac_build_prefix}g++; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 if test -n "$BUILD_CXX"; then
4976 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4996 if test -n "$BUILD_CXX"; then
4997 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4998 echo "${ECHO_T}$BUILD_CXX" >&6; }
5000 { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5005 if test -z "$BUILD_CXX"; then
5006 # Extract the first word of "g++", so it can be a program name with args.
5007 set dummy g++; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 if test -n "$BUILD_CXX"; then
5014 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_BUILD_CXX="g++"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5034 if test -n "$BUILD_CXX"; then
5035 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5036 echo "${ECHO_T}$BUILD_CXX" >&6; }
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5043 if test -z "$BUILD_CXX"; then
5044 # Extract the first word of "c++", so it can be a program name with args.
5045 set dummy c++; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 if test -n "$BUILD_CXX"; then
5052 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5063 ac_prog_rejected=yes
5066 ac_cv_prog_BUILD_CXX="c++"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 if test $ac_prog_rejected = yes; then
5075 # We found a bogon in the path, so make sure we never use it.
5076 set dummy $ac_cv_prog_BUILD_CXX
5078 if test $# != 0; then
5079 # We chose a different compiler from the bogus one.
5080 # However, it has the same basename, so the bogon will be chosen
5081 # first if we set BUILD_CXX to just the basename; use the full file name.
5083 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5088 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5089 if test -n "$BUILD_CXX"; then
5090 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5091 echo "${ECHO_T}$BUILD_CXX" >&6; }
5093 { echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6; }
5101 LLVM_CROSS_COMPILING=0
5105 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5116 # Check whether --enable-libcpp was given.
5117 if test "${enable_libcpp+set}" = set; then
5118 enableval=$enable_libcpp;
5123 case "$enableval" in
5124 yes) ENABLE_LIBCPP=1
5128 default) ENABLE_LIBCPP=0
5130 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5132 { (exit 1); exit 1; }; } ;;
5135 # Check whether --enable-cxx11 was given.
5136 if test "${enable_cxx11+set}" = set; then
5137 enableval=$enable_cxx11;
5142 case "$enableval" in
5147 default) ENABLE_CXX11=0
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5155 # Check whether --enable-clang-arcmt was given.
5156 if test "${enable_clang_arcmt+set}" = set; then
5157 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5162 case "$enableval" in
5163 yes) ENABLE_CLANG_ARCMT=1
5165 no) ENABLE_CLANG_ARCMT=0
5167 default) ENABLE_CLANG_ARCMT=1
5169 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5170 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5171 { (exit 1); exit 1; }; } ;;
5174 clang_static_analyzer="yes"
5175 # Check whether --enable-clang-static-analyzer was given.
5176 if test "${enable_clang_static_analyzer+set}" = set; then
5177 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5182 case "$enableval" in
5183 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5185 no) ENABLE_CLANG_STATIC_ANALYZER=0
5187 default) ENABLE_CLANG_STATIC_ANALYZER=1
5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5194 # Check whether --enable-clang-rewriter was given.
5195 if test "${enable_clang_rewriter+set}" = set; then
5196 enableval=$enable_clang_rewriter;
5201 case "$enableval" in
5202 yes) ENABLE_CLANG_REWRITER=1
5205 if test ${clang_arcmt} != "no" ; then
5206 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5207 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5208 { (exit 1); exit 1; }; }
5210 if test ${clang_static_analyzer} != "no" ; then
5211 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5212 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5213 { (exit 1); exit 1; }; }
5215 ENABLE_CLANG_REWRITER=0
5218 default) ENABLE_CLANG_REWRITER=1
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5225 # Check whether --enable-optimized was given.
5226 if test "${enable_optimized+set}" = set; then
5227 enableval=$enable_optimized;
5232 if test ${enableval} = "no" ; then
5236 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5240 # Check whether --enable-profiling was given.
5241 if test "${enable_profiling+set}" = set; then
5242 enableval=$enable_profiling;
5247 if test ${enableval} = "no" ; then
5251 ENABLE_PROFILING=ENABLE_PROFILING=1
5255 # Check whether --enable-assertions was given.
5256 if test "${enable_assertions+set}" = set; then
5257 enableval=$enable_assertions;
5262 if test ${enableval} = "yes" ; then
5266 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5270 # Check whether --enable-werror was given.
5271 if test "${enable_werror+set}" = set; then
5272 enableval=$enable_werror;
5277 case "$enableval" in
5278 yes) ENABLE_WERROR=1
5282 default) ENABLE_WERROR=0
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5289 # Check whether --enable-expensive-checks was given.
5290 if test "${enable_expensive_checks+set}" = set; then
5291 enableval=$enable_expensive_checks;
5296 if test ${enableval} = "yes" ; then
5297 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5299 EXPENSIVE_CHECKS=yes
5302 ENABLE_EXPENSIVE_CHECKS=
5308 # Check whether --enable-debug-runtime was given.
5309 if test "${enable_debug_runtime+set}" = set; then
5310 enableval=$enable_debug_runtime;
5315 if test ${enableval} = "no" ; then
5319 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5323 # Check whether --enable-debug-symbols was given.
5324 if test "${enable_debug_symbols+set}" = set; then
5325 enableval=$enable_debug_symbols;
5330 if test ${enableval} = "no" ; then
5334 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5338 # Check whether --enable-keep-symbols was given.
5339 if test "${enable_keep_symbols+set}" = set; then
5340 enableval=$enable_keep_symbols;
5345 if test ${enableval} = "no" ; then
5349 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5353 # Check whether --enable-jit was given.
5354 if test "${enable_jit+set}" = set; then
5355 enableval=$enable_jit;
5360 if test ${enableval} = "no"
5365 case "$llvm_cv_target_arch" in
5366 x86) TARGET_HAS_JIT=1
5368 Sparc) TARGET_HAS_JIT=0
5370 PowerPC) TARGET_HAS_JIT=1
5372 x86_64) TARGET_HAS_JIT=1
5374 ARM) TARGET_HAS_JIT=1
5376 Mips) TARGET_HAS_JIT=1
5378 XCore) TARGET_HAS_JIT=0
5380 MSP430) TARGET_HAS_JIT=0
5382 Hexagon) TARGET_HAS_JIT=0
5384 MBlaze) TARGET_HAS_JIT=0
5386 NVPTX) TARGET_HAS_JIT=0
5393 # Check whether --enable-docs was given.
5394 if test "${enable_docs+set}" = set; then
5395 enableval=$enable_docs;
5400 case "$enableval" in
5405 default) ENABLE_DOCS=1
5407 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5408 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5409 { (exit 1); exit 1; }; } ;;
5412 # Check whether --enable-doxygen was given.
5413 if test "${enable_doxygen+set}" = set; then
5414 enableval=$enable_doxygen;
5419 case "$enableval" in
5420 yes) ENABLE_DOXYGEN=1
5422 no) ENABLE_DOXYGEN=0
5424 default) ENABLE_DOXYGEN=0
5426 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5427 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5428 { (exit 1); exit 1; }; } ;;
5431 # Check whether --enable-threads was given.
5432 if test "${enable_threads+set}" = set; then
5433 enableval=$enable_threads;
5438 case "$enableval" in
5439 yes) LLVM_ENABLE_THREADS=1
5441 no) LLVM_ENABLE_THREADS=0
5443 default) LLVM_ENABLE_THREADS=1
5445 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5446 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5447 { (exit 1); exit 1; }; } ;;
5450 cat >>confdefs.h <<_ACEOF
5451 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5455 # Check whether --enable-pthreads was given.
5456 if test "${enable_pthreads+set}" = set; then
5457 enableval=$enable_pthreads;
5462 case "$enableval" in
5463 yes) ENABLE_PTHREADS=1
5465 no) ENABLE_PTHREADS=0
5467 default) ENABLE_PTHREADS=1
5469 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5470 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5471 { (exit 1); exit 1; }; } ;;
5474 # Check whether --enable-pic was given.
5475 if test "${enable_pic+set}" = set; then
5476 enableval=$enable_pic;
5481 case "$enableval" in
5486 default) ENABLE_PIC=1
5488 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5489 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5490 { (exit 1); exit 1; }; } ;;
5493 cat >>confdefs.h <<_ACEOF
5494 #define ENABLE_PIC $ENABLE_PIC
5498 # Check whether --enable-shared was given.
5499 if test "${enable_shared+set}" = set; then
5500 enableval=$enable_shared;
5505 case "$enableval" in
5506 yes) ENABLE_SHARED=1
5510 default) ENABLE_SHARED=0
5512 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5513 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5514 { (exit 1); exit 1; }; } ;;
5517 # Check whether --enable-embed-stdcxx was given.
5518 if test "${enable_embed_stdcxx+set}" = set; then
5519 enableval=$enable_embed_stdcxx;
5524 case "$enableval" in
5525 yes) ENABLE_EMBED_STDCXX=1
5527 no) ENABLE_EMBED_STDCXX=0
5529 default) ENABLE_EMBED_STDCXX=0
5531 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5532 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5533 { (exit 1); exit 1; }; } ;;
5536 # Check whether --enable-timestamps was given.
5537 if test "${enable_timestamps+set}" = set; then
5538 enableval=$enable_timestamps;
5543 case "$enableval" in
5544 yes) ENABLE_TIMESTAMPS=1
5546 no) ENABLE_TIMESTAMPS=0
5548 default) ENABLE_TIMESTAMPS=1
5550 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5551 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5552 { (exit 1); exit 1; }; } ;;
5555 cat >>confdefs.h <<_ACEOF
5556 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5561 # Check whether --enable-backtraces was given.
5562 if test "${enable_backtraces+set}" = set; then
5563 enableval=$enable_backtraces;
5568 case "$enableval" in
5569 yes) ENABLE_BACKTRACES=1
5571 no) ENABLE_BACKTRACES=0
5573 default) ENABLE_BACKTRACES=1
5575 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5576 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5577 { (exit 1); exit 1; }; } ;;
5580 cat >>confdefs.h <<_ACEOF
5581 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5586 # Check whether --enable-targets was given.
5587 if test "${enable_targets+set}" = set; then
5588 enableval=$enable_targets;
5593 if test "$enableval" = host-only ; then
5596 case "$enableval" in
5597 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5598 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5600 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5601 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5602 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5603 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5604 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5605 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5606 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5607 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5608 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5609 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5610 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5611 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5612 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5613 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5614 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5615 host) case "$llvm_cv_target_arch" in
5616 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5617 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5618 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5619 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5620 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5621 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5622 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5623 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5624 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5625 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5626 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5627 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5628 echo "$as_me: error: Can not set target to build" >&2;}
5629 { (exit 1); exit 1; }; } ;;
5631 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5632 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5633 { (exit 1); exit 1; }; } ;;
5639 # Check whether --enable-experimental-targets was given.
5640 if test "${enable_experimental_targets+set}" = set; then
5641 enableval=$enable_experimental_targets;
5647 if test ${enableval} != "disable"
5649 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5652 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5655 for a_target in $TARGETS_TO_BUILD; do
5656 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5658 cat >>confdefs.h <<_ACEOF
5659 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5662 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5663 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5664 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5665 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5666 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5667 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5669 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5670 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5673 cat >>confdefs.h <<_ACEOF
5674 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5678 cat >>confdefs.h <<_ACEOF
5679 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5683 cat >>confdefs.h <<_ACEOF
5684 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5688 cat >>confdefs.h <<_ACEOF
5689 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5692 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5694 cat >>confdefs.h <<_ACEOF
5695 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5699 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5701 cat >>confdefs.h <<_ACEOF
5702 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5709 LLVM_ENUM_TARGETS=""
5710 LLVM_ENUM_ASM_PRINTERS=""
5711 LLVM_ENUM_ASM_PARSERS=""
5712 LLVM_ENUM_DISASSEMBLERS=""
5713 for target_to_build in $TARGETS_TO_BUILD; do
5714 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5715 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5716 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5718 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5719 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5721 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5722 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5731 # Check whether --with-optimize-option was given.
5732 if test "${with_optimize_option+set}" = set; then
5733 withval=$with_optimize_option;
5738 { echo "$as_me:$LINENO: checking optimization flags" >&5
5739 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5742 case "$llvm_cv_os_type" in
5743 FreeBSD) optimize_option=-O2 ;;
5744 MingW) optimize_option=-O2 ;;
5745 *) optimize_option=-O3 ;;
5747 *) optimize_option="$withval" ;;
5749 OPTIMIZE_OPTION=$optimize_option
5751 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5752 echo "${ECHO_T}$optimize_option" >&6; }
5755 # Check whether --with-extra-options was given.
5756 if test "${with_extra_options+set}" = set; then
5757 withval=$with_extra_options;
5763 default) EXTRA_OPTIONS= ;;
5764 *) EXTRA_OPTIONS=$withval ;;
5766 EXTRA_OPTIONS=$EXTRA_OPTIONS
5770 # Check whether --with-extra-ld-options was given.
5771 if test "${with_extra_ld_options+set}" = set; then
5772 withval=$with_extra_ld_options;
5778 default) EXTRA_LD_OPTIONS= ;;
5779 *) EXTRA_LD_OPTIONS=$withval ;;
5781 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5784 # Check whether --enable-bindings was given.
5785 if test "${enable_bindings+set}" = set; then
5786 enableval=$enable_bindings;
5791 BINDINGS_TO_BUILD=""
5792 case "$enableval" in
5793 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5794 all ) BINDINGS_TO_BUILD="ocaml" ;;
5795 none | no) BINDINGS_TO_BUILD="" ;;
5796 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5797 case "$a_binding" in
5798 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5799 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5800 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5801 { (exit 1); exit 1; }; } ;;
5808 # Check whether --with-ocaml-libdir was given.
5809 if test "${with_ocaml_libdir+set}" = set; then
5810 withval=$with_ocaml_libdir;
5816 auto) with_ocaml_libdir="$withval" ;;
5817 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5818 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5819 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5820 { (exit 1); exit 1; }; } ;;
5824 # Check whether --with-clang-srcdir was given.
5825 if test "${with_clang_srcdir+set}" = set; then
5826 withval=$with_clang_srcdir;
5832 -) clang_src_root="" ;;
5833 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5834 *) clang_src_root="$ac_pwd/$withval" ;;
5836 CLANG_SRC_ROOT=$clang_src_root
5840 # Check whether --with-clang-resource-dir was given.
5841 if test "${with_clang_resource_dir+set}" = set; then
5842 withval=$with_clang_resource_dir;
5848 cat >>confdefs.h <<_ACEOF
5849 #define CLANG_RESOURCE_DIR "$withval"
5854 # Check whether --with-c-include-dirs was given.
5855 if test "${with_c_include_dirs+set}" = set; then
5856 withval=$with_c_include_dirs;
5862 cat >>confdefs.h <<_ACEOF
5863 #define C_INCLUDE_DIRS "$withval"
5867 # Clang normally uses the system c++ headers and libraries. With this option,
5868 # clang will use the ones provided by a gcc installation instead. This option should
5869 # be passed the same value that was used with --prefix when configuring gcc.
5871 # Check whether --with-gcc-toolchain was given.
5872 if test "${with_gcc_toolchain+set}" = set; then
5873 withval=$with_gcc_toolchain;
5879 cat >>confdefs.h <<_ACEOF
5880 #define GCC_INSTALL_PREFIX "$withval"
5885 # Check whether --with-default-sysroot was given.
5886 if test "${with_default_sysroot+set}" = set; then
5887 withval=$with_default_sysroot;
5893 cat >>confdefs.h <<_ACEOF
5894 #define DEFAULT_SYSROOT "$withval"
5899 # Check whether --with-binutils-include was given.
5900 if test "${with_binutils_include+set}" = set; then
5901 withval=$with_binutils_include;
5907 default) WITH_BINUTILS_INCDIR=default ;;
5908 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5909 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5910 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5911 { (exit 1); exit 1; }; } ;;
5913 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5914 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5916 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5917 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5918 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5919 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5920 { (exit 1); exit 1; }; };
5925 # Check whether --with-bug-report-url was given.
5926 if test "${with_bug_report_url+set}" = set; then
5927 withval=$with_bug_report_url;
5929 withval="http://llvm.org/bugs/"
5933 cat >>confdefs.h <<_ACEOF
5934 #define BUG_REPORT_URL "$withval"
5938 # Check whether --enable-libffi was given.
5939 if test "${enable_libffi+set}" = set; then
5940 enableval=$enable_libffi; case "$enableval" in
5941 yes) llvm_cv_enable_libffi="yes" ;;
5942 no) llvm_cv_enable_libffi="no" ;;
5943 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5944 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5945 { (exit 1); exit 1; }; } ;;
5948 llvm_cv_enable_libffi=no
5953 # Check whether --with-internal-prefix was given.
5954 if test "${with_internal_prefix+set}" = set; then
5955 withval=$with_internal_prefix;
5960 INTERNAL_PREFIX=$withval
5964 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5965 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5966 if test "${lt_cv_path_NM+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 if test -n "$NM"; then
5970 # Let the user override the test.
5973 lt_nm_to_check="${ac_tool_prefix}nm"
5974 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5975 lt_nm_to_check="$lt_nm_to_check nm"
5977 for lt_tmp_nm in $lt_nm_to_check; do
5978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5979 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5981 test -z "$ac_dir" && ac_dir=.
5982 tmp_nm="$ac_dir/$lt_tmp_nm"
5983 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5984 # Check to see if the nm accepts a BSD-compat flag.
5985 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5986 # nm: unknown option "B" ignored
5987 # Tru64's nm complains that /dev/null is an invalid object file
5988 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5989 */dev/null* | *'Invalid file or object type'*)
5990 lt_cv_path_NM="$tmp_nm -B"
5994 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5996 lt_cv_path_NM="$tmp_nm -p"
6000 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6001 continue # so that we can try to find one that supports BSD flags
6010 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6013 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6014 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6019 { echo "$as_me:$LINENO: checking for GNU make" >&5
6020 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6021 if test "${llvm_cv_gnu_make_command+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 llvm_cv_gnu_make_command=''
6025 for a in "$MAKE" make gmake gnumake ; do
6026 if test -z "$a" ; then continue ; fi ;
6027 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6029 llvm_cv_gnu_make_command=$a ;
6034 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6035 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6036 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6040 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6041 echo "${ECHO_T}\"Not found\"" >&6; };
6045 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6046 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6048 if test "$LN_S" = "ln -s"; then
6049 { echo "$as_me:$LINENO: result: yes" >&5
6050 echo "${ECHO_T}yes" >&6; }
6052 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6053 echo "${ECHO_T}no, using $LN_S" >&6; }
6056 # Extract the first word of "cmp", so it can be a program name with args.
6057 set dummy cmp; ac_word=$2
6058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060 if test "${ac_cv_path_CMP+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6088 if test -n "$CMP"; then
6089 { echo "$as_me:$LINENO: result: $CMP" >&5
6090 echo "${ECHO_T}$CMP" >&6; }
6092 { echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6; }
6097 # Extract the first word of "cp", so it can be a program name with args.
6098 set dummy cp; ac_word=$2
6099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101 if test "${ac_cv_path_CP+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6129 if test -n "$CP"; then
6130 { echo "$as_me:$LINENO: result: $CP" >&5
6131 echo "${ECHO_T}$CP" >&6; }
6133 { echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6; }
6138 # Extract the first word of "date", so it can be a program name with args.
6139 set dummy date; ac_word=$2
6140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142 if test "${ac_cv_path_DATE+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6169 DATE=$ac_cv_path_DATE
6170 if test -n "$DATE"; then
6171 { echo "$as_me:$LINENO: result: $DATE" >&5
6172 echo "${ECHO_T}$DATE" >&6; }
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6179 # Extract the first word of "find", so it can be a program name with args.
6180 set dummy find; ac_word=$2
6181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183 if test "${ac_cv_path_FIND+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6210 FIND=$ac_cv_path_FIND
6211 if test -n "$FIND"; then
6212 { echo "$as_me:$LINENO: result: $FIND" >&5
6213 echo "${ECHO_T}$FIND" >&6; }
6215 { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6220 # Extract the first word of "grep", so it can be a program name with args.
6221 set dummy grep; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_path_GREP+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6251 GREP=$ac_cv_path_GREP
6252 if test -n "$GREP"; then
6253 { echo "$as_me:$LINENO: result: $GREP" >&5
6254 echo "${ECHO_T}$GREP" >&6; }
6256 { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6261 # Extract the first word of "mkdir", so it can be a program name with args.
6262 set dummy mkdir; ac_word=$2
6263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265 if test "${ac_cv_path_MKDIR+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6292 MKDIR=$ac_cv_path_MKDIR
6293 if test -n "$MKDIR"; then
6294 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6295 echo "${ECHO_T}$MKDIR" >&6; }
6297 { echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6; }
6302 # Extract the first word of "mv", so it can be a program name with args.
6303 set dummy mv; ac_word=$2
6304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306 if test "${ac_cv_path_MV+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6334 if test -n "$MV"; then
6335 { echo "$as_me:$LINENO: result: $MV" >&5
6336 echo "${ECHO_T}$MV" >&6; }
6338 { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348 if test "${ac_cv_prog_RANLIB+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 if test -n "$RANLIB"; then
6352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 RANLIB=$ac_cv_prog_RANLIB
6372 if test -n "$RANLIB"; then
6373 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6374 echo "${ECHO_T}$RANLIB" >&6; }
6376 { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6382 if test -z "$ac_cv_prog_RANLIB"; then
6383 ac_ct_RANLIB=$RANLIB
6384 # Extract the first word of "ranlib", so it can be a program name with args.
6385 set dummy ranlib; ac_word=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 if test -n "$ac_ct_RANLIB"; then
6392 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_RANLIB="ranlib"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6412 if test -n "$ac_ct_RANLIB"; then
6413 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6414 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6416 { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6420 if test "x$ac_ct_RANLIB" = x; then
6423 case $cross_compiling:$ac_tool_warned in
6425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6426 whose name does not start with the host triplet. If you think this
6427 configuration is useful to you, please write to autoconf@gnu.org." >&5
6428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6429 whose name does not start with the host triplet. If you think this
6430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6431 ac_tool_warned=yes ;;
6433 RANLIB=$ac_ct_RANLIB
6436 RANLIB="$ac_cv_prog_RANLIB"
6439 if test -n "$ac_tool_prefix"; then
6440 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}ar; ac_word=$2
6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444 if test "${ac_cv_prog_AR+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 if test -n "$AR"; then
6448 ac_cv_prog_AR="$AR" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_AR="${ac_tool_prefix}ar"
6458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 if test -n "$AR"; then
6469 { echo "$as_me:$LINENO: result: $AR" >&5
6470 echo "${ECHO_T}$AR" >&6; }
6472 { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6478 if test -z "$ac_cv_prog_AR"; then
6480 # Extract the first word of "ar", so it can be a program name with args.
6481 set dummy ar; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 if test -n "$ac_ct_AR"; then
6488 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
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_prog_ac_ct_AR="ar"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6508 if test -n "$ac_ct_AR"; then
6509 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6510 echo "${ECHO_T}$ac_ct_AR" >&6; }
6512 { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6516 if test "x$ac_ct_AR" = x; then
6519 case $cross_compiling:$ac_tool_warned in
6521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6522 whose name does not start with the host triplet. If you think this
6523 configuration is useful to you, please write to autoconf@gnu.org." >&5
6524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6525 whose name does not start with the host triplet. If you think this
6526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6527 ac_tool_warned=yes ;;
6535 # Extract the first word of "rm", so it can be a program name with args.
6536 set dummy rm; ac_word=$2
6537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539 if test "${ac_cv_path_RM+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6567 if test -n "$RM"; then
6568 { echo "$as_me:$LINENO: result: $RM" >&5
6569 echo "${ECHO_T}$RM" >&6; }
6571 { echo "$as_me:$LINENO: result: no" >&5
6572 echo "${ECHO_T}no" >&6; }
6576 # Extract the first word of "sed", so it can be a program name with args.
6577 set dummy sed; ac_word=$2
6578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6580 if test "${ac_cv_path_SED+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6608 if test -n "$SED"; then
6609 { echo "$as_me:$LINENO: result: $SED" >&5
6610 echo "${ECHO_T}$SED" >&6; }
6612 { echo "$as_me:$LINENO: result: no" >&5
6613 echo "${ECHO_T}no" >&6; }
6617 # Extract the first word of "tar", so it can be a program name with args.
6618 set dummy tar; ac_word=$2
6619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621 if test "${ac_cv_path_TAR+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6636 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6649 if test -n "$TAR"; then
6650 { echo "$as_me:$LINENO: result: $TAR" >&5
6651 echo "${ECHO_T}$TAR" >&6; }
6653 { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6658 # Extract the first word of "pwd", so it can be a program name with args.
6659 set dummy pwd; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_path_BINPWD+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6689 BINPWD=$ac_cv_path_BINPWD
6690 if test -n "$BINPWD"; then
6691 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6692 echo "${ECHO_T}$BINPWD" >&6; }
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6700 # Extract the first word of "Graphviz", so it can be a program name with args.
6701 set dummy Graphviz; ac_word=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6719 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6731 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6732 if test -n "$GRAPHVIZ"; then
6733 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6734 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6736 { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6741 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6743 cat >>confdefs.h <<\_ACEOF
6744 #define HAVE_GRAPHVIZ 1
6747 if test "$llvm_cv_os_type" = "MingW" ; then
6748 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6751 cat >>confdefs.h <<_ACEOF
6752 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6756 # Extract the first word of "dot", so it can be a program name with args.
6757 set dummy dot; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_path_DOT+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6788 if test -n "$DOT"; then
6789 { echo "$as_me:$LINENO: result: $DOT" >&5
6790 echo "${ECHO_T}$DOT" >&6; }
6792 { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6797 if test "$DOT" != "echo dot" ; then
6799 cat >>confdefs.h <<\_ACEOF
6803 if test "$llvm_cv_os_type" = "MingW" ; then
6804 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6807 cat >>confdefs.h <<_ACEOF
6808 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6812 # Extract the first word of "fdp", so it can be a program name with args.
6813 set dummy fdp; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_FDP+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6844 if test -n "$FDP"; then
6845 { echo "$as_me:$LINENO: result: $FDP" >&5
6846 echo "${ECHO_T}$FDP" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 if test "$FDP" != "echo fdp" ; then
6855 cat >>confdefs.h <<\_ACEOF
6859 if test "$llvm_cv_os_type" = "MingW" ; then
6860 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6863 cat >>confdefs.h <<_ACEOF
6864 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6868 # Extract the first word of "neato", so it can be a program name with args.
6869 set dummy neato; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_path_NEATO+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6899 NEATO=$ac_cv_path_NEATO
6900 if test -n "$NEATO"; then
6901 { echo "$as_me:$LINENO: result: $NEATO" >&5
6902 echo "${ECHO_T}$NEATO" >&6; }
6904 { echo "$as_me:$LINENO: result: no" >&5
6905 echo "${ECHO_T}no" >&6; }
6909 if test "$NEATO" != "echo neato" ; then
6911 cat >>confdefs.h <<\_ACEOF
6912 #define HAVE_NEATO 1
6915 if test "$llvm_cv_os_type" = "MingW" ; then
6916 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6919 cat >>confdefs.h <<_ACEOF
6920 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6924 # Extract the first word of "twopi", so it can be a program name with args.
6925 set dummy twopi; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_path_TWOPI+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6955 TWOPI=$ac_cv_path_TWOPI
6956 if test -n "$TWOPI"; then
6957 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6958 echo "${ECHO_T}$TWOPI" >&6; }
6960 { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6965 if test "$TWOPI" != "echo twopi" ; then
6967 cat >>confdefs.h <<\_ACEOF
6968 #define HAVE_TWOPI 1
6971 if test "$llvm_cv_os_type" = "MingW" ; then
6972 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6975 cat >>confdefs.h <<_ACEOF
6976 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6980 # Extract the first word of "circo", so it can be a program name with args.
6981 set dummy circo; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_path_CIRCO+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7011 CIRCO=$ac_cv_path_CIRCO
7012 if test -n "$CIRCO"; then
7013 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7014 echo "${ECHO_T}$CIRCO" >&6; }
7016 { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7021 if test "$CIRCO" != "echo circo" ; then
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_CIRCO 1
7027 if test "$llvm_cv_os_type" = "MingW" ; then
7028 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7031 cat >>confdefs.h <<_ACEOF
7032 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7036 for ac_prog in gv gsview32
7038 # Extract the first word of "$ac_prog", so it can be a program name with args.
7039 set dummy $ac_prog; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_GV+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 if test -n "$GV"; then
7070 { echo "$as_me:$LINENO: result: $GV" >&5
7071 echo "${ECHO_T}$GV" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7078 test -n "$GV" && break
7080 test -n "$GV" || GV="echo gv"
7082 if test "$GV" != "echo gv" ; then
7084 cat >>confdefs.h <<\_ACEOF
7088 if test "$llvm_cv_os_type" = "MingW" ; then
7089 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7092 cat >>confdefs.h <<_ACEOF
7093 #define LLVM_PATH_GV "$GV${EXEEXT}"
7097 # Extract the first word of "dotty", so it can be a program name with args.
7098 set dummy dotty; 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_DOTTY+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_cv_path_DOTTY="$DOTTY" # 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_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7128 DOTTY=$ac_cv_path_DOTTY
7129 if test -n "$DOTTY"; then
7130 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7131 echo "${ECHO_T}$DOTTY" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7138 if test "$DOTTY" != "echo dotty" ; then
7140 cat >>confdefs.h <<\_ACEOF
7141 #define HAVE_DOTTY 1
7144 if test "$llvm_cv_os_type" = "MingW" ; then
7145 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7148 cat >>confdefs.h <<_ACEOF
7149 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7153 # Extract the first word of "xdot.py", so it can be a program name with args.
7154 set dummy xdot.py; ac_word=$2
7155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7157 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7184 XDOT_PY=$ac_cv_path_XDOT_PY
7185 if test -n "$XDOT_PY"; then
7186 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7187 echo "${ECHO_T}$XDOT_PY" >&6; }
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7194 if test "$XDOT_PY" != "echo xdot.py" ; then
7196 cat >>confdefs.h <<\_ACEOF
7197 #define HAVE_XDOT_PY 1
7200 if test "$llvm_cv_os_type" = "MingW" ; then
7201 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7204 cat >>confdefs.h <<_ACEOF
7205 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7210 # Find a good install program. We prefer a C program (faster),
7211 # so one script is as good as another. But avoid the broken or
7212 # incompatible versions:
7213 # SysV /etc/install, /usr/sbin/install
7214 # SunOS /usr/etc/install
7215 # IRIX /sbin/install
7217 # AmigaOS /C/install, which installs bootblocks on floppy discs
7218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7221 # OS/2's system install, which has a completely different semantic
7222 # ./install, which can be erroneously created by make from ./install.sh.
7223 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7224 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7225 if test -z "$INSTALL"; then
7226 if test "${ac_cv_path_install+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 # Account for people who put trailing slashes in PATH elements.
7236 ./ | .// | /cC/* | \
7237 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7238 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7241 # OSF1 and SCO ODT 3.0 have their own names for install.
7242 # Don't use installbsd from OSF since it installs stuff as root
7244 for ac_prog in ginstall scoinst install; do
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7247 if test $ac_prog = install &&
7248 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7249 # AIX install. It has an incompatible calling convention.
7251 elif test $ac_prog = install &&
7252 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7253 # program-specific install script used by HP pwplus--don't use.
7256 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7269 if test "${ac_cv_path_install+set}" = set; then
7270 INSTALL=$ac_cv_path_install
7272 # As a last resort, use the slow shell script. Don't cache a
7273 # value for INSTALL within a source directory, because that will
7274 # break other packages using the cache if that directory is
7275 # removed, or if the value is a relative name.
7276 INSTALL=$ac_install_sh
7279 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7280 echo "${ECHO_T}$INSTALL" >&6; }
7282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7283 # It thinks the first close brace ends the variable substitution.
7284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7291 [\\/$]* | ?:[\\/]* ) ;;
7292 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7295 # Extract the first word of "bzip2", so it can be a program name with args.
7296 set dummy bzip2; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_path_BZIP2+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7314 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 BZIP2=$ac_cv_path_BZIP2
7326 if test -n "$BZIP2"; then
7327 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7328 echo "${ECHO_T}$BZIP2" >&6; }
7330 { echo "$as_me:$LINENO: result: no" >&5
7331 echo "${ECHO_T}no" >&6; }
7335 # Extract the first word of "cat", so it can be a program name with args.
7336 set dummy cat; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_path_CAT+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 if test -n "$CAT"; then
7367 { echo "$as_me:$LINENO: result: $CAT" >&5
7368 echo "${ECHO_T}$CAT" >&6; }
7370 { echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6; }
7375 # Extract the first word of "doxygen", so it can be a program name with args.
7376 set dummy doxygen; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 DOXYGEN=$ac_cv_path_DOXYGEN
7406 if test -n "$DOXYGEN"; then
7407 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7408 echo "${ECHO_T}$DOXYGEN" >&6; }
7410 { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7415 # Extract the first word of "groff", so it can be a program name with args.
7416 set dummy groff; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_path_GROFF+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 GROFF=$ac_cv_path_GROFF
7446 if test -n "$GROFF"; then
7447 { echo "$as_me:$LINENO: result: $GROFF" >&5
7448 echo "${ECHO_T}$GROFF" >&6; }
7450 { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7455 # Extract the first word of "gzip", so it can be a program name with args.
7456 set dummy gzip; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 GZIPBIN=$ac_cv_path_GZIPBIN
7486 if test -n "$GZIPBIN"; then
7487 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7488 echo "${ECHO_T}$GZIPBIN" >&6; }
7490 { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7495 # Extract the first word of "pdfroff", so it can be a program name with args.
7496 set dummy pdfroff; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_PDFROFF+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 PDFROFF=$ac_cv_path_PDFROFF
7526 if test -n "$PDFROFF"; then
7527 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7528 echo "${ECHO_T}$PDFROFF" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7535 # Extract the first word of "zip", so it can be a program name with args.
7536 set dummy zip; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_ZIP+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 if test -n "$ZIP"; then
7567 { echo "$as_me:$LINENO: result: $ZIP" >&5
7568 echo "${ECHO_T}$ZIP" >&6; }
7570 { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7575 for ac_prog in ocamlc
7577 # Extract the first word of "$ac_prog", so it can be a program name with args.
7578 set dummy $ac_prog; ac_word=$2
7579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7581 if test "${ac_cv_path_OCAMLC+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 OCAMLC=$ac_cv_path_OCAMLC
7608 if test -n "$OCAMLC"; then
7609 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7610 echo "${ECHO_T}$OCAMLC" >&6; }
7612 { echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6; }
7617 test -n "$OCAMLC" && break
7620 for ac_prog in ocamlopt
7622 # Extract the first word of "$ac_prog", so it can be a program name with args.
7623 set dummy $ac_prog; ac_word=$2
7624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7626 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 OCAMLOPT=$ac_cv_path_OCAMLOPT
7653 if test -n "$OCAMLOPT"; then
7654 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7655 echo "${ECHO_T}$OCAMLOPT" >&6; }
7657 { echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6; }
7662 test -n "$OCAMLOPT" && break
7665 for ac_prog in ocamldep
7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
7668 set dummy $ac_prog; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 OCAMLDEP=$ac_cv_path_OCAMLDEP
7698 if test -n "$OCAMLDEP"; then
7699 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7700 echo "${ECHO_T}$OCAMLDEP" >&6; }
7702 { echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6; }
7707 test -n "$OCAMLDEP" && break
7710 for ac_prog in ocamldoc
7712 # Extract the first word of "$ac_prog", so it can be a program name with args.
7713 set dummy $ac_prog; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 OCAMLDOC=$ac_cv_path_OCAMLDOC
7743 if test -n "$OCAMLDOC"; then
7744 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7745 echo "${ECHO_T}$OCAMLDOC" >&6; }
7747 { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7752 test -n "$OCAMLDOC" && break
7755 for ac_prog in gas as
7757 # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7761 if test "${ac_cv_path_GAS+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 if test -n "$GAS"; then
7789 { echo "$as_me:$LINENO: result: $GAS" >&5
7790 echo "${ECHO_T}$GAS" >&6; }
7792 { echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6; }
7797 test -n "$GAS" && break
7801 { echo "$as_me:$LINENO: checking for linker version" >&5
7802 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7803 if test "${llvm_cv_link_version+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 version_string="$(ld -v 2>&1 | head -1)"
7810 if (echo "$version_string" | grep -q "ld64"); then
7811 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7813 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7817 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7818 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7820 cat >>confdefs.h <<_ACEOF
7821 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7826 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7827 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7828 if test "${llvm_cv_link_use_r+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 ac_cpp='$CPP $CPPFLAGS'
7833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7838 CFLAGS="$CFLAGS -Wl,-R."
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 if { (ac_try="$ac_link"
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_link") 2>conftest.er1
7863 grep -v '^ *+' conftest.er1 >conftest.err
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7869 { (case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_try") 2>&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_try") 2>&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 llvm_cv_link_use_r=yes
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 llvm_cv_link_use_r=no
7896 rm -f core conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7908 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7909 if test "$llvm_cv_link_use_r" = yes ; then
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_LINK_R 1
7918 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7919 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7920 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7931 cat >conftest.$ac_ext <<_ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; } &&
7970 { ac_try='test -s conftest$ac_exeext'
7971 { (case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_try") 2>&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 llvm_cv_link_use_export_dynamic=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 llvm_cv_link_use_export_dynamic=no
7988 rm -f core conftest.err conftest.$ac_objext \
7989 conftest$ac_exeext conftest.$ac_ext
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7999 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8000 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8001 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8003 cat >>confdefs.h <<\_ACEOF
8004 #define HAVE_LINK_EXPORT_DYNAMIC 1
8010 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8011 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8012 if test "${llvm_cv_link_use_version_script+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 ac_cpp='$CPP $CPPFLAGS'
8017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023 # The following code is from the autoconf manual,
8024 # "11.13: Limitations of Usual Tools".
8025 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8026 # Use mktemp if possible; otherwise fall back on mkdir,
8027 # with $RANDOM to make collisions less likely.
8031 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8033 test -n "$tmp" && test -d "$tmp"
8035 tmp=$TMPDIR/foo$$-$RANDOM
8036 (umask 077 && mkdir "$tmp")
8039 echo "{" > "$tmp/export.map"
8040 echo " global: main;" >> "$tmp/export.map"
8041 echo " local: *;" >> "$tmp/export.map"
8042 echo "};" >> "$tmp/export.map"
8044 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8045 cat >conftest.$ac_ext <<_ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (ac_try="$ac_link"
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_link") 2>conftest.er1
8069 grep -v '^ *+' conftest.er1 >conftest.err
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8075 { (case "(($ac_try" in
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080 (eval "$ac_try") 2>&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; } &&
8084 { ac_try='test -s conftest$ac_exeext'
8085 { (case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_try") 2>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8094 llvm_cv_link_use_version_script=yes
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8099 llvm_cv_link_use_version_script=no
8102 rm -f core conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8104 rm "$tmp/export.map"
8108 ac_cpp='$CPP $CPPFLAGS'
8109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8115 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8116 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8117 if test "$llvm_cv_link_use_version_script" = yes ; then
8118 HAVE_LINK_VERSION_SCRIPT=1
8125 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8126 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8127 if test "${ac_cv_c_const+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8140 /* FIXME: Include the comments suggested by Paul. */
8142 /* Ultrix mips cc rejects this. */
8143 typedef int charset[2];
8145 /* SunOS 4.1.1 cc rejects this. */
8146 char const *const *ccp;
8148 /* NEC SVR4.0.2 mips cc rejects this. */
8149 struct point {int x, y;};
8150 static struct point const zero = {0,0};
8151 /* AIX XL C 1.02.0.0 rejects this.
8152 It does not let you subtract one const X* pointer from another in
8153 an arm of an if-expression whose if-part is not a constant
8155 const char *g = "string";
8156 ccp = &g + (g ? g-g : 0);
8157 /* HPUX 7.0 cc rejects these. */
8160 ccp = (char const *const *) p;
8161 { /* SCO 3.2v4 cc rejects this. */
8163 char const *s = 0 ? (char *) 0 : (char const *) 0;
8168 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8170 const int *foo = &x[0];
8173 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8174 typedef const int *iptr;
8178 { /* AIX XL C 1.02.0.0 rejects this saying
8179 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8180 struct s { int j; const int *ap[3]; };
8181 struct s *b; b->j = 5;
8183 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8187 return !x[0] && !zero.x;
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8239 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8240 if test $ac_cv_c_const = no; then
8242 cat >>confdefs.h <<\_ACEOF
8254 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8255 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8256 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8257 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 cat >conftest.$ac_ext <<_ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 #include <sys/types.h>
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8288 grep -v '^ *+' conftest.er1 >conftest.err
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try='test -s conftest.$ac_objext'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 eval "$as_ac_Header=yes"
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 eval "$as_ac_Header=no"
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 ac_res=`eval echo '${'$as_ac_Header'}'`
8324 { echo "$as_me:$LINENO: result: $ac_res" >&5
8325 echo "${ECHO_T}$ac_res" >&6; }
8326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8327 cat >>confdefs.h <<_ACEOF
8328 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8331 ac_header_dirent=$ac_hdr; break
8335 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8336 if test $ac_header_dirent = dirent.h; then
8337 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8338 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8339 if test "${ac_cv_search_opendir+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 ac_func_search_save_LIBS=$LIBS
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8350 /* Override any GCC internal prototype to avoid an error.
8351 Use char because int might match the return type of a GCC
8352 builtin and then its argument prototype would still apply. */
8365 for ac_lib in '' dir; do
8366 if test -z "$ac_lib"; then
8367 ac_res="none required"
8370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (ac_try="$ac_link"
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_link") 2>conftest.er1
8381 grep -v '^ *+' conftest.er1 >conftest.err
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8387 { (case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_try") 2>&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; } &&
8396 { ac_try='test -s conftest$ac_exeext'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_cv_search_opendir=$ac_res
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8414 rm -f core conftest.err conftest.$ac_objext \
8416 if test "${ac_cv_search_opendir+set}" = set; then
8420 if test "${ac_cv_search_opendir+set}" = set; then
8423 ac_cv_search_opendir=no
8426 LIBS=$ac_func_search_save_LIBS
8428 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8429 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8430 ac_res=$ac_cv_search_opendir
8431 if test "$ac_res" != no; then
8432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8437 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8438 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8439 if test "${ac_cv_search_opendir+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 ac_func_search_save_LIBS=$LIBS
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8450 /* Override any GCC internal prototype to avoid an error.
8451 Use char because int might match the return type of a GCC
8452 builtin and then its argument prototype would still apply. */
8465 for ac_lib in '' x; do
8466 if test -z "$ac_lib"; then
8467 ac_res="none required"
8470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_cv_search_opendir=$ac_res
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8514 rm -f core conftest.err conftest.$ac_objext \
8516 if test "${ac_cv_search_opendir+set}" = set; then
8520 if test "${ac_cv_search_opendir+set}" = set; then
8523 ac_cv_search_opendir=no
8526 LIBS=$ac_func_search_save_LIBS
8528 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8529 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8530 ac_res=$ac_cv_search_opendir
8531 if test "$ac_res" != no; then
8532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8539 for ac_header in dlfcn.h
8541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_res=`eval echo '${'$as_ac_Header'}'`
8549 { echo "$as_me:$LINENO: result: $ac_res" >&5
8550 echo "${ECHO_T}$ac_res" >&6; }
8552 # Is the header compilable?
8553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8555 cat >conftest.$ac_ext <<_ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 $ac_includes_default
8562 #include <$ac_header>
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_try") 2>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_try") 2>&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
8598 ac_header_compiler=yes
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 ac_header_compiler=no
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6; }
8610 # Is the header present?
8611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8613 cat >conftest.$ac_ext <<_ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 #include <$ac_header>
8621 if { (ac_try="$ac_cpp conftest.$ac_ext"
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8629 grep -v '^ *+' conftest.er1 >conftest.err
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } >/dev/null; then
8634 if test -s conftest.err; then
8635 ac_cpp_err=$ac_c_preproc_warn_flag
8636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8643 if test -z "$ac_cpp_err"; then
8644 ac_header_preproc=yes
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 ac_header_preproc=no
8652 rm -f conftest.err conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8654 echo "${ECHO_T}$ac_header_preproc" >&6; }
8656 # So? What about this header?
8657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8663 ac_header_preproc=yes
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8679 ## ------------------------------------ ##
8680 ## Report this to http://llvm.org/bugs/ ##
8681 ## ------------------------------------ ##
8683 ) | sed "s/^/$as_me: WARNING: /" >&2
8686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 eval "$as_ac_Header=\$ac_header_preproc"
8693 ac_res=`eval echo '${'$as_ac_Header'}'`
8694 { echo "$as_me:$LINENO: result: $ac_res" >&5
8695 echo "${ECHO_T}$ac_res" >&6; }
8698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8699 cat >>confdefs.h <<_ACEOF
8700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8707 # Check whether --enable-ltdl-install was given.
8708 if test "${enable_ltdl_install+set}" = set; then
8709 enableval=$enable_ltdl_install;
8715 if test x"${enable_ltdl_install-no}" != xno; then
8717 INSTALL_LTDL_FALSE='#'
8719 INSTALL_LTDL_TRUE='#'
8725 if test x"${enable_ltdl_convenience-no}" != xno; then
8726 CONVENIENCE_LTDL_TRUE=
8727 CONVENIENCE_LTDL_FALSE='#'
8729 CONVENIENCE_LTDL_TRUE='#'
8730 CONVENIENCE_LTDL_FALSE=
8734 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8735 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8737 libname_spec='lib$name'
8745 shlibpath_overrides_runpath=unknown
8747 dynamic_linker="$host_os ld.so"
8748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8749 if test "$GCC" = yes; then
8750 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8752 # if the path contains ";" then we assume it to be the separator
8753 # otherwise default to the standard path separator (i.e. ":") - it is
8754 # assumed that no part of a normal pathname contains ";" but that should
8755 # okay in the real world where ";" in dirpaths is itself problematic.
8756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8763 need_lib_prefix=unknown
8764 hardcode_into_libs=no
8766 # when you set need_version to no, make sure it does not cause -set_version
8767 # flags to be left without arguments
8768 need_version=unknown
8773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8774 shlibpath_var=LIBPATH
8776 # AIX 3 has no versioning support, so we append a major version to the name.
8777 soname_spec='${libname}${release}${shared_ext}$major'
8784 hardcode_into_libs=yes
8785 if test "$host_cpu" = ia64; then
8786 # AIX 5 supports IA64
8787 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8788 shlibpath_var=LD_LIBRARY_PATH
8790 # With GCC up to 2.95.x, collect2 would create an import file
8791 # for dependence libraries. The import file would start with
8792 # the line `#! .'. This would cause the generated library to
8793 # depend on `.', always an invalid library. This was fixed in
8794 # development snapshots of GCC prior to 3.0.
8796 aix4 | aix4.[01] | aix4.[01].*)
8797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8799 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8807 # soname into executable. Probably we can add versioning support to
8808 # collect2, so additional links can be useful in future.
8809 if test "$aix_use_runtimelinking" = yes; then
8810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8811 # instead of lib<name>.a to let people know that these are not
8812 # typical AIX shared libraries.
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 # We preserve .a as extension for shared libraries through AIX4.2
8816 # and later when we are not doing run time linking.
8817 library_names_spec='${libname}${release}.a $libname.a'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8820 shlibpath_var=LIBPATH
8825 library_names_spec='$libname.ixlibrary $libname.a'
8826 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8827 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'
8831 library_names_spec='${libname}${shared_ext}'
8832 dynamic_linker="$host_os ld.so"
8833 shlibpath_var=LIBRARY_PATH
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8842 shlibpath_var=LD_LIBRARY_PATH
8843 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8844 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8845 # the default ld.so.conf also contains /usr/contrib/lib and
8846 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8847 # libtool to hard-code these into programs
8850 cygwin* | mingw* | pw32*)
8851 version_type=windows
8856 case $GCC,$host_os in
8857 yes,cygwin* | yes,mingw* | yes,pw32*)
8858 library_names_spec='$libname.dll.a'
8859 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8860 postinstall_cmds='base_file=`basename \${file}`~
8861 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8862 dldir=$destdir/`dirname \$dlpath`~
8863 test -d \$dldir || mkdir -p \$dldir~
8864 $install_prog $dir/$dlname \$dldir/$dlname~
8865 chmod a+x \$dldir/$dlname'
8866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8867 dlpath=$dir/\$dldll~
8869 shlibpath_overrides_runpath=yes
8873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8875 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8878 # MinGW DLLs use traditional 'lib' prefix
8879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8881 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8882 # It is most probably a Windows format PATH printed by
8883 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8884 # path with ; separators, and with drive letters. We can handle the
8885 # drive letters (cygwin fileutils understands them), so leave them,
8886 # especially as we might pass files found there to a mingw objdump,
8887 # which wouldn't understand a cygwinified path. Ahh.
8888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8894 # pw32 DLLs use 'pw' prefix rather than 'lib'
8895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8904 dynamic_linker='Win32 ld.exe'
8905 # FIXME: first we should search . and the directory the executable is in
8909 darwin* | rhapsody*)
8910 dynamic_linker="$host_os dyld"
8914 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8915 soname_spec='${libname}${release}${major}$shared_ext'
8916 shlibpath_overrides_runpath=yes
8917 shlibpath_var=DYLD_LIBRARY_PATH
8918 shrext_cmds='.dylib'
8919 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8920 if test "$GCC" = yes; then
8921 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"`
8923 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8925 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=no
8949 hardcode_into_libs=yes
8950 dynamic_linker='GNU ld.so'
8953 freebsd* | dragonfly*)
8954 # DragonFly does not have aout. When/if they implement a new
8955 # versioning mechanism, adjust this.
8956 if test -x /usr/bin/objformat; then
8957 objformat=`/usr/bin/objformat`
8960 freebsd[123].*) objformat=aout ;;
8964 version_type=freebsd-$objformat
8965 case $version_type in
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8976 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8981 freebsd3.[01]* | freebsdelf3.[01]*)
8982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8987 shlibpath_overrides_runpath=no
8988 hardcode_into_libs=yes
8990 freebsd*) # from 4.6 on
8991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 hardcode_into_libs=yes
9007 hpux9* | hpux10* | hpux11*)
9008 # Give a soname corresponding to the major version so that dld.sl refuses to
9009 # link against other versions.
9016 hardcode_into_libs=yes
9017 dynamic_linker="$host_os dld.so"
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 if test "X$HPUX_IA64_MODE" = X32; then
9023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9031 hardcode_into_libs=yes
9032 dynamic_linker="$host_os dld.sl"
9033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9042 dynamic_linker="$host_os dld.sl"
9043 shlibpath_var=SHLIB_PATH
9044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9050 postinstall_cmds='chmod 555 $lib'
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9065 irix5* | irix6* | nonstopux*)
9067 nonstopux*) version_type=nonstopux ;;
9069 if test "$lt_cv_prog_gnu_ld" = yes; then
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9080 irix5* | nonstopux*)
9084 case $LD in # libtool.m4 will add one of these switches to LD
9085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9086 libsuff= shlibsuff= libmagic=32-bit;;
9087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9088 libsuff=32 shlibsuff=N32 libmagic=N32;;
9089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9091 *) libsuff= shlibsuff= libmagic=never-match;;
9095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9096 shlibpath_overrides_runpath=no
9097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9099 hardcode_into_libs=yes
9102 # No shared lib support for Linux oldld, aout, or coff.
9103 linux*oldld* | linux*aout* | linux*coff*)
9107 # This must be Linux ELF.
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 # This implies no fast_install, which is unacceptable.
9118 # Some rework will be needed to allow for fast_install
9119 # before this can be enabled.
9120 hardcode_into_libs=yes
9122 # Append ld.so.conf contents to the search path
9123 if test -f /etc/ld.so.conf; then
9124 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' ' '`
9125 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9128 # We used to test for /lib/ld.so.1 and disable shared libraries on
9129 # powerpc, because MkLinux only supported shared libraries with the
9130 # GNU dynamic linker. Since this was broken with cross compilers,
9131 # most powerpc-linux boxes support dynamic linking these days and
9132 # people can always --disable-shared, the test was removed, and we
9133 # assume the GNU/Linux dynamic linker is in use.
9134 dynamic_linker='GNU/Linux ld.so'
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 shlibpath_overrides_runpath=no
9145 hardcode_into_libs=yes
9146 dynamic_linker='GNU ld.so'
9153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9156 dynamic_linker='NetBSD (a.out) ld.so'
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 dynamic_linker='NetBSD ld.elf_so'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes
9164 hardcode_into_libs=yes
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=yes
9186 sys_lib_dlsearch_path_spec="/usr/lib"
9188 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9190 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9191 *) need_version=no ;;
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9198 openbsd2.[89] | openbsd2.[89].*)
9199 shlibpath_overrides_runpath=no
9202 shlibpath_overrides_runpath=yes
9206 shlibpath_overrides_runpath=yes
9211 libname_spec='$name'
9214 library_names_spec='$libname${shared_ext} $libname.a'
9215 dynamic_linker='OS/2 ld.exe'
9216 shlibpath_var=LIBPATH
9219 osf3* | osf4* | osf5*)
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9227 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 shlibpath_overrides_runpath=yes
9238 hardcode_into_libs=yes
9239 # ldd complains unless libraries are executable
9240 postinstall_cmds='chmod +x $lib'
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 if test "$with_gnu_ld" = yes; then
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 case $host_vendor in
9262 shlibpath_overrides_runpath=no
9264 export_dynamic_flag_spec='${wl}-Blargedynsym'
9265 runpath_var=LD_RUN_PATH
9273 shlibpath_overrides_runpath=no
9274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9280 if test -d /usr/nec ;then
9282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9283 soname_spec='$libname${shared_ext}.$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9288 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9289 version_type=freebsd-elf
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 hardcode_into_libs=yes
9296 if test "$with_gnu_ld" = yes; then
9297 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9298 shlibpath_overrides_runpath=no
9300 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9301 shlibpath_overrides_runpath=yes
9304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9308 sys_lib_dlsearch_path_spec='/usr/lib'
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9322 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9323 echo "${ECHO_T}$dynamic_linker" >&6; }
9324 test "$dynamic_linker" = no && can_build_shared=no
9326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9327 if test "$GCC" = yes; then
9328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9332 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9333 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9334 if test "${libltdl_cv_shlibext+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 eval libltdl_cv_shlibext=$shrext_cmds
9342 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9343 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9344 if test -n "$libltdl_cv_shlibext"; then
9346 cat >>confdefs.h <<_ACEOF
9347 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9353 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9354 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9355 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 libltdl_cv_shlibpath_var="$shlibpath_var"
9360 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9361 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9362 if test -n "$libltdl_cv_shlibpath_var"; then
9364 cat >>confdefs.h <<_ACEOF
9365 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9371 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9372 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9373 if test "${libltdl_cv_sys_search_path+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9378 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9379 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9380 if test -n "$libltdl_cv_sys_search_path"; then
9382 for dir in $libltdl_cv_sys_search_path; do
9383 if test -z "$sys_search_path"; then
9384 sys_search_path="$dir"
9386 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9390 cat >>confdefs.h <<_ACEOF
9391 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9396 { echo "$as_me:$LINENO: checking for objdir" >&5
9397 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9398 if test "${libltdl_cv_objdir+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 libltdl_cv_objdir="$objdir"
9402 if test -n "$objdir"; then
9405 rm -f .libs 2>/dev/null
9406 mkdir .libs 2>/dev/null
9407 if test -d .libs; then
9408 libltdl_cv_objdir=.libs
9410 # MS-DOS does not allow filenames that begin with a dot.
9411 libltdl_cv_objdir=_libs
9413 rmdir .libs 2>/dev/null
9417 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9418 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9420 cat >>confdefs.h <<_ACEOF
9421 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9429 # Check for command to grab the raw symbol name followed by C symbol from nm.
9430 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9431 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9432 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 # These are sane defaults that work on at least a few old systems.
9437 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9439 # Character class describing NM global symbol codes.
9440 symcode='[BCDEGRST]'
9442 # Regexp to match symbols that can be accessed directly from C.
9443 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9445 # Transform an extracted symbol line into a proper C declaration
9446 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9448 # Transform an extracted symbol line into symbol name and symbol address
9449 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'"
9451 # Define system-specific variables.
9456 cygwin* | mingw* | pw32*)
9457 symcode='[ABCDGISTW]'
9459 hpux*) # Its linker distinguishes data from code symbols
9460 if test "$host_cpu" = ia64; then
9461 symcode='[ABCDEGRST]'
9463 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9464 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'"
9467 if test "$host_cpu" = ia64; then
9468 symcode='[ABCDGIRSTW]'
9469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9470 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9474 symcode='[BCDEGRST]'
9477 symcode='[BCDEGQRST]'
9488 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9496 # Handle CRLF in mingw tool chain
9500 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9504 # If we're using GNU nm, then use its standard symbol codes.
9505 case `$NM -V 2>&1` in
9506 *GNU* | *'with BFD'*)
9507 symcode='[ABCDGIRSTW]' ;;
9510 # Try without a prefix undercore, then with it.
9511 for ac_symprfx in "" "_"; do
9513 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9514 symxfrm="\\1 $ac_symprfx\\2 \\2"
9516 # Write the raw and C identifiers.
9517 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9519 # Check to see that the pipe works correctly.
9523 cat > conftest.$ac_ext <<EOF
9528 void nm_test_func(){}
9532 int main(){nm_test_var='a';nm_test_func();return(0);}
9535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536 (eval $ac_compile) 2>&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; then
9540 # Now try to grab the symbols.
9542 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9543 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && test -s "$nlist"; then
9547 # Try sorting and uniquifying the output.
9548 if sort "$nlist" | uniq > "$nlist"T; then
9549 mv -f "$nlist"T "$nlist"
9554 # Make sure that we snagged all the symbols we need.
9555 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9556 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9557 cat <<EOF > conftest.$ac_ext
9563 # Now generate the symbol file.
9564 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9566 cat <<EOF >> conftest.$ac_ext
9567 #if defined (__STDC__) && __STDC__
9568 # define lt_ptr_t void *
9570 # define lt_ptr_t char *
9574 /* The mapping between symbol names and symbols. */
9579 lt_preloaded_symbols[] =
9582 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9583 cat <<\EOF >> conftest.$ac_ext
9591 # Now try linking the two files.
9592 mv conftest.$ac_objext conftstm.$ac_objext
9593 lt_save_LIBS="$LIBS"
9594 lt_save_CFLAGS="$CFLAGS"
9595 LIBS="conftstm.$ac_objext"
9596 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598 (eval $ac_link) 2>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9604 LIBS="$lt_save_LIBS"
9605 CFLAGS="$lt_save_CFLAGS"
9607 echo "cannot find nm_test_func in $nlist" >&5
9610 echo "cannot find nm_test_var in $nlist" >&5
9613 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9616 echo "$progname: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9619 rm -f conftest* conftst*
9621 # Do not use the global_symbol_pipe unless it works.
9622 if test "$pipe_works" = yes; then
9625 lt_cv_sys_global_symbol_pipe=
9631 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9632 lt_cv_sys_global_symbol_to_cdecl=
9634 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9635 { echo "$as_me:$LINENO: result: failed" >&5
9636 echo "${ECHO_T}failed" >&6; }
9638 { echo "$as_me:$LINENO: result: ok" >&5
9639 echo "${ECHO_T}ok" >&6; }
9643 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9644 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9645 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9649 libltdl_cv_preloaded_symbols=yes
9651 libltdl_cv_preloaded_symbols=no
9655 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9656 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9657 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9659 cat >>confdefs.h <<\_ACEOF
9660 #define HAVE_PRELOADED_SYMBOLS 1
9668 ac_cpp='$CPP $CPPFLAGS'
9669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9674 { echo "$as_me:$LINENO: checking for shl_load" >&5
9675 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9676 if test "${ac_cv_func_shl_load+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9685 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9687 #define shl_load innocuous_shl_load
9689 /* System header to define __stub macros and hopefully few prototypes,
9690 which can conflict with char shl_load (); below.
9691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9692 <limits.h> exists even on freestanding compilers. */
9695 # include <limits.h>
9697 # include <assert.h>
9702 /* Override any GCC internal prototype to avoid an error.
9703 Use char because int might match the return type of a GCC
9704 builtin and then its argument prototype would still apply. */
9709 /* The GNU C library defines this for functions which it implements
9710 to always fail with ENOSYS. Some functions are actually named
9711 something starting with __ and the normal name is an alias. */
9712 #if defined __stub_shl_load || defined __stub___shl_load
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_link") 2>conftest.er1
9733 grep -v '^ *+' conftest.er1 >conftest.err
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9739 { (case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_try") 2>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_try") 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_func_shl_load=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_cv_func_shl_load=no
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9769 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9770 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9771 if test $ac_cv_func_shl_load = yes; then
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_SHL_LOAD 1
9778 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9779 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9780 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 ac_check_lib_save_LIBS=$LIBS
9785 cat >conftest.$ac_ext <<_ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9792 /* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (ac_try="$ac_link"
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_link") 2>conftest.er1
9816 grep -v '^ *+' conftest.er1 >conftest.err
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9822 { (case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_try") 2>&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; } &&
9831 { ac_try='test -s conftest$ac_exeext'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_lib_dld_shl_load=yes
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_cv_lib_dld_shl_load=no
9849 rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9855 if test $ac_cv_lib_dld_shl_load = yes; then
9857 cat >>confdefs.h <<\_ACEOF
9858 #define HAVE_SHL_LOAD 1
9861 LIBADD_DL="$LIBADD_DL -ldld"
9863 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9864 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 ac_check_lib_save_LIBS=$LIBS
9870 cat >conftest.$ac_ext <<_ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9877 /* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9901 grep -v '^ *+' conftest.er1 >conftest.err
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_cv_lib_dl_dlopen=yes
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_cv_lib_dl_dlopen=no
9934 rm -f core conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9938 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9940 if test $ac_cv_lib_dl_dlopen = yes; then
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_LIBDL 1
9946 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (ac_try="$ac_link"
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_link") 2>conftest.er1
9975 grep -v '^ *+' conftest.er1 >conftest.err
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981 { (case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_try") 2>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_try") 2>&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_LIBDL 1
10004 libltdl_cv_func_dlopen="yes"
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10010 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10011 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 ac_check_lib_save_LIBS=$LIBS
10015 LIBS="-lsvld $LIBS"
10016 cat >conftest.$ac_ext <<_ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_link") 2>conftest.er1
10047 grep -v '^ *+' conftest.er1 >conftest.err
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_lib_svld_dlopen=yes
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 ac_cv_lib_svld_dlopen=no
10080 rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082 LIBS=$ac_check_lib_save_LIBS
10084 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10085 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10086 if test $ac_cv_lib_svld_dlopen = yes; then
10088 cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_LIBDL 1
10092 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10094 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10095 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10096 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 ac_check_lib_save_LIBS=$LIBS
10101 cat >conftest.$ac_ext <<_ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10108 /* Override any GCC internal prototype to avoid an error.
10109 Use char because int might match the return type of a GCC
10110 builtin and then its argument prototype would still apply. */
10118 return dld_link ();
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_link") 2>conftest.er1
10132 grep -v '^ *+' conftest.er1 >conftest.err
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } &&
10137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_cv_lib_dld_dld_link=yes
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_cv_lib_dld_dld_link=no
10165 rm -f core conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10169 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10170 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10171 if test $ac_cv_lib_dld_dld_link = yes; then
10173 cat >>confdefs.h <<\_ACEOF
10177 LIBADD_DL="$LIBADD_DL -ldld"
10179 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10180 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10181 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 cat >conftest.$ac_ext <<_ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10192 #define _dyld_func_lookup innocuous__dyld_func_lookup
10194 /* System header to define __stub macros and hopefully few prototypes,
10195 which can conflict with char _dyld_func_lookup (); below.
10196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197 <limits.h> exists even on freestanding compilers. */
10200 # include <limits.h>
10202 # include <assert.h>
10205 #undef _dyld_func_lookup
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10213 char _dyld_func_lookup ();
10214 /* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
10217 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10224 return _dyld_func_lookup ();
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
10238 grep -v '^ *+' conftest.er1 >conftest.err
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 ac_cv_func__dyld_func_lookup=yes
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 ac_cv_func__dyld_func_lookup=no
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10274 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10275 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10276 if test $ac_cv_func__dyld_func_lookup = yes; then
10278 cat >>confdefs.h <<\_ACEOF
10279 #define HAVE_DYLD 1
10293 rm -f core conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10305 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10307 lt_save_LIBS="$LIBS"
10308 LIBS="$LIBS $LIBADD_DL"
10310 for ac_func in dlerror
10312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10326 #define $ac_func innocuous_$ac_func
10328 /* System header to define __stub macros and hopefully few prototypes,
10329 which can conflict with char $ac_func (); below.
10330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10331 <limits.h> exists even on freestanding compilers. */
10334 # include <limits.h>
10336 # include <assert.h>
10341 /* Override any GCC internal prototype to avoid an error.
10342 Use char because int might match the return type of a GCC
10343 builtin and then its argument prototype would still apply. */
10348 /* The GNU C library defines this for functions which it implements
10349 to always fail with ENOSYS. Some functions are actually named
10350 something starting with __ and the normal name is an alias. */
10351 #if defined __stub_$ac_func || defined __stub___$ac_func
10358 return $ac_func ();
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (ac_try="$ac_link"
10365 case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_link") 2>conftest.er1
10372 grep -v '^ *+' conftest.er1 >conftest.err
10374 cat conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } &&
10377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10378 { (case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_try") 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_try") 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 eval "$as_ac_var=yes"
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10402 eval "$as_ac_var=no"
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10408 ac_res=`eval echo '${'$as_ac_var'}'`
10409 { echo "$as_me:$LINENO: result: $ac_res" >&5
10410 echo "${ECHO_T}$ac_res" >&6; }
10411 if test `eval echo '${'$as_ac_var'}'` = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10419 LIBS="$lt_save_LIBS"
10422 ac_cpp='$CPP $CPPFLAGS'
10423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10429 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10430 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10431 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 ac_cv_sys_symbol_underscore=no
10435 cat > conftest.$ac_ext <<EOF
10436 void nm_test_func(){}
10437 int main(){nm_test_func;return 0;}
10439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440 (eval $ac_compile) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; then
10444 # Now try to grab the symbols.
10445 ac_nlist=conftest.nm
10446 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10447 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && test -s "$ac_nlist"; then
10451 # See whether the symbols have a leading underscore.
10452 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10453 ac_cv_sys_symbol_underscore=yes
10455 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10458 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10462 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10465 echo "configure: failed program was:" >&5
10471 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10472 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10475 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10476 if test x"$libltdl_cv_func_dlopen" = xyes ||
10477 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10478 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10479 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10480 if test "${libltdl_cv_need_uscore+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 libltdl_cv_need_uscore=unknown
10485 LIBS="$LIBS $LIBADD_DL"
10486 if test "$cross_compiling" = yes; then :
10487 libltdl_cv_need_uscore=cross
10489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10490 lt_status=$lt_dlunknown
10491 cat > conftest.$ac_ext <<EOF
10492 #line 10492 "configure"
10493 #include "confdefs.h"
10502 # define LT_DLGLOBAL RTLD_GLOBAL
10505 # define LT_DLGLOBAL DL_GLOBAL
10507 # define LT_DLGLOBAL 0
10511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10512 find out it does not work in some platform. */
10513 #ifndef LT_DLLAZY_OR_NOW
10515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10518 # define LT_DLLAZY_OR_NOW DL_LAZY
10521 # define LT_DLLAZY_OR_NOW RTLD_NOW
10524 # define LT_DLLAZY_OR_NOW DL_NOW
10526 # define LT_DLLAZY_OR_NOW 0
10534 extern "C" void exit (int);
10537 void fnord() { int i=42;}
10540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10541 int status = $lt_dlunknown;
10545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10546 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10547 /* dlclose (self); */
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556 (eval $ac_link) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10560 (./conftest; exit; ) >&5 2>/dev/null
10562 case x$lt_status in
10563 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10564 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10565 x$lt_dlunknown|x*) ;;
10568 # compilation failed
10577 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10578 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10582 if test x"$libltdl_cv_need_uscore" = xyes; then
10584 cat >>confdefs.h <<\_ACEOF
10585 #define NEED_USCORE 1
10591 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10592 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10593 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 # PORTME does your system automatically load deplibs for dlopen?
10597 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10598 # For now, we just catch OSes we know something about -- in the
10599 # future, we'll try test this programmatically.
10600 libltdl_cv_sys_dlopen_deplibs=unknown
10602 aix3*|aix4.1.*|aix4.2.*)
10603 # Unknown whether this is true for these versions of AIX, but
10604 # we want this `case' here to explicitly catch those versions.
10605 libltdl_cv_sys_dlopen_deplibs=unknown
10608 libltdl_cv_sys_dlopen_deplibs=yes
10611 # Assuming the user has installed a libdl from somewhere, this is true
10612 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10613 libltdl_cv_sys_dlopen_deplibs=yes
10615 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10616 # GNU and its variants, using gnu ld.so (Glibc)
10617 libltdl_cv_sys_dlopen_deplibs=yes
10620 libltdl_cv_sys_dlopen_deplibs=yes
10623 libltdl_cv_sys_dlopen_deplibs=yes
10625 irix[12345]*|irix6.[01]*)
10626 # Catch all versions of IRIX before 6.2, and indicate that we don't
10627 # know how it worked for any of those versions.
10628 libltdl_cv_sys_dlopen_deplibs=unknown
10631 # The case above catches anything before 6.2, and it's known that
10632 # at 6.2 and later dlopen does load deplibs.
10633 libltdl_cv_sys_dlopen_deplibs=yes
10636 libltdl_cv_sys_dlopen_deplibs=yes
10639 libltdl_cv_sys_dlopen_deplibs=yes
10642 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10643 # it did *not* use an RPATH in a shared library to find objects the
10644 # library depends on, so we explicitly say `no'.
10645 libltdl_cv_sys_dlopen_deplibs=no
10647 osf5.0|osf5.0a|osf5.1)
10648 # dlopen *does* load deplibs and with the right loader patch applied
10649 # it even uses RPATH in a shared library to search for shared objects
10650 # that the library depends on, but there's no easy way to know if that
10651 # patch is installed. Since this is the case, all we can really
10652 # say is unknown -- it depends on the patch being installed. If
10653 # it is, this changes to `yes'. Without it, it would be `no'.
10654 libltdl_cv_sys_dlopen_deplibs=unknown
10657 # the two cases above should catch all versions of osf <= 5.1. Read
10658 # the comments above for what we know about them.
10659 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10660 # is used to find them so we can finally say `yes'.
10661 libltdl_cv_sys_dlopen_deplibs=yes
10664 libltdl_cv_sys_dlopen_deplibs=yes
10666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10667 libltdl_cv_sys_dlopen_deplibs=yes
10672 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10673 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10674 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10676 cat >>confdefs.h <<\_ACEOF
10677 #define LTDL_DLOPEN_DEPLIBS 1
10683 for ac_header in argz.h
10685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 ac_res=`eval echo '${'$as_ac_Header'}'`
10693 { echo "$as_me:$LINENO: result: $ac_res" >&5
10694 echo "${ECHO_T}$ac_res" >&6; }
10696 # Is the header compilable?
10697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10699 cat >conftest.$ac_ext <<_ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 $ac_includes_default
10706 #include <$ac_header>
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_compile") 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } &&
10722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738 (eval "$ac_try") 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_header_compiler=yes
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10747 ac_header_compiler=no
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10752 echo "${ECHO_T}$ac_header_compiler" >&6; }
10754 # Is the header present?
10755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10757 cat >conftest.$ac_ext <<_ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 #include <$ac_header>
10765 if { (ac_try="$ac_cpp conftest.$ac_ext"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10773 grep -v '^ *+' conftest.er1 >conftest.err
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } >/dev/null; then
10778 if test -s conftest.err; then
10779 ac_cpp_err=$ac_c_preproc_warn_flag
10780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10787 if test -z "$ac_cpp_err"; then
10788 ac_header_preproc=yes
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_header_preproc=no
10796 rm -f conftest.err conftest.$ac_ext
10797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10798 echo "${ECHO_T}$ac_header_preproc" >&6; }
10800 # So? What about this header?
10801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10807 ac_header_preproc=yes
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10823 ## ------------------------------------ ##
10824 ## Report this to http://llvm.org/bugs/ ##
10825 ## ------------------------------------ ##
10827 ) | sed "s/^/$as_me: WARNING: /" >&2
10830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 eval "$as_ac_Header=\$ac_header_preproc"
10837 ac_res=`eval echo '${'$as_ac_Header'}'`
10838 { echo "$as_me:$LINENO: result: $ac_res" >&5
10839 echo "${ECHO_T}$ac_res" >&6; }
10842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10843 cat >>confdefs.h <<_ACEOF
10844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10852 { echo "$as_me:$LINENO: checking for error_t" >&5
10853 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10854 if test "${ac_cv_type_error_t+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10867 typedef error_t ac__type_new_;
10871 if ((ac__type_new_ *) 0)
10873 if (sizeof (ac__type_new_))
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_compile") 2>conftest.er1
10888 grep -v '^ *+' conftest.er1 >conftest.err
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest.$ac_objext'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_type_error_t=yes
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 ac_cv_type_error_t=no
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10924 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10925 if test $ac_cv_type_error_t = yes; then
10927 cat >>confdefs.h <<_ACEOF
10928 #define HAVE_ERROR_T 1
10934 cat >>confdefs.h <<\_ACEOF
10935 #define error_t int
10946 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 cat >conftest.$ac_ext <<_ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10962 #define $ac_func innocuous_$ac_func
10964 /* System header to define __stub macros and hopefully few prototypes,
10965 which can conflict with char $ac_func (); below.
10966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10967 <limits.h> exists even on freestanding compilers. */
10970 # include <limits.h>
10972 # include <assert.h>
10977 /* Override any GCC internal prototype to avoid an error.
10978 Use char because int might match the return type of a GCC
10979 builtin and then its argument prototype would still apply. */
10984 /* The GNU C library defines this for functions which it implements
10985 to always fail with ENOSYS. Some functions are actually named
10986 something starting with __ and the normal name is an alias. */
10987 #if defined __stub_$ac_func || defined __stub___$ac_func
10994 return $ac_func ();
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_link") 2>conftest.er1
11008 grep -v '^ *+' conftest.er1 >conftest.err
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 eval "$as_ac_var=yes"
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 eval "$as_ac_var=no"
11041 rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11044 ac_res=`eval echo '${'$as_ac_var'}'`
11045 { echo "$as_me:$LINENO: result: $ac_res" >&5
11046 echo "${ECHO_T}$ac_res" >&6; }
11047 if test `eval echo '${'$as_ac_var'}'` = yes; then
11048 cat >>confdefs.h <<_ACEOF
11049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11082 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 ac_res=`eval echo '${'$as_ac_Header'}'`
11093 { echo "$as_me:$LINENO: result: $ac_res" >&5
11094 echo "${ECHO_T}$ac_res" >&6; }
11096 # Is the header compilable?
11097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11099 cat >conftest.$ac_ext <<_ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 $ac_includes_default
11106 #include <$ac_header>
11108 rm -f conftest.$ac_objext
11109 if { (ac_try="$ac_compile"
11110 case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_compile") 2>conftest.er1
11117 grep -v '^ *+' conftest.er1 >conftest.err
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11123 { (case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_try") 2>&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; } &&
11132 { ac_try='test -s conftest.$ac_objext'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_header_compiler=yes
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_header_compiler=no
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 echo "${ECHO_T}$ac_header_compiler" >&6; }
11154 # Is the header present?
11155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 #include <$ac_header>
11165 if { (ac_try="$ac_cpp conftest.$ac_ext"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null; then
11178 if test -s conftest.err; then
11179 ac_cpp_err=$ac_c_preproc_warn_flag
11180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11187 if test -z "$ac_cpp_err"; then
11188 ac_header_preproc=yes
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_header_preproc=no
11196 rm -f conftest.err conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11198 echo "${ECHO_T}$ac_header_preproc" >&6; }
11200 # So? What about this header?
11201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11207 ac_header_preproc=yes
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11223 ## ------------------------------------ ##
11224 ## Report this to http://llvm.org/bugs/ ##
11225 ## ------------------------------------ ##
11227 ) | sed "s/^/$as_me: WARNING: /" >&2
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 eval "$as_ac_Header=\$ac_header_preproc"
11237 ac_res=`eval echo '${'$as_ac_Header'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243 cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 ac_res=`eval echo '${'$as_ac_Header'}'`
11265 { echo "$as_me:$LINENO: result: $ac_res" >&5
11266 echo "${ECHO_T}$ac_res" >&6; }
11268 # Is the header compilable?
11269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11271 cat >conftest.$ac_ext <<_ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 $ac_includes_default
11278 #include <$ac_header>
11280 rm -f conftest.$ac_objext
11281 if { (ac_try="$ac_compile"
11282 case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_compile") 2>conftest.er1
11289 grep -v '^ *+' conftest.er1 >conftest.err
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11295 { (case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_try") 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; } &&
11304 { ac_try='test -s conftest.$ac_objext'
11305 { (case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_try") 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 ac_header_compiler=yes
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11319 ac_header_compiler=no
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324 echo "${ECHO_T}$ac_header_compiler" >&6; }
11326 # Is the header present?
11327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 #include <$ac_header>
11337 if { (ac_try="$ac_cpp conftest.$ac_ext"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11345 grep -v '^ *+' conftest.er1 >conftest.err
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } >/dev/null; then
11350 if test -s conftest.err; then
11351 ac_cpp_err=$ac_c_preproc_warn_flag
11352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11359 if test -z "$ac_cpp_err"; then
11360 ac_header_preproc=yes
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 ac_header_preproc=no
11368 rm -f conftest.err conftest.$ac_ext
11369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11370 echo "${ECHO_T}$ac_header_preproc" >&6; }
11372 # So? What about this header?
11373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11379 ac_header_preproc=yes
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11395 ## ------------------------------------ ##
11396 ## Report this to http://llvm.org/bugs/ ##
11397 ## ------------------------------------ ##
11399 ) | sed "s/^/$as_me: WARNING: /" >&2
11402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 eval "$as_ac_Header=\$ac_header_preproc"
11409 ac_res=`eval echo '${'$as_ac_Header'}'`
11410 { echo "$as_me:$LINENO: result: $ac_res" >&5
11411 echo "${ECHO_T}$ac_res" >&6; }
11414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11415 cat >>confdefs.h <<_ACEOF
11416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 for ac_header in string.h strings.h
11427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 ac_res=`eval echo '${'$as_ac_Header'}'`
11435 { echo "$as_me:$LINENO: result: $ac_res" >&5
11436 echo "${ECHO_T}$ac_res" >&6; }
11438 # Is the header compilable?
11439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11448 #include <$ac_header>
11450 rm -f conftest.$ac_objext
11451 if { (ac_try="$ac_compile"
11452 case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_compile") 2>conftest.er1
11459 grep -v '^ *+' conftest.er1 >conftest.err
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11465 { (case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_try") 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_try") 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 ac_header_compiler=yes
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11489 ac_header_compiler=no
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11494 echo "${ECHO_T}$ac_header_compiler" >&6; }
11496 # Is the header present?
11497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 #include <$ac_header>
11507 if { (ac_try="$ac_cpp conftest.$ac_ext"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11515 grep -v '^ *+' conftest.er1 >conftest.err
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } >/dev/null; then
11520 if test -s conftest.err; then
11521 ac_cpp_err=$ac_c_preproc_warn_flag
11522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11529 if test -z "$ac_cpp_err"; then
11530 ac_header_preproc=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_header_preproc=no
11538 rm -f conftest.err conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11540 echo "${ECHO_T}$ac_header_preproc" >&6; }
11542 # So? What about this header?
11543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11549 ac_header_preproc=yes
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11565 ## ------------------------------------ ##
11566 ## Report this to http://llvm.org/bugs/ ##
11567 ## ------------------------------------ ##
11569 ) | sed "s/^/$as_me: WARNING: /" >&2
11572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 eval "$as_ac_Header=\$ac_header_preproc"
11579 ac_res=`eval echo '${'$as_ac_Header'}'`
11580 { echo "$as_me:$LINENO: result: $ac_res" >&5
11581 echo "${ECHO_T}$ac_res" >&6; }
11584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585 cat >>confdefs.h <<_ACEOF
11586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11596 for ac_func in strchr index
11598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 cat >conftest.$ac_ext <<_ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11612 #define $ac_func innocuous_$ac_func
11614 /* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char $ac_func (); below.
11616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617 <limits.h> exists even on freestanding compilers. */
11620 # include <limits.h>
11622 # include <assert.h>
11627 /* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11634 /* The GNU C library defines this for functions which it implements
11635 to always fail with ENOSYS. Some functions are actually named
11636 something starting with __ and the normal name is an alias. */
11637 #if defined __stub_$ac_func || defined __stub___$ac_func
11644 return $ac_func ();
11649 rm -f conftest.$ac_objext conftest$ac_exeext
11650 if { (ac_try="$ac_link"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_link") 2>conftest.er1
11658 grep -v '^ *+' conftest.er1 >conftest.err
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11664 { (case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_try") 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest$ac_exeext'
11674 { (case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_try") 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 eval "$as_ac_var=yes"
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 eval "$as_ac_var=no"
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11694 ac_res=`eval echo '${'$as_ac_var'}'`
11695 { echo "$as_me:$LINENO: result: $ac_res" >&5
11696 echo "${ECHO_T}$ac_res" >&6; }
11697 if test `eval echo '${'$as_ac_var'}'` = yes; then
11698 cat >>confdefs.h <<_ACEOF
11699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11707 for ac_func in strrchr rindex
11709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 cat >conftest.$ac_ext <<_ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11723 #define $ac_func innocuous_$ac_func
11725 /* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char $ac_func (); below.
11727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728 <limits.h> exists even on freestanding compilers. */
11731 # include <limits.h>
11733 # include <assert.h>
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11745 /* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748 #if defined __stub_$ac_func || defined __stub___$ac_func
11755 return $ac_func ();
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_link") 2>conftest.er1
11769 grep -v '^ *+' conftest.er1 >conftest.err
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
11774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11775 { (case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_try") 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 eval "$as_ac_var=yes"
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11799 eval "$as_ac_var=no"
11802 rm -f core conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11805 ac_res=`eval echo '${'$as_ac_var'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11808 if test `eval echo '${'$as_ac_var'}'` = yes; then
11809 cat >>confdefs.h <<_ACEOF
11810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11818 for ac_func in memcpy bcopy
11820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 cat >conftest.$ac_ext <<_ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834 #define $ac_func innocuous_$ac_func
11836 /* System header to define __stub macros and hopefully few prototypes,
11837 which can conflict with char $ac_func (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
11842 # include <limits.h>
11844 # include <assert.h>
11849 /* Override any GCC internal prototype to avoid an error.
11850 Use char because int might match the return type of a GCC
11851 builtin and then its argument prototype would still apply. */
11856 /* The GNU C library defines this for functions which it implements
11857 to always fail with ENOSYS. Some functions are actually named
11858 something starting with __ and the normal name is an alias. */
11859 #if defined __stub_$ac_func || defined __stub___$ac_func
11866 return $ac_func ();
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (ac_try="$ac_link"
11873 case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_link") 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11886 { (case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_try") 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; } &&
11895 { ac_try='test -s conftest$ac_exeext'
11896 { (case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_try") 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 eval "$as_ac_var=yes"
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11910 eval "$as_ac_var=no"
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11916 ac_res=`eval echo '${'$as_ac_var'}'`
11917 { echo "$as_me:$LINENO: result: $ac_res" >&5
11918 echo "${ECHO_T}$ac_res" >&6; }
11919 if test `eval echo '${'$as_ac_var'}'` = yes; then
11920 cat >>confdefs.h <<_ACEOF
11921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11929 for ac_func in memmove strcmp
11931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 cat >conftest.$ac_ext <<_ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11945 #define $ac_func innocuous_$ac_func
11947 /* System header to define __stub macros and hopefully few prototypes,
11948 which can conflict with char $ac_func (); below.
11949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950 <limits.h> exists even on freestanding compilers. */
11953 # include <limits.h>
11955 # include <assert.h>
11960 /* Override any GCC internal prototype to avoid an error.
11961 Use char because int might match the return type of a GCC
11962 builtin and then its argument prototype would still apply. */
11967 /* The GNU C library defines this for functions which it implements
11968 to always fail with ENOSYS. Some functions are actually named
11969 something starting with __ and the normal name is an alias. */
11970 #if defined __stub_$ac_func || defined __stub___$ac_func
11977 return $ac_func ();
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (ac_try="$ac_link"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_link") 2>conftest.er1
11991 grep -v '^ *+' conftest.er1 >conftest.err
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11997 { (case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_try") 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; } &&
12006 { ac_try='test -s conftest$ac_exeext'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 eval "$as_ac_var=yes"
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 eval "$as_ac_var=no"
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12027 ac_res=`eval echo '${'$as_ac_var'}'`
12028 { echo "$as_me:$LINENO: result: $ac_res" >&5
12029 echo "${ECHO_T}$ac_res" >&6; }
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031 cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12041 for ac_func in closedir opendir readdir
12043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 cat >conftest.$ac_ext <<_ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12057 #define $ac_func innocuous_$ac_func
12059 /* System header to define __stub macros and hopefully few prototypes,
12060 which can conflict with char $ac_func (); below.
12061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12062 <limits.h> exists even on freestanding compilers. */
12065 # include <limits.h>
12067 # include <assert.h>
12072 /* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12079 /* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082 #if defined __stub_$ac_func || defined __stub___$ac_func
12089 return $ac_func ();
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (ac_try="$ac_link"
12096 case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_link") 2>conftest.er1
12103 grep -v '^ *+' conftest.er1 >conftest.err
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109 { (case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_try") 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 eval "$as_ac_var=yes"
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 eval "$as_ac_var=no"
12136 rm -f core conftest.err conftest.$ac_objext \
12137 conftest$ac_exeext conftest.$ac_ext
12139 ac_res=`eval echo '${'$as_ac_var'}'`
12140 { echo "$as_me:$LINENO: result: $ac_res" >&5
12141 echo "${ECHO_T}$ac_res" >&6; }
12142 if test `eval echo '${'$as_ac_var'}'` = yes; then
12143 cat >>confdefs.h <<_ACEOF
12144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12152 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12153 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12166 if test "$GCC" != "yes" && test "$ICC" != "yes"
12168 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12169 echo "$as_me: error: gcc|icc required but not found" >&2;}
12170 { (exit 1); exit 1; }; }
12173 if test "$GXX" != "yes" && test "$IXX" != "yes"
12175 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12176 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12177 { (exit 1); exit 1; }; }
12180 if test "$GCC" = "yes"
12182 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12190 #if !defined(__GNUC__) || __GNUC__ < 3
12191 #error Unsupported GCC version
12196 rm -f conftest.$ac_objext
12197 if { (ac_try="$ac_compile"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_compile") 2>conftest.er1
12205 grep -v '^ *+' conftest.er1 >conftest.err
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12236 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12237 { (exit 1); exit 1; }; }
12240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 if test -z "$llvm_cv_gnu_make_command"
12245 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12246 echo "$as_me: error: GNU Make required but not found" >&2;}
12247 { (exit 1); exit 1; }; }
12250 { echo "$as_me:$LINENO: result: ok" >&5
12251 echo "${ECHO_T}ok" >&6; }
12253 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12254 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12255 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12257 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12259 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12261 if test "$GXX" = "yes"
12263 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12265 if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12267 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12270 gxx_version=`$CXX -dumpversion`
12271 gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12272 gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12273 gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12275 if test "$gxx_version_major" -ge "4" \
12276 && test "$gxx_version_minor" -ge "7"; then
12279 NO_MAYBE_UNINITIALIZED=
12280 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12286 NO_MAYBE_UNINITIALIZED=
12288 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12289 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12292 # Check whether --with-python was given.
12293 if test "${with_python+set}" = set; then
12294 withval=$with_python; PYTHON="$withval"
12298 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12299 { echo "$as_me:$LINENO: checking for python" >&5
12300 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12301 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12302 echo "${ECHO_T}user defined: $with_python" >&6; }
12304 if test -n "$PYTHON" ; then
12305 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12306 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12309 # Extract the first word of "python python2 python26", so it can be a program name with args.
12310 set dummy python python2 python26; ac_word=$2
12311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12313 if test "${ac_cv_path_PYTHON+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12328 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12337 echo "${ECHO_T}not found" >&6; }
12338 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12339 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12340 { (exit 1); exit 1; }; }"
12344 PYTHON=$ac_cv_path_PYTHON
12345 if test -n "$PYTHON"; then
12346 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12347 echo "${ECHO_T}$PYTHON" >&6; }
12349 { echo "$as_me:$LINENO: result: no" >&5
12350 echo "${ECHO_T}no" >&6; }
12356 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12357 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12358 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12359 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12360 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12361 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12362 if test "$ac_python_version_major" -eq "2" \
12363 && test "$ac_python_version_minor" -ge "5" ; then
12364 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12365 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12367 { echo "$as_me:$LINENO: result: not found" >&5
12368 echo "${ECHO_T}not found" >&6; }
12369 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12370 See \`config.log' for more details." >&5
12371 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12372 See \`config.log' for more details." >&2;}
12373 { (exit 1); exit 1; }; }
12378 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12379 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12380 if test "${ac_cv_lib_m_sin+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 ac_check_lib_save_LIBS=$LIBS
12385 cat >conftest.$ac_ext <<_ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12392 /* Override any GCC internal prototype to avoid an error.
12393 Use char because int might match the return type of a GCC
12394 builtin and then its argument prototype would still apply. */
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (ac_try="$ac_link"
12409 case "(($ac_try" in
12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411 *) ac_try_echo=$ac_try;;
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_link") 2>conftest.er1
12416 grep -v '^ *+' conftest.er1 >conftest.err
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12422 { (case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_try") 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest$ac_exeext'
12432 { (case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_try") 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 ac_cv_lib_m_sin=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12449 rm -f core conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
12451 LIBS=$ac_check_lib_save_LIBS
12453 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12454 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12455 if test $ac_cv_lib_m_sin = yes; then
12456 cat >>confdefs.h <<_ACEOF
12457 #define HAVE_LIBM 1
12464 if test "$llvm_cv_os_type" = "MingW" ; then
12466 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12467 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12468 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 ac_check_lib_save_LIBS=$LIBS
12472 LIBS="-limagehlp $LIBS"
12473 cat >conftest.$ac_ext <<_ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12489 rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (ac_try="$ac_link"
12491 case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_link") 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
12503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12504 { (case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_try") 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest$ac_exeext'
12514 { (case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_try") 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_lib_imagehlp_main=yes
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12528 ac_cv_lib_imagehlp_main=no
12531 rm -f core conftest.err conftest.$ac_objext \
12532 conftest$ac_exeext conftest.$ac_ext
12533 LIBS=$ac_check_lib_save_LIBS
12535 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12536 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12537 if test $ac_cv_lib_imagehlp_main = yes; then
12538 cat >>confdefs.h <<_ACEOF
12539 #define HAVE_LIBIMAGEHLP 1
12542 LIBS="-limagehlp $LIBS"
12547 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12548 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12549 if test "${ac_cv_lib_psapi_main+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 ac_check_lib_save_LIBS=$LIBS
12553 LIBS="-lpsapi $LIBS"
12554 cat >conftest.$ac_ext <<_ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (ac_try="$ac_link"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_link") 2>conftest.er1
12579 grep -v '^ *+' conftest.er1 >conftest.err
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest$ac_exeext'
12595 { (case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_try") 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 ac_cv_lib_psapi_main=yes
12606 echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12609 ac_cv_lib_psapi_main=no
12612 rm -f core conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12616 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12617 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12618 if test $ac_cv_lib_psapi_main = yes; then
12619 cat >>confdefs.h <<_ACEOF
12620 #define HAVE_LIBPSAPI 1
12623 LIBS="-lpsapi $LIBS"
12629 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12630 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12631 if test "${ac_cv_search_dlopen+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 ac_func_search_save_LIBS=$LIBS
12635 cat >conftest.$ac_ext <<_ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12657 for ac_lib in '' dl; do
12658 if test -z "$ac_lib"; then
12659 ac_res="none required"
12662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (ac_try="$ac_link"
12666 case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_link") 2>conftest.er1
12673 grep -v '^ *+' conftest.er1 >conftest.err
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12679 { (case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_try") 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try='test -s conftest$ac_exeext'
12689 { (case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_try") 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_cv_search_dlopen=$ac_res
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12706 rm -f core conftest.err conftest.$ac_objext \
12708 if test "${ac_cv_search_dlopen+set}" = set; then
12712 if test "${ac_cv_search_dlopen+set}" = set; then
12715 ac_cv_search_dlopen=no
12717 rm conftest.$ac_ext
12718 LIBS=$ac_func_search_save_LIBS
12720 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12721 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12722 ac_res=$ac_cv_search_dlopen
12723 if test "$ac_res" != no; then
12724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12726 cat >>confdefs.h <<\_ACEOF
12727 #define HAVE_DLOPEN 1
12731 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12732 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12736 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12737 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12738 if test "${ac_cv_search_clock_gettime+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 ac_func_search_save_LIBS=$LIBS
12742 cat >conftest.$ac_ext <<_ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h. */
12749 /* Override any GCC internal prototype to avoid an error.
12750 Use char because int might match the return type of a GCC
12751 builtin and then its argument prototype would still apply. */
12755 char clock_gettime ();
12759 return clock_gettime ();
12764 for ac_lib in '' rt; do
12765 if test -z "$ac_lib"; then
12766 ac_res="none required"
12769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (ac_try="$ac_link"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_link") 2>conftest.er1
12780 grep -v '^ *+' conftest.er1 >conftest.err
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
12785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12786 { (case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_try") 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest$ac_exeext'
12796 { (case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_try") 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 ac_cv_search_clock_gettime=$ac_res
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12813 rm -f core conftest.err conftest.$ac_objext \
12815 if test "${ac_cv_search_clock_gettime+set}" = set; then
12819 if test "${ac_cv_search_clock_gettime+set}" = set; then
12822 ac_cv_search_clock_gettime=no
12824 rm conftest.$ac_ext
12825 LIBS=$ac_func_search_save_LIBS
12827 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12828 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12829 ac_res=$ac_cv_search_clock_gettime
12830 if test "$ac_res" != no; then
12831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12836 if test "$llvm_cv_enable_libffi" = "yes" ; then
12837 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12838 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12839 if test "${ac_cv_search_ffi_call+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 ac_func_search_save_LIBS=$LIBS
12843 cat >conftest.$ac_ext <<_ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12860 return ffi_call ();
12865 for ac_lib in '' ffi; do
12866 if test -z "$ac_lib"; then
12867 ac_res="none required"
12870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (ac_try="$ac_link"
12874 case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_link") 2>conftest.er1
12881 grep -v '^ *+' conftest.er1 >conftest.err
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887 { (case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_try") 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; } &&
12896 { ac_try='test -s conftest$ac_exeext'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_cv_search_ffi_call=$ac_res
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12914 rm -f core conftest.err conftest.$ac_objext \
12916 if test "${ac_cv_search_ffi_call+set}" = set; then
12920 if test "${ac_cv_search_ffi_call+set}" = set; then
12923 ac_cv_search_ffi_call=no
12925 rm conftest.$ac_ext
12926 LIBS=$ac_func_search_save_LIBS
12928 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12929 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12930 ac_res=$ac_cv_search_ffi_call
12931 if test "$ac_res" != no; then
12932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12934 cat >>confdefs.h <<\_ACEOF
12935 #define HAVE_FFI_CALL 1
12939 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12940 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12941 { (exit 1); exit 1; }; }
12946 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12947 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12948 if test "${ac_cv_search_mallinfo+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 ac_func_search_save_LIBS=$LIBS
12952 cat >conftest.$ac_ext <<_ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12959 /* Override any GCC internal prototype to avoid an error.
12960 Use char because int might match the return type of a GCC
12961 builtin and then its argument prototype would still apply. */
12969 return mallinfo ();
12974 for ac_lib in '' malloc; do
12975 if test -z "$ac_lib"; then
12976 ac_res="none required"
12979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12981 rm -f conftest.$ac_objext conftest$ac_exeext
12982 if { (ac_try="$ac_link"
12983 case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_link") 2>conftest.er1
12990 grep -v '^ *+' conftest.er1 >conftest.err
12992 cat conftest.err >&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12996 { (case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_try") 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; } &&
13005 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13015 ac_cv_search_mallinfo=$ac_res
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13023 rm -f core conftest.err conftest.$ac_objext \
13025 if test "${ac_cv_search_mallinfo+set}" = set; then
13029 if test "${ac_cv_search_mallinfo+set}" = set; then
13032 ac_cv_search_mallinfo=no
13034 rm conftest.$ac_ext
13035 LIBS=$ac_func_search_save_LIBS
13037 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13038 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13039 ac_res=$ac_cv_search_mallinfo
13040 if test "$ac_res" != no; then
13041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13043 cat >>confdefs.h <<\_ACEOF
13044 #define HAVE_MALLINFO 1
13050 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13052 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13053 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13054 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 ac_check_lib_save_LIBS=$LIBS
13058 LIBS="-lpthread $LIBS"
13059 cat >conftest.$ac_ext <<_ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13072 char pthread_mutex_init ();
13076 return pthread_mutex_init ();
13081 rm -f conftest.$ac_objext conftest$ac_exeext
13082 if { (ac_try="$ac_link"
13083 case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_link") 2>conftest.er1
13090 grep -v '^ *+' conftest.er1 >conftest.err
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13096 { (case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_try") 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try='test -s conftest$ac_exeext'
13106 { (case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_try") 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_lib_pthread_pthread_mutex_init=yes
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 ac_cv_lib_pthread_pthread_mutex_init=no
13123 rm -f core conftest.err conftest.$ac_objext \
13124 conftest$ac_exeext conftest.$ac_ext
13125 LIBS=$ac_check_lib_save_LIBS
13127 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13128 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13129 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13130 cat >>confdefs.h <<_ACEOF
13131 #define HAVE_LIBPTHREAD 1
13134 LIBS="-lpthread $LIBS"
13138 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13139 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13140 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 ac_func_search_save_LIBS=$LIBS
13144 cat >conftest.$ac_ext <<_ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13151 /* Override any GCC internal prototype to avoid an error.
13152 Use char because int might match the return type of a GCC
13153 builtin and then its argument prototype would still apply. */
13157 char pthread_mutex_lock ();
13161 return pthread_mutex_lock ();
13166 for ac_lib in '' pthread; do
13167 if test -z "$ac_lib"; then
13168 ac_res="none required"
13171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13173 rm -f conftest.$ac_objext conftest$ac_exeext
13174 if { (ac_try="$ac_link"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_link") 2>conftest.er1
13182 grep -v '^ *+' conftest.er1 >conftest.err
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13188 { (case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_try") 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest$ac_exeext'
13198 { (case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_try") 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_cv_search_pthread_mutex_lock=$ac_res
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13215 rm -f core conftest.err conftest.$ac_objext \
13217 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13221 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13224 ac_cv_search_pthread_mutex_lock=no
13226 rm conftest.$ac_ext
13227 LIBS=$ac_func_search_save_LIBS
13229 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13230 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13231 ac_res=$ac_cv_search_pthread_mutex_lock
13232 if test "$ac_res" != no; then
13233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13235 cat >>confdefs.h <<\_ACEOF
13236 #define HAVE_PTHREAD_MUTEX_LOCK 1
13241 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13242 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13243 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 ac_func_search_save_LIBS=$LIBS
13247 cat >conftest.$ac_ext <<_ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13254 /* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
13260 char pthread_rwlock_init ();
13264 return pthread_rwlock_init ();
13269 for ac_lib in '' pthread; do
13270 if test -z "$ac_lib"; then
13271 ac_res="none required"
13274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13276 rm -f conftest.$ac_objext conftest$ac_exeext
13277 if { (ac_try="$ac_link"
13278 case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283 (eval "$ac_link") 2>conftest.er1
13285 grep -v '^ *+' conftest.er1 >conftest.err
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291 { (case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_try") 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; } &&
13300 { ac_try='test -s conftest$ac_exeext'
13301 { (case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_try") 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13310 ac_cv_search_pthread_rwlock_init=$ac_res
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13318 rm -f core conftest.err conftest.$ac_objext \
13320 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13324 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13327 ac_cv_search_pthread_rwlock_init=no
13329 rm conftest.$ac_ext
13330 LIBS=$ac_func_search_save_LIBS
13332 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13333 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13334 ac_res=$ac_cv_search_pthread_rwlock_init
13335 if test "$ac_res" != no; then
13336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13338 cat >>confdefs.h <<\_ACEOF
13339 #define HAVE_PTHREAD_RWLOCK_INIT 1
13344 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13345 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13346 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 ac_func_search_save_LIBS=$LIBS
13350 cat >conftest.$ac_ext <<_ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13357 /* Override any GCC internal prototype to avoid an error.
13358 Use char because int might match the return type of a GCC
13359 builtin and then its argument prototype would still apply. */
13363 char pthread_getspecific ();
13367 return pthread_getspecific ();
13372 for ac_lib in '' pthread; do
13373 if test -z "$ac_lib"; then
13374 ac_res="none required"
13377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (ac_try="$ac_link"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_link") 2>conftest.er1
13388 grep -v '^ *+' conftest.er1 >conftest.err
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13394 { (case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_try") 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest$ac_exeext'
13404 { (case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_try") 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13413 ac_cv_search_pthread_getspecific=$ac_res
13415 echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13421 rm -f core conftest.err conftest.$ac_objext \
13423 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13427 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13430 ac_cv_search_pthread_getspecific=no
13432 rm conftest.$ac_ext
13433 LIBS=$ac_func_search_save_LIBS
13435 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13436 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13437 ac_res=$ac_cv_search_pthread_getspecific
13438 if test "$ac_res" != no; then
13439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13441 cat >>confdefs.h <<\_ACEOF
13442 #define HAVE_PTHREAD_GETSPECIFIC 1
13450 # Check whether --with-udis86 was given.
13451 if test "${with_udis86+set}" = set; then
13452 withval=$with_udis86;
13457 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13460 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13461 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13462 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 ac_check_lib_save_LIBS=$LIBS
13466 LIBS="-ludis86 $LIBS"
13467 cat >conftest.$ac_ext <<_ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13474 /* Override any GCC internal prototype to avoid an error.
13475 Use char because int might match the return type of a GCC
13476 builtin and then its argument prototype would still apply. */
13489 rm -f conftest.$ac_objext conftest$ac_exeext
13490 if { (ac_try="$ac_link"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_link") 2>conftest.er1
13498 grep -v '^ *+' conftest.er1 >conftest.err
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13504 { (case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_try") 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; } &&
13513 { ac_try='test -s conftest$ac_exeext'
13514 { (case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_try") 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_cv_lib_udis86_ud_init=yes
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13528 ac_cv_lib_udis86_ud_init=no
13531 rm -f core conftest.err conftest.$ac_objext \
13532 conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS
13535 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13536 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13537 if test $ac_cv_lib_udis86_ud_init = yes; then
13538 cat >>confdefs.h <<_ACEOF
13539 #define HAVE_LIBUDIS86 1
13542 LIBS="-ludis86 $LIBS"
13546 echo "Error! You need to have libudis86 around."
13558 cat >>confdefs.h <<_ACEOF
13559 #define USE_UDIS86 $USE_UDIS86
13564 # Check whether --with-oprofile was given.
13565 if test "${with_oprofile+set}" = set; then
13566 withval=$with_oprofile;
13570 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13571 no) llvm_cv_oppath=
13574 *) llvm_cv_oppath="${withval}/lib/oprofile"
13575 CPPFLAGS="-I${withval}/include";;
13577 case $llvm_cv_os_type in
13579 if test -n "$llvm_cv_oppath" ; then
13580 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13581 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13582 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13583 if test "${ac_cv_search_bfd_init+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 ac_func_search_save_LIBS=$LIBS
13587 cat >conftest.$ac_ext <<_ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13594 /* Override any GCC internal prototype to avoid an error.
13595 Use char because int might match the return type of a GCC
13596 builtin and then its argument prototype would still apply. */
13604 return bfd_init ();
13609 for ac_lib in '' bfd; do
13610 if test -z "$ac_lib"; then
13611 ac_res="none required"
13614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (ac_try="$ac_link"
13618 case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_link") 2>conftest.er1
13625 grep -v '^ *+' conftest.er1 >conftest.err
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } &&
13630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13631 { (case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_try") 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try='test -s conftest$ac_exeext'
13641 { (case "(($ac_try" in
13642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_try") 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_cv_search_bfd_init=$ac_res
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13658 rm -f core conftest.err conftest.$ac_objext \
13660 if test "${ac_cv_search_bfd_init+set}" = set; then
13664 if test "${ac_cv_search_bfd_init+set}" = set; then
13667 ac_cv_search_bfd_init=no
13669 rm conftest.$ac_ext
13670 LIBS=$ac_func_search_save_LIBS
13672 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13673 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13674 ac_res=$ac_cv_search_bfd_init
13675 if test "$ac_res" != no; then
13676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13680 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13681 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13682 if test "${ac_cv_search_op_open_agent+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 ac_func_search_save_LIBS=$LIBS
13686 cat >conftest.$ac_ext <<_ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13699 char op_open_agent ();
13703 return op_open_agent ();
13708 for ac_lib in '' opagent; do
13709 if test -z "$ac_lib"; then
13710 ac_res="none required"
13713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_link") 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730 { (case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_try") 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest$ac_exeext'
13740 { (case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 ac_cv_search_op_open_agent=$ac_res
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13757 rm -f core conftest.err conftest.$ac_objext \
13759 if test "${ac_cv_search_op_open_agent+set}" = set; then
13763 if test "${ac_cv_search_op_open_agent+set}" = set; then
13766 ac_cv_search_op_open_agent=no
13768 rm conftest.$ac_ext
13769 LIBS=$ac_func_search_save_LIBS
13771 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13772 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13773 ac_res=$ac_cv_search_op_open_agent
13774 if test "$ac_res" != no; then
13775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13779 echo "Error! You need to have libopagent around."
13784 if test "${ac_cv_header_opagent_h+set}" = set; then
13785 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13786 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13787 if test "${ac_cv_header_opagent_h+set}" = set; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13791 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13793 # Is the header compilable?
13794 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13795 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13796 cat >conftest.$ac_ext <<_ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 $ac_includes_default
13803 #include <opagent.h>
13805 rm -f conftest.$ac_objext
13806 if { (ac_try="$ac_compile"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_compile") 2>conftest.er1
13814 grep -v '^ *+' conftest.er1 >conftest.err
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest.$ac_objext'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13839 ac_header_compiler=yes
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13844 ac_header_compiler=no
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13849 echo "${ECHO_T}$ac_header_compiler" >&6; }
13851 # Is the header present?
13852 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13853 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13854 cat >conftest.$ac_ext <<_ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 #include <opagent.h>
13862 if { (ac_try="$ac_cpp conftest.$ac_ext"
13863 case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13870 grep -v '^ *+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } >/dev/null; then
13875 if test -s conftest.err; then
13876 ac_cpp_err=$ac_c_preproc_warn_flag
13877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13884 if test -z "$ac_cpp_err"; then
13885 ac_header_preproc=yes
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_header_preproc=no
13893 rm -f conftest.err conftest.$ac_ext
13894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13895 echo "${ECHO_T}$ac_header_preproc" >&6; }
13897 # So? What about this header?
13898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13900 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13901 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13903 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13904 ac_header_preproc=yes
13907 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13908 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13910 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13912 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13913 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13914 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13915 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13916 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13917 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13918 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13920 ## ------------------------------------ ##
13921 ## Report this to http://llvm.org/bugs/ ##
13922 ## ------------------------------------ ##
13924 ) | sed "s/^/$as_me: WARNING: /" >&2
13927 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13928 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13929 if test "${ac_cv_header_opagent_h+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 ac_cv_header_opagent_h=$ac_header_preproc
13934 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13935 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13938 if test $ac_cv_header_opagent_h = yes; then
13942 echo "Error! You need to have opagent.h around."
13950 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13951 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13952 { (exit 1); exit 1; }; } ;;
13963 cat >>confdefs.h <<_ACEOF
13964 #define LLVM_USE_OPROFILE $USE_OPROFILE
13969 # Check whether --with-intel-jitevents was given.
13970 if test "${with_intel_jitevents+set}" = set; then
13971 withval=$with_intel_jitevents;
13973 yes) USE_INTEL_JITEVENTS=1
13975 no) USE_INTEL_JITEVENTS=0
13977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13978 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13979 { (exit 1); exit 1; }; };;
13982 case $llvm_cv_os_type in
13983 Linux|Win32|Cygwin|MingW) ;;
13984 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13985 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13986 { (exit 1); exit 1; }; };;
13989 case "$llvm_cv_target_arch" in
13991 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13992 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13993 { (exit 1); exit 1; }; };;
13998 USE_INTEL_JITEVENTS=0
14004 cat >>confdefs.h <<_ACEOF
14005 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14009 for ac_prog in xml2-config
14011 # Extract the first word of "$ac_prog", so it can be a program name with args.
14012 set dummy $ac_prog; ac_word=$2
14013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14015 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 if test -n "$XML2CONFIG"; then
14019 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14025 test -z "$as_dir" && as_dir=.
14026 for ac_exec_ext in '' $ac_executable_extensions; do
14027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14028 ac_cv_prog_XML2CONFIG="$ac_prog"
14029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14038 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14039 if test -n "$XML2CONFIG"; then
14040 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14041 echo "${ECHO_T}$XML2CONFIG" >&6; }
14043 { echo "$as_me:$LINENO: result: no" >&5
14044 echo "${ECHO_T}no" >&6; }
14048 test -n "$XML2CONFIG" && break
14052 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14053 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14054 if test "x$XML2CONFIG" = "x"; then
14055 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14056 echo "${ECHO_T}xml2-config not found" >&6; }
14058 LIBXML2_INC=`$XML2CONFIG --cflags`
14059 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14060 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14061 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14062 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14063 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 ac_check_lib_save_LIBS=$LIBS
14067 LIBS="-lxml2 $LIBS"
14068 cat >conftest.$ac_ext <<_ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14081 char xmlReadFile ();
14085 return xmlReadFile ();
14090 rm -f conftest.$ac_objext conftest$ac_exeext
14091 if { (ac_try="$ac_link"
14092 case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_link") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
14104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14105 { (case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110 (eval "$ac_try") 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } &&
14114 { ac_try='test -s conftest$ac_exeext'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_cv_lib_xml2_xmlReadFile=yes
14126 echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14129 ac_cv_lib_xml2_xmlReadFile=no
14132 rm -f core conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134 LIBS=$ac_check_lib_save_LIBS
14136 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14137 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14138 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14140 cat >>confdefs.h <<\_ACEOF
14141 #define CLANG_HAVE_LIBXML 1
14144 LIBXML2_LIBS="-lxml2"
14157 ac_header_dirent=no
14158 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14159 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14160 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14161 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 cat >conftest.$ac_ext <<_ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 #include <sys/types.h>
14183 rm -f conftest.$ac_objext
14184 if { (ac_try="$ac_compile"
14185 case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_compile") 2>conftest.er1
14192 grep -v '^ *+' conftest.er1 >conftest.err
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
14197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14198 { (case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_try") 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } &&
14207 { ac_try='test -s conftest.$ac_objext'
14208 { (case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_try") 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 eval "$as_ac_Header=yes"
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 eval "$as_ac_Header=no"
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 ac_res=`eval echo '${'$as_ac_Header'}'`
14228 { echo "$as_me:$LINENO: result: $ac_res" >&5
14229 echo "${ECHO_T}$ac_res" >&6; }
14230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14231 cat >>confdefs.h <<_ACEOF
14232 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14235 ac_header_dirent=$ac_hdr; break
14239 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14240 if test $ac_header_dirent = dirent.h; then
14241 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14242 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14243 if test "${ac_cv_search_opendir+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 ac_func_search_save_LIBS=$LIBS
14247 cat >conftest.$ac_ext <<_ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14269 for ac_lib in '' dir; do
14270 if test -z "$ac_lib"; then
14271 ac_res="none required"
14274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14276 rm -f conftest.$ac_objext conftest$ac_exeext
14277 if { (ac_try="$ac_link"
14278 case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_link") 2>conftest.er1
14285 grep -v '^ *+' conftest.er1 >conftest.err
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
14290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14291 { (case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_try") 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest$ac_exeext'
14301 { (case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_try") 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_search_opendir=$ac_res
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14318 rm -f core conftest.err conftest.$ac_objext \
14320 if test "${ac_cv_search_opendir+set}" = set; then
14324 if test "${ac_cv_search_opendir+set}" = set; then
14327 ac_cv_search_opendir=no
14329 rm conftest.$ac_ext
14330 LIBS=$ac_func_search_save_LIBS
14332 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14333 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14334 ac_res=$ac_cv_search_opendir
14335 if test "$ac_res" != no; then
14336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14341 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14343 if test "${ac_cv_search_opendir+set}" = set; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 ac_func_search_save_LIBS=$LIBS
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 /* Override any GCC internal prototype to avoid an error.
14355 Use char because int might match the return type of a GCC
14356 builtin and then its argument prototype would still apply. */
14369 for ac_lib in '' x; do
14370 if test -z "$ac_lib"; then
14371 ac_res="none required"
14374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14376 rm -f conftest.$ac_objext conftest$ac_exeext
14377 if { (ac_try="$ac_link"
14378 case "(($ac_try" in
14379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_link") 2>conftest.er1
14385 grep -v '^ *+' conftest.er1 >conftest.err
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14391 { (case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_try") 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; } &&
14400 { ac_try='test -s conftest$ac_exeext'
14401 { (case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_try") 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_search_opendir=$ac_res
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14418 rm -f core conftest.err conftest.$ac_objext \
14420 if test "${ac_cv_search_opendir+set}" = set; then
14424 if test "${ac_cv_search_opendir+set}" = set; then
14427 ac_cv_search_opendir=no
14429 rm conftest.$ac_ext
14430 LIBS=$ac_func_search_save_LIBS
14432 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14433 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14434 ac_res=$ac_cv_search_opendir
14435 if test "$ac_res" != no; then
14436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14442 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14443 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14444 if test "${ac_cv_header_mmap_anon+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 ac_cpp='$CPP $CPPFLAGS'
14449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14453 cat >conftest.$ac_ext <<_ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 #include <sys/mman.h>
14460 #include <unistd.h>
14465 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14470 rm -f conftest.$ac_objext
14471 if { (ac_try="$ac_compile"
14472 case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_compile") 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14485 { (case "(($ac_try" in
14486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14487 *) ac_try_echo=$ac_try;;
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490 (eval "$ac_try") 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_try") 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_cv_header_mmap_anon=yes
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14509 ac_cv_header_mmap_anon=no
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 ac_cpp='$CPP $CPPFLAGS'
14515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14521 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14522 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14523 if test "$ac_cv_header_mmap_anon" = yes; then
14525 cat >>confdefs.h <<\_ACEOF
14526 #define HAVE_MMAP_ANONYMOUS 1
14531 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14532 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14533 if test "${ac_cv_header_stat_broken+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 cat >conftest.$ac_ext <<_ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h. */
14542 #include <sys/types.h>
14543 #include <sys/stat.h>
14545 #if defined S_ISBLK && defined S_IFDIR
14546 # if S_ISBLK (S_IFDIR)
14551 #if defined S_ISBLK && defined S_IFCHR
14552 # if S_ISBLK (S_IFCHR)
14557 #if defined S_ISLNK && defined S_IFREG
14558 # if S_ISLNK (S_IFREG)
14563 #if defined S_ISSOCK && defined S_IFREG
14564 # if S_ISSOCK (S_IFREG)
14570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14571 $EGREP "You lose" >/dev/null 2>&1; then
14572 ac_cv_header_stat_broken=yes
14574 ac_cv_header_stat_broken=no
14579 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14580 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14581 if test $ac_cv_header_stat_broken = yes; then
14583 cat >>confdefs.h <<\_ACEOF
14584 #define STAT_MACROS_BROKEN 1
14589 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14590 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14591 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 cat >conftest.$ac_ext <<_ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14600 #include <sys/types.h>
14601 #include <sys/wait.h>
14602 #ifndef WEXITSTATUS
14603 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14606 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14614 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14619 rm -f conftest.$ac_objext
14620 if { (ac_try="$ac_compile"
14621 case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_compile") 2>conftest.er1
14628 grep -v '^ *+' conftest.er1 >conftest.err
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } &&
14633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14634 { (case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_try") 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest.$ac_objext'
14644 { (case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_try") 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
14653 ac_cv_header_sys_wait_h=yes
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 ac_cv_header_sys_wait_h=no
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14663 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14664 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14665 if test $ac_cv_header_sys_wait_h = yes; then
14667 cat >>confdefs.h <<\_ACEOF
14668 #define HAVE_SYS_WAIT_H 1
14673 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14674 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14675 if test "${ac_cv_header_time+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <sys/types.h>
14685 #include <sys/time.h>
14691 if ((struct tm *) 0)
14697 rm -f conftest.$ac_objext
14698 if { (ac_try="$ac_compile"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_compile") 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712 { (case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_try") 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_try") 2>&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 ac_cv_header_time=yes
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_cv_header_time=no
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14742 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14743 if test $ac_cv_header_time = yes; then
14745 cat >>confdefs.h <<\_ACEOF
14746 #define TIME_WITH_SYS_TIME 1
14758 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 ac_res=`eval echo '${'$as_ac_Header'}'`
14768 { echo "$as_me:$LINENO: result: $ac_res" >&5
14769 echo "${ECHO_T}$ac_res" >&6; }
14771 # Is the header compilable?
14772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14774 cat >conftest.$ac_ext <<_ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14780 $ac_includes_default
14781 #include <$ac_header>
14783 rm -f conftest.$ac_objext
14784 if { (ac_try="$ac_compile"
14785 case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_compile") 2>conftest.er1
14792 grep -v '^ *+' conftest.er1 >conftest.err
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14798 { (case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_try") 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_try") 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_header_compiler=yes
14819 echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14822 ac_header_compiler=no
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14827 echo "${ECHO_T}$ac_header_compiler" >&6; }
14829 # Is the header present?
14830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14832 cat >conftest.$ac_ext <<_ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838 #include <$ac_header>
14840 if { (ac_try="$ac_cpp conftest.$ac_ext"
14841 case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14848 grep -v '^ *+' conftest.er1 >conftest.err
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } >/dev/null; then
14853 if test -s conftest.err; then
14854 ac_cpp_err=$ac_c_preproc_warn_flag
14855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14862 if test -z "$ac_cpp_err"; then
14863 ac_header_preproc=yes
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 ac_header_preproc=no
14871 rm -f conftest.err conftest.$ac_ext
14872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14873 echo "${ECHO_T}$ac_header_preproc" >&6; }
14875 # So? What about this header?
14876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14882 ac_header_preproc=yes
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14898 ## ------------------------------------ ##
14899 ## Report this to http://llvm.org/bugs/ ##
14900 ## ------------------------------------ ##
14902 ) | sed "s/^/$as_me: WARNING: /" >&2
14905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 eval "$as_ac_Header=\$ac_header_preproc"
14912 ac_res=`eval echo '${'$as_ac_Header'}'`
14913 { echo "$as_me:$LINENO: result: $ac_res" >&5
14914 echo "${ECHO_T}$ac_res" >&6; }
14917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14918 cat >>confdefs.h <<_ACEOF
14919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14932 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 ac_res=`eval echo '${'$as_ac_Header'}'`
14942 { echo "$as_me:$LINENO: result: $ac_res" >&5
14943 echo "${ECHO_T}$ac_res" >&6; }
14945 # Is the header compilable?
14946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14948 cat >conftest.$ac_ext <<_ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954 $ac_includes_default
14955 #include <$ac_header>
14957 rm -f conftest.$ac_objext
14958 if { (ac_try="$ac_compile"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_compile") 2>conftest.er1
14966 grep -v '^ *+' conftest.er1 >conftest.err
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14972 { (case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_try") 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_try") 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 ac_header_compiler=yes
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_header_compiler=no
14999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15001 echo "${ECHO_T}$ac_header_compiler" >&6; }
15003 # Is the header present?
15004 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15006 cat >conftest.$ac_ext <<_ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 #include <$ac_header>
15014 if { (ac_try="$ac_cpp conftest.$ac_ext"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15022 grep -v '^ *+' conftest.er1 >conftest.err
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } >/dev/null; then
15027 if test -s conftest.err; then
15028 ac_cpp_err=$ac_c_preproc_warn_flag
15029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15036 if test -z "$ac_cpp_err"; then
15037 ac_header_preproc=yes
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_header_preproc=no
15045 rm -f conftest.err conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15047 echo "${ECHO_T}$ac_header_preproc" >&6; }
15049 # So? What about this header?
15050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15056 ac_header_preproc=yes
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15072 ## ------------------------------------ ##
15073 ## Report this to http://llvm.org/bugs/ ##
15074 ## ------------------------------------ ##
15076 ) | sed "s/^/$as_me: WARNING: /" >&2
15079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 eval "$as_ac_Header=\$ac_header_preproc"
15086 ac_res=`eval echo '${'$as_ac_Header'}'`
15087 { echo "$as_me:$LINENO: result: $ac_res" >&5
15088 echo "${ECHO_T}$ac_res" >&6; }
15091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15092 cat >>confdefs.h <<_ACEOF
15093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15102 for ac_header in utime.h windows.h
15104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 ac_res=`eval echo '${'$as_ac_Header'}'`
15112 { echo "$as_me:$LINENO: result: $ac_res" >&5
15113 echo "${ECHO_T}$ac_res" >&6; }
15115 # Is the header compilable?
15116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 $ac_includes_default
15125 #include <$ac_header>
15127 rm -f conftest.$ac_objext
15128 if { (ac_try="$ac_compile"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_compile") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15142 { (case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_try") 2>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; } &&
15151 { ac_try='test -s conftest.$ac_objext'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 ac_header_compiler=yes
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 ac_header_compiler=no
15169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15171 echo "${ECHO_T}$ac_header_compiler" >&6; }
15173 # Is the header present?
15174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15182 #include <$ac_header>
15184 if { (ac_try="$ac_cpp conftest.$ac_ext"
15185 case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15192 grep -v '^ *+' conftest.er1 >conftest.err
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } >/dev/null; then
15197 if test -s conftest.err; then
15198 ac_cpp_err=$ac_c_preproc_warn_flag
15199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15206 if test -z "$ac_cpp_err"; then
15207 ac_header_preproc=yes
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15212 ac_header_preproc=no
15215 rm -f conftest.err conftest.$ac_ext
15216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15217 echo "${ECHO_T}$ac_header_preproc" >&6; }
15219 # So? What about this header?
15220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15226 ac_header_preproc=yes
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15242 ## ------------------------------------ ##
15243 ## Report this to http://llvm.org/bugs/ ##
15244 ## ------------------------------------ ##
15246 ) | sed "s/^/$as_me: WARNING: /" >&2
15249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 eval "$as_ac_Header=\$ac_header_preproc"
15256 ac_res=`eval echo '${'$as_ac_Header'}'`
15257 { echo "$as_me:$LINENO: result: $ac_res" >&5
15258 echo "${ECHO_T}$ac_res" >&6; }
15261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15262 cat >>confdefs.h <<_ACEOF
15263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15275 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 ac_res=`eval echo '${'$as_ac_Header'}'`
15285 { echo "$as_me:$LINENO: result: $ac_res" >&5
15286 echo "${ECHO_T}$ac_res" >&6; }
15288 # Is the header compilable?
15289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 $ac_includes_default
15298 #include <$ac_header>
15300 rm -f conftest.$ac_objext
15301 if { (ac_try="$ac_compile"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_compile") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
15314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest.$ac_objext'
15325 { (case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_try") 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_header_compiler=yes
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_header_compiler=no
15342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15344 echo "${ECHO_T}$ac_header_compiler" >&6; }
15346 # Is the header present?
15347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15349 cat >conftest.$ac_ext <<_ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 #include <$ac_header>
15357 if { (ac_try="$ac_cpp conftest.$ac_ext"
15358 case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15365 grep -v '^ *+' conftest.er1 >conftest.err
15367 cat conftest.err >&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } >/dev/null; then
15370 if test -s conftest.err; then
15371 ac_cpp_err=$ac_c_preproc_warn_flag
15372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15379 if test -z "$ac_cpp_err"; then
15380 ac_header_preproc=yes
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 ac_header_preproc=no
15388 rm -f conftest.err conftest.$ac_ext
15389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15390 echo "${ECHO_T}$ac_header_preproc" >&6; }
15392 # So? What about this header?
15393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15399 ac_header_preproc=yes
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15415 ## ------------------------------------ ##
15416 ## Report this to http://llvm.org/bugs/ ##
15417 ## ------------------------------------ ##
15419 ) | sed "s/^/$as_me: WARNING: /" >&2
15422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 eval "$as_ac_Header=\$ac_header_preproc"
15429 ac_res=`eval echo '${'$as_ac_Header'}'`
15430 { echo "$as_me:$LINENO: result: $ac_res" >&5
15431 echo "${ECHO_T}$ac_res" >&6; }
15434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15435 cat >>confdefs.h <<_ACEOF
15436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15447 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 ac_res=`eval echo '${'$as_ac_Header'}'`
15457 { echo "$as_me:$LINENO: result: $ac_res" >&5
15458 echo "${ECHO_T}$ac_res" >&6; }
15460 # Is the header compilable?
15461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 $ac_includes_default
15470 #include <$ac_header>
15472 rm -f conftest.$ac_objext
15473 if { (ac_try="$ac_compile"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_compile") 2>conftest.er1
15481 grep -v '^ *+' conftest.er1 >conftest.err
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } &&
15486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15487 { (case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_try") 2>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; } &&
15496 { ac_try='test -s conftest.$ac_objext'
15497 { (case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_try") 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_header_compiler=yes
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_header_compiler=no
15514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15516 echo "${ECHO_T}$ac_header_compiler" >&6; }
15518 # Is the header present?
15519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15521 cat >conftest.$ac_ext <<_ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527 #include <$ac_header>
15529 if { (ac_try="$ac_cpp conftest.$ac_ext"
15530 case "(($ac_try" in
15531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532 *) ac_try_echo=$ac_try;;
15534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15537 grep -v '^ *+' conftest.er1 >conftest.err
15539 cat conftest.err >&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } >/dev/null; then
15542 if test -s conftest.err; then
15543 ac_cpp_err=$ac_c_preproc_warn_flag
15544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15551 if test -z "$ac_cpp_err"; then
15552 ac_header_preproc=yes
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15557 ac_header_preproc=no
15560 rm -f conftest.err conftest.$ac_ext
15561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15562 echo "${ECHO_T}$ac_header_preproc" >&6; }
15564 # So? What about this header?
15565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15571 ac_header_preproc=yes
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15587 ## ------------------------------------ ##
15588 ## Report this to http://llvm.org/bugs/ ##
15589 ## ------------------------------------ ##
15591 ) | sed "s/^/$as_me: WARNING: /" >&2
15594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 eval "$as_ac_Header=\$ac_header_preproc"
15601 ac_res=`eval echo '${'$as_ac_Header'}'`
15602 { echo "$as_me:$LINENO: result: $ac_res" >&5
15603 echo "${ECHO_T}$ac_res" >&6; }
15606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15607 cat >>confdefs.h <<_ACEOF
15608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15616 for ac_header in valgrind/valgrind.h
15618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 ac_res=`eval echo '${'$as_ac_Header'}'`
15626 { echo "$as_me:$LINENO: result: $ac_res" >&5
15627 echo "${ECHO_T}$ac_res" >&6; }
15629 # Is the header compilable?
15630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 $ac_includes_default
15639 #include <$ac_header>
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_compile") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656 { (case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_try") 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest.$ac_objext'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_header_compiler=yes
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 ac_header_compiler=no
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15685 echo "${ECHO_T}$ac_header_compiler" >&6; }
15687 # Is the header present?
15688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15690 cat >conftest.$ac_ext <<_ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 #include <$ac_header>
15698 if { (ac_try="$ac_cpp conftest.$ac_ext"
15699 case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15706 grep -v '^ *+' conftest.er1 >conftest.err
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } >/dev/null; then
15711 if test -s conftest.err; then
15712 ac_cpp_err=$ac_c_preproc_warn_flag
15713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15720 if test -z "$ac_cpp_err"; then
15721 ac_header_preproc=yes
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15726 ac_header_preproc=no
15729 rm -f conftest.err conftest.$ac_ext
15730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15731 echo "${ECHO_T}$ac_header_preproc" >&6; }
15733 # So? What about this header?
15734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15740 ac_header_preproc=yes
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15756 ## ------------------------------------ ##
15757 ## Report this to http://llvm.org/bugs/ ##
15758 ## ------------------------------------ ##
15760 ) | sed "s/^/$as_me: WARNING: /" >&2
15763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 eval "$as_ac_Header=\$ac_header_preproc"
15770 ac_res=`eval echo '${'$as_ac_Header'}'`
15771 { echo "$as_me:$LINENO: result: $ac_res" >&5
15772 echo "${ECHO_T}$ac_res" >&6; }
15775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15776 cat >>confdefs.h <<_ACEOF
15777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15785 for ac_header in fenv.h
15787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 ac_res=`eval echo '${'$as_ac_Header'}'`
15795 { echo "$as_me:$LINENO: result: $ac_res" >&5
15796 echo "${ECHO_T}$ac_res" >&6; }
15798 # Is the header compilable?
15799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15801 cat >conftest.$ac_ext <<_ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h. */
15807 $ac_includes_default
15808 #include <$ac_header>
15810 rm -f conftest.$ac_objext
15811 if { (ac_try="$ac_compile"
15812 case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_compile") 2>conftest.er1
15819 grep -v '^ *+' conftest.er1 >conftest.err
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
15824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15834 { ac_try='test -s conftest.$ac_objext'
15835 { (case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15840 (eval "$ac_try") 2>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }; then
15844 ac_header_compiler=yes
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 ac_header_compiler=no
15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15854 echo "${ECHO_T}$ac_header_compiler" >&6; }
15856 # Is the header present?
15857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15859 cat >conftest.$ac_ext <<_ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15865 #include <$ac_header>
15867 if { (ac_try="$ac_cpp conftest.$ac_ext"
15868 case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15875 grep -v '^ *+' conftest.er1 >conftest.err
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } >/dev/null; then
15880 if test -s conftest.err; then
15881 ac_cpp_err=$ac_c_preproc_warn_flag
15882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15889 if test -z "$ac_cpp_err"; then
15890 ac_header_preproc=yes
15892 echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15895 ac_header_preproc=no
15898 rm -f conftest.err conftest.$ac_ext
15899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15900 echo "${ECHO_T}$ac_header_preproc" >&6; }
15902 # So? What about this header?
15903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15909 ac_header_preproc=yes
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15925 ## ------------------------------------ ##
15926 ## Report this to http://llvm.org/bugs/ ##
15927 ## ------------------------------------ ##
15929 ) | sed "s/^/$as_me: WARNING: /" >&2
15932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15937 eval "$as_ac_Header=\$ac_header_preproc"
15939 ac_res=`eval echo '${'$as_ac_Header'}'`
15940 { echo "$as_me:$LINENO: result: $ac_res" >&5
15941 echo "${ECHO_T}$ac_res" >&6; }
15944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15945 cat >>confdefs.h <<_ACEOF
15946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15953 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15955 for ac_header in pthread.h
15957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15968 # Is the header compilable?
15969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15971 cat >conftest.$ac_ext <<_ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15977 $ac_includes_default
15978 #include <$ac_header>
15980 rm -f conftest.$ac_objext
15981 if { (ac_try="$ac_compile"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_compile") 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15995 { (case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_try") 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; } &&
16004 { ac_try='test -s conftest.$ac_objext'
16005 { (case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_try") 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_header_compiler=yes
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 ac_header_compiler=no
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16024 echo "${ECHO_T}$ac_header_compiler" >&6; }
16026 # Is the header present?
16027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16029 cat >conftest.$ac_ext <<_ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 #include <$ac_header>
16037 if { (ac_try="$ac_cpp conftest.$ac_ext"
16038 case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16045 grep -v '^ *+' conftest.er1 >conftest.err
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } >/dev/null; then
16050 if test -s conftest.err; then
16051 ac_cpp_err=$ac_c_preproc_warn_flag
16052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16059 if test -z "$ac_cpp_err"; then
16060 ac_header_preproc=yes
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16065 ac_header_preproc=no
16068 rm -f conftest.err conftest.$ac_ext
16069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16070 echo "${ECHO_T}$ac_header_preproc" >&6; }
16072 # So? What about this header?
16073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16079 ac_header_preproc=yes
16082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16095 ## ------------------------------------ ##
16096 ## Report this to http://llvm.org/bugs/ ##
16097 ## ------------------------------------ ##
16099 ) | sed "s/^/$as_me: WARNING: /" >&2
16102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 eval "$as_ac_Header=\$ac_header_preproc"
16109 ac_res=`eval echo '${'$as_ac_Header'}'`
16110 { echo "$as_me:$LINENO: result: $ac_res" >&5
16111 echo "${ECHO_T}$ac_res" >&6; }
16114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16115 cat >>confdefs.h <<_ACEOF
16116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16132 if test "$llvm_cv_enable_libffi" = "yes" ; then
16135 for ac_header in ffi.h ffi/ffi.h
16137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 ac_res=`eval echo '${'$as_ac_Header'}'`
16145 { echo "$as_me:$LINENO: result: $ac_res" >&5
16146 echo "${ECHO_T}$ac_res" >&6; }
16148 # Is the header compilable?
16149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16151 cat >conftest.$ac_ext <<_ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 $ac_includes_default
16158 #include <$ac_header>
16160 rm -f conftest.$ac_objext
16161 if { (ac_try="$ac_compile"
16162 case "(($ac_try" in
16163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164 *) ac_try_echo=$ac_try;;
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_compile") 2>conftest.er1
16169 grep -v '^ *+' conftest.er1 >conftest.err
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16175 { (case "(($ac_try" in
16176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177 *) ac_try_echo=$ac_try;;
16179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16180 (eval "$ac_try") 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; } &&
16184 { ac_try='test -s conftest.$ac_objext'
16185 { (case "(($ac_try" in
16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187 *) ac_try_echo=$ac_try;;
16189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190 (eval "$ac_try") 2>&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 ac_header_compiler=yes
16196 echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16199 ac_header_compiler=no
16202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16204 echo "${ECHO_T}$ac_header_compiler" >&6; }
16206 # Is the header present?
16207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16209 cat >conftest.$ac_ext <<_ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h. */
16215 #include <$ac_header>
16217 if { (ac_try="$ac_cpp conftest.$ac_ext"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } >/dev/null; then
16230 if test -s conftest.err; then
16231 ac_cpp_err=$ac_c_preproc_warn_flag
16232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16239 if test -z "$ac_cpp_err"; then
16240 ac_header_preproc=yes
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 ac_header_preproc=no
16248 rm -f conftest.err conftest.$ac_ext
16249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16250 echo "${ECHO_T}$ac_header_preproc" >&6; }
16252 # So? What about this header?
16253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16259 ac_header_preproc=yes
16262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16275 ## ------------------------------------ ##
16276 ## Report this to http://llvm.org/bugs/ ##
16277 ## ------------------------------------ ##
16279 ) | sed "s/^/$as_me: WARNING: /" >&2
16282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 eval "$as_ac_Header=\$ac_header_preproc"
16289 ac_res=`eval echo '${'$as_ac_Header'}'`
16290 { echo "$as_me:$LINENO: result: $ac_res" >&5
16291 echo "${ECHO_T}$ac_res" >&6; }
16294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16295 cat >>confdefs.h <<_ACEOF
16296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16306 for ac_header in CrashReporterClient.h
16308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 ac_res=`eval echo '${'$as_ac_Header'}'`
16316 { echo "$as_me:$LINENO: result: $ac_res" >&5
16317 echo "${ECHO_T}$ac_res" >&6; }
16319 # Is the header compilable?
16320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 $ac_includes_default
16329 #include <$ac_header>
16331 rm -f conftest.$ac_objext
16332 if { (ac_try="$ac_compile"
16333 case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_compile") 2>conftest.er1
16340 grep -v '^ *+' conftest.er1 >conftest.err
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16346 { (case "(($ac_try" in
16347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348 *) ac_try_echo=$ac_try;;
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351 (eval "$ac_try") 2>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } &&
16355 { ac_try='test -s conftest.$ac_objext'
16356 { (case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_try") 2>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 ac_header_compiler=yes
16367 echo "$as_me: failed program was:" >&5
16368 sed 's/^/| /' conftest.$ac_ext >&5
16370 ac_header_compiler=no
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16375 echo "${ECHO_T}$ac_header_compiler" >&6; }
16377 # Is the header present?
16378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16380 cat >conftest.$ac_ext <<_ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 #include <$ac_header>
16388 if { (ac_try="$ac_cpp conftest.$ac_ext"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16396 grep -v '^ *+' conftest.er1 >conftest.err
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } >/dev/null; then
16401 if test -s conftest.err; then
16402 ac_cpp_err=$ac_c_preproc_warn_flag
16403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16410 if test -z "$ac_cpp_err"; then
16411 ac_header_preproc=yes
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 ac_header_preproc=no
16419 rm -f conftest.err conftest.$ac_ext
16420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16421 echo "${ECHO_T}$ac_header_preproc" >&6; }
16423 # So? What about this header?
16424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16430 ac_header_preproc=yes
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16446 ## ------------------------------------ ##
16447 ## Report this to http://llvm.org/bugs/ ##
16448 ## ------------------------------------ ##
16450 ) | sed "s/^/$as_me: WARNING: /" >&2
16453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16458 eval "$as_ac_Header=\$ac_header_preproc"
16460 ac_res=`eval echo '${'$as_ac_Header'}'`
16461 { echo "$as_me:$LINENO: result: $ac_res" >&5
16462 echo "${ECHO_T}$ac_res" >&6; }
16465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16466 cat >>confdefs.h <<_ACEOF
16467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16475 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16476 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16477 cat >conftest.$ac_ext <<_ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16485 extern const char *__crashreporter_info__;
16487 __crashreporter_info__ = "test";
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (ac_try="$ac_link"
16495 case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_link") 2>conftest.er1
16502 grep -v '^ *+' conftest.er1 >conftest.err
16504 cat conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
16507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16508 { (case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_try") 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest$ac_exeext'
16518 { (case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_try") 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; }; then
16528 { echo "$as_me:$LINENO: result: yes" >&5
16529 echo "${ECHO_T}yes" >&6; }
16531 cat >>confdefs.h <<\_ACEOF
16532 #define HAVE_CRASHREPORTER_INFO 1
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16541 { echo "$as_me:$LINENO: result: no" >&5
16542 echo "${ECHO_T}no" >&6; }
16544 cat >>confdefs.h <<\_ACEOF
16545 #define HAVE_CRASHREPORTER_INFO 0
16551 rm -f core conftest.err conftest.$ac_objext \
16552 conftest$ac_exeext conftest.$ac_ext
16556 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16557 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16558 if test "${ac_cv_huge_val_sanity+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16563 ac_cpp='$CXXCPP $CPPFLAGS'
16564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16568 ac_save_CXXFLAGS=$CXXFLAGS
16569 CXXFLAGS="$CXXFLAGS -pedantic"
16570 if test "$cross_compiling" = yes; then
16571 ac_cv_huge_val_sanity=yes
16573 cat >conftest.$ac_ext <<_ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16583 double x = HUGE_VAL; return x != x;
16588 rm -f conftest$ac_exeext
16589 if { (ac_try="$ac_link"
16590 case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_link") 2>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_cv_huge_val_sanity=yes
16610 echo "$as_me: program exited with status $ac_status" >&5
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 ( exit $ac_status )
16615 ac_cv_huge_val_sanity=no
16617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16621 CXXFLAGS=$ac_save_CXXFLAGS
16623 ac_cpp='$CPP $CPPFLAGS'
16624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16630 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16631 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16632 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16635 { echo "$as_me:$LINENO: checking for pid_t" >&5
16636 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16637 if test "${ac_cv_type_pid_t+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 $ac_includes_default
16647 typedef pid_t ac__type_new_;
16651 if ((ac__type_new_ *) 0)
16653 if (sizeof (ac__type_new_))
16659 rm -f conftest.$ac_objext
16660 if { (ac_try="$ac_compile"
16661 case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_compile") 2>conftest.er1
16668 grep -v '^ *+' conftest.er1 >conftest.err
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; } &&
16683 { ac_try='test -s conftest.$ac_objext'
16684 { (case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_try") 2>&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
16693 ac_cv_type_pid_t=yes
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 ac_cv_type_pid_t=no
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16704 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16705 if test $ac_cv_type_pid_t = yes; then
16709 cat >>confdefs.h <<_ACEOF
16715 { echo "$as_me:$LINENO: checking for size_t" >&5
16716 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16717 if test "${ac_cv_type_size_t+set}" = set; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 cat >conftest.$ac_ext <<_ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726 $ac_includes_default
16727 typedef size_t ac__type_new_;
16731 if ((ac__type_new_ *) 0)
16733 if (sizeof (ac__type_new_))
16739 rm -f conftest.$ac_objext
16740 if { (ac_try="$ac_compile"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_compile") 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
16753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16754 { (case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_try") 2>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; } &&
16763 { ac_try='test -s conftest.$ac_objext'
16764 { (case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_try") 2>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 ac_cv_type_size_t=yes
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 ac_cv_type_size_t=no
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16784 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16785 if test $ac_cv_type_size_t = yes; then
16789 cat >>confdefs.h <<_ACEOF
16790 #define size_t unsigned int
16796 cat >>confdefs.h <<_ACEOF
16797 #define RETSIGTYPE void
16800 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16801 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16802 if test "${ac_cv_struct_tm+set}" = set; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 cat >conftest.$ac_ext <<_ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 #include <sys/types.h>
16817 struct tm *tp; tp->tm_sec;
16822 rm -f conftest.$ac_objext
16823 if { (ac_try="$ac_compile"
16824 case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_compile") 2>conftest.er1
16831 grep -v '^ *+' conftest.er1 >conftest.err
16833 cat conftest.err >&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16837 { (case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_try") 2>&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_try") 2>&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_struct_tm=time.h
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16861 ac_cv_struct_tm=sys/time.h
16864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16867 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16868 if test $ac_cv_struct_tm = sys/time.h; then
16870 cat >>confdefs.h <<\_ACEOF
16871 #define TM_IN_SYS_TIME 1
16876 { echo "$as_me:$LINENO: checking for int64_t" >&5
16877 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16878 if test "${ac_cv_type_int64_t+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 cat >conftest.$ac_ext <<_ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 $ac_includes_default
16888 typedef int64_t ac__type_new_;
16892 if ((ac__type_new_ *) 0)
16894 if (sizeof (ac__type_new_))
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_compile") 2>conftest.er1
16909 grep -v '^ *+' conftest.er1 >conftest.err
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
16925 { (case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_try") 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_type_int64_t=yes
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 ac_cv_type_int64_t=no
16942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16944 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16945 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16946 if test $ac_cv_type_int64_t = yes; then
16948 cat >>confdefs.h <<_ACEOF
16949 #define HAVE_INT64_T 1
16954 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16955 echo "$as_me: error: Type int64_t required but not found" >&2;}
16956 { (exit 1); exit 1; }; }
16959 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16960 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16961 if test "${ac_cv_type_uint64_t+set}" = set; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 cat >conftest.$ac_ext <<_ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16970 $ac_includes_default
16971 typedef uint64_t ac__type_new_;
16975 if ((ac__type_new_ *) 0)
16977 if (sizeof (ac__type_new_))
16983 rm -f conftest.$ac_objext
16984 if { (ac_try="$ac_compile"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_compile") 2>conftest.er1
16992 grep -v '^ *+' conftest.er1 >conftest.err
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
16997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16998 { (case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_try") 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest.$ac_objext'
17008 { (case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_try") 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_cv_type_uint64_t=yes
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 ac_cv_type_uint64_t=no
17025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17027 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17028 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17029 if test $ac_cv_type_uint64_t = yes; then
17031 cat >>confdefs.h <<_ACEOF
17032 #define HAVE_UINT64_T 1
17037 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17038 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17039 if test "${ac_cv_type_u_int64_t+set}" = set; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 cat >conftest.$ac_ext <<_ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 $ac_includes_default
17049 typedef u_int64_t ac__type_new_;
17053 if ((ac__type_new_ *) 0)
17055 if (sizeof (ac__type_new_))
17061 rm -f conftest.$ac_objext
17062 if { (ac_try="$ac_compile"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_compile") 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076 { (case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_try") 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest.$ac_objext'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 ac_cv_type_u_int64_t=yes
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17100 ac_cv_type_u_int64_t=no
17103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17106 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17107 if test $ac_cv_type_u_int64_t = yes; then
17109 cat >>confdefs.h <<_ACEOF
17110 #define HAVE_U_INT64_T 1
17115 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17116 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17117 { (exit 1); exit 1; }; }
17131 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17147 #define $ac_func innocuous_$ac_func
17149 /* System header to define __stub macros and hopefully few prototypes,
17150 which can conflict with char $ac_func (); below.
17151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17152 <limits.h> exists even on freestanding compilers. */
17155 # include <limits.h>
17157 # include <assert.h>
17162 /* Override any GCC internal prototype to avoid an error.
17163 Use char because int might match the return type of a GCC
17164 builtin and then its argument prototype would still apply. */
17169 /* The GNU C library defines this for functions which it implements
17170 to always fail with ENOSYS. Some functions are actually named
17171 something starting with __ and the normal name is an alias. */
17172 #if defined __stub_$ac_func || defined __stub___$ac_func
17179 return $ac_func ();
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_link") 2>conftest.er1
17193 grep -v '^ *+' conftest.er1 >conftest.err
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } &&
17198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17199 { (case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_try") 2>&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; } &&
17208 { ac_try='test -s conftest$ac_exeext'
17209 { (case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_try") 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 eval "$as_ac_var=yes"
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17223 eval "$as_ac_var=no"
17226 rm -f core conftest.err conftest.$ac_objext \
17227 conftest$ac_exeext conftest.$ac_ext
17229 ac_res=`eval echo '${'$as_ac_var'}'`
17230 { echo "$as_me:$LINENO: result: $ac_res" >&5
17231 echo "${ECHO_T}$ac_res" >&6; }
17232 if test `eval echo '${'$as_ac_var'}'` = yes; then
17233 cat >>confdefs.h <<_ACEOF
17234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17244 for ac_func in powf fmodf strtof round
17246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 cat >conftest.$ac_ext <<_ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17260 #define $ac_func innocuous_$ac_func
17262 /* System header to define __stub macros and hopefully few prototypes,
17263 which can conflict with char $ac_func (); below.
17264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17265 <limits.h> exists even on freestanding compilers. */
17268 # include <limits.h>
17270 # include <assert.h>
17275 /* Override any GCC internal prototype to avoid an error.
17276 Use char because int might match the return type of a GCC
17277 builtin and then its argument prototype would still apply. */
17282 /* The GNU C library defines this for functions which it implements
17283 to always fail with ENOSYS. Some functions are actually named
17284 something starting with __ and the normal name is an alias. */
17285 #if defined __stub_$ac_func || defined __stub___$ac_func
17292 return $ac_func ();
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17312 { (case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_try") 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; } &&
17321 { ac_try='test -s conftest$ac_exeext'
17322 { (case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_try") 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; }; then
17331 eval "$as_ac_var=yes"
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 eval "$as_ac_var=no"
17339 rm -f core conftest.err conftest.$ac_objext \
17340 conftest$ac_exeext conftest.$ac_ext
17342 ac_res=`eval echo '${'$as_ac_var'}'`
17343 { echo "$as_me:$LINENO: result: $ac_res" >&5
17344 echo "${ECHO_T}$ac_res" >&6; }
17345 if test `eval echo '${'$as_ac_var'}'` = yes; then
17346 cat >>confdefs.h <<_ACEOF
17347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17358 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 cat >conftest.$ac_ext <<_ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374 #define $ac_func innocuous_$ac_func
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char $ac_func (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17382 # include <limits.h>
17384 # include <assert.h>
17389 /* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17396 /* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399 #if defined __stub_$ac_func || defined __stub___$ac_func
17406 return $ac_func ();
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_link") 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17426 { (case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431 (eval "$ac_try") 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_try") 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 eval "$as_ac_var=yes"
17447 echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17450 eval "$as_ac_var=no"
17453 rm -f core conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17456 ac_res=`eval echo '${'$as_ac_var'}'`
17457 { echo "$as_me:$LINENO: result: $ac_res" >&5
17458 echo "${ECHO_T}$ac_res" >&6; }
17459 if test `eval echo '${'$as_ac_var'}'` = yes; then
17460 cat >>confdefs.h <<_ACEOF
17461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17470 for ac_func in isatty mkdtemp mkstemp
17472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 cat >conftest.$ac_ext <<_ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17486 #define $ac_func innocuous_$ac_func
17488 /* System header to define __stub macros and hopefully few prototypes,
17489 which can conflict with char $ac_func (); below.
17490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17491 <limits.h> exists even on freestanding compilers. */
17494 # include <limits.h>
17496 # include <assert.h>
17501 /* Override any GCC internal prototype to avoid an error.
17502 Use char because int might match the return type of a GCC
17503 builtin and then its argument prototype would still apply. */
17508 /* The GNU C library defines this for functions which it implements
17509 to always fail with ENOSYS. Some functions are actually named
17510 something starting with __ and the normal name is an alias. */
17511 #if defined __stub_$ac_func || defined __stub___$ac_func
17518 return $ac_func ();
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (ac_try="$ac_link"
17525 case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_link") 2>conftest.er1
17532 grep -v '^ *+' conftest.er1 >conftest.err
17534 cat conftest.err >&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } &&
17537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17538 { (case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_try") 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; } &&
17547 { ac_try='test -s conftest$ac_exeext'
17548 { (case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_try") 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17557 eval "$as_ac_var=yes"
17559 echo "$as_me: failed program was:" >&5
17560 sed 's/^/| /' conftest.$ac_ext >&5
17562 eval "$as_ac_var=no"
17565 rm -f core conftest.err conftest.$ac_objext \
17566 conftest$ac_exeext conftest.$ac_ext
17568 ac_res=`eval echo '${'$as_ac_var'}'`
17569 { echo "$as_me:$LINENO: result: $ac_res" >&5
17570 echo "${ECHO_T}$ac_res" >&6; }
17571 if test `eval echo '${'$as_ac_var'}'` = yes; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17586 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 cat >conftest.$ac_ext <<_ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17602 #define $ac_func innocuous_$ac_func
17604 /* System header to define __stub macros and hopefully few prototypes,
17605 which can conflict with char $ac_func (); below.
17606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17607 <limits.h> exists even on freestanding compilers. */
17610 # include <limits.h>
17612 # include <assert.h>
17617 /* Override any GCC internal prototype to avoid an error.
17618 Use char because int might match the return type of a GCC
17619 builtin and then its argument prototype would still apply. */
17624 /* The GNU C library defines this for functions which it implements
17625 to always fail with ENOSYS. Some functions are actually named
17626 something starting with __ and the normal name is an alias. */
17627 #if defined __stub_$ac_func || defined __stub___$ac_func
17634 return $ac_func ();
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (ac_try="$ac_link"
17641 case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_link") 2>conftest.er1
17648 grep -v '^ *+' conftest.er1 >conftest.err
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17654 { (case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_try") 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest$ac_exeext'
17664 { (case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_try") 2>&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; }; then
17673 eval "$as_ac_var=yes"
17675 echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 eval "$as_ac_var=no"
17681 rm -f core conftest.err conftest.$ac_objext \
17682 conftest$ac_exeext conftest.$ac_ext
17684 ac_res=`eval echo '${'$as_ac_var'}'`
17685 { echo "$as_me:$LINENO: result: $ac_res" >&5
17686 echo "${ECHO_T}$ac_res" >&6; }
17687 if test `eval echo '${'$as_ac_var'}'` = yes; then
17688 cat >>confdefs.h <<_ACEOF
17689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17699 for ac_func in strerror strerror_r setenv arc4random
17701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 cat >conftest.$ac_ext <<_ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17715 #define $ac_func innocuous_$ac_func
17717 /* System header to define __stub macros and hopefully few prototypes,
17718 which can conflict with char $ac_func (); below.
17719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17720 <limits.h> exists even on freestanding compilers. */
17723 # include <limits.h>
17725 # include <assert.h>
17730 /* Override any GCC internal prototype to avoid an error.
17731 Use char because int might match the return type of a GCC
17732 builtin and then its argument prototype would still apply. */
17737 /* The GNU C library defines this for functions which it implements
17738 to always fail with ENOSYS. Some functions are actually named
17739 something starting with __ and the normal name is an alias. */
17740 #if defined __stub_$ac_func || defined __stub___$ac_func
17747 return $ac_func ();
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (ac_try="$ac_link"
17754 case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_link") 2>conftest.er1
17761 grep -v '^ *+' conftest.er1 >conftest.err
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
17766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17767 { (case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_try") 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest$ac_exeext'
17777 { (case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_try") 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 eval "$as_ac_var=yes"
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 eval "$as_ac_var=no"
17794 rm -f core conftest.err conftest.$ac_objext \
17795 conftest$ac_exeext conftest.$ac_ext
17797 ac_res=`eval echo '${'$as_ac_var'}'`
17798 { echo "$as_me:$LINENO: result: $ac_res" >&5
17799 echo "${ECHO_T}$ac_res" >&6; }
17800 if test `eval echo '${'$as_ac_var'}'` = yes; then
17801 cat >>confdefs.h <<_ACEOF
17802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17812 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17820 cat >conftest.$ac_ext <<_ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17828 #define $ac_func innocuous_$ac_func
17830 /* System header to define __stub macros and hopefully few prototypes,
17831 which can conflict with char $ac_func (); below.
17832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17833 <limits.h> exists even on freestanding compilers. */
17836 # include <limits.h>
17838 # include <assert.h>
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17850 /* The GNU C library defines this for functions which it implements
17851 to always fail with ENOSYS. Some functions are actually named
17852 something starting with __ and the normal name is an alias. */
17853 #if defined __stub_$ac_func || defined __stub___$ac_func
17860 return $ac_func ();
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (ac_try="$ac_link"
17867 case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_link") 2>conftest.er1
17874 grep -v '^ *+' conftest.er1 >conftest.err
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17880 { (case "(($ac_try" in
17881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882 *) ac_try_echo=$ac_try;;
17884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17885 (eval "$ac_try") 2>&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; } &&
17889 { ac_try='test -s conftest$ac_exeext'
17890 { (case "(($ac_try" in
17891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892 *) ac_try_echo=$ac_try;;
17894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17895 (eval "$ac_try") 2>&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); }; }; then
17899 eval "$as_ac_var=yes"
17901 echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 eval "$as_ac_var=no"
17907 rm -f core conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
17910 ac_res=`eval echo '${'$as_ac_var'}'`
17911 { echo "$as_me:$LINENO: result: $ac_res" >&5
17912 echo "${ECHO_T}$ac_res" >&6; }
17913 if test `eval echo '${'$as_ac_var'}'` = yes; then
17914 cat >>confdefs.h <<_ACEOF
17915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17926 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 cat >conftest.$ac_ext <<_ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17942 #define $ac_func innocuous_$ac_func
17944 /* System header to define __stub macros and hopefully few prototypes,
17945 which can conflict with char $ac_func (); below.
17946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17947 <limits.h> exists even on freestanding compilers. */
17950 # include <limits.h>
17952 # include <assert.h>
17957 /* Override any GCC internal prototype to avoid an error.
17958 Use char because int might match the return type of a GCC
17959 builtin and then its argument prototype would still apply. */
17964 /* The GNU C library defines this for functions which it implements
17965 to always fail with ENOSYS. Some functions are actually named
17966 something starting with __ and the normal name is an alias. */
17967 #if defined __stub_$ac_func || defined __stub___$ac_func
17974 return $ac_func ();
17979 rm -f conftest.$ac_objext conftest$ac_exeext
17980 if { (ac_try="$ac_link"
17981 case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_link") 2>conftest.er1
17988 grep -v '^ *+' conftest.er1 >conftest.err
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18003 { ac_try='test -s conftest$ac_exeext'
18004 { (case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_try") 2>&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 eval "$as_ac_var=yes"
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18018 eval "$as_ac_var=no"
18021 rm -f core conftest.err conftest.$ac_objext \
18022 conftest$ac_exeext conftest.$ac_ext
18024 ac_res=`eval echo '${'$as_ac_var'}'`
18025 { echo "$as_me:$LINENO: result: $ac_res" >&5
18026 echo "${ECHO_T}$ac_res" >&6; }
18027 if test `eval echo '${'$as_ac_var'}'` = yes; then
18028 cat >>confdefs.h <<_ACEOF
18029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18035 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18036 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18037 if test "${llvm_cv_c_printf_a+set}" = set; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 ac_cpp='$CPP $CPPFLAGS'
18042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18046 if test "$cross_compiling" = yes; then
18047 llvmac_cv_c_printf_a=no
18049 cat >conftest.$ac_ext <<_ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18058 #include <stdlib.h>
18064 volatile double A, B;
18068 sprintf(Buffer, "%a", A);
18072 if (A != 0x1.999999999999ap-4)
18079 rm -f conftest$ac_exeext
18080 if { (ac_try="$ac_link"
18081 case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_link") 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18090 { (case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_try") 2>&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; }; then
18099 llvm_cv_c_printf_a=yes
18101 echo "$as_me: program exited with status $ac_status" >&5
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ( exit $ac_status )
18106 llvmac_cv_c_printf_a=no
18108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18113 ac_cpp='$CPP $CPPFLAGS'
18114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18119 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18120 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18121 if test "$llvm_cv_c_printf_a" = "yes"; then
18123 cat >>confdefs.h <<\_ACEOF
18124 #define HAVE_PRINTF_A 1
18131 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18132 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18133 if test "${ac_cv_func_rand48+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 ac_cpp='$CXXCPP $CPPFLAGS'
18139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18143 cat >conftest.$ac_ext <<_ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 #include <stdlib.h>
18153 srand48(0);lrand48();drand48();
18158 rm -f conftest.$ac_objext
18159 if { (ac_try="$ac_compile"
18160 case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_compile") 2>conftest.er1
18167 grep -v '^ *+' conftest.er1 >conftest.err
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18173 { (case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_try") 2>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest.$ac_objext'
18183 { (case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_try") 2>&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_cv_func_rand48=yes
18194 echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 ac_cv_func_rand48=no
18200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18202 ac_cpp='$CPP $CPPFLAGS'
18203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18209 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18210 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18212 if test "$ac_cv_func_rand48" = "yes" ; then
18214 cat >>confdefs.h <<\_ACEOF
18215 #define HAVE_RAND48 1
18221 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18222 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18223 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18226 cat >conftest.$ac_ext <<_ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 $ac_includes_default
18237 char *p = (char *) strerror_s;
18245 rm -f conftest.$ac_objext
18246 if { (ac_try="$ac_compile"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_compile") 2>conftest.er1
18254 grep -v '^ *+' conftest.er1 >conftest.err
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } &&
18259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18260 { (case "(($ac_try" in
18261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262 *) ac_try_echo=$ac_try;;
18264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265 (eval "$ac_try") 2>&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; } &&
18269 { ac_try='test -s conftest.$ac_objext'
18270 { (case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_try") 2>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 ac_cv_have_decl_strerror_s=yes
18281 echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18284 ac_cv_have_decl_strerror_s=no
18287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18289 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18290 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18291 if test $ac_cv_have_decl_strerror_s = yes; then
18293 cat >>confdefs.h <<_ACEOF
18294 #define HAVE_DECL_STRERROR_S 1
18299 cat >>confdefs.h <<_ACEOF
18300 #define HAVE_DECL_STRERROR_S 0
18308 if test "$llvm_cv_os_type" = "MingW" ; then
18309 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18310 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18311 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18312 echo $ECHO_N "(cached) $ECHO_C" >&6
18314 ac_check_lib_save_LIBS=$LIBS
18316 cat >conftest.$ac_ext <<_ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18323 /* Override any GCC internal prototype to avoid an error.
18324 Use char because int might match the return type of a GCC
18325 builtin and then its argument prototype would still apply. */
18338 rm -f conftest.$ac_objext conftest$ac_exeext
18339 if { (ac_try="$ac_link"
18340 case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_link") 2>conftest.er1
18347 grep -v '^ *+' conftest.er1 >conftest.err
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } &&
18352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; } &&
18362 { ac_try='test -s conftest$ac_exeext'
18363 { (case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_try") 2>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; }; then
18372 ac_cv_lib_gcc__alloca=yes
18374 echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18377 ac_cv_lib_gcc__alloca=no
18380 rm -f core conftest.err conftest.$ac_objext \
18381 conftest$ac_exeext conftest.$ac_ext
18382 LIBS=$ac_check_lib_save_LIBS
18384 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18385 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18386 if test $ac_cv_lib_gcc__alloca = yes; then
18388 cat >>confdefs.h <<\_ACEOF
18389 #define HAVE__ALLOCA 1
18394 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18395 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18396 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18397 echo $ECHO_N "(cached) $ECHO_C" >&6
18399 ac_check_lib_save_LIBS=$LIBS
18401 cat >conftest.$ac_ext <<_ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18408 /* Override any GCC internal prototype to avoid an error.
18409 Use char because int might match the return type of a GCC
18410 builtin and then its argument prototype would still apply. */
18418 return __alloca ();
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (ac_try="$ac_link"
18425 case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_link") 2>conftest.er1
18432 grep -v '^ *+' conftest.er1 >conftest.err
18434 cat conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 ac_cv_lib_gcc___alloca=yes
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18462 ac_cv_lib_gcc___alloca=no
18465 rm -f core conftest.err conftest.$ac_objext \
18466 conftest$ac_exeext conftest.$ac_ext
18467 LIBS=$ac_check_lib_save_LIBS
18469 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18470 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18471 if test $ac_cv_lib_gcc___alloca = yes; then
18473 cat >>confdefs.h <<\_ACEOF
18474 #define HAVE___ALLOCA 1
18479 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18480 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18481 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18484 ac_check_lib_save_LIBS=$LIBS
18486 cat >conftest.$ac_ext <<_ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18493 /* Override any GCC internal prototype to avoid an error.
18494 Use char because int might match the return type of a GCC
18495 builtin and then its argument prototype would still apply. */
18503 return __chkstk ();
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (ac_try="$ac_link"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_link") 2>conftest.er1
18517 grep -v '^ *+' conftest.er1 >conftest.err
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
18522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest$ac_exeext'
18533 { (case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_try") 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_lib_gcc___chkstk=yes
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18547 ac_cv_lib_gcc___chkstk=no
18550 rm -f core conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18552 LIBS=$ac_check_lib_save_LIBS
18554 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18555 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18556 if test $ac_cv_lib_gcc___chkstk = yes; then
18558 cat >>confdefs.h <<\_ACEOF
18559 #define HAVE___CHKSTK 1
18564 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18565 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18566 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 ac_check_lib_save_LIBS=$LIBS
18571 cat >conftest.$ac_ext <<_ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18578 /* Override any GCC internal prototype to avoid an error.
18579 Use char because int might match the return type of a GCC
18580 builtin and then its argument prototype would still apply. */
18588 return ___chkstk ();
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (ac_try="$ac_link"
18595 case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_link") 2>conftest.er1
18602 grep -v '^ *+' conftest.er1 >conftest.err
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18608 { (case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_try") 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest$ac_exeext'
18618 { (case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_try") 2>&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 ac_cv_lib_gcc____chkstk=yes
18629 echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18632 ac_cv_lib_gcc____chkstk=no
18635 rm -f core conftest.err conftest.$ac_objext \
18636 conftest$ac_exeext conftest.$ac_ext
18637 LIBS=$ac_check_lib_save_LIBS
18639 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18640 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18641 if test $ac_cv_lib_gcc____chkstk = yes; then
18643 cat >>confdefs.h <<\_ACEOF
18644 #define HAVE____CHKSTK 1
18650 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18651 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18652 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 ac_check_lib_save_LIBS=$LIBS
18657 cat >conftest.$ac_ext <<_ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18664 /* Override any GCC internal prototype to avoid an error.
18665 Use char because int might match the return type of a GCC
18666 builtin and then its argument prototype would still apply. */
18674 return __ashldi3 ();
18679 rm -f conftest.$ac_objext conftest$ac_exeext
18680 if { (ac_try="$ac_link"
18681 case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_link") 2>conftest.er1
18688 grep -v '^ *+' conftest.er1 >conftest.err
18690 cat conftest.err >&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } &&
18693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18694 { (case "(($ac_try" in
18695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696 *) ac_try_echo=$ac_try;;
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699 (eval "$ac_try") 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; } &&
18703 { ac_try='test -s conftest$ac_exeext'
18704 { (case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_try") 2>&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_cv_lib_gcc___ashldi3=yes
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18718 ac_cv_lib_gcc___ashldi3=no
18721 rm -f core conftest.err conftest.$ac_objext \
18722 conftest$ac_exeext conftest.$ac_ext
18723 LIBS=$ac_check_lib_save_LIBS
18725 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18726 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18727 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18729 cat >>confdefs.h <<\_ACEOF
18730 #define HAVE___ASHLDI3 1
18735 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18736 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18737 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18740 ac_check_lib_save_LIBS=$LIBS
18742 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18759 return __ashrdi3 ();
18764 rm -f conftest.$ac_objext conftest$ac_exeext
18765 if { (ac_try="$ac_link"
18766 case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_link") 2>conftest.er1
18773 grep -v '^ *+' conftest.er1 >conftest.err
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
18778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18779 { (case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_try") 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try='test -s conftest$ac_exeext'
18789 { (case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_try") 2>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
18798 ac_cv_lib_gcc___ashrdi3=yes
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18803 ac_cv_lib_gcc___ashrdi3=no
18806 rm -f core conftest.err conftest.$ac_objext \
18807 conftest$ac_exeext conftest.$ac_ext
18808 LIBS=$ac_check_lib_save_LIBS
18810 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18811 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18812 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18814 cat >>confdefs.h <<\_ACEOF
18815 #define HAVE___ASHRDI3 1
18820 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18821 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18822 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 ac_check_lib_save_LIBS=$LIBS
18827 cat >conftest.$ac_ext <<_ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18834 /* Override any GCC internal prototype to avoid an error.
18835 Use char because int might match the return type of a GCC
18836 builtin and then its argument prototype would still apply. */
18844 return __divdi3 ();
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if { (ac_try="$ac_link"
18851 case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_link") 2>conftest.er1
18858 grep -v '^ *+' conftest.er1 >conftest.err
18860 cat conftest.err >&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } &&
18863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18864 { (case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_try") 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; } &&
18873 { ac_try='test -s conftest$ac_exeext'
18874 { (case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_try") 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 ac_cv_lib_gcc___divdi3=yes
18885 echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 ac_cv_lib_gcc___divdi3=no
18891 rm -f core conftest.err conftest.$ac_objext \
18892 conftest$ac_exeext conftest.$ac_ext
18893 LIBS=$ac_check_lib_save_LIBS
18895 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18896 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18897 if test $ac_cv_lib_gcc___divdi3 = yes; then
18899 cat >>confdefs.h <<\_ACEOF
18900 #define HAVE___DIVDI3 1
18905 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18906 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18907 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18910 ac_check_lib_save_LIBS=$LIBS
18912 cat >conftest.$ac_ext <<_ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18919 /* Override any GCC internal prototype to avoid an error.
18920 Use char because int might match the return type of a GCC
18921 builtin and then its argument prototype would still apply. */
18929 return __fixdfdi ();
18934 rm -f conftest.$ac_objext conftest$ac_exeext
18935 if { (ac_try="$ac_link"
18936 case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_link") 2>conftest.er1
18943 grep -v '^ *+' conftest.er1 >conftest.err
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18949 { (case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_try") 2>&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest$ac_exeext'
18959 { (case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18964 (eval "$ac_try") 2>&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 ac_cv_lib_gcc___fixdfdi=yes
18970 echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 ac_cv_lib_gcc___fixdfdi=no
18976 rm -f core conftest.err conftest.$ac_objext \
18977 conftest$ac_exeext conftest.$ac_ext
18978 LIBS=$ac_check_lib_save_LIBS
18980 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18981 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18982 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18984 cat >>confdefs.h <<\_ACEOF
18985 #define HAVE___FIXDFDI 1
18990 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18991 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18992 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 ac_check_lib_save_LIBS=$LIBS
18997 cat >conftest.$ac_ext <<_ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19004 /* Override any GCC internal prototype to avoid an error.
19005 Use char because int might match the return type of a GCC
19006 builtin and then its argument prototype would still apply. */
19014 return __fixsfdi ();
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (ac_try="$ac_link"
19021 case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_link") 2>conftest.er1
19028 grep -v '^ *+' conftest.er1 >conftest.err
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } &&
19033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19034 { (case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_try") 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; } &&
19043 { ac_try='test -s conftest$ac_exeext'
19044 { (case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 (eval "$ac_try") 2>&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 ac_cv_lib_gcc___fixsfdi=yes
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 ac_cv_lib_gcc___fixsfdi=no
19061 rm -f core conftest.err conftest.$ac_objext \
19062 conftest$ac_exeext conftest.$ac_ext
19063 LIBS=$ac_check_lib_save_LIBS
19065 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19066 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19067 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19069 cat >>confdefs.h <<\_ACEOF
19070 #define HAVE___FIXSFDI 1
19075 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19076 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19077 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 ac_check_lib_save_LIBS=$LIBS
19082 cat >conftest.$ac_ext <<_ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19089 /* Override any GCC internal prototype to avoid an error.
19090 Use char because int might match the return type of a GCC
19091 builtin and then its argument prototype would still apply. */
19095 char __floatdidf ();
19099 return __floatdidf ();
19104 rm -f conftest.$ac_objext conftest$ac_exeext
19105 if { (ac_try="$ac_link"
19106 case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_link") 2>conftest.er1
19113 grep -v '^ *+' conftest.er1 >conftest.err
19115 cat conftest.err >&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
19118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19119 { (case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_try") 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; } &&
19128 { ac_try='test -s conftest$ac_exeext'
19129 { (case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_try") 2>&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; }; then
19138 ac_cv_lib_gcc___floatdidf=yes
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 ac_cv_lib_gcc___floatdidf=no
19146 rm -f core conftest.err conftest.$ac_objext \
19147 conftest$ac_exeext conftest.$ac_ext
19148 LIBS=$ac_check_lib_save_LIBS
19150 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19151 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19152 if test $ac_cv_lib_gcc___floatdidf = yes; then
19154 cat >>confdefs.h <<\_ACEOF
19155 #define HAVE___FLOATDIDF 1
19160 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19161 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19162 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 ac_check_lib_save_LIBS=$LIBS
19167 cat >conftest.$ac_ext <<_ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19174 /* Override any GCC internal prototype to avoid an error.
19175 Use char because int might match the return type of a GCC
19176 builtin and then its argument prototype would still apply. */
19184 return __lshrdi3 ();
19189 rm -f conftest.$ac_objext conftest$ac_exeext
19190 if { (ac_try="$ac_link"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_link") 2>conftest.er1
19198 grep -v '^ *+' conftest.er1 >conftest.err
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
19203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19204 { (case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_try") 2>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; } &&
19213 { ac_try='test -s conftest$ac_exeext'
19214 { (case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_try") 2>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223 ac_cv_lib_gcc___lshrdi3=yes
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ac_cv_lib_gcc___lshrdi3=no
19231 rm -f core conftest.err conftest.$ac_objext \
19232 conftest$ac_exeext conftest.$ac_ext
19233 LIBS=$ac_check_lib_save_LIBS
19235 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19236 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19237 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE___LSHRDI3 1
19245 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19246 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19247 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 ac_check_lib_save_LIBS=$LIBS
19252 cat >conftest.$ac_ext <<_ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h. */
19259 /* Override any GCC internal prototype to avoid an error.
19260 Use char because int might match the return type of a GCC
19261 builtin and then its argument prototype would still apply. */
19269 return __moddi3 ();
19274 rm -f conftest.$ac_objext conftest$ac_exeext
19275 if { (ac_try="$ac_link"
19276 case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_link") 2>conftest.er1
19283 grep -v '^ *+' conftest.er1 >conftest.err
19285 cat conftest.err >&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } &&
19288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19289 { (case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_try") 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest$ac_exeext'
19299 { (case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304 (eval "$ac_try") 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 ac_cv_lib_gcc___moddi3=yes
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 ac_cv_lib_gcc___moddi3=no
19316 rm -f core conftest.err conftest.$ac_objext \
19317 conftest$ac_exeext conftest.$ac_ext
19318 LIBS=$ac_check_lib_save_LIBS
19320 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19321 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19322 if test $ac_cv_lib_gcc___moddi3 = yes; then
19324 cat >>confdefs.h <<\_ACEOF
19325 #define HAVE___MODDI3 1
19330 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19331 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19332 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 ac_check_lib_save_LIBS=$LIBS
19337 cat >conftest.$ac_ext <<_ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19344 /* Override any GCC internal prototype to avoid an error.
19345 Use char because int might match the return type of a GCC
19346 builtin and then its argument prototype would still apply. */
19354 return __udivdi3 ();
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_link") 2>conftest.er1
19368 grep -v '^ *+' conftest.er1 >conftest.err
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19374 { (case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_try") 2>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest$ac_exeext'
19384 { (case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_try") 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_cv_lib_gcc___udivdi3=yes
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_cv_lib_gcc___udivdi3=no
19401 rm -f core conftest.err conftest.$ac_objext \
19402 conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS
19405 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19406 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19407 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19409 cat >>confdefs.h <<\_ACEOF
19410 #define HAVE___UDIVDI3 1
19415 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19416 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19417 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 ac_check_lib_save_LIBS=$LIBS
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19429 /* Override any GCC internal prototype to avoid an error.
19430 Use char because int might match the return type of a GCC
19431 builtin and then its argument prototype would still apply. */
19439 return __umoddi3 ();
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (ac_try="$ac_link"
19446 case "(($ac_try" in
19447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448 *) ac_try_echo=$ac_try;;
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451 (eval "$ac_link") 2>conftest.er1
19453 grep -v '^ *+' conftest.er1 >conftest.err
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest$ac_exeext'
19469 { (case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_try") 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_lib_gcc___umoddi3=yes
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_cv_lib_gcc___umoddi3=no
19486 rm -f core conftest.err conftest.$ac_objext \
19487 conftest$ac_exeext conftest.$ac_ext
19488 LIBS=$ac_check_lib_save_LIBS
19490 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19491 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19492 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE___UMODDI3 1
19501 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19502 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19503 if test "${ac_cv_lib_gcc___main+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19506 ac_check_lib_save_LIBS=$LIBS
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19515 /* Override any GCC internal prototype to avoid an error.
19516 Use char because int might match the return type of a GCC
19517 builtin and then its argument prototype would still apply. */
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (ac_try="$ac_link"
19532 case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_link") 2>conftest.er1
19539 grep -v '^ *+' conftest.er1 >conftest.err
19541 cat conftest.err >&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
19544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19545 { (case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_try") 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest$ac_exeext'
19555 { (case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_try") 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_cv_lib_gcc___main=yes
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_cv_lib_gcc___main=no
19572 rm -f core conftest.err conftest.$ac_objext \
19573 conftest$ac_exeext conftest.$ac_ext
19574 LIBS=$ac_check_lib_save_LIBS
19576 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19577 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19578 if test $ac_cv_lib_gcc___main = yes; then
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE___MAIN 1
19586 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19587 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19588 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 ac_check_lib_save_LIBS=$LIBS
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19600 /* Override any GCC internal prototype to avoid an error.
19601 Use char because int might match the return type of a GCC
19602 builtin and then its argument prototype would still apply. */
19610 return __cmpdi2 ();
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest$ac_exeext'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 ac_cv_lib_gcc___cmpdi2=yes
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 ac_cv_lib_gcc___cmpdi2=no
19657 rm -f core conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19659 LIBS=$ac_check_lib_save_LIBS
19661 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19662 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19663 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19665 cat >>confdefs.h <<\_ACEOF
19666 #define HAVE___CMPDI2 1
19673 if test "$llvm_cv_os_type" = "MingW" ; then
19674 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19675 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19676 cat >conftest.$ac_ext <<_ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19684 #include <windows.h>
19685 #include <imagehlp.h>
19686 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19687 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19691 rm -f conftest.$ac_objext
19692 if { (ac_try="$ac_compile"
19693 case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_compile") 2>conftest.er1
19700 grep -v '^ *+' conftest.er1 >conftest.err
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } &&
19705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19706 { (case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_try") 2>&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; } &&
19715 { ac_try='test -s conftest.$ac_objext'
19716 { (case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_try") 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19726 { echo "$as_me:$LINENO: result: yes" >&5
19727 echo "${ECHO_T}yes" >&6; }
19728 llvm_cv_win32_elmcb_pcstr="PCSTR"
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19735 { echo "$as_me:$LINENO: result: no" >&5
19736 echo "${ECHO_T}no" >&6; }
19737 llvm_cv_win32_elmcb_pcstr="PSTR"
19741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19743 cat >>confdefs.h <<_ACEOF
19744 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19751 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19752 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19753 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 ac_cpp='$CXXCPP $CPPFLAGS'
19759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19778 rm -f conftest.$ac_objext
19779 if { (ac_try="$ac_compile"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_compile") 2>conftest.er1
19787 grep -v '^ *+' conftest.er1 >conftest.err
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
19792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19793 { (case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_try") 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; } &&
19802 { ac_try='test -s conftest.$ac_objext'
19803 { (case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_try") 2>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; }; then
19812 ac_cv_func_isnan_in_math_h=yes
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_cv_func_isnan_in_math_h=no
19820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19822 ac_cpp='$CPP $CPPFLAGS'
19823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19829 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19830 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19833 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19835 cat >>confdefs.h <<\_ACEOF
19836 #define HAVE_ISNAN_IN_MATH_H 1
19842 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19843 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19844 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 ac_cpp='$CXXCPP $CPPFLAGS'
19850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19869 rm -f conftest.$ac_objext
19870 if { (ac_try="$ac_compile"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_compile") 2>conftest.er1
19878 grep -v '^ *+' conftest.er1 >conftest.err
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884 { (case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_try") 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try='test -s conftest.$ac_objext'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
19903 ac_cv_func_isnan_in_cmath=yes
19905 echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19908 ac_cv_func_isnan_in_cmath=no
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19913 ac_cpp='$CPP $CPPFLAGS'
19914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19920 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19921 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19923 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19925 cat >>confdefs.h <<\_ACEOF
19926 #define HAVE_ISNAN_IN_CMATH 1
19932 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19933 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19934 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 ac_cpp='$CXXCPP $CPPFLAGS'
19940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19954 float f; std::isnan(f);
19959 rm -f conftest.$ac_objext
19960 if { (ac_try="$ac_compile"
19961 case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_compile") 2>conftest.er1
19968 grep -v '^ *+' conftest.er1 >conftest.err
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } &&
19973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19974 { (case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; } &&
19983 { ac_try='test -s conftest.$ac_objext'
19984 { (case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_try") 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; }; then
19993 ac_cv_func_std_isnan_in_cmath=yes
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 ac_cv_func_std_isnan_in_cmath=no
20001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 ac_cpp='$CPP $CPPFLAGS'
20004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20010 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20011 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20013 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20015 cat >>confdefs.h <<\_ACEOF
20016 #define HAVE_STD_ISNAN_IN_CMATH 1
20024 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20025 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20026 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 ac_cpp='$CXXCPP $CPPFLAGS'
20032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20036 cat >conftest.$ac_ext <<_ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h. */
20051 rm -f conftest.$ac_objext
20052 if { (ac_try="$ac_compile"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_compile") 2>conftest.er1
20060 grep -v '^ *+' conftest.er1 >conftest.err
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } &&
20065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20066 { (case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071 (eval "$ac_try") 2>&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); }; } &&
20075 { ac_try='test -s conftest.$ac_objext'
20076 { (case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081 (eval "$ac_try") 2>&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 ac_cv_func_isinf_in_math_h=yes
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20090 ac_cv_func_isinf_in_math_h=no
20093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20095 ac_cpp='$CPP $CPPFLAGS'
20096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20102 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20103 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20105 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20107 cat >>confdefs.h <<\_ACEOF
20108 #define HAVE_ISINF_IN_MATH_H 1
20114 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20115 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20116 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20121 ac_cpp='$CXXCPP $CPPFLAGS'
20122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20126 cat >conftest.$ac_ext <<_ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20141 rm -f conftest.$ac_objext
20142 if { (ac_try="$ac_compile"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_compile") 2>conftest.er1
20150 grep -v '^ *+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } &&
20155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; } &&
20165 { ac_try='test -s conftest.$ac_objext'
20166 { (case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_try") 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_cv_func_isinf_in_cmath=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_cv_func_isinf_in_cmath=no
20183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20185 ac_cpp='$CPP $CPPFLAGS'
20186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20192 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20193 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20195 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20197 cat >>confdefs.h <<\_ACEOF
20198 #define HAVE_ISINF_IN_CMATH 1
20204 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20205 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20206 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 ac_cpp='$CXXCPP $CPPFLAGS'
20212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20226 float f; std::isinf(f);
20231 rm -f conftest.$ac_objext
20232 if { (ac_try="$ac_compile"
20233 case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_compile") 2>conftest.er1
20240 grep -v '^ *+' conftest.er1 >conftest.err
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
20245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20246 { (case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_try") 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; } &&
20255 { ac_try='test -s conftest.$ac_objext'
20256 { (case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_try") 2>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_cv_func_std_isinf_in_cmath=yes
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_cv_func_std_isinf_in_cmath=no
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275 ac_cpp='$CPP $CPPFLAGS'
20276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20282 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20283 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20285 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20287 cat >>confdefs.h <<\_ACEOF
20288 #define HAVE_STD_ISINF_IN_CMATH 1
20294 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20295 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20296 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 ac_cpp='$CXXCPP $CPPFLAGS'
20302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 #include <ieeefp.h>
20316 float f; finite(f);
20321 rm -f conftest.$ac_objext
20322 if { (ac_try="$ac_compile"
20323 case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328 (eval "$ac_compile") 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20336 { (case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_try") 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest.$ac_objext'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 ac_cv_func_finite_in_ieeefp_h=yes
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 ac_cv_func_finite_in_ieeefp_h=no
20363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20365 ac_cpp='$CPP $CPPFLAGS'
20366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20372 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20373 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20375 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20377 cat >>confdefs.h <<\_ACEOF
20378 #define HAVE_FINITE_IN_IEEEFP_H 1
20385 if test "$llvm_cv_platform_type" = "Unix" ; then
20388 for ac_header in stdlib.h unistd.h
20390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 ac_res=`eval echo '${'$as_ac_Header'}'`
20398 { echo "$as_me:$LINENO: result: $ac_res" >&5
20399 echo "${ECHO_T}$ac_res" >&6; }
20401 # Is the header compilable?
20402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20404 cat >conftest.$ac_ext <<_ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 $ac_includes_default
20411 #include <$ac_header>
20413 rm -f conftest.$ac_objext
20414 if { (ac_try="$ac_compile"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } &&
20427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20428 { (case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_try") 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; } &&
20437 { ac_try='test -s conftest.$ac_objext'
20438 { (case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_try") 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; }; then
20447 ac_header_compiler=yes
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20452 ac_header_compiler=no
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20457 echo "${ECHO_T}$ac_header_compiler" >&6; }
20459 # Is the header present?
20460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20462 cat >conftest.$ac_ext <<_ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h. */
20468 #include <$ac_header>
20470 if { (ac_try="$ac_cpp conftest.$ac_ext"
20471 case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20478 grep -v '^ *+' conftest.er1 >conftest.err
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } >/dev/null; then
20483 if test -s conftest.err; then
20484 ac_cpp_err=$ac_c_preproc_warn_flag
20485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20492 if test -z "$ac_cpp_err"; then
20493 ac_header_preproc=yes
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20498 ac_header_preproc=no
20501 rm -f conftest.err conftest.$ac_ext
20502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20503 echo "${ECHO_T}$ac_header_preproc" >&6; }
20505 # So? What about this header?
20506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20512 ac_header_preproc=yes
20515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20528 ## ------------------------------------ ##
20529 ## Report this to http://llvm.org/bugs/ ##
20530 ## ------------------------------------ ##
20532 ) | sed "s/^/$as_me: WARNING: /" >&2
20535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 eval "$as_ac_Header=\$ac_header_preproc"
20542 ac_res=`eval echo '${'$as_ac_Header'}'`
20543 { echo "$as_me:$LINENO: result: $ac_res" >&5
20544 echo "${ECHO_T}$ac_res" >&6; }
20547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20548 cat >>confdefs.h <<_ACEOF
20549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20557 for ac_func in getpagesize
20559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 cat >conftest.$ac_ext <<_ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20573 #define $ac_func innocuous_$ac_func
20575 /* System header to define __stub macros and hopefully few prototypes,
20576 which can conflict with char $ac_func (); below.
20577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20578 <limits.h> exists even on freestanding compilers. */
20581 # include <limits.h>
20583 # include <assert.h>
20588 /* Override any GCC internal prototype to avoid an error.
20589 Use char because int might match the return type of a GCC
20590 builtin and then its argument prototype would still apply. */
20595 /* The GNU C library defines this for functions which it implements
20596 to always fail with ENOSYS. Some functions are actually named
20597 something starting with __ and the normal name is an alias. */
20598 #if defined __stub_$ac_func || defined __stub___$ac_func
20605 return $ac_func ();
20610 rm -f conftest.$ac_objext conftest$ac_exeext
20611 if { (ac_try="$ac_link"
20612 case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_link") 2>conftest.er1
20619 grep -v '^ *+' conftest.er1 >conftest.err
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_try") 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; } &&
20634 { ac_try='test -s conftest$ac_exeext'
20635 { (case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_try") 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 eval "$as_ac_var=yes"
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 eval "$as_ac_var=no"
20652 rm -f core conftest.err conftest.$ac_objext \
20653 conftest$ac_exeext conftest.$ac_ext
20655 ac_res=`eval echo '${'$as_ac_var'}'`
20656 { echo "$as_me:$LINENO: result: $ac_res" >&5
20657 echo "${ECHO_T}$ac_res" >&6; }
20658 if test `eval echo '${'$as_ac_var'}'` = yes; then
20659 cat >>confdefs.h <<_ACEOF
20660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20666 { echo "$as_me:$LINENO: checking for working mmap" >&5
20667 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20668 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 if test "$cross_compiling" = yes; then
20672 ac_cv_func_mmap_fixed_mapped=no
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 $ac_includes_default
20681 /* malloc might have been renamed as rpl_malloc. */
20684 /* Thanks to Mike Haertel and Jim Avera for this test.
20685 Here is a matrix of mmap possibilities:
20686 mmap private not fixed
20687 mmap private fixed at somewhere currently unmapped
20688 mmap private fixed at somewhere already mapped
20689 mmap shared not fixed
20690 mmap shared fixed at somewhere currently unmapped
20691 mmap shared fixed at somewhere already mapped
20692 For private mappings, we should verify that changes cannot be read()
20693 back from the file, nor mmap's back from the file at a different
20694 address. (There have been systems where private was not correctly
20695 implemented like the infamous i386 svr4.0, and systems where the
20696 VM page cache was not coherent with the file system buffer cache
20697 like early versions of FreeBSD and possibly contemporary NetBSD.)
20698 For shared mappings, we should conversely verify that changes get
20699 propagated back to all the places they're supposed to be.
20701 Grep wants private fixed already mapped.
20702 The main things grep needs to know about mmap are:
20703 * does it exist and is it safe to write into the mmap'd area
20704 * how to use it (BSD variants) */
20707 #include <sys/mman.h>
20709 #if !STDC_HEADERS && !HAVE_STDLIB_H
20713 /* This mess was copied from the GNU getpagesize.h. */
20714 #if !HAVE_GETPAGESIZE
20715 /* Assume that all systems that can run configure have sys/param.h. */
20716 # if !HAVE_SYS_PARAM_H
20717 # define HAVE_SYS_PARAM_H 1
20720 # ifdef _SC_PAGESIZE
20721 # define getpagesize() sysconf(_SC_PAGESIZE)
20722 # else /* no _SC_PAGESIZE */
20723 # if HAVE_SYS_PARAM_H
20724 # include <sys/param.h>
20725 # ifdef EXEC_PAGESIZE
20726 # define getpagesize() EXEC_PAGESIZE
20727 # else /* no EXEC_PAGESIZE */
20729 # define getpagesize() NBPG * CLSIZE
20732 # endif /* no CLSIZE */
20733 # else /* no NBPG */
20735 # define getpagesize() NBPC
20736 # else /* no NBPC */
20738 # define getpagesize() PAGESIZE
20739 # endif /* PAGESIZE */
20740 # endif /* no NBPC */
20741 # endif /* no NBPG */
20742 # endif /* no EXEC_PAGESIZE */
20743 # else /* no HAVE_SYS_PARAM_H */
20744 # define getpagesize() 8192 /* punt totally */
20745 # endif /* no HAVE_SYS_PARAM_H */
20746 # endif /* no _SC_PAGESIZE */
20748 #endif /* no HAVE_GETPAGESIZE */
20753 char *data, *data2, *data3;
20757 pagesize = getpagesize ();
20759 /* First, make a file with some known garbage in it. */
20760 data = (char *) malloc (pagesize);
20763 for (i = 0; i < pagesize; ++i)
20764 *(data + i) = rand ();
20766 fd = creat ("conftest.mmap", 0600);
20769 if (write (fd, data, pagesize) != pagesize)
20773 /* Next, try to mmap the file at a fixed address which already has
20774 something else allocated at it. If we can, also make sure that
20775 we see the same garbage. */
20776 fd = open ("conftest.mmap", O_RDWR);
20779 data2 = (char *) malloc (2 * pagesize);
20782 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20783 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20784 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20786 for (i = 0; i < pagesize; ++i)
20787 if (*(data + i) != *(data2 + i))
20790 /* Finally, make sure that changes to the mapped area do not
20791 percolate back to the file as seen by read(). (This is a bug on
20792 some variants of i386 svr4.0.) */
20793 for (i = 0; i < pagesize; ++i)
20794 *(data2 + i) = *(data2 + i) + 1;
20795 data3 = (char *) malloc (pagesize);
20798 if (read (fd, data3, pagesize) != pagesize)
20800 for (i = 0; i < pagesize; ++i)
20801 if (*(data + i) != *(data3 + i))
20807 rm -f conftest$ac_exeext
20808 if { (ac_try="$ac_link"
20809 case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_link") 2>&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20818 { (case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_try") 2>&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; }; then
20827 ac_cv_func_mmap_fixed_mapped=yes
20829 echo "$as_me: program exited with status $ac_status" >&5
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ( exit $ac_status )
20834 ac_cv_func_mmap_fixed_mapped=no
20836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20841 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20842 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20843 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20845 cat >>confdefs.h <<\_ACEOF
20846 #define HAVE_MMAP 1
20850 rm -f conftest.mmap
20852 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20853 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20854 if test "${ac_cv_func_mmap_file+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 ac_cpp='$CPP $CPPFLAGS'
20859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863 if test "$cross_compiling" = yes; then
20864 ac_cv_func_mmap_file=no
20866 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20874 #include <sys/types.h>
20875 #include <sys/mman.h>
20883 fd = creat ("foo",0777);
20884 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20886 return (fd != (int) MAP_FAILED);
20891 rm -f conftest$ac_exeext
20892 if { (ac_try="$ac_link"
20893 case "(($ac_try" in
20894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895 *) ac_try_echo=$ac_try;;
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898 (eval "$ac_link") 2>&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20902 { (case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_try") 2>&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; }; then
20911 ac_cv_func_mmap_file=yes
20913 echo "$as_me: program exited with status $ac_status" >&5
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20917 ( exit $ac_status )
20918 ac_cv_func_mmap_file=no
20920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20925 ac_cpp='$CPP $CPPFLAGS'
20926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20932 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20933 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20934 if test "$ac_cv_func_mmap_file" = yes; then
20936 cat >>confdefs.h <<\_ACEOF
20937 #define HAVE_MMAP_FILE
20944 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20945 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20946 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 if test "$llvm_cv_os_type" = "Interix" ; then
20950 ac_cv_need_dev_zero_for_mmap=yes
20952 ac_cv_need_dev_zero_for_mmap=no
20956 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20957 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20958 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20960 cat >>confdefs.h <<\_ACEOF
20961 #define NEED_DEV_ZERO_FOR_MMAP 1
20966 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20968 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20969 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20971 if test "$ac_cv_func_mmap_file" = "no"
20973 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20974 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20978 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20979 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20981 ac_cpp='$CXXCPP $CPPFLAGS'
20982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20986 cat >conftest.$ac_ext <<_ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20995 volatile unsigned long val = 1;
20996 __sync_synchronize();
20997 __sync_val_compare_and_swap(&val, 1, 0);
20998 __sync_add_and_fetch(&val, 1);
20999 __sync_sub_and_fetch(&val, 1);
21005 rm -f conftest.$ac_objext conftest$ac_exeext
21006 if { (ac_try="$ac_link"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_link") 2>conftest.er1
21014 grep -v '^ *+' conftest.er1 >conftest.err
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest$ac_exeext'
21030 { (case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_try") 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21040 { echo "$as_me:$LINENO: result: yes" >&5
21041 echo "${ECHO_T}yes" >&6; }
21043 cat >>confdefs.h <<\_ACEOF
21044 #define LLVM_HAS_ATOMICS 1
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21053 { echo "$as_me:$LINENO: result: no" >&5
21054 echo "${ECHO_T}no" >&6; }
21056 cat >>confdefs.h <<\_ACEOF
21057 #define LLVM_HAS_ATOMICS 0
21060 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21061 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21065 rm -f core conftest.err conftest.$ac_objext \
21066 conftest$ac_exeext conftest.$ac_ext
21068 ac_cpp='$CPP $CPPFLAGS'
21069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21075 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21076 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21077 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21078 if test "${llvm_cv_linux_mixed+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 ac_cpp='$CPP $CPPFLAGS'
21083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21094 error: Not x86-64 even if uname says so!
21105 rm -f conftest.$ac_objext
21106 if { (ac_try="$ac_compile"
21107 case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_compile") 2>conftest.er1
21114 grep -v '^ *+' conftest.er1 >conftest.err
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
21119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21120 { (case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_try") 2>&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; } &&
21129 { ac_try='test -s conftest.$ac_objext'
21130 { (case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_try") 2>&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
21139 llvm_cv_linux_mixed=no
21141 echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21144 llvm_cv_linux_mixed=yes
21147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21149 ac_cpp='$CPP $CPPFLAGS'
21150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21156 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21157 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21159 if test "$llvm_cv_linux_mixed" = "yes"; then
21160 llvm_cv_target_arch="x86"
21166 for ac_func in __dso_handle
21168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21172 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 cat >conftest.$ac_ext <<_ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21182 #define $ac_func innocuous_$ac_func
21184 /* System header to define __stub macros and hopefully few prototypes,
21185 which can conflict with char $ac_func (); below.
21186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21187 <limits.h> exists even on freestanding compilers. */
21190 # include <limits.h>
21192 # include <assert.h>
21197 /* Override any GCC internal prototype to avoid an error.
21198 Use char because int might match the return type of a GCC
21199 builtin and then its argument prototype would still apply. */
21204 /* The GNU C library defines this for functions which it implements
21205 to always fail with ENOSYS. Some functions are actually named
21206 something starting with __ and the normal name is an alias. */
21207 #if defined __stub_$ac_func || defined __stub___$ac_func
21214 return $ac_func ();
21219 rm -f conftest.$ac_objext conftest$ac_exeext
21220 if { (ac_try="$ac_link"
21221 case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_link") 2>conftest.er1
21228 grep -v '^ *+' conftest.er1 >conftest.err
21230 cat conftest.err >&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
21233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21234 { (case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_try") 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest$ac_exeext'
21244 { (case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_try") 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
21253 eval "$as_ac_var=yes"
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 eval "$as_ac_var=no"
21261 rm -f core conftest.err conftest.$ac_objext \
21262 conftest$ac_exeext conftest.$ac_ext
21264 ac_res=`eval echo '${'$as_ac_var'}'`
21265 { echo "$as_me:$LINENO: result: $ac_res" >&5
21266 echo "${ECHO_T}$ac_res" >&6; }
21267 if test `eval echo '${'$as_ac_var'}'` = yes; then
21268 cat >>confdefs.h <<_ACEOF
21269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21276 SHLIBEXT=$libltdl_cv_shlibext
21279 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21282 if test "${prefix}" = "NONE" ; then
21283 prefix="/usr/local"
21285 eval LLVM_PREFIX="${prefix}";
21286 eval LLVM_BINDIR="${prefix}/bin";
21287 eval LLVM_LIBDIR="${prefix}/lib";
21288 eval LLVM_DATADIR="${prefix}/share/llvm";
21289 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21290 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21291 eval LLVM_INCLUDEDIR="${prefix}/include";
21292 eval LLVM_INFODIR="${prefix}/info";
21293 eval LLVM_MANDIR="${prefix}/man";
21294 LLVM_CONFIGTIME=`date`
21306 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21307 LLVM_CONFIGTIME="(timestamp not enabled)"
21311 cat >>confdefs.h <<_ACEOF
21312 #define LLVM_PREFIX "$LLVM_PREFIX"
21316 cat >>confdefs.h <<_ACEOF
21317 #define LLVM_BINDIR "$LLVM_BINDIR"
21321 cat >>confdefs.h <<_ACEOF
21322 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21326 cat >>confdefs.h <<_ACEOF
21327 #define LLVM_DATADIR "$LLVM_DATADIR"
21331 cat >>confdefs.h <<_ACEOF
21332 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21336 cat >>confdefs.h <<_ACEOF
21337 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21341 cat >>confdefs.h <<_ACEOF
21342 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21346 cat >>confdefs.h <<_ACEOF
21347 #define LLVM_INFODIR "$LLVM_INFODIR"
21351 cat >>confdefs.h <<_ACEOF
21352 #define LLVM_MANDIR "$LLVM_MANDIR"
21356 cat >>confdefs.h <<_ACEOF
21357 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21361 cat >>confdefs.h <<_ACEOF
21362 #define LLVM_HOSTTRIPLE "$host"
21366 cat >>confdefs.h <<_ACEOF
21367 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21371 if test "$BINDINGS_TO_BUILD" = auto ; then
21372 BINDINGS_TO_BUILD=""
21373 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21374 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21377 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21383 binding_prereqs_failed=0
21384 for a_binding in $BINDINGS_TO_BUILD ; do
21385 case "$a_binding" in
21387 if test "x$OCAMLC" = x ; then
21388 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21389 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21390 binding_prereqs_failed=1
21392 if test "x$OCAMLDEP" = x ; then
21393 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21394 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21395 binding_prereqs_failed=1
21397 if test "x$OCAMLOPT" = x ; then
21398 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21399 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21401 if test "x$with_ocaml_libdir" != xauto ; then
21402 OCAML_LIBDIR=$with_ocaml_libdir
21405 ocaml_stdlib="`"$OCAMLC" -where`"
21406 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21408 # ocaml stdlib is beneath our prefix; use stdlib
21409 OCAML_LIBDIR=$ocaml_stdlib
21412 # ocaml stdlib is outside our prefix; use libdir/ocaml
21413 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21420 if test "$binding_prereqs_failed" = 1 ; then
21421 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21422 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21423 { (exit 1); exit 1; }; }
21426 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21427 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21428 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21429 echo $ECHO_N "(cached) $ECHO_C" >&6
21432 ac_cpp='$CXXCPP $CPPFLAGS'
21433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21437 oldcxxflags="$CXXFLAGS"
21438 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21454 rm -f conftest.$ac_objext
21455 if { (ac_try="$ac_compile"
21456 case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461 (eval "$ac_compile") 2>conftest.er1
21463 grep -v '^ *+' conftest.er1 >conftest.err
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } &&
21468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21469 { (case "(($ac_try" in
21470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471 *) ac_try_echo=$ac_try;;
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474 (eval "$ac_try") 2>&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); }; } &&
21478 { ac_try='test -s conftest.$ac_objext'
21479 { (case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484 (eval "$ac_try") 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; }; then
21488 llvm_cv_cxx_visibility_inlines_hidden=yes
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21493 llvm_cv_cxx_visibility_inlines_hidden=no
21496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21497 CXXFLAGS="$oldcxxflags"
21499 ac_cpp='$CPP $CPPFLAGS'
21500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21506 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21507 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21508 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21509 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21512 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21517 if test "$llvm_cv_link_use_r" = "yes" ; then
21524 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21525 RDYNAMIC="-Wl,-export-dynamic"
21532 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21539 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21541 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21543 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21545 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21547 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21550 ac_config_files="$ac_config_files Makefile.config"
21553 ac_config_files="$ac_config_files llvm.spec"
21556 ac_config_files="$ac_config_files docs/doxygen.cfg"
21559 if test "${clang_src_root}" = ""; then
21560 clang_src_root="$srcdir/tools/clang"
21562 if test -f ${clang_src_root}/README.txt; then
21563 configh="include/clang/Config/config.h"
21564 doxy="docs/doxygen.cfg"
21565 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21567 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21571 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21574 test "x$program_prefix" = "xNONE" && program_prefix=""
21578 ac_config_commands="$ac_config_commands setup"
21580 ac_config_commands="$ac_config_commands Makefile"
21583 ac_config_commands="$ac_config_commands Makefile.common"
21586 ac_config_commands="$ac_config_commands examples/Makefile"
21589 ac_config_commands="$ac_config_commands lib/Makefile"
21592 ac_config_commands="$ac_config_commands runtime/Makefile"
21595 ac_config_commands="$ac_config_commands test/Makefile"
21598 ac_config_commands="$ac_config_commands test/Makefile.tests"
21601 ac_config_commands="$ac_config_commands unittests/Makefile"
21604 ac_config_commands="$ac_config_commands tools/Makefile"
21607 ac_config_commands="$ac_config_commands utils/Makefile"
21610 ac_config_commands="$ac_config_commands projects/Makefile"
21613 ac_config_commands="$ac_config_commands bindings/Makefile"
21616 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21620 cat >confcache <<\_ACEOF
21621 # This file is a shell script that caches the results of configure
21622 # tests run on this system so they can be shared between configure
21623 # scripts and configure runs, see configure's option --config-cache.
21624 # It is not useful on other systems. If it contains results you don't
21625 # want to keep, you may remove or edit it.
21627 # config.status only pays attention to the cache file if you give it
21628 # the --recheck option to rerun configure.
21630 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21631 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21632 # following values.
21636 # The following way of writing the cache mishandles newlines in values,
21637 # but we know of no workaround that is simple, portable, and efficient.
21638 # So, we kill variables containing newlines.
21639 # Ultrix sh set writes to stderr and can't be redirected directly,
21640 # and sets the high bit in the cache file unless we assign to the vars.
21642 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21643 eval ac_val=\$$ac_var
21647 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21648 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21651 _ | IFS | as_nl) ;; #(
21652 *) $as_unset $ac_var ;;
21658 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21659 *${as_nl}ac_space=\ *)
21660 # `set' does not quote correctly, so add quotes (double-quote
21661 # substitution turns \\\\ into \\, and sed turns \\ into \).
21664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21667 # `set' quotes correctly as required by POSIX, so do not add quotes.
21668 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21679 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21681 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21682 if test -w "$cache_file"; then
21683 test "x$cache_file" != "x/dev/null" &&
21684 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21685 echo "$as_me: updating cache $cache_file" >&6;}
21686 cat confcache >$cache_file
21688 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21689 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21695 # Let make expand exec_prefix.
21696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21698 DEFS=-DHAVE_CONFIG_H
21702 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21703 # 1. Remove the extension, and $U if already installed.
21704 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21705 ac_i=`echo "$ac_i" | sed "$ac_script"`
21706 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21707 # will be set to the directory where LIBOBJS objects are built.
21708 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21709 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21711 LIBOBJS=$ac_libobjs
21713 LTLIBOBJS=$ac_ltlibobjs
21716 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21717 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21718 Usually this means the macro was only invoked conditionally." >&5
21719 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21720 Usually this means the macro was only invoked conditionally." >&2;}
21721 { (exit 1); exit 1; }; }
21723 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21724 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21725 Usually this means the macro was only invoked conditionally." >&5
21726 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21727 Usually this means the macro was only invoked conditionally." >&2;}
21728 { (exit 1); exit 1; }; }
21731 : ${CONFIG_STATUS=./config.status}
21732 ac_clean_files_save=$ac_clean_files
21733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21734 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21735 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21736 cat >$CONFIG_STATUS <<_ACEOF
21738 # Generated by $as_me.
21739 # Run this file to recreate the current configuration.
21740 # Compiler output produced by configure, useful for debugging
21741 # configure, is in config.log if it exists.
21744 ac_cs_recheck=false
21746 SHELL=\${CONFIG_SHELL-$SHELL}
21749 cat >>$CONFIG_STATUS <<\_ACEOF
21750 ## --------------------- ##
21751 ## M4sh Initialization. ##
21752 ## --------------------- ##
21754 # Be Bourne compatible
21755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21758 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21759 # is contrary to our usage. Disable this feature.
21760 alias -g '${1+"$@"}'='"$@"'
21761 setopt NO_GLOB_SUBST
21763 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21765 BIN_SH=xpg4; export BIN_SH # for Tru64
21766 DUALCASE=1; export DUALCASE # for MKS sh
21770 # Avoid depending upon Character Ranges.
21771 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21772 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21773 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21774 as_cr_digits='0123456789'
21775 as_cr_alnum=$as_cr_Letters$as_cr_digits
21777 # The user is always right.
21778 if test "${PATH_SEPARATOR+set}" != set; then
21779 echo "#! /bin/sh" >conf$$.sh
21780 echo "exit 0" >>conf$$.sh
21782 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21790 # Support unset when possible.
21791 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21799 # We need space, tab and new line, in precisely that order. Quoting is
21800 # there to prevent editors from complaining about space-tab.
21801 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21802 # splitting by setting IFS to empty value.)
21807 # Find who we are. Look in the path if we contain no directory separator.
21809 *[\\/]* ) as_myself=$0 ;;
21810 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21811 for as_dir in $PATH
21814 test -z "$as_dir" && as_dir=.
21815 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21821 # We did not find ourselves, most probably we were run as `sh COMMAND'
21822 # in which case we are not to be found in the path.
21823 if test "x$as_myself" = x; then
21826 if test ! -f "$as_myself"; then
21827 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21828 { (exit 1); exit 1; }
21831 # Work around bugs in pre-3.0 UWIN ksh.
21832 for as_var in ENV MAIL MAILPATH
21833 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21841 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21842 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21843 LC_TELEPHONE LC_TIME
21845 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21846 eval $as_var=C; export $as_var
21848 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21852 # Required to use basename.
21853 if expr a : '\(a\)' >/dev/null 2>&1 &&
21854 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21860 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21861 as_basename=basename
21867 # Name of the executable.
21868 as_me=`$as_basename -- "$0" ||
21869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21870 X"$0" : 'X\(//\)$' \| \
21871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21873 sed '/^.*\/\([^/][^/]*\)\/*$/{
21892 as_lineno_1=$LINENO
21893 as_lineno_2=$LINENO
21894 test "x$as_lineno_1" != "x$as_lineno_2" &&
21895 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21897 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21898 # uniformly replaced by the line number. The first 'sed' inserts a
21899 # line-number line after each line using $LINENO; the second 'sed'
21900 # does the real work. The second script uses 'N' to pair each
21901 # line-number line with the line containing $LINENO, and appends
21902 # trailing '-' during substitution so that $LINENO is not a special
21903 # case at line end.
21904 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21905 # scripts with optimization help from Paolo Bonzini. Blame Lee
21906 # E. McMahon (1931-1989) for sed's syntax. :-)
21918 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21921 ' >$as_me.lineno &&
21922 chmod +x "$as_me.lineno" ||
21923 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21924 { (exit 1); exit 1; }; }
21926 # Don't try to exec as it changes $[0], causing all sort of problems
21927 # (the dirname of $[0] is not the place where we might find the
21928 # original and so on. Autoconf is especially sensitive to this).
21929 . "./$as_me.lineno"
21930 # Exit status is that of the last command.
21935 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21941 ECHO_C= ECHO_N= ECHO_T=
21942 case `echo -n x` in
21944 case `echo 'x\c'` in
21945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21952 if expr a : '\(a\)' >/dev/null 2>&1 &&
21953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21959 rm -f conf$$ conf$$.exe conf$$.file
21960 if test -d conf$$.dir; then
21961 rm -f conf$$.dir/conf$$.file
21967 if ln -s conf$$.file conf$$ 2>/dev/null; then
21969 # ... but there are two gotchas:
21970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21972 # In both cases, we have to default to `cp -p'.
21973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21975 elif ln conf$$.file conf$$ 2>/dev/null; then
21980 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21981 rmdir conf$$.dir 2>/dev/null
21983 if mkdir -p . 2>/dev/null; then
21986 test -d ./-p && rmdir ./-p
21990 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21991 # systems may use methods other than mode bits to determine executability.
21992 cat >conf$$.file <<_ASEOF
21996 chmod +x conf$$.file
21997 if test -x conf$$.file >/dev/null 2>&1; then
21998 as_executable_p="test -x"
22004 # Sed expression to map a string onto a valid CPP name.
22005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22007 # Sed expression to map a string onto a valid variable name.
22008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22013 # Save the log message, to keep $[0] and so on meaningful, and to
22014 # report actual input values of CONFIG_FILES etc. instead of their
22015 # values after options handling.
22017 This file was extended by LLVM $as_me 3.3svn, which was
22018 generated by GNU Autoconf 2.60. Invocation command line was
22020 CONFIG_FILES = $CONFIG_FILES
22021 CONFIG_HEADERS = $CONFIG_HEADERS
22022 CONFIG_LINKS = $CONFIG_LINKS
22023 CONFIG_COMMANDS = $CONFIG_COMMANDS
22026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22031 cat >>$CONFIG_STATUS <<_ACEOF
22032 # Files that config.status was made for.
22033 config_files="$ac_config_files"
22034 config_headers="$ac_config_headers"
22035 config_commands="$ac_config_commands"
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22041 \`$as_me' instantiates files from templates according to the
22042 current configuration.
22044 Usage: $0 [OPTIONS] [FILE]...
22046 -h, --help print this help, then exit
22047 -V, --version print version number, then exit
22048 -q, --quiet do not print progress messages
22049 -d, --debug don't remove temporary files
22050 --recheck update $as_me by reconfiguring in the same conditions
22051 --file=FILE[:TEMPLATE]
22052 instantiate the configuration file FILE
22053 --header=FILE[:TEMPLATE]
22054 instantiate the configuration header FILE
22056 Configuration files:
22059 Configuration headers:
22062 Configuration commands:
22065 Report bugs to <bug-autoconf@gnu.org>."
22068 cat >>$CONFIG_STATUS <<_ACEOF
22070 LLVM config.status 3.3svn
22071 configured by $0, generated by GNU Autoconf 2.60,
22072 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22074 Copyright (C) 2006 Free Software Foundation, Inc.
22075 This config.status script is free software; the Free Software Foundation
22076 gives unlimited permission to copy, distribute and modify it."
22083 cat >>$CONFIG_STATUS <<\_ACEOF
22084 # If no file are specified by the user, then we need to provide default
22085 # value. By we need to know if files were specified by the user.
22091 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22092 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22103 # Handling of the options.
22104 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22106 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22107 echo "$ac_cs_version"; exit ;;
22108 --debug | --debu | --deb | --de | --d | -d )
22110 --file | --fil | --fi | --f )
22112 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22113 ac_need_defaults=false;;
22114 --header | --heade | --head | --hea )
22116 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22117 ac_need_defaults=false;;
22119 # Conflict between --help and --header
22120 { echo "$as_me: error: ambiguous option: $1
22121 Try \`$0 --help' for more information." >&2
22122 { (exit 1); exit 1; }; };;
22123 --help | --hel | -h )
22124 echo "$ac_cs_usage"; exit ;;
22125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22129 # This is an error.
22130 -*) { echo "$as_me: error: unrecognized option: $1
22131 Try \`$0 --help' for more information." >&2
22132 { (exit 1); exit 1; }; } ;;
22134 *) ac_config_targets="$ac_config_targets $1"
22135 ac_need_defaults=false ;;
22141 ac_configure_extra_args=
22143 if $ac_cs_silent; then
22145 ac_configure_extra_args="$ac_configure_extra_args --silent"
22149 cat >>$CONFIG_STATUS <<_ACEOF
22150 if \$ac_cs_recheck; then
22151 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22152 CONFIG_SHELL=$SHELL
22153 export CONFIG_SHELL
22154 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22158 cat >>$CONFIG_STATUS <<\_ACEOF
22162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22163 ## Running $as_me. ##
22169 cat >>$CONFIG_STATUS <<_ACEOF
22173 llvm_src="${srcdir}"
22177 cat >>$CONFIG_STATUS <<\_ACEOF
22179 # Handling of arguments.
22180 for ac_config_target in $ac_config_targets
22182 case $ac_config_target in
22183 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22184 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22185 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22186 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22187 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22188 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22189 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22190 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22191 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22192 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22193 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22194 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22195 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22196 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22197 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22198 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22199 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22200 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22201 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22202 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22203 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22204 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22205 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22206 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22207 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22208 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22209 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22211 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22212 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22213 { (exit 1); exit 1; }; };;
22218 # If the user did not use the arguments to specify the items to instantiate,
22219 # then the envvar interface is used. Set only those that are not.
22220 # We use the long form for the default assignment because of an extremely
22221 # bizarre bug on SunOS 4.1.3.
22222 if $ac_need_defaults; then
22223 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22224 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22225 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22228 # Have a temporary directory for convenience. Make it in the build tree
22229 # simply because there is no reason against having it here, and in addition,
22230 # creating and moving files from /tmp can sometimes cause problems.
22231 # Hook for its removal unless debugging.
22232 # Note that there is a small window in which the directory will not be cleaned:
22233 # after its creation but before its name has been assigned to `$tmp'.
22237 trap 'exit_status=$?
22238 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22240 trap '{ (exit 1); exit 1; }' 1 2 13 15
22242 # Create a (secure) tmp directory for tmp files.
22245 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22246 test -n "$tmp" && test -d "$tmp"
22249 tmp=./conf$$-$RANDOM
22250 (umask 077 && mkdir "$tmp")
22253 echo "$me: cannot create a temporary directory in ." >&2
22254 { (exit 1); exit 1; }
22258 # Set up the sed scripts for CONFIG_FILES section.
22261 # No need to generate the scripts if there are no CONFIG_FILES.
22262 # This happens for instance when ./config.status config.h
22263 if test -n "$CONFIG_FILES"; then
22270 for ac_last_try in false false false false false :; do
22271 cat >conf$$subs.sed <<_ACEOF
22272 SHELL!$SHELL$ac_delim
22273 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22274 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22275 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22276 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22277 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22278 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22279 exec_prefix!$exec_prefix$ac_delim
22280 prefix!$prefix$ac_delim
22281 program_transform_name!$program_transform_name$ac_delim
22282 bindir!$bindir$ac_delim
22283 sbindir!$sbindir$ac_delim
22284 libexecdir!$libexecdir$ac_delim
22285 datarootdir!$datarootdir$ac_delim
22286 datadir!$datadir$ac_delim
22287 sysconfdir!$sysconfdir$ac_delim
22288 sharedstatedir!$sharedstatedir$ac_delim
22289 localstatedir!$localstatedir$ac_delim
22290 includedir!$includedir$ac_delim
22291 oldincludedir!$oldincludedir$ac_delim
22292 docdir!$docdir$ac_delim
22293 infodir!$infodir$ac_delim
22294 htmldir!$htmldir$ac_delim
22295 dvidir!$dvidir$ac_delim
22296 pdfdir!$pdfdir$ac_delim
22297 psdir!$psdir$ac_delim
22298 libdir!$libdir$ac_delim
22299 localedir!$localedir$ac_delim
22300 mandir!$mandir$ac_delim
22301 DEFS!$DEFS$ac_delim
22302 ECHO_C!$ECHO_C$ac_delim
22303 ECHO_N!$ECHO_N$ac_delim
22304 ECHO_T!$ECHO_T$ac_delim
22305 LIBS!$LIBS$ac_delim
22306 build_alias!$build_alias$ac_delim
22307 host_alias!$host_alias$ac_delim
22308 target_alias!$target_alias$ac_delim
22309 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22311 CFLAGS!$CFLAGS$ac_delim
22312 LDFLAGS!$LDFLAGS$ac_delim
22313 CPPFLAGS!$CPPFLAGS$ac_delim
22314 ac_ct_CC!$ac_ct_CC$ac_delim
22315 EXEEXT!$EXEEXT$ac_delim
22316 OBJEXT!$OBJEXT$ac_delim
22318 CXXFLAGS!$CXXFLAGS$ac_delim
22319 ac_ct_CXX!$ac_ct_CXX$ac_delim
22321 subdirs!$subdirs$ac_delim
22322 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22323 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22324 build!$build$ac_delim
22325 build_cpu!$build_cpu$ac_delim
22326 build_vendor!$build_vendor$ac_delim
22327 build_os!$build_os$ac_delim
22328 host!$host$ac_delim
22329 host_cpu!$host_cpu$ac_delim
22330 host_vendor!$host_vendor$ac_delim
22331 host_os!$host_os$ac_delim
22332 target!$target$ac_delim
22333 target_cpu!$target_cpu$ac_delim
22334 target_vendor!$target_vendor$ac_delim
22335 target_os!$target_os$ac_delim
22337 HOST_OS!$HOST_OS$ac_delim
22338 TARGET_OS!$TARGET_OS$ac_delim
22339 LINKALL!$LINKALL$ac_delim
22340 NOLINKALL!$NOLINKALL$ac_delim
22341 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22342 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22343 ARCH!$ARCH$ac_delim
22344 HOST_ARCH!$HOST_ARCH$ac_delim
22345 ENDIAN!$ENDIAN$ac_delim
22346 GREP!$GREP$ac_delim
22347 EGREP!$EGREP$ac_delim
22348 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22349 BUILD_CC!$BUILD_CC$ac_delim
22350 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22351 BUILD_CXX!$BUILD_CXX$ac_delim
22352 CVSBUILD!$CVSBUILD$ac_delim
22353 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22354 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22355 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22356 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22357 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22358 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22359 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22360 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22361 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22362 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22363 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22364 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22365 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22366 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22368 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22371 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22373 elif $ac_last_try; then
22374 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22375 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22376 { (exit 1); exit 1; }; }
22378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22382 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22383 if test -n "$ac_eof"; then
22384 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22385 ac_eof=`expr $ac_eof + 1`
22388 cat >>$CONFIG_STATUS <<_ACEOF
22389 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22393 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22394 s/^/s,@/; s/!/@,|#_!!_#|/
22397 s/'"$ac_delim"'$/,g/; t
22399 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22400 ' >>$CONFIG_STATUS <conf$$subs.sed
22401 rm -f conf$$subs.sed
22402 cat >>$CONFIG_STATUS <<_ACEOF
22408 for ac_last_try in false false false false false :; do
22409 cat >conf$$subs.sed <<_ACEOF
22410 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22411 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22412 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22413 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22414 ENABLE_PIC!$ENABLE_PIC$ac_delim
22415 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22416 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22417 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22418 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22419 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22420 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22421 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22422 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22423 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22424 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22425 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22426 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22427 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22428 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22429 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22431 ifGNUmake!$ifGNUmake$ac_delim
22432 LN_S!$LN_S$ac_delim
22435 DATE!$DATE$ac_delim
22436 FIND!$FIND$ac_delim
22437 MKDIR!$MKDIR$ac_delim
22439 RANLIB!$RANLIB$ac_delim
22444 BINPWD!$BINPWD$ac_delim
22445 GRAPHVIZ!$GRAPHVIZ$ac_delim
22448 NEATO!$NEATO$ac_delim
22449 TWOPI!$TWOPI$ac_delim
22450 CIRCO!$CIRCO$ac_delim
22452 DOTTY!$DOTTY$ac_delim
22453 XDOT_PY!$XDOT_PY$ac_delim
22454 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22455 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22456 INSTALL_DATA!$INSTALL_DATA$ac_delim
22457 BZIP2!$BZIP2$ac_delim
22459 DOXYGEN!$DOXYGEN$ac_delim
22460 GROFF!$GROFF$ac_delim
22461 GZIPBIN!$GZIPBIN$ac_delim
22462 PDFROFF!$PDFROFF$ac_delim
22464 OCAMLC!$OCAMLC$ac_delim
22465 OCAMLOPT!$OCAMLOPT$ac_delim
22466 OCAMLDEP!$OCAMLDEP$ac_delim
22467 OCAMLDOC!$OCAMLDOC$ac_delim
22469 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22470 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22471 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22472 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22473 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22474 LIBADD_DL!$LIBADD_DL$ac_delim
22475 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22476 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22477 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22478 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22479 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22480 PYTHON!$PYTHON$ac_delim
22481 USE_UDIS86!$USE_UDIS86$ac_delim
22482 USE_OPROFILE!$USE_OPROFILE$ac_delim
22483 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22484 XML2CONFIG!$XML2CONFIG$ac_delim
22485 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22486 LIBXML2_INC!$LIBXML2_INC$ac_delim
22487 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22488 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22489 MMAP_FILE!$MMAP_FILE$ac_delim
22490 SHLIBEXT!$SHLIBEXT$ac_delim
22491 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22492 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22493 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22494 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22495 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22496 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22497 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22498 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22499 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22500 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22501 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22502 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22503 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22504 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22505 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22506 RPATH!$RPATH$ac_delim
22509 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22511 elif $ac_last_try; then
22512 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22513 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22514 { (exit 1); exit 1; }; }
22516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22520 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22521 if test -n "$ac_eof"; then
22522 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22523 ac_eof=`expr $ac_eof + 1`
22526 cat >>$CONFIG_STATUS <<_ACEOF
22527 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22531 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22532 s/^/s,@/; s/!/@,|#_!!_#|/
22535 s/'"$ac_delim"'$/,g/; t
22537 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22538 ' >>$CONFIG_STATUS <conf$$subs.sed
22539 rm -f conf$$subs.sed
22540 cat >>$CONFIG_STATUS <<_ACEOF
22546 for ac_last_try in false false false false false :; do
22547 cat >conf$$subs.sed <<_ACEOF
22548 RDYNAMIC!$RDYNAMIC$ac_delim
22549 program_prefix!$program_prefix$ac_delim
22550 LIBOBJS!$LIBOBJS$ac_delim
22551 LTLIBOBJS!$LTLIBOBJS$ac_delim
22554 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22556 elif $ac_last_try; then
22557 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22558 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22559 { (exit 1); exit 1; }; }
22561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22565 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22566 if test -n "$ac_eof"; then
22567 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22568 ac_eof=`expr $ac_eof + 1`
22571 cat >>$CONFIG_STATUS <<_ACEOF
22572 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22576 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22577 s/^/s,@/; s/!/@,|#_!!_#|/
22580 s/'"$ac_delim"'$/,g/; t
22582 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22583 ' >>$CONFIG_STATUS <conf$$subs.sed
22584 rm -f conf$$subs.sed
22585 cat >>$CONFIG_STATUS <<_ACEOF
22592 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22593 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22594 # trailing colons and then remove the whole line if VPATH becomes empty
22595 # (actually we leave an empty line to preserve line numbers).
22596 if test "x$srcdir" = x.; then
22597 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22598 s/:*\$(srcdir):*/:/
22599 s/:*\${srcdir}:*/:/
22601 s/^\([^=]*=[ ]*\):*/\1/
22607 cat >>$CONFIG_STATUS <<\_ACEOF
22608 fi # test -n "$CONFIG_FILES"
22611 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22614 :[FHLC]) ac_mode=$ac_tag; continue;;
22616 case $ac_mode$ac_tag in
22618 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22619 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22620 { (exit 1); exit 1; }; };;
22621 :[FH]-) ac_tag=-:-;;
22622 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22639 -) ac_f="$tmp/stdin";;
22640 *) # Look for the file first in the build tree, then in the source tree
22641 # (if the path is not absolute). The absolute path cannot be DOS-style,
22642 # because $ac_f cannot contain `:'.
22646 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22648 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22649 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22650 { (exit 1); exit 1; }; };;
22652 ac_file_inputs="$ac_file_inputs $ac_f"
22655 # Let's still pretend it is `configure' which instantiates (i.e., don't
22656 # use $as_me), people would be surprised to read:
22657 # /* config.h. Generated by config.status. */
22658 configure_input="Generated from "`IFS=:
22659 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22660 if test x"$ac_file" != x-; then
22661 configure_input="$ac_file. $configure_input"
22662 { echo "$as_me:$LINENO: creating $ac_file" >&5
22663 echo "$as_me: creating $ac_file" >&6;}
22667 *:-:* | *:-) cat >"$tmp/stdin";;
22672 ac_dir=`$as_dirname -- "$ac_file" ||
22673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22674 X"$ac_file" : 'X\(//\)[^/]' \| \
22675 X"$ac_file" : 'X\(//\)$' \| \
22676 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22682 /^X\(\/\/\)[^/].*/{
22697 -*) as_dir=./$as_dir;;
22699 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22703 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22704 *) as_qdir=$as_dir;;
22706 as_dirs="'$as_qdir' $as_dirs"
22707 as_dir=`$as_dirname -- "$as_dir" ||
22708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22709 X"$as_dir" : 'X\(//\)[^/]' \| \
22710 X"$as_dir" : 'X\(//\)$' \| \
22711 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22717 /^X\(\/\/\)[^/].*/{
22730 test -d "$as_dir" && break
22732 test -z "$as_dirs" || eval "mkdir $as_dirs"
22733 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22734 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22735 { (exit 1); exit 1; }; }; }
22739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22741 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22742 # A ".." for each directory in $ac_dir_suffix.
22743 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22744 case $ac_top_builddir_sub in
22745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22749 ac_abs_top_builddir=$ac_pwd
22750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22751 # for backward compatibility:
22752 ac_top_builddir=$ac_top_build_prefix
22755 .) # We are building in place.
22757 ac_top_srcdir=$ac_top_builddir_sub
22758 ac_abs_top_srcdir=$ac_pwd ;;
22759 [\\/]* | ?:[\\/]* ) # Absolute name.
22760 ac_srcdir=$srcdir$ac_dir_suffix;
22761 ac_top_srcdir=$srcdir
22762 ac_abs_top_srcdir=$srcdir ;;
22763 *) # Relative name.
22764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22765 ac_top_srcdir=$ac_top_build_prefix$srcdir
22766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22778 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22779 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22783 cat >>$CONFIG_STATUS <<\_ACEOF
22784 # If the template does not know about datarootdir, expand it.
22785 # FIXME: This hack should be removed a few years after 2.60.
22786 ac_datarootdir_hack=; ac_datarootdir_seen=
22788 case `sed -n '/datarootdir/ {
22797 ' $ac_file_inputs` in
22798 *datarootdir*) ac_datarootdir_seen=yes;;
22799 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22800 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22801 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22803 cat >>$CONFIG_STATUS <<_ACEOF
22804 ac_datarootdir_hack='
22805 s&@datadir@&$datadir&g
22806 s&@docdir@&$docdir&g
22807 s&@infodir@&$infodir&g
22808 s&@localedir@&$localedir&g
22809 s&@mandir@&$mandir&g
22810 s&\\\${datarootdir}&$datarootdir&g' ;;
22814 # Neutralize VPATH when `$srcdir' = `.'.
22815 # Shell code in configure.ac might set extrasub.
22816 # FIXME: do we really want to maintain this feature?
22817 cat >>$CONFIG_STATUS <<_ACEOF
22821 cat >>$CONFIG_STATUS <<\_ACEOF
22823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22824 s&@configure_input@&$configure_input&;t t
22825 s&@top_builddir@&$ac_top_builddir_sub&;t t
22826 s&@srcdir@&$ac_srcdir&;t t
22827 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22828 s&@top_srcdir@&$ac_top_srcdir&;t t
22829 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22830 s&@builddir@&$ac_builddir&;t t
22831 s&@abs_builddir@&$ac_abs_builddir&;t t
22832 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22833 s&@INSTALL@&$ac_INSTALL&;t t
22834 $ac_datarootdir_hack
22835 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22837 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22838 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22839 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22840 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22841 which seems to be undefined. Please make sure it is defined." >&5
22842 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22843 which seems to be undefined. Please make sure it is defined." >&2;}
22847 -) cat "$tmp/out"; rm -f "$tmp/out";;
22848 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22857 # Transform confdefs.h into a sed script `conftest.defines', that
22858 # substitutes the proper values into config.h.in to produce config.h.
22859 rm -f conftest.defines conftest.tail
22860 # First, append a space to every undef/define line, to ease matching.
22861 echo 's/$/ /' >conftest.defines
22862 # Then, protect against being on the right side of a sed subst, or in
22863 # an unquoted here document, in config.status. If some macros were
22864 # called several times there might be several #defines for the same
22865 # symbol, which is useless. But do not sort them, since the last
22866 # AC_DEFINE must be honored.
22867 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22868 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22869 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22870 # PARAMS is the parameter list in the macro definition--in most cases, it's
22871 # just an empty string.
22872 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22873 ac_dB='\\)[ (].*,\\1define\\2'
22881 s/^[ ]*#[ ]*define[ ][ ]*//
22886 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22887 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22888 ' >>conftest.defines
22890 # Remove the space that was appended to ease matching.
22891 # Then replace #undef with comments. This is necessary, for
22892 # example, in the case of _POSIX_SOURCE, which is predefined and required
22893 # on some systems where configure will not decide to define it.
22894 # (The regexp can be short, since the line contains either #define or #undef.)
22896 s,^[ #]*u.*,/* & */,' >>conftest.defines
22898 # Break up conftest.defines:
22899 ac_max_sed_lines=50
22901 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22902 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22903 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22905 ac_in='$ac_file_inputs'
22906 ac_out='"$tmp/out1"'
22907 ac_nxt='"$tmp/out2"'
22911 # Write a here document:
22912 cat >>$CONFIG_STATUS <<_ACEOF
22913 # First, check the format of the line:
22914 cat >"\$tmp/defines.sed" <<\\CEOF
22915 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22916 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22920 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22922 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22923 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22924 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22925 grep . conftest.tail >/dev/null || break
22926 rm -f conftest.defines
22927 mv conftest.tail conftest.defines
22929 rm -f conftest.defines conftest.tail
22931 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22932 cat >>$CONFIG_STATUS <<\_ACEOF
22933 if test x"$ac_file" != x-; then
22934 echo "/* $configure_input */" >"$tmp/config.h"
22935 cat "$ac_result" >>"$tmp/config.h"
22936 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22937 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22938 echo "$as_me: $ac_file is unchanged" >&6;}
22941 mv "$tmp/config.h" $ac_file
22944 echo "/* $configure_input */"
22950 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22951 echo "$as_me: executing $ac_file commands" >&6;}
22956 case $ac_file$ac_mode in
22957 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22958 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22959 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22960 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22961 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22962 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22963 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22964 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22965 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22966 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22967 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22968 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22969 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22970 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22971 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22972 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22973 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22974 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22975 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22976 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22977 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22978 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22979 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22980 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22981 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22982 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22988 { (exit 0); exit 0; }
22990 chmod +x $CONFIG_STATUS
22991 ac_clean_files=$ac_clean_files_save
22994 # configure is writing to config.log, and then calls config.status.
22995 # config.status does its own redirection, appending to config.log.
22996 # Unfortunately, on DOS this fails, as config.log is still kept open
22997 # by configure, so config.status won't be able to write to it; its
22998 # output is simply discarded. So we exec the FD to /dev/null,
22999 # effectively closing config.log, so it can be properly (re)opened and
23000 # appended to by config.status. When coming back to configure, we
23001 # need to make the FD available again.
23002 if test "$no_create" != yes; then
23004 ac_config_status_args=
23005 test "$silent" = yes &&
23006 ac_config_status_args="$ac_config_status_args --quiet"
23008 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23010 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23011 # would make configure fail if this is the last instruction.
23012 $ac_cs_success || { (exit 1); exit 1; }
23016 # CONFIG_SUBDIRS section.
23018 if test "$no_recursion" != yes; then
23020 # Remove --cache-file and --srcdir arguments so they do not pile up.
23021 ac_sub_configure_args=
23023 eval "set x $ac_configure_args"
23027 if test -n "$ac_prev"; then
23032 -cache-file | --cache-file | --cache-fil | --cache-fi \
23033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23034 ac_prev=cache_file ;;
23035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23039 --config-cache | -C)
23041 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23043 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23051 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23053 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23057 # Always prepend --prefix to ensure using the same prefix
23058 # in subdir configurations.
23059 ac_arg="--prefix=$prefix"
23061 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23063 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23066 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23068 # Do not complain, so a configure script can configure whichever
23069 # parts of a large source tree are present.
23070 test -d "$srcdir/$ac_dir" || continue
23072 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23073 echo "$as_me:$LINENO: $ac_msg" >&5
23077 -*) as_dir=./$as_dir;;
23079 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23083 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23084 *) as_qdir=$as_dir;;
23086 as_dirs="'$as_qdir' $as_dirs"
23087 as_dir=`$as_dirname -- "$as_dir" ||
23088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23089 X"$as_dir" : 'X\(//\)[^/]' \| \
23090 X"$as_dir" : 'X\(//\)$' \| \
23091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23097 /^X\(\/\/\)[^/].*/{
23110 test -d "$as_dir" && break
23112 test -z "$as_dirs" || eval "mkdir $as_dirs"
23113 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23114 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23115 { (exit 1); exit 1; }; }; }
23119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23122 # A ".." for each directory in $ac_dir_suffix.
23123 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23124 case $ac_top_builddir_sub in
23125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23129 ac_abs_top_builddir=$ac_pwd
23130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23131 # for backward compatibility:
23132 ac_top_builddir=$ac_top_build_prefix
23135 .) # We are building in place.
23137 ac_top_srcdir=$ac_top_builddir_sub
23138 ac_abs_top_srcdir=$ac_pwd ;;
23139 [\\/]* | ?:[\\/]* ) # Absolute name.
23140 ac_srcdir=$srcdir$ac_dir_suffix;
23141 ac_top_srcdir=$srcdir
23142 ac_abs_top_srcdir=$srcdir ;;
23143 *) # Relative name.
23144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23145 ac_top_srcdir=$ac_top_build_prefix$srcdir
23146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23153 # Check for guested configure; otherwise get Cygnus style configure.
23154 if test -f "$ac_srcdir/configure.gnu"; then
23155 ac_sub_configure=$ac_srcdir/configure.gnu
23156 elif test -f "$ac_srcdir/configure"; then
23157 ac_sub_configure=$ac_srcdir/configure
23158 elif test -f "$ac_srcdir/configure.in"; then
23159 # This should be Cygnus configure.
23160 ac_sub_configure=$ac_aux_dir/configure
23162 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23167 # The recursion is here.
23168 if test -n "$ac_sub_configure"; then
23169 # Make the cache file name correct relative to the subdirectory.
23170 case $cache_file in
23171 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23172 *) # Relative name.
23173 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23176 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23177 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23178 # The eval makes quoting arguments work.
23179 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23180 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23181 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23182 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23183 { (exit 1); exit 1; }; }