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, aarch64, mips, hexagon,
1442 xcore, 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; }; }
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991 if test -n "$ac_tool_prefix"; then
1992 for ac_prog in clang llvm-gcc gcc
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 if test -n "$CC"; then
2023 { echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6; }
2026 { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2031 test -n "$CC" && break
2034 if test -z "$CC"; then
2036 for ac_prog in clang llvm-gcc gcc
2038 # Extract the first word of "$ac_prog", so it can be a program name with args.
2039 set dummy $ac_prog; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_CC"; then
2046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2055 ac_cv_prog_ac_ct_CC="$ac_prog"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066 if test -n "$ac_ct_CC"; then
2067 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068 echo "${ECHO_T}$ac_ct_CC" >&6; }
2070 { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2075 test -n "$ac_ct_CC" && break
2078 if test "x$ac_ct_CC" = x; then
2081 case $cross_compiling:$ac_tool_warned in
2083 { echo "$as_me:$LINENO: 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." >&5
2086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2087 whose name does not start with the host triplet. If you think this
2088 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2089 ac_tool_warned=yes ;;
2096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&2;}
2100 { (exit 1); exit 1; }; }
2102 # Provide some information about the compiler.
2103 echo "$as_me:$LINENO: checking for C compiler version" >&5
2104 ac_compiler=`set X $ac_compile; echo $2`
2105 { (ac_try="$ac_compiler --version >&5"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler --version >&5") 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (ac_try="$ac_compiler -v >&5"
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121 (eval "$ac_compiler -v >&5") 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (ac_try="$ac_compiler -V >&5"
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2131 (eval "$ac_compiler -V >&5") 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2136 cat >conftest.$ac_ext <<_ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2151 ac_clean_files_save=$ac_clean_files
2152 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2153 # Try to create an executable without -o first, disregard a.out.
2154 # It will help us diagnose broken compilers, and finding out an intuition
2156 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2157 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2158 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160 # List of possible output files, starting from the most likely.
2161 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2162 # only as a last resort. b.out is created by i960 compilers.
2163 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2165 # The IRIX 6 linker writes into existing files which may not be
2166 # executable, retaining their permissions. Remove them first so a
2167 # subsequent execution test works.
2169 for ac_file in $ac_files
2172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2173 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2178 if { (ac_try="$ac_link_default"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184 (eval "$ac_link_default") 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2189 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2190 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2191 # so that the user can short-circuit this test for compilers unknown to
2193 for ac_file in $ac_files
2195 test -f "$ac_file" || continue
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2200 # We found the default executable, but exeext='' is most
2204 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 # We set ac_cv_exeext here because the later test for it is not
2209 # safe: cross compilers may not add the suffix if given an `-o'
2210 # argument, so we may need to know it at that point already.
2211 # Even if this section looks crufty: it has the advantage of
2218 test "$ac_cv_exeext" = no && ac_cv_exeext=
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228 { (exit 77); exit 77; }; }
2231 ac_exeext=$ac_cv_exeext
2232 { echo "$as_me:$LINENO: result: $ac_file" >&5
2233 echo "${ECHO_T}$ac_file" >&6; }
2235 # Check that the compiler produces executables we can run. If not, either
2236 # the compiler is broken, or we cross compile.
2237 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2240 # If not cross compiling, check that we can run a simple program.
2241 if test "$cross_compiling" != yes; then
2242 if { ac_try='./$ac_file'
2243 { (case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_try") 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2254 if test "$cross_compiling" = maybe; then
2257 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot run C compiled programs.
2261 If you meant to cross compile, use \`--host'.
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2270 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2271 ac_clean_files=$ac_clean_files_save
2272 # Check that the compiler produces executables we can run. If not, either
2273 # the compiler is broken, or we cross compile.
2274 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2275 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2276 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2277 echo "${ECHO_T}$cross_compiling" >&6; }
2279 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2280 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2281 if { (ac_try="$ac_link"
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2287 (eval "$ac_link") 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; then
2291 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2292 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2293 # work properly (i.e., refer to `conftest.exe'), while it won't with
2295 for ac_file in conftest.exe conftest conftest.*; do
2296 test -f "$ac_file" || continue
2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2305 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2308 See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2312 rm -f conftest$ac_cv_exeext
2313 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2314 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2316 rm -f conftest.$ac_ext
2317 EXEEXT=$ac_cv_exeext
2319 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2320 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2321 if test "${ac_cv_objext+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 cat >conftest.$ac_ext <<_ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2339 rm -f conftest.o conftest.obj
2340 if { (ac_try="$ac_compile"
2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346 (eval "$ac_compile") 2>&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; then
2350 for ac_file in conftest.o conftest.obj conftest.*; do
2351 test -f "$ac_file" || continue;
2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&2;}
2366 { (exit 1); exit 1; }; }
2369 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2371 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2372 echo "${ECHO_T}$ac_cv_objext" >&6; }
2373 OBJEXT=$ac_cv_objext
2375 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2376 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2377 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 cat >conftest.$ac_ext <<_ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2398 rm -f conftest.$ac_objext
2399 if { (ac_try="$ac_compile"
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_compile") 2>conftest.er1
2407 grep -v '^ *+' conftest.er1 >conftest.err
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2413 { (case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_try") 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; } &&
2422 { ac_try='test -s conftest.$ac_objext'
2423 { (case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428 (eval "$ac_try") 2>&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2444 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2445 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2446 GCC=`test $ac_compiler_gnu = yes && echo yes`
2447 ac_test_CFLAGS=${CFLAGS+set}
2448 ac_save_CFLAGS=$CFLAGS
2449 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2450 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2451 if test "${ac_cv_prog_cc_g+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 ac_save_c_werror_flag=$ac_c_werror_flag
2455 ac_c_werror_flag=yes
2458 cat >conftest.$ac_ext <<_ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2473 rm -f conftest.$ac_objext
2474 if { (ac_try="$ac_compile"
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_compile") 2>conftest.er1
2482 grep -v '^ *+' conftest.er1 >conftest.err
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } &&
2487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2488 { (case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_try") 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_try") 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2513 cat >conftest.$ac_ext <<_ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2528 rm -f conftest.$ac_objext
2529 if { (ac_try="$ac_compile"
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_compile") 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2543 { (case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_try") 2>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest.$ac_objext'
2553 { (case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558 (eval "$ac_try") 2>&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2567 ac_c_werror_flag=$ac_save_c_werror_flag
2569 cat >conftest.$ac_ext <<_ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2584 rm -f conftest.$ac_objext
2585 if { (ac_try="$ac_compile"
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_compile") 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (case "(($ac_try" in
2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 *) ac_try_echo=$ac_try;;
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614 (eval "$ac_try") 2>&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 ac_c_werror_flag=$ac_save_c_werror_flag
2635 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2636 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2637 if test "$ac_test_CFLAGS" = set; then
2638 CFLAGS=$ac_save_CFLAGS
2639 elif test $ac_cv_prog_cc_g = yes; then
2640 if test "$GCC" = yes; then
2646 if test "$GCC" = yes; then
2652 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2653 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2654 if test "${ac_cv_prog_cc_c89+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 ac_cv_prog_cc_c89=no
2659 cat >conftest.$ac_ext <<_ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2667 #include <sys/types.h>
2668 #include <sys/stat.h>
2669 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2670 struct buf { int x; };
2671 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2672 static char *e (p, i)
2678 static char *f (char * (*g) (char **, int), char **p, ...)
2683 s = g (p, va_arg (v,int));
2688 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2689 function prototypes and stuff, but not '\xHH' hex character constants.
2690 These don't provoke an error unfortunately, instead are silently treated
2691 as 'x'. The following induces an error, until -std is added to get
2692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2693 array size at least. It's necessary to write '\x00'==0 to get something
2694 that's true only with -std. */
2695 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2697 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2698 inside strings and character constants. */
2700 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2702 int test (int i, double x);
2703 struct s1 {int (*f) (int a);};
2704 struct s2 {int (*f) (double a);};
2705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2716 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2719 CC="$ac_save_CC $ac_arg"
2720 rm -f conftest.$ac_objext
2721 if { (ac_try="$ac_compile"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compile") 2>conftest.er1
2729 grep -v '^ *+' conftest.er1 >conftest.err
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2735 { (case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_try") 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_try") 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_cv_prog_cc_c89=$ac_arg
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2762 rm -f core conftest.err conftest.$ac_objext
2763 test "x$ac_cv_prog_cc_c89" != "xno" && break
2765 rm -f conftest.$ac_ext
2770 case "x$ac_cv_prog_cc_c89" in
2772 { echo "$as_me:$LINENO: result: none needed" >&5
2773 echo "${ECHO_T}none needed" >&6; } ;;
2775 { echo "$as_me:$LINENO: result: unsupported" >&5
2776 echo "${ECHO_T}unsupported" >&6; } ;;
2778 CC="$CC $ac_cv_prog_cc_c89"
2779 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791 ac_cpp='$CXXCPP $CPPFLAGS'
2792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2795 if test -z "$CXX"; then
2796 if test -n "$CCC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 for ac_prog in clang++ llvm-g++ g++
2802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_CXX+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 if test -n "$CXX"; then
2810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 if test -n "$CXX"; then
2831 { echo "$as_me:$LINENO: result: $CXX" >&5
2832 echo "${ECHO_T}$CXX" >&6; }
2834 { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2839 test -n "$CXX" && break
2842 if test -z "$CXX"; then
2844 for ac_prog in clang++ llvm-g++ g++
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$ac_ct_CXX"; then
2854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_ac_ct_CXX="$ac_prog"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2874 if test -n "$ac_ct_CXX"; then
2875 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2876 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2878 { echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6; }
2883 test -n "$ac_ct_CXX" && break
2886 if test "x$ac_ct_CXX" = x; then
2889 case $cross_compiling:$ac_tool_warned in
2891 { echo "$as_me:$LINENO: 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." >&5
2894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2895 whose name does not start with the host triplet. If you think this
2896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2897 ac_tool_warned=yes ;;
2905 # Provide some information about the compiler.
2906 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2907 ac_compiler=`set X $ac_compile; echo $2`
2908 { (ac_try="$ac_compiler --version >&5"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler --version >&5") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918 { (ac_try="$ac_compiler -v >&5"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compiler -v >&5") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2928 { (ac_try="$ac_compiler -V >&5"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compiler -V >&5") 2>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_try") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3008 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3009 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3010 GXX=`test $ac_compiler_gnu = yes && echo yes`
3011 ac_test_CXXFLAGS=${CXXFLAGS+set}
3012 ac_save_CXXFLAGS=$CXXFLAGS
3013 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3014 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_cxx_g+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3019 ac_cxx_werror_flag=yes
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3071 ac_cv_prog_cxx_g=yes
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_try") 2>&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3131 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3133 cat >conftest.$ac_ext <<_ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_cv_prog_cxx_g=yes
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3200 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3201 if test "$ac_test_CXXFLAGS" = set; then
3202 CXXFLAGS=$ac_save_CXXFLAGS
3203 elif test $ac_cv_prog_cxx_g = yes; then
3204 if test "$GXX" = yes; then
3210 if test "$GXX" = yes; then
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3228 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3229 # On Suns, sometimes $CPP names a directory.
3230 if test -n "$CPP" && test -d "$CPP"; then
3233 if test -z "$CPP"; then
3234 if test "${ac_cv_prog_CPP+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 # Double quotes because CPP needs to be expanded
3238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3241 for ac_c_preproc_warn_flag in '' yes
3243 # Use a header file that comes with gcc, so configuring glibc
3244 # with a fresh cross-compiler works.
3245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246 # <limits.h> exists even on freestanding compilers.
3247 # On the NeXT, cc -E runs the code through the compiler's parser,
3248 # not just through cpp. "Syntax error" is here to catch this case.
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3256 # include <limits.h>
3258 # include <assert.h>
3262 if { (ac_try="$ac_cpp conftest.$ac_ext"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } >/dev/null; then
3275 if test -s conftest.err; then
3276 ac_cpp_err=$ac_c_preproc_warn_flag
3277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3284 if test -z "$ac_cpp_err"; then
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 # Broken: fails on valid input.
3294 rm -f conftest.err conftest.$ac_ext
3296 # OK, works on sane cases. Now check whether nonexistent headers
3297 # can be detected and how.
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 #include <ac_nonexistent.h>
3306 if { (ac_try="$ac_cpp conftest.$ac_ext"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } >/dev/null; then
3319 if test -s conftest.err; then
3320 ac_cpp_err=$ac_c_preproc_warn_flag
3321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328 if test -z "$ac_cpp_err"; then
3329 # Broken: success on invalid input.
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 # Passes both tests.
3340 rm -f conftest.err conftest.$ac_ext
3343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344 rm -f conftest.err conftest.$ac_ext
3345 if $ac_preproc_ok; then
3357 { echo "$as_me:$LINENO: result: $CPP" >&5
3358 echo "${ECHO_T}$CPP" >&6; }
3360 for ac_c_preproc_warn_flag in '' yes
3362 # Use a header file that comes with gcc, so configuring glibc
3363 # with a fresh cross-compiler works.
3364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3365 # <limits.h> exists even on freestanding compilers.
3366 # On the NeXT, cc -E runs the code through the compiler's parser,
3367 # not just through cpp. "Syntax error" is here to catch this case.
3368 cat >conftest.$ac_ext <<_ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3375 # include <limits.h>
3377 # include <assert.h>
3381 if { (ac_try="$ac_cpp conftest.$ac_ext"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } >/dev/null; then
3394 if test -s conftest.err; then
3395 ac_cpp_err=$ac_c_preproc_warn_flag
3396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3403 if test -z "$ac_cpp_err"; then
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 # Broken: fails on valid input.
3413 rm -f conftest.err conftest.$ac_ext
3415 # OK, works on sane cases. Now check whether nonexistent headers
3416 # can be detected and how.
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include <ac_nonexistent.h>
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null; then
3438 if test -s conftest.err; then
3439 ac_cpp_err=$ac_c_preproc_warn_flag
3440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3447 if test -z "$ac_cpp_err"; then
3448 # Broken: success on invalid input.
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 # Passes both tests.
3459 rm -f conftest.err conftest.$ac_ext
3462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3463 rm -f conftest.err conftest.$ac_ext
3464 if $ac_preproc_ok; then
3467 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3468 See \`config.log' for more details." >&5
3469 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3470 See \`config.log' for more details." >&2;}
3471 { (exit 1); exit 1; }; }
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481 if test "$CXX" = "clang++" ; then
3482 { echo "$as_me:$LINENO: checking whether clang works" >&5
3483 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3485 ac_cpp='$CXXCPP $CPPFLAGS'
3486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3491 cat >conftest.$ac_ext <<_ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3498 #if __has_include (<cxxabi.h>)
3501 #if __has_include (<unwind.h>)
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_compile") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3528 { (case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_try") 2>&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_try") 2>&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3548 { echo "$as_me:$LINENO: result: yes" >&5
3549 echo "${ECHO_T}yes" >&6; }
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3556 { echo "$as_me:$LINENO: result: no" >&5
3557 echo "${ECHO_T}no" >&6; }
3558 { { 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
3559 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;}
3560 { (exit 1); exit 1; }; }
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 if test -d ${srcdir}/projects/llvm-gcc ; then
3576 subdirs="$subdirs projects/llvm-gcc"
3580 if test -d ${srcdir}/projects/test-suite ; then
3581 subdirs="$subdirs projects/test-suite"
3585 if test -d ${srcdir}/projects/llvm-test ; then
3586 subdirs="$subdirs projects/llvm-test"
3590 if test -d ${srcdir}/projects/poolalloc ; then
3591 subdirs="$subdirs projects/poolalloc"
3595 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3596 subdirs="$subdirs projects/llvm-poolalloc"
3600 for i in `ls ${srcdir}/projects`
3602 if test -d ${srcdir}/projects/${i} ; then
3604 sample) subdirs="$subdirs projects/sample"
3606 privbracket) subdirs="$subdirs projects/privbracket"
3608 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3610 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3612 llvm-java) subdirs="$subdirs projects/llvm-java"
3614 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3616 safecode) subdirs="$subdirs projects/safecode"
3618 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3627 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3628 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3634 # Check whether --enable-polly was given.
3635 if test "${enable_polly+set}" = set; then
3636 enableval=$enable_polly;
3641 case "$enableval" in
3646 default) ENABLE_POLLY=1
3648 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3649 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3650 { (exit 1); exit 1; }; } ;;
3654 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3657 subdirs="$subdirs tools/polly"
3662 # Make sure we can run config.sub.
3663 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3664 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3665 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3666 { (exit 1); exit 1; }; }
3668 { echo "$as_me:$LINENO: checking build system type" >&5
3669 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3670 if test "${ac_cv_build+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 ac_build_alias=$build_alias
3674 test "x$ac_build_alias" = x &&
3675 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3676 test "x$ac_build_alias" = x &&
3677 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3678 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3679 { (exit 1); exit 1; }; }
3680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3681 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3682 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3683 { (exit 1); exit 1; }; }
3686 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3687 echo "${ECHO_T}$ac_cv_build" >&6; }
3688 case $ac_cv_build in
3690 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3691 echo "$as_me: error: invalid value of canonical build" >&2;}
3692 { (exit 1); exit 1; }; };;
3695 ac_save_IFS=$IFS; IFS='-'
3701 # Remember, the first character of IFS is used to create $*,
3702 # except with old shells:
3705 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3708 { echo "$as_me:$LINENO: checking host system type" >&5
3709 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3710 if test "${ac_cv_host+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 if test "x$host_alias" = x; then
3714 ac_cv_host=$ac_cv_build
3716 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3717 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3718 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3719 { (exit 1); exit 1; }; }
3723 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3724 echo "${ECHO_T}$ac_cv_host" >&6; }
3727 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3728 echo "$as_me: error: invalid value of canonical host" >&2;}
3729 { (exit 1); exit 1; }; };;
3732 ac_save_IFS=$IFS; IFS='-'
3738 # Remember, the first character of IFS is used to create $*,
3739 # except with old shells:
3742 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3745 { echo "$as_me:$LINENO: checking target system type" >&5
3746 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3747 if test "${ac_cv_target+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 if test "x$target_alias" = x; then
3751 ac_cv_target=$ac_cv_host
3753 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3754 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3755 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3756 { (exit 1); exit 1; }; }
3760 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3761 echo "${ECHO_T}$ac_cv_target" >&6; }
3762 case $ac_cv_target in
3764 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3765 echo "$as_me: error: invalid value of canonical target" >&2;}
3766 { (exit 1); exit 1; }; };;
3768 target=$ac_cv_target
3769 ac_save_IFS=$IFS; IFS='-'
3775 # Remember, the first character of IFS is used to create $*,
3776 # except with old shells:
3779 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3782 # The aliases save the names the user supplied, while $host etc.
3783 # will get canonicalized.
3784 test -n "$target_alias" &&
3785 test "$program_prefix$program_suffix$program_transform_name" = \
3787 program_prefix=${target_alias}-
3789 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3790 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3791 if test "${llvm_cv_os_type+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 llvm_cv_link_all_option="-Wl,--whole-archive"
3797 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3798 llvm_cv_os_type="AIX"
3799 llvm_cv_platform_type="Unix" ;;
3801 llvm_cv_link_all_option="-Wl,--whole-archive"
3802 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3803 llvm_cv_os_type="IRIX"
3804 llvm_cv_platform_type="Unix" ;;
3806 llvm_cv_link_all_option="-Wl,--whole-archive"
3807 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3808 llvm_cv_os_type="Cygwin"
3809 llvm_cv_platform_type="Unix" ;;
3811 llvm_cv_link_all_option="-Wl,-all_load"
3812 llvm_cv_no_link_all_option="-Wl,-noall_load"
3813 llvm_cv_os_type="Darwin"
3814 llvm_cv_platform_type="Unix" ;;
3816 llvm_cv_link_all_option="-Wl,-all_load"
3817 llvm_cv_no_link_all_option="-Wl,-noall_load"
3818 llvm_cv_os_type="Minix"
3819 llvm_cv_platform_type="Unix" ;;
3820 *-*-freebsd* | *-*-kfreebsd-gnu)
3821 llvm_cv_link_all_option="-Wl,--whole-archive"
3822 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3823 llvm_cv_os_type="FreeBSD"
3824 llvm_cv_platform_type="Unix" ;;
3826 llvm_cv_link_all_option="-Wl,--whole-archive"
3827 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3828 llvm_cv_os_type="OpenBSD"
3829 llvm_cv_platform_type="Unix" ;;
3831 llvm_cv_link_all_option="-Wl,--whole-archive"
3832 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3833 llvm_cv_os_type="NetBSD"
3834 llvm_cv_platform_type="Unix" ;;
3836 llvm_cv_link_all_option="-Wl,--whole-archive"
3837 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3838 llvm_cv_os_type="DragonFly"
3839 llvm_cv_platform_type="Unix" ;;
3841 llvm_cv_link_all_option="-Wl,--whole-archive"
3842 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3843 llvm_cv_os_type="HP-UX"
3844 llvm_cv_platform_type="Unix" ;;
3846 llvm_cv_link_all_option="-Wl,--whole-archive"
3847 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3848 llvm_cv_os_type="Interix"
3849 llvm_cv_platform_type="Unix" ;;
3851 llvm_cv_link_all_option="-Wl,--whole-archive"
3852 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3853 llvm_cv_os_type="Linux"
3854 llvm_cv_platform_type="Unix" ;;
3856 llvm_cv_link_all_option="-Wl,--whole-archive"
3857 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3858 llvm_cv_os_type="GNU"
3859 llvm_cv_platform_type="Unix" ;;
3861 llvm_cv_link_all_option="-Wl,-z,allextract"
3862 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3863 llvm_cv_os_type="SunOS"
3864 llvm_cv_platform_type="Unix" ;;
3866 llvm_cv_link_all_option="-Wl,-z,allextract"
3867 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3868 llvm_cv_os_type="AuroraUX"
3869 llvm_cv_platform_type="Unix" ;;
3871 llvm_cv_link_all_option="-Wl,--whole-archive"
3872 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3873 llvm_cv_os_type="Win32"
3874 llvm_cv_platform_type="Win32" ;;
3876 llvm_cv_link_all_option="-Wl,--whole-archive"
3877 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3878 llvm_cv_os_type="MingW"
3879 llvm_cv_platform_type="Win32" ;;
3881 llvm_cv_link_all_option="-Wl,--whole-archive"
3882 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3883 llvm_cv_os_type="Haiku"
3884 llvm_cv_platform_type="Unix" ;;
3886 llvm_cv_link_all_option="-Wl,--whole-archive"
3887 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3888 llvm_cv_os_type="Freestanding"
3889 llvm_cv_platform_type="Unix" ;;
3891 llvm_cv_link_all_option="-Wl,--whole-archive"
3892 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3893 llvm_cv_os_type="Freestanding"
3894 llvm_cv_platform_type="Unix" ;;
3896 llvm_cv_link_all_option=""
3897 llvm_cv_no_link_all_option=""
3898 llvm_cv_os_type="Unknown"
3899 llvm_cv_platform_type="Unknown" ;;
3902 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3903 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3905 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3906 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3907 if test "${llvm_cv_target_os_type+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 llvm_cv_target_os_type="AIX" ;;
3914 llvm_cv_target_os_type="IRIX" ;;
3916 llvm_cv_target_os_type="Cygwin" ;;
3918 llvm_cv_target_os_type="Darwin" ;;
3920 llvm_cv_target_os_type="Minix" ;;
3921 *-*-freebsd* | *-*-kfreebsd-gnu)
3922 llvm_cv_target_os_type="FreeBSD" ;;
3924 llvm_cv_target_os_type="OpenBSD" ;;
3926 llvm_cv_target_os_type="NetBSD" ;;
3928 llvm_cv_target_os_type="DragonFly" ;;
3930 llvm_cv_target_os_type="HP-UX" ;;
3932 llvm_cv_target_os_type="Interix" ;;
3934 llvm_cv_target_os_type="Linux" ;;
3936 llvm_cv_target_os_type="GNU" ;;
3938 llvm_cv_target_os_type="SunOS" ;;
3940 llvm_cv_target_os_type="AuroraUX" ;;
3942 llvm_cv_target_os_type="Win32" ;;
3944 llvm_cv_target_os_type="MingW" ;;
3946 llvm_cv_target_os_type="Haiku" ;;
3948 llvm_cv_target_os_type="RTEMS" ;;
3950 llvm_cv_target_os_type="NativeClient" ;;
3952 llvm_cv_target_os_type="Freestanding" ;;
3954 llvm_cv_target_os_type="Unknown" ;;
3957 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3958 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3960 if test "$llvm_cv_os_type" = "Unknown" ; then
3961 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3962 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3963 { (exit 1); exit 1; }; }
3968 HOST_OS=$llvm_cv_os_type
3970 TARGET_OS=$llvm_cv_target_os_type
3973 LINKALL=$llvm_cv_link_all_option
3975 NOLINKALL=$llvm_cv_no_link_all_option
3978 case $llvm_cv_platform_type in
3981 cat >>confdefs.h <<\_ACEOF
3982 #define LLVM_ON_UNIX 1
3992 cat >>confdefs.h <<\_ACEOF
3993 #define LLVM_ON_WIN32 1
4003 { echo "$as_me:$LINENO: checking target architecture" >&5
4004 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4005 if test "${llvm_cv_target_arch+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 i?86-*) llvm_cv_target_arch="x86" ;;
4010 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4011 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4012 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4013 arm*-*) llvm_cv_target_arch="ARM" ;;
4014 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4015 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4016 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4017 xcore-*) llvm_cv_target_arch="XCore" ;;
4018 msp430-*) llvm_cv_target_arch="MSP430" ;;
4019 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4020 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4021 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4022 *) llvm_cv_target_arch="Unknown" ;;
4025 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4026 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4028 if test "$llvm_cv_target_arch" = "Unknown" ; then
4029 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4030 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4033 case "$llvm_cv_target_arch" in
4034 x86) LLVM_NATIVE_ARCH="X86" ;;
4035 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4036 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4039 ARCH=$llvm_cv_target_arch
4043 i?86-*) host_arch="x86" ;;
4044 amd64-* | x86_64-*) host_arch="x86_64" ;;
4045 sparc*-*) host_arch="Sparc" ;;
4046 powerpc*-*) host_arch="PowerPC" ;;
4047 arm*-*) host_arch="ARM" ;;
4048 aarch64*-*) host_arch="AArch64" ;;
4049 mips-* | mips64-*) host_arch="Mips" ;;
4050 mipsel-* | mips64el-*) host_arch="Mips" ;;
4051 xcore-*) host_arch="XCore" ;;
4052 msp430-*) host_arch="MSP430" ;;
4053 hexagon-*) host_arch="Hexagon" ;;
4054 mblaze-*) host_arch="MBlaze" ;;
4055 *) host_arch="Unknown" ;;
4058 if test "$host_arch" = "Unknown" ; then
4059 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4060 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4063 HOST_ARCH=$host_arch
4068 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4069 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4070 if test "${ac_cv_path_GREP+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 # Extract the first word of "grep ggrep" to use in msg output
4074 if test -z "$GREP"; then
4075 set dummy grep ggrep; ac_prog_name=$2
4076 if test "${ac_cv_path_GREP+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 ac_path_GREP_found=false
4080 # Loop through the user's path and test for each of PROGNAME-LIST
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4085 test -z "$as_dir" && as_dir=.
4086 for ac_prog in grep ggrep; do
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4089 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4090 # Check for GNU ac_path_GREP and select it if it is found.
4091 # Check for GNU $ac_path_GREP
4092 case `"$ac_path_GREP" --version 2>&1` in
4094 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4097 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4100 cat "conftest.in" "conftest.in" >"conftest.tmp"
4101 mv "conftest.tmp" "conftest.in"
4102 cp "conftest.in" "conftest.nl"
4103 echo 'GREP' >> "conftest.nl"
4104 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4106 ac_count=`expr $ac_count + 1`
4107 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4108 # Best one so far, save it but keep looking for a better one
4109 ac_cv_path_GREP="$ac_path_GREP"
4110 ac_path_GREP_max=$ac_count
4112 # 10*(2^10) chars as input seems more than enough
4113 test $ac_count -gt 10 && break
4115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119 $ac_path_GREP_found && break 3
4129 GREP="$ac_cv_path_GREP"
4130 if test -z "$GREP"; then
4131 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4132 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4133 { (exit 1); exit 1; }; }
4137 ac_cv_path_GREP=$GREP
4142 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4143 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4144 GREP="$ac_cv_path_GREP"
4147 { echo "$as_me:$LINENO: checking for egrep" >&5
4148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4149 if test "${ac_cv_path_EGREP+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4153 then ac_cv_path_EGREP="$GREP -E"
4155 # Extract the first word of "egrep" to use in msg output
4156 if test -z "$EGREP"; then
4157 set dummy egrep; ac_prog_name=$2
4158 if test "${ac_cv_path_EGREP+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 ac_path_EGREP_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167 test -z "$as_dir" && as_dir=.
4168 for ac_prog in egrep; do
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4171 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4172 # Check for GNU ac_path_EGREP and select it if it is found.
4173 # Check for GNU $ac_path_EGREP
4174 case `"$ac_path_EGREP" --version 2>&1` in
4176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4179 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4182 cat "conftest.in" "conftest.in" >"conftest.tmp"
4183 mv "conftest.tmp" "conftest.in"
4184 cp "conftest.in" "conftest.nl"
4185 echo 'EGREP' >> "conftest.nl"
4186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188 ac_count=`expr $ac_count + 1`
4189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4190 # Best one so far, save it but keep looking for a better one
4191 ac_cv_path_EGREP="$ac_path_EGREP"
4192 ac_path_EGREP_max=$ac_count
4194 # 10*(2^10) chars as input seems more than enough
4195 test $ac_count -gt 10 && break
4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4201 $ac_path_EGREP_found && break 3
4211 EGREP="$ac_cv_path_EGREP"
4212 if test -z "$EGREP"; then
4213 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4214 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4215 { (exit 1); exit 1; }; }
4219 ac_cv_path_EGREP=$EGREP
4225 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4226 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4227 EGREP="$ac_cv_path_EGREP"
4230 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4232 if test "${ac_cv_header_stdc+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 ac_cv_header_stdc=yes
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 ac_cv_header_stdc=no
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 if test $ac_cv_header_stdc = yes; then
4299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4310 $EGREP "memchr" >/dev/null 2>&1; then
4313 ac_cv_header_stdc=no
4319 if test $ac_cv_header_stdc = yes; then
4320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331 $EGREP "free" >/dev/null 2>&1; then
4334 ac_cv_header_stdc=no
4340 if test $ac_cv_header_stdc = yes; then
4341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4342 if test "$cross_compiling" = yes; then
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4353 #if ((' ' & 0x0FF) == 0x020)
4354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4357 # define ISLOWER(c) \
4358 (('a' <= (c) && (c) <= 'i') \
4359 || ('j' <= (c) && (c) <= 'r') \
4360 || ('s' <= (c) && (c) <= 'z'))
4361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4369 for (i = 0; i < 256; i++)
4370 if (XOR (islower (i), ISLOWER (i))
4371 || toupper (i) != TOUPPER (i))
4376 rm -f conftest$ac_exeext
4377 if { (ac_try="$ac_link"
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_link") 2>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4387 { (case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_try") 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4398 echo "$as_me: program exited with status $ac_status" >&5
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4403 ac_cv_header_stdc=no
4405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4411 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4412 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4413 if test $ac_cv_header_stdc = yes; then
4415 cat >>confdefs.h <<\_ACEOF
4416 #define STDC_HEADERS 1
4421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432 inttypes.h stdint.h unistd.h
4434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4448 #include <$ac_header>
4450 rm -f conftest.$ac_objext
4451 if { (ac_try="$ac_compile"
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_compile") 2>conftest.er1
4459 grep -v '^ *+' conftest.er1 >conftest.err
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4465 { (case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_try") 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest.$ac_objext'
4475 { (case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_try") 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 eval "$as_ac_Header=yes"
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 eval "$as_ac_Header=no"
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_res=`eval echo '${'$as_ac_Header'}'`
4495 { echo "$as_me:$LINENO: result: $ac_res" >&5
4496 echo "${ECHO_T}$ac_res" >&6; }
4497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4498 cat >>confdefs.h <<_ACEOF
4499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4507 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4508 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4509 if test "${ac_cv_c_bigendian+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 # See if sys/param.h defines the BYTE_ORDER macro.
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <sys/types.h>
4520 #include <sys/param.h>
4525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_compile") 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4548 { (case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_try") 2>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 # It does; now see whether it defined to BIG_ENDIAN or not.
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 #include <sys/types.h>
4575 #include <sys/param.h>
4580 #if BYTE_ORDER != BIG_ENDIAN
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compile") 2>conftest.er1
4597 grep -v '^ *+' conftest.er1 >conftest.err
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4603 { (case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_try") 2>&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618 (eval "$ac_try") 2>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 ac_cv_c_bigendian=yes
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_cv_c_bigendian=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 # It does not; compile a test program.
4636 if test "$cross_compiling" = yes; then
4637 # try to guess the endianness by grepping values into an object file
4638 ac_cv_c_bigendian=unknown
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4646 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4647 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4648 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4649 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4650 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4654 _ascii (); _ebcdic ();
4659 rm -f conftest.$ac_objext
4660 if { (ac_try="$ac_compile"
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_compile") 2>conftest.er1
4668 grep -v '^ *+' conftest.er1 >conftest.err
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4674 { (case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_try") 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try='test -s conftest.$ac_objext'
4684 { (case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_try") 2>&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4694 ac_cv_c_bigendian=yes
4696 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4697 if test "$ac_cv_c_bigendian" = unknown; then
4698 ac_cv_c_bigendian=no
4700 # finding both strings is unlikely to happen, but who knows?
4701 ac_cv_c_bigendian=unknown
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 $ac_includes_default
4724 /* Are we little or big endian? From Harbison&Steele. */
4728 char c[sizeof (long int)];
4731 return u.c[sizeof (long int) - 1] == 1;
4737 rm -f conftest$ac_exeext
4738 if { (ac_try="$ac_link"
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_link") 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4748 { (case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_try") 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_cv_c_bigendian=no
4759 echo "$as_me: program exited with status $ac_status" >&5
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4764 ac_cv_c_bigendian=yes
4766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4775 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4776 case $ac_cv_c_bigendian in
4784 { { echo "$as_me:$LINENO: error: unknown endianness
4785 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4786 echo "$as_me: error: unknown endianness
4787 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4788 { (exit 1); exit 1; }; } ;;
4792 if test "$cross_compiling" = yes; then
4793 LLVM_CROSS_COMPILING=1
4796 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4797 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4798 if test "${ac_cv_build_exeext+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4802 ac_cv_build_exeext=.exe
4804 ac_build_prefix=${build_alias}-
4806 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4807 set dummy ${ac_build_prefix}gcc; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 if test -n "$BUILD_CC"; then
4814 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 BUILD_CC=$ac_cv_prog_BUILD_CC
4834 if test -n "$BUILD_CC"; then
4835 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4836 echo "${ECHO_T}$BUILD_CC" >&6; }
4838 { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4843 if test -z "$BUILD_CC"; then
4844 # Extract the first word of "gcc", so it can be a program name with args.
4845 set dummy gcc; ac_word=$2
4846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 if test -n "$BUILD_CC"; then
4852 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_prog_BUILD_CC="gcc"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 BUILD_CC=$ac_cv_prog_BUILD_CC
4872 if test -n "$BUILD_CC"; then
4873 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4874 echo "${ECHO_T}$BUILD_CC" >&6; }
4876 { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4881 if test -z "$BUILD_CC"; then
4882 # Extract the first word of "cc", so it can be a program name with args.
4883 set dummy cc; ac_word=$2
4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 if test -n "$BUILD_CC"; then
4890 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4901 ac_prog_rejected=yes
4904 ac_cv_prog_BUILD_CC="cc"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 if test $ac_prog_rejected = yes; then
4913 # We found a bogon in the path, so make sure we never use it.
4914 set dummy $ac_cv_prog_BUILD_CC
4916 if test $# != 0; then
4917 # We chose a different compiler from the bogus one.
4918 # However, it has the same basename, so the bogon will be chosen
4919 # first if we set BUILD_CC to just the basename; use the full file name.
4921 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4926 BUILD_CC=$ac_cv_prog_BUILD_CC
4927 if test -n "$BUILD_CC"; then
4928 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4929 echo "${ECHO_T}$BUILD_CC" >&6; }
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4938 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4939 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4940 { (exit 1); exit 1; }; }
4941 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4943 echo 'int main () { return 0; }' > conftest.$ac_ext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4946 (eval $ac_build_link) 2>&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; then
4950 for file in conftest.*; do
4952 *.c | *.o | *.obj | *.dSYM) ;;
4953 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4957 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4958 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4959 { (exit 1); exit 1; }; }
4962 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4967 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4968 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4969 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4970 ac_build_exeext=$BUILD_EXEEXT
4972 ac_build_prefix=${build_alias}-
4973 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4974 set dummy ${ac_build_prefix}g++; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 if test -n "$BUILD_CXX"; then
4981 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5001 if test -n "$BUILD_CXX"; then
5002 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5003 echo "${ECHO_T}$BUILD_CXX" >&6; }
5005 { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5010 if test -z "$BUILD_CXX"; then
5011 # Extract the first word of "g++", so it can be a program name with args.
5012 set dummy g++; ac_word=$2
5013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5015 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 if test -n "$BUILD_CXX"; then
5019 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_BUILD_CXX="g++"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5039 if test -n "$BUILD_CXX"; then
5040 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5041 echo "${ECHO_T}$BUILD_CXX" >&6; }
5043 { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5048 if test -z "$BUILD_CXX"; then
5049 # Extract the first word of "c++", so it can be a program name with args.
5050 set dummy c++; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 if test -n "$BUILD_CXX"; then
5057 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5068 ac_prog_rejected=yes
5071 ac_cv_prog_BUILD_CXX="c++"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 if test $ac_prog_rejected = yes; then
5080 # We found a bogon in the path, so make sure we never use it.
5081 set dummy $ac_cv_prog_BUILD_CXX
5083 if test $# != 0; then
5084 # We chose a different compiler from the bogus one.
5085 # However, it has the same basename, so the bogon will be chosen
5086 # first if we set BUILD_CXX to just the basename; use the full file name.
5088 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5093 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5094 if test -n "$BUILD_CXX"; then
5095 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5096 echo "${ECHO_T}$BUILD_CXX" >&6; }
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5106 LLVM_CROSS_COMPILING=0
5110 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5121 # Check whether --enable-libcpp was given.
5122 if test "${enable_libcpp+set}" = set; then
5123 enableval=$enable_libcpp;
5128 case "$enableval" in
5129 yes) ENABLE_LIBCPP=1
5133 default) ENABLE_LIBCPP=0
5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5136 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5140 # Check whether --enable-cxx11 was given.
5141 if test "${enable_cxx11+set}" = set; then
5142 enableval=$enable_cxx11;
5147 case "$enableval" in
5152 default) ENABLE_CXX11=0
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5160 # Check whether --enable-clang-arcmt was given.
5161 if test "${enable_clang_arcmt+set}" = set; then
5162 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5167 case "$enableval" in
5168 yes) ENABLE_CLANG_ARCMT=1
5170 no) ENABLE_CLANG_ARCMT=0
5172 default) ENABLE_CLANG_ARCMT=1
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5179 clang_static_analyzer="yes"
5180 # Check whether --enable-clang-static-analyzer was given.
5181 if test "${enable_clang_static_analyzer+set}" = set; then
5182 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5187 case "$enableval" in
5188 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5190 no) ENABLE_CLANG_STATIC_ANALYZER=0
5192 default) ENABLE_CLANG_STATIC_ANALYZER=1
5194 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5195 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5196 { (exit 1); exit 1; }; } ;;
5199 # Check whether --enable-clang-rewriter was given.
5200 if test "${enable_clang_rewriter+set}" = set; then
5201 enableval=$enable_clang_rewriter;
5206 case "$enableval" in
5207 yes) ENABLE_CLANG_REWRITER=1
5210 if test ${clang_arcmt} != "no" ; then
5211 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5212 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5213 { (exit 1); exit 1; }; }
5215 if test ${clang_static_analyzer} != "no" ; then
5216 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5217 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5218 { (exit 1); exit 1; }; }
5220 ENABLE_CLANG_REWRITER=0
5223 default) ENABLE_CLANG_REWRITER=1
5225 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5226 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5227 { (exit 1); exit 1; }; } ;;
5230 # Check whether --enable-optimized was given.
5231 if test "${enable_optimized+set}" = set; then
5232 enableval=$enable_optimized;
5237 if test ${enableval} = "no" ; then
5241 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5245 # Check whether --enable-profiling was given.
5246 if test "${enable_profiling+set}" = set; then
5247 enableval=$enable_profiling;
5252 if test ${enableval} = "no" ; then
5256 ENABLE_PROFILING=ENABLE_PROFILING=1
5260 # Check whether --enable-assertions was given.
5261 if test "${enable_assertions+set}" = set; then
5262 enableval=$enable_assertions;
5267 if test ${enableval} = "yes" ; then
5271 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5275 # Check whether --enable-werror was given.
5276 if test "${enable_werror+set}" = set; then
5277 enableval=$enable_werror;
5282 case "$enableval" in
5283 yes) ENABLE_WERROR=1
5287 default) ENABLE_WERROR=0
5289 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5290 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5291 { (exit 1); exit 1; }; } ;;
5294 # Check whether --enable-expensive-checks was given.
5295 if test "${enable_expensive_checks+set}" = set; then
5296 enableval=$enable_expensive_checks;
5301 if test ${enableval} = "yes" ; then
5302 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5304 EXPENSIVE_CHECKS=yes
5307 ENABLE_EXPENSIVE_CHECKS=
5313 # Check whether --enable-debug-runtime was given.
5314 if test "${enable_debug_runtime+set}" = set; then
5315 enableval=$enable_debug_runtime;
5320 if test ${enableval} = "no" ; then
5324 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5328 # Check whether --enable-debug-symbols was given.
5329 if test "${enable_debug_symbols+set}" = set; then
5330 enableval=$enable_debug_symbols;
5335 if test ${enableval} = "no" ; then
5339 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5343 # Check whether --enable-keep-symbols was given.
5344 if test "${enable_keep_symbols+set}" = set; then
5345 enableval=$enable_keep_symbols;
5350 if test ${enableval} = "no" ; then
5354 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5358 # Check whether --enable-jit was given.
5359 if test "${enable_jit+set}" = set; then
5360 enableval=$enable_jit;
5365 if test ${enableval} = "no"
5370 case "$llvm_cv_target_arch" in
5371 x86) TARGET_HAS_JIT=1
5373 Sparc) TARGET_HAS_JIT=0
5375 PowerPC) TARGET_HAS_JIT=1
5377 x86_64) TARGET_HAS_JIT=1
5379 ARM) TARGET_HAS_JIT=1
5381 AArch64) TARGET_HAS_JIT=0
5383 Mips) TARGET_HAS_JIT=1
5385 XCore) TARGET_HAS_JIT=0
5387 MSP430) TARGET_HAS_JIT=0
5389 Hexagon) TARGET_HAS_JIT=0
5391 MBlaze) TARGET_HAS_JIT=0
5393 NVPTX) TARGET_HAS_JIT=0
5400 # Check whether --enable-docs was given.
5401 if test "${enable_docs+set}" = set; then
5402 enableval=$enable_docs;
5407 case "$enableval" in
5412 default) ENABLE_DOCS=1
5414 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5415 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5416 { (exit 1); exit 1; }; } ;;
5419 # Check whether --enable-doxygen was given.
5420 if test "${enable_doxygen+set}" = set; then
5421 enableval=$enable_doxygen;
5426 case "$enableval" in
5427 yes) ENABLE_DOXYGEN=1
5429 no) ENABLE_DOXYGEN=0
5431 default) ENABLE_DOXYGEN=0
5433 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5434 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5435 { (exit 1); exit 1; }; } ;;
5438 # Check whether --enable-threads was given.
5439 if test "${enable_threads+set}" = set; then
5440 enableval=$enable_threads;
5445 case "$enableval" in
5446 yes) LLVM_ENABLE_THREADS=1
5448 no) LLVM_ENABLE_THREADS=0
5450 default) LLVM_ENABLE_THREADS=1
5452 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5453 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5454 { (exit 1); exit 1; }; } ;;
5457 cat >>confdefs.h <<_ACEOF
5458 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5462 # Check whether --enable-pthreads was given.
5463 if test "${enable_pthreads+set}" = set; then
5464 enableval=$enable_pthreads;
5469 case "$enableval" in
5470 yes) ENABLE_PTHREADS=1
5472 no) ENABLE_PTHREADS=0
5474 default) ENABLE_PTHREADS=1
5476 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5477 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5478 { (exit 1); exit 1; }; } ;;
5481 # Check whether --enable-pic was given.
5482 if test "${enable_pic+set}" = set; then
5483 enableval=$enable_pic;
5488 case "$enableval" in
5493 default) ENABLE_PIC=1
5495 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5496 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5497 { (exit 1); exit 1; }; } ;;
5500 cat >>confdefs.h <<_ACEOF
5501 #define ENABLE_PIC $ENABLE_PIC
5505 # Check whether --enable-shared was given.
5506 if test "${enable_shared+set}" = set; then
5507 enableval=$enable_shared;
5512 case "$enableval" in
5513 yes) ENABLE_SHARED=1
5517 default) ENABLE_SHARED=0
5519 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5520 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5521 { (exit 1); exit 1; }; } ;;
5524 # Check whether --enable-embed-stdcxx was given.
5525 if test "${enable_embed_stdcxx+set}" = set; then
5526 enableval=$enable_embed_stdcxx;
5531 case "$enableval" in
5532 yes) ENABLE_EMBED_STDCXX=1
5534 no) ENABLE_EMBED_STDCXX=0
5536 default) ENABLE_EMBED_STDCXX=0
5538 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5539 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5540 { (exit 1); exit 1; }; } ;;
5543 # Check whether --enable-timestamps was given.
5544 if test "${enable_timestamps+set}" = set; then
5545 enableval=$enable_timestamps;
5550 case "$enableval" in
5551 yes) ENABLE_TIMESTAMPS=1
5553 no) ENABLE_TIMESTAMPS=0
5555 default) ENABLE_TIMESTAMPS=1
5557 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5558 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5559 { (exit 1); exit 1; }; } ;;
5562 cat >>confdefs.h <<_ACEOF
5563 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5568 # Check whether --enable-backtraces was given.
5569 if test "${enable_backtraces+set}" = set; then
5570 enableval=$enable_backtraces;
5575 case "$enableval" in
5576 yes) ENABLE_BACKTRACES=1
5578 no) ENABLE_BACKTRACES=0
5580 default) ENABLE_BACKTRACES=1
5582 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5583 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5584 { (exit 1); exit 1; }; } ;;
5587 cat >>confdefs.h <<_ACEOF
5588 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5593 # Check whether --enable-targets was given.
5594 if test "${enable_targets+set}" = set; then
5595 enableval=$enable_targets;
5600 if test "$enableval" = host-only ; then
5603 case "$enableval" in
5604 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5605 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5607 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5608 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5609 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5610 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5611 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5612 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5613 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5614 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5615 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5616 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5617 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5618 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5619 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5620 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5621 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5622 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5623 host) case "$llvm_cv_target_arch" in
5624 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5625 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5626 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5627 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5628 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5629 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5630 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5631 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5632 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5633 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5634 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5635 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5636 echo "$as_me: error: Can not set target to build" >&2;}
5637 { (exit 1); exit 1; }; } ;;
5639 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5640 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5641 { (exit 1); exit 1; }; } ;;
5647 # Check whether --enable-experimental-targets was given.
5648 if test "${enable_experimental_targets+set}" = set; then
5649 enableval=$enable_experimental_targets;
5655 if test ${enableval} != "disable"
5657 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5660 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5663 for a_target in $TARGETS_TO_BUILD; do
5664 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5666 cat >>confdefs.h <<_ACEOF
5667 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5670 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5671 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5672 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5673 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5674 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5675 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5677 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5678 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5681 cat >>confdefs.h <<_ACEOF
5682 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5686 cat >>confdefs.h <<_ACEOF
5687 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5691 cat >>confdefs.h <<_ACEOF
5692 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5696 cat >>confdefs.h <<_ACEOF
5697 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5700 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5702 cat >>confdefs.h <<_ACEOF
5703 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5707 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5709 cat >>confdefs.h <<_ACEOF
5710 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5717 LLVM_ENUM_TARGETS=""
5718 LLVM_ENUM_ASM_PRINTERS=""
5719 LLVM_ENUM_ASM_PARSERS=""
5720 LLVM_ENUM_DISASSEMBLERS=""
5721 for target_to_build in $TARGETS_TO_BUILD; do
5722 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5723 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5724 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5726 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5727 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5729 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5730 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5739 # Check whether --with-optimize-option was given.
5740 if test "${with_optimize_option+set}" = set; then
5741 withval=$with_optimize_option;
5746 { echo "$as_me:$LINENO: checking optimization flags" >&5
5747 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5750 case "$llvm_cv_os_type" in
5751 FreeBSD) optimize_option=-O2 ;;
5752 MingW) optimize_option=-O2 ;;
5753 *) optimize_option=-O3 ;;
5755 *) optimize_option="$withval" ;;
5757 OPTIMIZE_OPTION=$optimize_option
5759 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5760 echo "${ECHO_T}$optimize_option" >&6; }
5763 # Check whether --with-extra-options was given.
5764 if test "${with_extra_options+set}" = set; then
5765 withval=$with_extra_options;
5771 default) EXTRA_OPTIONS= ;;
5772 *) EXTRA_OPTIONS=$withval ;;
5774 EXTRA_OPTIONS=$EXTRA_OPTIONS
5778 # Check whether --with-extra-ld-options was given.
5779 if test "${with_extra_ld_options+set}" = set; then
5780 withval=$with_extra_ld_options;
5786 default) EXTRA_LD_OPTIONS= ;;
5787 *) EXTRA_LD_OPTIONS=$withval ;;
5789 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5792 # Check whether --enable-bindings was given.
5793 if test "${enable_bindings+set}" = set; then
5794 enableval=$enable_bindings;
5799 BINDINGS_TO_BUILD=""
5800 case "$enableval" in
5801 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5802 all ) BINDINGS_TO_BUILD="ocaml" ;;
5803 none | no) BINDINGS_TO_BUILD="" ;;
5804 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5805 case "$a_binding" in
5806 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5807 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5808 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5809 { (exit 1); exit 1; }; } ;;
5816 # Check whether --with-ocaml-libdir was given.
5817 if test "${with_ocaml_libdir+set}" = set; then
5818 withval=$with_ocaml_libdir;
5824 auto) with_ocaml_libdir="$withval" ;;
5825 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5826 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5827 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5828 { (exit 1); exit 1; }; } ;;
5832 # Check whether --with-clang-srcdir was given.
5833 if test "${with_clang_srcdir+set}" = set; then
5834 withval=$with_clang_srcdir;
5840 -) clang_src_root="" ;;
5841 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5842 *) clang_src_root="$ac_pwd/$withval" ;;
5844 CLANG_SRC_ROOT=$clang_src_root
5848 # Check whether --with-clang-resource-dir was given.
5849 if test "${with_clang_resource_dir+set}" = set; then
5850 withval=$with_clang_resource_dir;
5856 cat >>confdefs.h <<_ACEOF
5857 #define CLANG_RESOURCE_DIR "$withval"
5862 # Check whether --with-c-include-dirs was given.
5863 if test "${with_c_include_dirs+set}" = set; then
5864 withval=$with_c_include_dirs;
5870 cat >>confdefs.h <<_ACEOF
5871 #define C_INCLUDE_DIRS "$withval"
5875 # Clang normally uses the system c++ headers and libraries. With this option,
5876 # clang will use the ones provided by a gcc installation instead. This option should
5877 # be passed the same value that was used with --prefix when configuring gcc.
5879 # Check whether --with-gcc-toolchain was given.
5880 if test "${with_gcc_toolchain+set}" = set; then
5881 withval=$with_gcc_toolchain;
5887 cat >>confdefs.h <<_ACEOF
5888 #define GCC_INSTALL_PREFIX "$withval"
5893 # Check whether --with-default-sysroot was given.
5894 if test "${with_default_sysroot+set}" = set; then
5895 withval=$with_default_sysroot;
5901 cat >>confdefs.h <<_ACEOF
5902 #define DEFAULT_SYSROOT "$withval"
5907 # Check whether --with-binutils-include was given.
5908 if test "${with_binutils_include+set}" = set; then
5909 withval=$with_binutils_include;
5915 default) WITH_BINUTILS_INCDIR=default ;;
5916 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5917 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5918 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5919 { (exit 1); exit 1; }; } ;;
5921 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5922 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5924 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5925 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5926 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5927 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5928 { (exit 1); exit 1; }; };
5933 # Check whether --with-bug-report-url was given.
5934 if test "${with_bug_report_url+set}" = set; then
5935 withval=$with_bug_report_url;
5937 withval="http://llvm.org/bugs/"
5941 cat >>confdefs.h <<_ACEOF
5942 #define BUG_REPORT_URL "$withval"
5946 # Check whether --enable-libffi was given.
5947 if test "${enable_libffi+set}" = set; then
5948 enableval=$enable_libffi; case "$enableval" in
5949 yes) llvm_cv_enable_libffi="yes" ;;
5950 no) llvm_cv_enable_libffi="no" ;;
5951 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5952 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5953 { (exit 1); exit 1; }; } ;;
5956 llvm_cv_enable_libffi=no
5961 # Check whether --with-internal-prefix was given.
5962 if test "${with_internal_prefix+set}" = set; then
5963 withval=$with_internal_prefix;
5968 INTERNAL_PREFIX=$withval
5972 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5973 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5974 if test "${lt_cv_path_NM+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 if test -n "$NM"; then
5978 # Let the user override the test.
5981 lt_nm_to_check="${ac_tool_prefix}nm"
5982 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5983 lt_nm_to_check="$lt_nm_to_check nm"
5985 for lt_tmp_nm in $lt_nm_to_check; do
5986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5987 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5989 test -z "$ac_dir" && ac_dir=.
5990 tmp_nm="$ac_dir/$lt_tmp_nm"
5991 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5992 # Check to see if the nm accepts a BSD-compat flag.
5993 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5994 # nm: unknown option "B" ignored
5995 # Tru64's nm complains that /dev/null is an invalid object file
5996 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5997 */dev/null* | *'Invalid file or object type'*)
5998 lt_cv_path_NM="$tmp_nm -B"
6002 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6004 lt_cv_path_NM="$tmp_nm -p"
6008 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6009 continue # so that we can try to find one that supports BSD flags
6018 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6021 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6022 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6027 { echo "$as_me:$LINENO: checking for GNU make" >&5
6028 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6029 if test "${llvm_cv_gnu_make_command+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 llvm_cv_gnu_make_command=''
6033 for a in "$MAKE" make gmake gnumake ; do
6034 if test -z "$a" ; then continue ; fi ;
6035 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6037 llvm_cv_gnu_make_command=$a ;
6042 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6043 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6044 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6048 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6049 echo "${ECHO_T}\"Not found\"" >&6; };
6053 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6054 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6056 if test "$LN_S" = "ln -s"; then
6057 { echo "$as_me:$LINENO: result: yes" >&5
6058 echo "${ECHO_T}yes" >&6; }
6060 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6061 echo "${ECHO_T}no, using $LN_S" >&6; }
6064 # Extract the first word of "cmp", so it can be a program name with args.
6065 set dummy cmp; ac_word=$2
6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068 if test "${ac_cv_path_CMP+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6096 if test -n "$CMP"; then
6097 { echo "$as_me:$LINENO: result: $CMP" >&5
6098 echo "${ECHO_T}$CMP" >&6; }
6100 { echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6; }
6105 # Extract the first word of "cp", so it can be a program name with args.
6106 set dummy cp; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_CP+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6137 if test -n "$CP"; then
6138 { echo "$as_me:$LINENO: result: $CP" >&5
6139 echo "${ECHO_T}$CP" >&6; }
6141 { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6146 # Extract the first word of "date", so it can be a program name with args.
6147 set dummy date; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_DATE+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6177 DATE=$ac_cv_path_DATE
6178 if test -n "$DATE"; then
6179 { echo "$as_me:$LINENO: result: $DATE" >&5
6180 echo "${ECHO_T}$DATE" >&6; }
6182 { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6187 # Extract the first word of "find", so it can be a program name with args.
6188 set dummy find; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_FIND+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6218 FIND=$ac_cv_path_FIND
6219 if test -n "$FIND"; then
6220 { echo "$as_me:$LINENO: result: $FIND" >&5
6221 echo "${ECHO_T}$FIND" >&6; }
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6228 # Extract the first word of "grep", so it can be a program name with args.
6229 set dummy grep; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_GREP+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6259 GREP=$ac_cv_path_GREP
6260 if test -n "$GREP"; then
6261 { echo "$as_me:$LINENO: result: $GREP" >&5
6262 echo "${ECHO_T}$GREP" >&6; }
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6269 # Extract the first word of "mkdir", so it can be a program name with args.
6270 set dummy mkdir; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_MKDIR+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6300 MKDIR=$ac_cv_path_MKDIR
6301 if test -n "$MKDIR"; then
6302 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6303 echo "${ECHO_T}$MKDIR" >&6; }
6305 { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6310 # Extract the first word of "mv", so it can be a program name with args.
6311 set dummy mv; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_MV+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6342 if test -n "$MV"; then
6343 { echo "$as_me:$LINENO: result: $MV" >&5
6344 echo "${ECHO_T}$MV" >&6; }
6346 { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6351 if test -n "$ac_tool_prefix"; then
6352 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_prog_RANLIB+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 if test -n "$RANLIB"; then
6360 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 RANLIB=$ac_cv_prog_RANLIB
6380 if test -n "$RANLIB"; then
6381 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6382 echo "${ECHO_T}$RANLIB" >&6; }
6384 { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6390 if test -z "$ac_cv_prog_RANLIB"; then
6391 ac_ct_RANLIB=$RANLIB
6392 # Extract the first word of "ranlib", so it can be a program name with args.
6393 set dummy ranlib; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 if test -n "$ac_ct_RANLIB"; then
6400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_ac_ct_RANLIB="ranlib"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6420 if test -n "$ac_ct_RANLIB"; then
6421 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6422 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6428 if test "x$ac_ct_RANLIB" = x; then
6431 case $cross_compiling:$ac_tool_warned in
6433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet. If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&5
6436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6437 whose name does not start with the host triplet. If you think this
6438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6439 ac_tool_warned=yes ;;
6441 RANLIB=$ac_ct_RANLIB
6444 RANLIB="$ac_cv_prog_RANLIB"
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}ar; ac_word=$2
6450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452 if test "${ac_cv_prog_AR+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 if test -n "$AR"; then
6456 ac_cv_prog_AR="$AR" # Let the user override the test.
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_AR="${ac_tool_prefix}ar"
6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 if test -n "$AR"; then
6477 { echo "$as_me:$LINENO: result: $AR" >&5
6478 echo "${ECHO_T}$AR" >&6; }
6480 { echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6; }
6486 if test -z "$ac_cv_prog_AR"; then
6488 # Extract the first word of "ar", so it can be a program name with args.
6489 set dummy ar; ac_word=$2
6490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 if test -n "$ac_ct_AR"; then
6496 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_ac_ct_AR="ar"
6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6516 if test -n "$ac_ct_AR"; then
6517 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6518 echo "${ECHO_T}$ac_ct_AR" >&6; }
6520 { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6524 if test "x$ac_ct_AR" = x; then
6527 case $cross_compiling:$ac_tool_warned in
6529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6530 whose name does not start with the host triplet. If you think this
6531 configuration is useful to you, please write to autoconf@gnu.org." >&5
6532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6533 whose name does not start with the host triplet. If you think this
6534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6535 ac_tool_warned=yes ;;
6543 # Extract the first word of "rm", so it can be a program name with args.
6544 set dummy rm; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_path_RM+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6562 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6575 if test -n "$RM"; then
6576 { echo "$as_me:$LINENO: result: $RM" >&5
6577 echo "${ECHO_T}$RM" >&6; }
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6584 # Extract the first word of "sed", so it can be a program name with args.
6585 set dummy sed; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_path_SED+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6616 if test -n "$SED"; then
6617 { echo "$as_me:$LINENO: result: $SED" >&5
6618 echo "${ECHO_T}$SED" >&6; }
6620 { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6625 # Extract the first word of "tar", so it can be a program name with args.
6626 set dummy tar; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_TAR+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6657 if test -n "$TAR"; then
6658 { echo "$as_me:$LINENO: result: $TAR" >&5
6659 echo "${ECHO_T}$TAR" >&6; }
6661 { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6666 # Extract the first word of "pwd", so it can be a program name with args.
6667 set dummy pwd; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_BINPWD+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6697 BINPWD=$ac_cv_path_BINPWD
6698 if test -n "$BINPWD"; then
6699 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6700 echo "${ECHO_T}$BINPWD" >&6; }
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6708 # Extract the first word of "Graphviz", so it can be a program name with args.
6709 set dummy Graphviz; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6739 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6740 if test -n "$GRAPHVIZ"; then
6741 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6742 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6744 { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6749 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6751 cat >>confdefs.h <<\_ACEOF
6752 #define HAVE_GRAPHVIZ 1
6755 if test "$llvm_cv_os_type" = "MingW" ; then
6756 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6759 cat >>confdefs.h <<_ACEOF
6760 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6764 # Extract the first word of "dot", so it can be a program name with args.
6765 set dummy dot; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_DOT+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6796 if test -n "$DOT"; then
6797 { echo "$as_me:$LINENO: result: $DOT" >&5
6798 echo "${ECHO_T}$DOT" >&6; }
6800 { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6805 if test "$DOT" != "echo dot" ; then
6807 cat >>confdefs.h <<\_ACEOF
6811 if test "$llvm_cv_os_type" = "MingW" ; then
6812 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6815 cat >>confdefs.h <<_ACEOF
6816 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6820 # Extract the first word of "fdp", so it can be a program name with args.
6821 set dummy fdp; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_FDP+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6852 if test -n "$FDP"; then
6853 { echo "$as_me:$LINENO: result: $FDP" >&5
6854 echo "${ECHO_T}$FDP" >&6; }
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 if test "$FDP" != "echo fdp" ; then
6863 cat >>confdefs.h <<\_ACEOF
6867 if test "$llvm_cv_os_type" = "MingW" ; then
6868 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6871 cat >>confdefs.h <<_ACEOF
6872 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6876 # Extract the first word of "neato", so it can be a program name with args.
6877 set dummy neato; ac_word=$2
6878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880 if test "${ac_cv_path_NEATO+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6907 NEATO=$ac_cv_path_NEATO
6908 if test -n "$NEATO"; then
6909 { echo "$as_me:$LINENO: result: $NEATO" >&5
6910 echo "${ECHO_T}$NEATO" >&6; }
6912 { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6917 if test "$NEATO" != "echo neato" ; then
6919 cat >>confdefs.h <<\_ACEOF
6920 #define HAVE_NEATO 1
6923 if test "$llvm_cv_os_type" = "MingW" ; then
6924 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6927 cat >>confdefs.h <<_ACEOF
6928 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6932 # Extract the first word of "twopi", so it can be a program name with args.
6933 set dummy twopi; ac_word=$2
6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6936 if test "${ac_cv_path_TWOPI+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6951 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6963 TWOPI=$ac_cv_path_TWOPI
6964 if test -n "$TWOPI"; then
6965 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6966 echo "${ECHO_T}$TWOPI" >&6; }
6968 { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6973 if test "$TWOPI" != "echo twopi" ; then
6975 cat >>confdefs.h <<\_ACEOF
6976 #define HAVE_TWOPI 1
6979 if test "$llvm_cv_os_type" = "MingW" ; then
6980 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6983 cat >>confdefs.h <<_ACEOF
6984 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6988 # Extract the first word of "circo", so it can be a program name with args.
6989 set dummy circo; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_path_CIRCO+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7007 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7019 CIRCO=$ac_cv_path_CIRCO
7020 if test -n "$CIRCO"; then
7021 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7022 echo "${ECHO_T}$CIRCO" >&6; }
7024 { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7029 if test "$CIRCO" != "echo circo" ; then
7031 cat >>confdefs.h <<\_ACEOF
7032 #define HAVE_CIRCO 1
7035 if test "$llvm_cv_os_type" = "MingW" ; then
7036 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7039 cat >>confdefs.h <<_ACEOF
7040 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7044 for ac_prog in gv gsview32
7046 # Extract the first word of "$ac_prog", so it can be a program name with args.
7047 set dummy $ac_prog; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_GV+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 if test -n "$GV"; then
7078 { echo "$as_me:$LINENO: result: $GV" >&5
7079 echo "${ECHO_T}$GV" >&6; }
7081 { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7086 test -n "$GV" && break
7088 test -n "$GV" || GV="echo gv"
7090 if test "$GV" != "echo gv" ; then
7092 cat >>confdefs.h <<\_ACEOF
7096 if test "$llvm_cv_os_type" = "MingW" ; then
7097 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7100 cat >>confdefs.h <<_ACEOF
7101 #define LLVM_PATH_GV "$GV${EXEEXT}"
7105 # Extract the first word of "dotty", so it can be a program name with args.
7106 set dummy dotty; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_DOTTY+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7136 DOTTY=$ac_cv_path_DOTTY
7137 if test -n "$DOTTY"; then
7138 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7139 echo "${ECHO_T}$DOTTY" >&6; }
7141 { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7146 if test "$DOTTY" != "echo dotty" ; then
7148 cat >>confdefs.h <<\_ACEOF
7149 #define HAVE_DOTTY 1
7152 if test "$llvm_cv_os_type" = "MingW" ; then
7153 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7156 cat >>confdefs.h <<_ACEOF
7157 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7161 # Extract the first word of "xdot.py", so it can be a program name with args.
7162 set dummy xdot.py; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7192 XDOT_PY=$ac_cv_path_XDOT_PY
7193 if test -n "$XDOT_PY"; then
7194 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7195 echo "${ECHO_T}$XDOT_PY" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7202 if test "$XDOT_PY" != "echo xdot.py" ; then
7204 cat >>confdefs.h <<\_ACEOF
7205 #define HAVE_XDOT_PY 1
7208 if test "$llvm_cv_os_type" = "MingW" ; then
7209 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7212 cat >>confdefs.h <<_ACEOF
7213 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7218 # Find a good install program. We prefer a C program (faster),
7219 # so one script is as good as another. But avoid the broken or
7220 # incompatible versions:
7221 # SysV /etc/install, /usr/sbin/install
7222 # SunOS /usr/etc/install
7223 # IRIX /sbin/install
7225 # AmigaOS /C/install, which installs bootblocks on floppy discs
7226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7229 # OS/2's system install, which has a completely different semantic
7230 # ./install, which can be erroneously created by make from ./install.sh.
7231 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7232 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7233 if test -z "$INSTALL"; then
7234 if test "${ac_cv_path_install+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 # Account for people who put trailing slashes in PATH elements.
7244 ./ | .// | /cC/* | \
7245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7246 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7249 # OSF1 and SCO ODT 3.0 have their own names for install.
7250 # Don't use installbsd from OSF since it installs stuff as root
7252 for ac_prog in ginstall scoinst install; do
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7255 if test $ac_prog = install &&
7256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7257 # AIX install. It has an incompatible calling convention.
7259 elif test $ac_prog = install &&
7260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7261 # program-specific install script used by HP pwplus--don't use.
7264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7277 if test "${ac_cv_path_install+set}" = set; then
7278 INSTALL=$ac_cv_path_install
7280 # As a last resort, use the slow shell script. Don't cache a
7281 # value for INSTALL within a source directory, because that will
7282 # break other packages using the cache if that directory is
7283 # removed, or if the value is a relative name.
7284 INSTALL=$ac_install_sh
7287 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7288 echo "${ECHO_T}$INSTALL" >&6; }
7290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7291 # It thinks the first close brace ends the variable substitution.
7292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7294 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7296 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7299 [\\/$]* | ?:[\\/]* ) ;;
7300 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7303 # Extract the first word of "bzip2", so it can be a program name with args.
7304 set dummy bzip2; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_path_BZIP2+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 BZIP2=$ac_cv_path_BZIP2
7334 if test -n "$BZIP2"; then
7335 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7336 echo "${ECHO_T}$BZIP2" >&6; }
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7343 # Extract the first word of "cat", so it can be a program name with args.
7344 set dummy cat; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_CAT+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 if test -n "$CAT"; then
7375 { echo "$as_me:$LINENO: result: $CAT" >&5
7376 echo "${ECHO_T}$CAT" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7383 # Extract the first word of "doxygen", so it can be a program name with args.
7384 set dummy doxygen; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7402 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 DOXYGEN=$ac_cv_path_DOXYGEN
7414 if test -n "$DOXYGEN"; then
7415 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7416 echo "${ECHO_T}$DOXYGEN" >&6; }
7418 { echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6; }
7423 # Extract the first word of "groff", so it can be a program name with args.
7424 set dummy groff; ac_word=$2
7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_GROFF+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 GROFF=$ac_cv_path_GROFF
7454 if test -n "$GROFF"; then
7455 { echo "$as_me:$LINENO: result: $GROFF" >&5
7456 echo "${ECHO_T}$GROFF" >&6; }
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7463 # Extract the first word of "gzip", so it can be a program name with args.
7464 set dummy gzip; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 GZIPBIN=$ac_cv_path_GZIPBIN
7494 if test -n "$GZIPBIN"; then
7495 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7496 echo "${ECHO_T}$GZIPBIN" >&6; }
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 # Extract the first word of "pdfroff", so it can be a program name with args.
7504 set dummy pdfroff; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_PDFROFF+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 PDFROFF=$ac_cv_path_PDFROFF
7534 if test -n "$PDFROFF"; then
7535 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7536 echo "${ECHO_T}$PDFROFF" >&6; }
7538 { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7543 # Extract the first word of "zip", so it can be a program name with args.
7544 set dummy zip; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_ZIP+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 if test -n "$ZIP"; then
7575 { echo "$as_me:$LINENO: result: $ZIP" >&5
7576 echo "${ECHO_T}$ZIP" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7583 for ac_prog in ocamlc
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_OCAMLC+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 OCAMLC=$ac_cv_path_OCAMLC
7616 if test -n "$OCAMLC"; then
7617 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7618 echo "${ECHO_T}$OCAMLC" >&6; }
7620 { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7625 test -n "$OCAMLC" && break
7628 for ac_prog in ocamlopt
7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 OCAMLOPT=$ac_cv_path_OCAMLOPT
7661 if test -n "$OCAMLOPT"; then
7662 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7663 echo "${ECHO_T}$OCAMLOPT" >&6; }
7665 { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7670 test -n "$OCAMLOPT" && break
7673 for ac_prog in ocamldep
7675 # Extract the first word of "$ac_prog", so it can be a program name with args.
7676 set dummy $ac_prog; ac_word=$2
7677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7694 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 OCAMLDEP=$ac_cv_path_OCAMLDEP
7706 if test -n "$OCAMLDEP"; then
7707 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7708 echo "${ECHO_T}$OCAMLDEP" >&6; }
7710 { echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6; }
7715 test -n "$OCAMLDEP" && break
7718 for ac_prog in ocamldoc
7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7724 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 OCAMLDOC=$ac_cv_path_OCAMLDOC
7751 if test -n "$OCAMLDOC"; then
7752 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7753 echo "${ECHO_T}$OCAMLDOC" >&6; }
7755 { echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6; }
7760 test -n "$OCAMLDOC" && break
7763 for ac_prog in gas as
7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_path_GAS+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 if test -n "$GAS"; then
7797 { echo "$as_me:$LINENO: result: $GAS" >&5
7798 echo "${ECHO_T}$GAS" >&6; }
7800 { echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6; }
7805 test -n "$GAS" && break
7809 { echo "$as_me:$LINENO: checking for linker version" >&5
7810 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7811 if test "${llvm_cv_link_version+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 version_string="$(ld -v 2>&1 | head -1)"
7818 if (echo "$version_string" | grep -q "ld64"); then
7819 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7821 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7825 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7826 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7828 cat >>confdefs.h <<_ACEOF
7829 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7834 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7835 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7836 if test "${llvm_cv_link_use_r+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846 CFLAGS="$CFLAGS -Wl,-R."
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_try") 2>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 llvm_cv_link_use_r=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 llvm_cv_link_use_r=no
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7916 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7917 if test "$llvm_cv_link_use_r" = yes ; then
7919 cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_LINK_R 1
7926 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7927 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7928 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7938 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961 (eval "$ac_link") 2>conftest.er1
7963 grep -v '^ *+' conftest.er1 >conftest.err
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_try") 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 llvm_cv_link_use_export_dynamic=yes
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 llvm_cv_link_use_export_dynamic=no
7996 rm -f core conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
8000 ac_cpp='$CPP $CPPFLAGS'
8001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8008 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8009 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8011 cat >>confdefs.h <<\_ACEOF
8012 #define HAVE_LINK_EXPORT_DYNAMIC 1
8018 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8019 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8020 if test "${llvm_cv_link_use_version_script+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 ac_cpp='$CPP $CPPFLAGS'
8025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031 # The following code is from the autoconf manual,
8032 # "11.13: Limitations of Usual Tools".
8033 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8034 # Use mktemp if possible; otherwise fall back on mkdir,
8035 # with $RANDOM to make collisions less likely.
8039 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8041 test -n "$tmp" && test -d "$tmp"
8043 tmp=$TMPDIR/foo$$-$RANDOM
8044 (umask 077 && mkdir "$tmp")
8047 echo "{" > "$tmp/export.map"
8048 echo " global: main;" >> "$tmp/export.map"
8049 echo " local: *;" >> "$tmp/export.map"
8050 echo "};" >> "$tmp/export.map"
8052 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_link") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8083 { (case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_try") 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try='test -s conftest$ac_exeext'
8093 { (case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_try") 2>&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; }; then
8102 llvm_cv_link_use_version_script=yes
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 llvm_cv_link_use_version_script=no
8110 rm -f core conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 rm "$tmp/export.map"
8116 ac_cpp='$CPP $CPPFLAGS'
8117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8123 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8124 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8125 if test "$llvm_cv_link_use_version_script" = yes ; then
8126 HAVE_LINK_VERSION_SCRIPT=1
8133 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8135 if test "${ac_cv_c_const+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8148 /* FIXME: Include the comments suggested by Paul. */
8150 /* Ultrix mips cc rejects this. */
8151 typedef int charset[2];
8153 /* SunOS 4.1.1 cc rejects this. */
8154 char const *const *ccp;
8156 /* NEC SVR4.0.2 mips cc rejects this. */
8157 struct point {int x, y;};
8158 static struct point const zero = {0,0};
8159 /* AIX XL C 1.02.0.0 rejects this.
8160 It does not let you subtract one const X* pointer from another in
8161 an arm of an if-expression whose if-part is not a constant
8163 const char *g = "string";
8164 ccp = &g + (g ? g-g : 0);
8165 /* HPUX 7.0 cc rejects these. */
8168 ccp = (char const *const *) p;
8169 { /* SCO 3.2v4 cc rejects this. */
8171 char const *s = 0 ? (char *) 0 : (char const *) 0;
8176 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8178 const int *foo = &x[0];
8181 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8182 typedef const int *iptr;
8186 { /* AIX XL C 1.02.0.0 rejects this saying
8187 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8188 struct s { int j; const int *ap[3]; };
8189 struct s *b; b->j = 5;
8191 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8195 return !x[0] && !zero.x;
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try='test -s conftest.$ac_objext'
8227 { (case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_try") 2>&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8247 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8248 if test $ac_cv_c_const = no; then
8250 cat >>confdefs.h <<\_ACEOF
8262 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8263 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8264 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8265 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 #include <sys/types.h>
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8296 grep -v '^ *+' conftest.er1 >conftest.err
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_try") 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 eval "$as_ac_Header=yes"
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 eval "$as_ac_Header=no"
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 ac_res=`eval echo '${'$as_ac_Header'}'`
8332 { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8335 cat >>confdefs.h <<_ACEOF
8336 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8339 ac_header_dirent=$ac_hdr; break
8343 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8344 if test $ac_header_dirent = dirent.h; then
8345 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8347 if test "${ac_cv_search_opendir+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 ac_func_search_save_LIBS=$LIBS
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8358 /* Override any GCC internal prototype to avoid an error.
8359 Use char because int might match the return type of a GCC
8360 builtin and then its argument prototype would still apply. */
8373 for ac_lib in '' dir; do
8374 if test -z "$ac_lib"; then
8375 ac_res="none required"
8378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
8389 grep -v '^ *+' conftest.er1 >conftest.err
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 ac_cv_search_opendir=$ac_res
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8422 rm -f core conftest.err conftest.$ac_objext \
8424 if test "${ac_cv_search_opendir+set}" = set; then
8428 if test "${ac_cv_search_opendir+set}" = set; then
8431 ac_cv_search_opendir=no
8434 LIBS=$ac_func_search_save_LIBS
8436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8438 ac_res=$ac_cv_search_opendir
8439 if test "$ac_res" != no; then
8440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8445 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8447 if test "${ac_cv_search_opendir+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 ac_func_search_save_LIBS=$LIBS
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8458 /* Override any GCC internal prototype to avoid an error.
8459 Use char because int might match the return type of a GCC
8460 builtin and then its argument prototype would still apply. */
8473 for ac_lib in '' x; do
8474 if test -z "$ac_lib"; then
8475 ac_res="none required"
8478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_link") 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495 { (case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_try") 2>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_try") 2>&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_search_opendir=$ac_res
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8522 rm -f core conftest.err conftest.$ac_objext \
8524 if test "${ac_cv_search_opendir+set}" = set; then
8528 if test "${ac_cv_search_opendir+set}" = set; then
8531 ac_cv_search_opendir=no
8534 LIBS=$ac_func_search_save_LIBS
8536 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8537 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8538 ac_res=$ac_cv_search_opendir
8539 if test "$ac_res" != no; then
8540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8547 for ac_header in dlfcn.h
8549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 ac_res=`eval echo '${'$as_ac_Header'}'`
8557 { echo "$as_me:$LINENO: result: $ac_res" >&5
8558 echo "${ECHO_T}$ac_res" >&6; }
8560 # Is the header compilable?
8561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #include <$ac_header>
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest.$ac_objext'
8597 { (case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_try") 2>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_header_compiler=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_header_compiler=no
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616 echo "${ECHO_T}$ac_header_compiler" >&6; }
8618 # Is the header present?
8619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 #include <$ac_header>
8629 if { (ac_try="$ac_cpp conftest.$ac_ext"
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8637 grep -v '^ *+' conftest.er1 >conftest.err
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } >/dev/null; then
8642 if test -s conftest.err; then
8643 ac_cpp_err=$ac_c_preproc_warn_flag
8644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8651 if test -z "$ac_cpp_err"; then
8652 ac_header_preproc=yes
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 ac_header_preproc=no
8660 rm -f conftest.err conftest.$ac_ext
8661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8662 echo "${ECHO_T}$ac_header_preproc" >&6; }
8664 # So? What about this header?
8665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8671 ac_header_preproc=yes
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8687 ## ------------------------------------ ##
8688 ## Report this to http://llvm.org/bugs/ ##
8689 ## ------------------------------------ ##
8691 ) | sed "s/^/$as_me: WARNING: /" >&2
8694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 eval "$as_ac_Header=\$ac_header_preproc"
8701 ac_res=`eval echo '${'$as_ac_Header'}'`
8702 { echo "$as_me:$LINENO: result: $ac_res" >&5
8703 echo "${ECHO_T}$ac_res" >&6; }
8706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8707 cat >>confdefs.h <<_ACEOF
8708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8715 # Check whether --enable-ltdl-install was given.
8716 if test "${enable_ltdl_install+set}" = set; then
8717 enableval=$enable_ltdl_install;
8723 if test x"${enable_ltdl_install-no}" != xno; then
8725 INSTALL_LTDL_FALSE='#'
8727 INSTALL_LTDL_TRUE='#'
8733 if test x"${enable_ltdl_convenience-no}" != xno; then
8734 CONVENIENCE_LTDL_TRUE=
8735 CONVENIENCE_LTDL_FALSE='#'
8737 CONVENIENCE_LTDL_TRUE='#'
8738 CONVENIENCE_LTDL_FALSE=
8742 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8745 libname_spec='lib$name'
8753 shlibpath_overrides_runpath=unknown
8755 dynamic_linker="$host_os ld.so"
8756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757 if test "$GCC" = yes; then
8758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8759 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8760 # if the path contains ";" then we assume it to be the separator
8761 # otherwise default to the standard path separator (i.e. ":") - it is
8762 # assumed that no part of a normal pathname contains ";" but that should
8763 # okay in the real world where ";" in dirpaths is itself problematic.
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8771 need_lib_prefix=unknown
8772 hardcode_into_libs=no
8774 # when you set need_version to no, make sure it does not cause -set_version
8775 # flags to be left without arguments
8776 need_version=unknown
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8782 shlibpath_var=LIBPATH
8784 # AIX 3 has no versioning support, so we append a major version to the name.
8785 soname_spec='${libname}${release}${shared_ext}$major'
8792 hardcode_into_libs=yes
8793 if test "$host_cpu" = ia64; then
8794 # AIX 5 supports IA64
8795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8796 shlibpath_var=LD_LIBRARY_PATH
8798 # With GCC up to 2.95.x, collect2 would create an import file
8799 # for dependence libraries. The import file would start with
8800 # the line `#! .'. This would cause the generated library to
8801 # depend on `.', always an invalid library. This was fixed in
8802 # development snapshots of GCC prior to 3.0.
8804 aix4 | aix4.[01] | aix4.[01].*)
8805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8807 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8815 # soname into executable. Probably we can add versioning support to
8816 # collect2, so additional links can be useful in future.
8817 if test "$aix_use_runtimelinking" = yes; then
8818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8819 # instead of lib<name>.a to let people know that these are not
8820 # typical AIX shared libraries.
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823 # We preserve .a as extension for shared libraries through AIX4.2
8824 # and later when we are not doing run time linking.
8825 library_names_spec='${libname}${release}.a $libname.a'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8828 shlibpath_var=LIBPATH
8833 library_names_spec='$libname.ixlibrary $libname.a'
8834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8835 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'
8839 library_names_spec='${libname}${shared_ext}'
8840 dynamic_linker="$host_os ld.so"
8841 shlibpath_var=LIBRARY_PATH
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8850 shlibpath_var=LD_LIBRARY_PATH
8851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8853 # the default ld.so.conf also contains /usr/contrib/lib and
8854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8855 # libtool to hard-code these into programs
8858 cygwin* | mingw* | pw32*)
8859 version_type=windows
8864 case $GCC,$host_os in
8865 yes,cygwin* | yes,mingw* | yes,pw32*)
8866 library_names_spec='$libname.dll.a'
8867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8868 postinstall_cmds='base_file=`basename \${file}`~
8869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8870 dldir=$destdir/`dirname \$dlpath`~
8871 test -d \$dldir || mkdir -p \$dldir~
8872 $install_prog $dir/$dlname \$dldir/$dlname~
8873 chmod a+x \$dldir/$dlname'
8874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8875 dlpath=$dir/\$dldll~
8877 shlibpath_overrides_runpath=yes
8881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8883 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8886 # MinGW DLLs use traditional 'lib' prefix
8887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8889 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8890 # It is most probably a Windows format PATH printed by
8891 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8892 # path with ; separators, and with drive letters. We can handle the
8893 # drive letters (cygwin fileutils understands them), so leave them,
8894 # especially as we might pass files found there to a mingw objdump,
8895 # which wouldn't understand a cygwinified path. Ahh.
8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8902 # pw32 DLLs use 'pw' prefix rather than 'lib'
8903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8912 dynamic_linker='Win32 ld.exe'
8913 # FIXME: first we should search . and the directory the executable is in
8917 darwin* | rhapsody*)
8918 dynamic_linker="$host_os dyld"
8922 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8923 soname_spec='${libname}${release}${major}$shared_ext'
8924 shlibpath_overrides_runpath=yes
8925 shlibpath_var=DYLD_LIBRARY_PATH
8926 shrext_cmds='.dylib'
8927 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8928 if test "$GCC" = yes; then
8929 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"`
8931 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 shlibpath_var=LD_LIBRARY_PATH
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8958 dynamic_linker='GNU ld.so'
8961 freebsd* | dragonfly*)
8962 # DragonFly does not have aout. When/if they implement a new
8963 # versioning mechanism, adjust this.
8964 if test -x /usr/bin/objformat; then
8965 objformat=`/usr/bin/objformat`
8968 freebsd[123].*) objformat=aout ;;
8972 version_type=freebsd-$objformat
8973 case $version_type in
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8984 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=yes
8989 freebsd3.[01]* | freebsdelf3.[01]*)
8990 shlibpath_overrides_runpath=yes
8991 hardcode_into_libs=yes
8993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8995 shlibpath_overrides_runpath=no
8996 hardcode_into_libs=yes
8998 freebsd*) # from 4.6 on
8999 shlibpath_overrides_runpath=yes
9000 hardcode_into_libs=yes
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 shlibpath_var=LD_LIBRARY_PATH
9012 hardcode_into_libs=yes
9015 hpux9* | hpux10* | hpux11*)
9016 # Give a soname corresponding to the major version so that dld.sl refuses to
9017 # link against other versions.
9024 hardcode_into_libs=yes
9025 dynamic_linker="$host_os dld.so"
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 if test "X$HPUX_IA64_MODE" = X32; then
9031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039 hardcode_into_libs=yes
9040 dynamic_linker="$host_os dld.sl"
9041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050 dynamic_linker="$host_os dld.sl"
9051 shlibpath_var=SHLIB_PATH
9052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9057 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9058 postinstall_cmds='chmod 555 $lib'
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=no
9070 hardcode_into_libs=yes
9073 irix5* | irix6* | nonstopux*)
9075 nonstopux*) version_type=nonstopux ;;
9077 if test "$lt_cv_prog_gnu_ld" = yes; then
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9088 irix5* | nonstopux*)
9092 case $LD in # libtool.m4 will add one of these switches to LD
9093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9094 libsuff= shlibsuff= libmagic=32-bit;;
9095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9096 libsuff=32 shlibsuff=N32 libmagic=N32;;
9097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9099 *) libsuff= shlibsuff= libmagic=never-match;;
9103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9104 shlibpath_overrides_runpath=no
9105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9107 hardcode_into_libs=yes
9110 # No shared lib support for Linux oldld, aout, or coff.
9111 linux*oldld* | linux*aout* | linux*coff*)
9115 # This must be Linux ELF.
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=no
9125 # This implies no fast_install, which is unacceptable.
9126 # Some rework will be needed to allow for fast_install
9127 # before this can be enabled.
9128 hardcode_into_libs=yes
9130 # Append ld.so.conf contents to the search path
9131 if test -f /etc/ld.so.conf; then
9132 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' ' '`
9133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9136 # We used to test for /lib/ld.so.1 and disable shared libraries on
9137 # powerpc, because MkLinux only supported shared libraries with the
9138 # GNU dynamic linker. Since this was broken with cross compilers,
9139 # most powerpc-linux boxes support dynamic linking these days and
9140 # people can always --disable-shared, the test was removed, and we
9141 # assume the GNU/Linux dynamic linker is in use.
9142 dynamic_linker='GNU/Linux ld.so'
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=no
9153 hardcode_into_libs=yes
9154 dynamic_linker='GNU ld.so'
9161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164 dynamic_linker='NetBSD (a.out) ld.so'
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 dynamic_linker='NetBSD ld.elf_so'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 hardcode_into_libs=yes
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=yes
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9189 shlibpath_overrides_runpath=yes
9194 sys_lib_dlsearch_path_spec="/usr/lib"
9196 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9198 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9199 *) need_version=no ;;
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9206 openbsd2.[89] | openbsd2.[89].*)
9207 shlibpath_overrides_runpath=no
9210 shlibpath_overrides_runpath=yes
9214 shlibpath_overrides_runpath=yes
9219 libname_spec='$name'
9222 library_names_spec='$libname${shared_ext} $libname.a'
9223 dynamic_linker='OS/2 ld.exe'
9224 shlibpath_var=LIBPATH
9227 osf3* | osf4* | osf5*)
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9235 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 shlibpath_var=LD_LIBRARY_PATH
9245 shlibpath_overrides_runpath=yes
9246 hardcode_into_libs=yes
9247 # ldd complains unless libraries are executable
9248 postinstall_cmds='chmod +x $lib'
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=yes
9257 if test "$with_gnu_ld" = yes; then
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 case $host_vendor in
9270 shlibpath_overrides_runpath=no
9272 export_dynamic_flag_spec='${wl}-Blargedynsym'
9273 runpath_var=LD_RUN_PATH
9281 shlibpath_overrides_runpath=no
9282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9288 if test -d /usr/nec ;then
9290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9291 soname_spec='$libname${shared_ext}.$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9297 version_type=freebsd-elf
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 hardcode_into_libs=yes
9304 if test "$with_gnu_ld" = yes; then
9305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9306 shlibpath_overrides_runpath=no
9308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9309 shlibpath_overrides_runpath=yes
9312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9316 sys_lib_dlsearch_path_spec='/usr/lib'
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 shlibpath_var=LD_LIBRARY_PATH
9330 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9331 echo "${ECHO_T}$dynamic_linker" >&6; }
9332 test "$dynamic_linker" = no && can_build_shared=no
9334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9335 if test "$GCC" = yes; then
9336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9340 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9341 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9342 if test "${libltdl_cv_shlibext+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 eval libltdl_cv_shlibext=$shrext_cmds
9350 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9351 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9352 if test -n "$libltdl_cv_shlibext"; then
9354 cat >>confdefs.h <<_ACEOF
9355 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9361 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9362 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9363 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 libltdl_cv_shlibpath_var="$shlibpath_var"
9368 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9369 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9370 if test -n "$libltdl_cv_shlibpath_var"; then
9372 cat >>confdefs.h <<_ACEOF
9373 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9379 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9380 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9381 if test "${libltdl_cv_sys_search_path+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9386 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9387 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9388 if test -n "$libltdl_cv_sys_search_path"; then
9390 for dir in $libltdl_cv_sys_search_path; do
9391 if test -z "$sys_search_path"; then
9392 sys_search_path="$dir"
9394 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9398 cat >>confdefs.h <<_ACEOF
9399 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9404 { echo "$as_me:$LINENO: checking for objdir" >&5
9405 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9406 if test "${libltdl_cv_objdir+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 libltdl_cv_objdir="$objdir"
9410 if test -n "$objdir"; then
9413 rm -f .libs 2>/dev/null
9414 mkdir .libs 2>/dev/null
9415 if test -d .libs; then
9416 libltdl_cv_objdir=.libs
9418 # MS-DOS does not allow filenames that begin with a dot.
9419 libltdl_cv_objdir=_libs
9421 rmdir .libs 2>/dev/null
9425 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9426 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9428 cat >>confdefs.h <<_ACEOF
9429 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9437 # Check for command to grab the raw symbol name followed by C symbol from nm.
9438 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 # These are sane defaults that work on at least a few old systems.
9445 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9447 # Character class describing NM global symbol codes.
9448 symcode='[BCDEGRST]'
9450 # Regexp to match symbols that can be accessed directly from C.
9451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9453 # Transform an extracted symbol line into a proper C declaration
9454 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9456 # Transform an extracted symbol line into symbol name and symbol address
9457 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9459 # Define system-specific variables.
9464 cygwin* | mingw* | pw32*)
9465 symcode='[ABCDGISTW]'
9467 hpux*) # Its linker distinguishes data from code symbols
9468 if test "$host_cpu" = ia64; then
9469 symcode='[ABCDEGRST]'
9471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9472 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'"
9475 if test "$host_cpu" = ia64; then
9476 symcode='[ABCDGIRSTW]'
9477 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9478 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'"
9482 symcode='[BCDEGRST]'
9485 symcode='[BCDEGQRST]'
9496 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9504 # Handle CRLF in mingw tool chain
9508 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9512 # If we're using GNU nm, then use its standard symbol codes.
9513 case `$NM -V 2>&1` in
9514 *GNU* | *'with BFD'*)
9515 symcode='[ABCDGIRSTW]' ;;
9518 # Try without a prefix undercore, then with it.
9519 for ac_symprfx in "" "_"; do
9521 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9522 symxfrm="\\1 $ac_symprfx\\2 \\2"
9524 # Write the raw and C identifiers.
9525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9527 # Check to see that the pipe works correctly.
9531 cat > conftest.$ac_ext <<EOF
9536 void nm_test_func(){}
9540 int main(){nm_test_var='a';nm_test_func();return(0);}
9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544 (eval $ac_compile) 2>&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; then
9548 # Now try to grab the symbols.
9550 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9551 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && test -s "$nlist"; then
9555 # Try sorting and uniquifying the output.
9556 if sort "$nlist" | uniq > "$nlist"T; then
9557 mv -f "$nlist"T "$nlist"
9562 # Make sure that we snagged all the symbols we need.
9563 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9564 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9565 cat <<EOF > conftest.$ac_ext
9571 # Now generate the symbol file.
9572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9574 cat <<EOF >> conftest.$ac_ext
9575 #if defined (__STDC__) && __STDC__
9576 # define lt_ptr_t void *
9578 # define lt_ptr_t char *
9582 /* The mapping between symbol names and symbols. */
9587 lt_preloaded_symbols[] =
9590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9591 cat <<\EOF >> conftest.$ac_ext
9599 # Now try linking the two files.
9600 mv conftest.$ac_objext conftstm.$ac_objext
9601 lt_save_LIBS="$LIBS"
9602 lt_save_CFLAGS="$CFLAGS"
9603 LIBS="conftstm.$ac_objext"
9604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9612 LIBS="$lt_save_LIBS"
9613 CFLAGS="$lt_save_CFLAGS"
9615 echo "cannot find nm_test_func in $nlist" >&5
9618 echo "cannot find nm_test_var in $nlist" >&5
9621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9624 echo "$progname: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9627 rm -f conftest* conftst*
9629 # Do not use the global_symbol_pipe unless it works.
9630 if test "$pipe_works" = yes; then
9633 lt_cv_sys_global_symbol_pipe=
9639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9640 lt_cv_sys_global_symbol_to_cdecl=
9642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9643 { echo "$as_me:$LINENO: result: failed" >&5
9644 echo "${ECHO_T}failed" >&6; }
9646 { echo "$as_me:$LINENO: result: ok" >&5
9647 echo "${ECHO_T}ok" >&6; }
9651 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9652 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9653 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9657 libltdl_cv_preloaded_symbols=yes
9659 libltdl_cv_preloaded_symbols=no
9663 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9664 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9665 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_PRELOADED_SYMBOLS 1
9676 ac_cpp='$CPP $CPPFLAGS'
9677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9682 { echo "$as_me:$LINENO: checking for shl_load" >&5
9683 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9684 if test "${ac_cv_func_shl_load+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9695 #define shl_load innocuous_shl_load
9697 /* System header to define __stub macros and hopefully few prototypes,
9698 which can conflict with char shl_load (); below.
9699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9700 <limits.h> exists even on freestanding compilers. */
9703 # include <limits.h>
9705 # include <assert.h>
9710 /* Override any GCC internal prototype to avoid an error.
9711 Use char because int might match the return type of a GCC
9712 builtin and then its argument prototype would still apply. */
9717 /* The GNU C library defines this for functions which it implements
9718 to always fail with ENOSYS. Some functions are actually named
9719 something starting with __ and the normal name is an alias. */
9720 #if defined __stub_shl_load || defined __stub___shl_load
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
9741 grep -v '^ *+' conftest.er1 >conftest.err
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_cv_func_shl_load=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_cv_func_shl_load=no
9774 rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9777 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9779 if test $ac_cv_func_shl_load = yes; then
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_SHL_LOAD 1
9786 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 ac_check_lib_save_LIBS=$LIBS
9793 cat >conftest.$ac_ext <<_ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9800 /* Override any GCC internal prototype to avoid an error.
9801 Use char because int might match the return type of a GCC
9802 builtin and then its argument prototype would still apply. */
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
9824 grep -v '^ *+' conftest.er1 >conftest.err
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_try") 2>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 ac_cv_lib_dld_shl_load=yes
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9854 ac_cv_lib_dld_shl_load=no
9857 rm -f core conftest.err conftest.$ac_objext \
9858 conftest$ac_exeext conftest.$ac_ext
9859 LIBS=$ac_check_lib_save_LIBS
9861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9862 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9863 if test $ac_cv_lib_dld_shl_load = yes; then
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_SHL_LOAD 1
9869 LIBADD_DL="$LIBADD_DL -ldld"
9871 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 ac_check_lib_save_LIBS=$LIBS
9878 cat >conftest.$ac_ext <<_ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (ac_try="$ac_link"
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_link") 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9915 { (case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_try") 2>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; } &&
9924 { ac_try='test -s conftest$ac_exeext'
9925 { (case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_try") 2>&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 ac_cv_lib_dl_dlopen=yes
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 ac_cv_lib_dl_dlopen=no
9942 rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9948 if test $ac_cv_lib_dl_dlopen = yes; then
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_LIBDL 1
9954 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_LIBDL 1
10012 libltdl_cv_func_dlopen="yes"
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10017 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10018 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10019 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 ac_check_lib_save_LIBS=$LIBS
10023 LIBS="-lsvld $LIBS"
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (ac_try="$ac_link"
10048 case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_link") 2>conftest.er1
10055 grep -v '^ *+' conftest.er1 >conftest.err
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest$ac_exeext'
10071 { (case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_try") 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 ac_cv_lib_svld_dlopen=yes
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_cv_lib_svld_dlopen=no
10088 rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090 LIBS=$ac_check_lib_save_LIBS
10092 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10094 if test $ac_cv_lib_svld_dlopen = yes; then
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_LIBDL 1
10100 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10102 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 ac_check_lib_save_LIBS=$LIBS
10109 cat >conftest.$ac_ext <<_ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10126 return dld_link ();
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (ac_try="$ac_link"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_link") 2>conftest.er1
10140 grep -v '^ *+' conftest.er1 >conftest.err
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10146 { (case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_try") 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest$ac_exeext'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_lib_dld_dld_link=yes
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_cv_lib_dld_dld_link=no
10173 rm -f core conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 LIBS=$ac_check_lib_save_LIBS
10177 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10178 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10179 if test $ac_cv_lib_dld_dld_link = yes; then
10181 cat >>confdefs.h <<\_ACEOF
10185 LIBADD_DL="$LIBADD_DL -ldld"
10187 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10188 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10189 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.$ac_ext <<_ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10200 #define _dyld_func_lookup innocuous__dyld_func_lookup
10202 /* System header to define __stub macros and hopefully few prototypes,
10203 which can conflict with char _dyld_func_lookup (); below.
10204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10205 <limits.h> exists even on freestanding compilers. */
10208 # include <limits.h>
10210 # include <assert.h>
10213 #undef _dyld_func_lookup
10215 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10221 char _dyld_func_lookup ();
10222 /* The GNU C library defines this for functions which it implements
10223 to always fail with ENOSYS. Some functions are actually named
10224 something starting with __ and the normal name is an alias. */
10225 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10232 return _dyld_func_lookup ();
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (ac_try="$ac_link"
10239 case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_link") 2>conftest.er1
10246 grep -v '^ *+' conftest.er1 >conftest.err
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10252 { (case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_try") 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_cv_func__dyld_func_lookup=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ac_cv_func__dyld_func_lookup=no
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10282 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10283 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10284 if test $ac_cv_func__dyld_func_lookup = yes; then
10286 cat >>confdefs.h <<\_ACEOF
10287 #define HAVE_DYLD 1
10301 rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext conftest.$ac_ext
10313 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10315 lt_save_LIBS="$LIBS"
10316 LIBS="$LIBS $LIBADD_DL"
10318 for ac_func in dlerror
10320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 cat >conftest.$ac_ext <<_ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10334 #define $ac_func innocuous_$ac_func
10336 /* System header to define __stub macros and hopefully few prototypes,
10337 which can conflict with char $ac_func (); below.
10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339 <limits.h> exists even on freestanding compilers. */
10342 # include <limits.h>
10344 # include <assert.h>
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10356 /* The GNU C library defines this for functions which it implements
10357 to always fail with ENOSYS. Some functions are actually named
10358 something starting with __ and the normal name is an alias. */
10359 #if defined __stub_$ac_func || defined __stub___$ac_func
10366 return $ac_func ();
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_link") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1 >conftest.err
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 eval "$as_ac_var=yes"
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 eval "$as_ac_var=no"
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10416 ac_res=`eval echo '${'$as_ac_var'}'`
10417 { echo "$as_me:$LINENO: result: $ac_res" >&5
10418 echo "${ECHO_T}$ac_res" >&6; }
10419 if test `eval echo '${'$as_ac_var'}'` = yes; then
10420 cat >>confdefs.h <<_ACEOF
10421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10427 LIBS="$lt_save_LIBS"
10430 ac_cpp='$CPP $CPPFLAGS'
10431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10437 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10438 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10439 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 ac_cv_sys_symbol_underscore=no
10443 cat > conftest.$ac_ext <<EOF
10444 void nm_test_func(){}
10445 int main(){nm_test_func;return 0;}
10447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10448 (eval $ac_compile) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; then
10452 # Now try to grab the symbols.
10453 ac_nlist=conftest.nm
10454 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10455 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && test -s "$ac_nlist"; then
10459 # See whether the symbols have a leading underscore.
10460 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10461 ac_cv_sys_symbol_underscore=yes
10463 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10466 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10470 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10473 echo "configure: failed program was:" >&5
10479 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10480 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10483 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10484 if test x"$libltdl_cv_func_dlopen" = xyes ||
10485 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10486 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10487 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10488 if test "${libltdl_cv_need_uscore+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 libltdl_cv_need_uscore=unknown
10493 LIBS="$LIBS $LIBADD_DL"
10494 if test "$cross_compiling" = yes; then :
10495 libltdl_cv_need_uscore=cross
10497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10498 lt_status=$lt_dlunknown
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10500 "configure"
10501 #include "confdefs.h"
10510 # define LT_DLGLOBAL RTLD_GLOBAL
10513 # define LT_DLGLOBAL DL_GLOBAL
10515 # define LT_DLGLOBAL 0
10519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10520 find out it does not work in some platform. */
10521 #ifndef LT_DLLAZY_OR_NOW
10523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10526 # define LT_DLLAZY_OR_NOW DL_LAZY
10529 # define LT_DLLAZY_OR_NOW RTLD_NOW
10532 # define LT_DLLAZY_OR_NOW DL_NOW
10534 # define LT_DLLAZY_OR_NOW 0
10542 extern "C" void exit (int);
10545 void fnord() { int i=42;}
10548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10549 int status = $lt_dlunknown;
10553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10555 /* dlclose (self); */
10563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564 (eval $ac_link) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10568 (./conftest; exit; ) >&5 2>/dev/null
10570 case x$lt_status in
10571 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10572 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10573 x$lt_dlunknown|x*) ;;
10576 # compilation failed
10585 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10586 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10590 if test x"$libltdl_cv_need_uscore" = xyes; then
10592 cat >>confdefs.h <<\_ACEOF
10593 #define NEED_USCORE 1
10599 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10600 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10601 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 # PORTME does your system automatically load deplibs for dlopen?
10605 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10606 # For now, we just catch OSes we know something about -- in the
10607 # future, we'll try test this programmatically.
10608 libltdl_cv_sys_dlopen_deplibs=unknown
10610 aix3*|aix4.1.*|aix4.2.*)
10611 # Unknown whether this is true for these versions of AIX, but
10612 # we want this `case' here to explicitly catch those versions.
10613 libltdl_cv_sys_dlopen_deplibs=unknown
10616 libltdl_cv_sys_dlopen_deplibs=yes
10619 # Assuming the user has installed a libdl from somewhere, this is true
10620 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10621 libltdl_cv_sys_dlopen_deplibs=yes
10623 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10624 # GNU and its variants, using gnu ld.so (Glibc)
10625 libltdl_cv_sys_dlopen_deplibs=yes
10628 libltdl_cv_sys_dlopen_deplibs=yes
10631 libltdl_cv_sys_dlopen_deplibs=yes
10633 irix[12345]*|irix6.[01]*)
10634 # Catch all versions of IRIX before 6.2, and indicate that we don't
10635 # know how it worked for any of those versions.
10636 libltdl_cv_sys_dlopen_deplibs=unknown
10639 # The case above catches anything before 6.2, and it's known that
10640 # at 6.2 and later dlopen does load deplibs.
10641 libltdl_cv_sys_dlopen_deplibs=yes
10644 libltdl_cv_sys_dlopen_deplibs=yes
10647 libltdl_cv_sys_dlopen_deplibs=yes
10650 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10651 # it did *not* use an RPATH in a shared library to find objects the
10652 # library depends on, so we explicitly say `no'.
10653 libltdl_cv_sys_dlopen_deplibs=no
10655 osf5.0|osf5.0a|osf5.1)
10656 # dlopen *does* load deplibs and with the right loader patch applied
10657 # it even uses RPATH in a shared library to search for shared objects
10658 # that the library depends on, but there's no easy way to know if that
10659 # patch is installed. Since this is the case, all we can really
10660 # say is unknown -- it depends on the patch being installed. If
10661 # it is, this changes to `yes'. Without it, it would be `no'.
10662 libltdl_cv_sys_dlopen_deplibs=unknown
10665 # the two cases above should catch all versions of osf <= 5.1. Read
10666 # the comments above for what we know about them.
10667 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10668 # is used to find them so we can finally say `yes'.
10669 libltdl_cv_sys_dlopen_deplibs=yes
10672 libltdl_cv_sys_dlopen_deplibs=yes
10674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10675 libltdl_cv_sys_dlopen_deplibs=yes
10680 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10681 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10682 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10684 cat >>confdefs.h <<\_ACEOF
10685 #define LTDL_DLOPEN_DEPLIBS 1
10691 for ac_header in argz.h
10693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 ac_res=`eval echo '${'$as_ac_Header'}'`
10701 { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10704 # Is the header compilable?
10705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10707 cat >conftest.$ac_ext <<_ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10713 $ac_includes_default
10714 #include <$ac_header>
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest.$ac_objext'
10741 { (case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_try") 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 ac_header_compiler=yes
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 ac_header_compiler=no
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10760 echo "${ECHO_T}$ac_header_compiler" >&6; }
10762 # Is the header present?
10763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <$ac_header>
10773 if { (ac_try="$ac_cpp conftest.$ac_ext"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_c_preproc_warn_flag
10788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10795 if test -z "$ac_cpp_err"; then
10796 ac_header_preproc=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_header_preproc=no
10804 rm -f conftest.err conftest.$ac_ext
10805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10806 echo "${ECHO_T}$ac_header_preproc" >&6; }
10808 # So? What about this header?
10809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10815 ac_header_preproc=yes
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10831 ## ------------------------------------ ##
10832 ## Report this to http://llvm.org/bugs/ ##
10833 ## ------------------------------------ ##
10835 ) | sed "s/^/$as_me: WARNING: /" >&2
10838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 eval "$as_ac_Header=\$ac_header_preproc"
10845 ac_res=`eval echo '${'$as_ac_Header'}'`
10846 { echo "$as_me:$LINENO: result: $ac_res" >&5
10847 echo "${ECHO_T}$ac_res" >&6; }
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10860 { echo "$as_me:$LINENO: checking for error_t" >&5
10861 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10862 if test "${ac_cv_type_error_t+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10875 typedef error_t ac__type_new_;
10879 if ((ac__type_new_ *) 0)
10881 if (sizeof (ac__type_new_))
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10896 grep -v '^ *+' conftest.er1 >conftest.err
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_try") 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest.$ac_objext'
10912 { (case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_try") 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_cv_type_error_t=yes
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 ac_cv_type_error_t=no
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10932 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10933 if test $ac_cv_type_error_t = yes; then
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_ERROR_T 1
10942 cat >>confdefs.h <<\_ACEOF
10943 #define error_t int
10954 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10970 #define $ac_func innocuous_$ac_func
10972 /* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char $ac_func (); below.
10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975 <limits.h> exists even on freestanding compilers. */
10978 # include <limits.h>
10980 # include <assert.h>
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10992 /* The GNU C library defines this for functions which it implements
10993 to always fail with ENOSYS. Some functions are actually named
10994 something starting with __ and the normal name is an alias. */
10995 #if defined __stub_$ac_func || defined __stub___$ac_func
11002 return $ac_func ();
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_link") 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest$ac_exeext'
11032 { (case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_try") 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; }; then
11041 eval "$as_ac_var=yes"
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 eval "$as_ac_var=no"
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11052 ac_res=`eval echo '${'$as_ac_var'}'`
11053 { echo "$as_me:$LINENO: result: $ac_res" >&5
11054 echo "${ECHO_T}$ac_res" >&6; }
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11090 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 ac_res=`eval echo '${'$as_ac_Header'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11104 # Is the header compilable?
11105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 $ac_includes_default
11114 #include <$ac_header>
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; } &&
11140 { ac_try='test -s conftest.$ac_objext'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_header_compiler=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_header_compiler=no
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160 echo "${ECHO_T}$ac_header_compiler" >&6; }
11162 # Is the header present?
11163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 #include <$ac_header>
11173 if { (ac_try="$ac_cpp conftest.$ac_ext"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11181 grep -v '^ *+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } >/dev/null; then
11186 if test -s conftest.err; then
11187 ac_cpp_err=$ac_c_preproc_warn_flag
11188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11195 if test -z "$ac_cpp_err"; then
11196 ac_header_preproc=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_header_preproc=no
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11208 # So? What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215 ac_header_preproc=yes
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11231 ## ------------------------------------ ##
11232 ## Report this to http://llvm.org/bugs/ ##
11233 ## ------------------------------------ ##
11235 ) | sed "s/^/$as_me: WARNING: /" >&2
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 eval "$as_ac_Header=\$ac_header_preproc"
11245 ac_res=`eval echo '${'$as_ac_Header'}'`
11246 { echo "$as_me:$LINENO: result: $ac_res" >&5
11247 echo "${ECHO_T}$ac_res" >&6; }
11250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11251 cat >>confdefs.h <<_ACEOF
11252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11263 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273 { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11276 # Is the header compilable?
11277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 $ac_includes_default
11286 #include <$ac_header>
11288 rm -f conftest.$ac_objext
11289 if { (ac_try="$ac_compile"
11290 case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_compile") 2>conftest.er1
11297 grep -v '^ *+' conftest.er1 >conftest.err
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_try") 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_try") 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_header_compiler=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_header_compiler=no
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332 echo "${ECHO_T}$ac_header_compiler" >&6; }
11334 # Is the header present?
11335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 #include <$ac_header>
11345 if { (ac_try="$ac_cpp conftest.$ac_ext"
11346 case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1 >conftest.err
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } >/dev/null; then
11358 if test -s conftest.err; then
11359 ac_cpp_err=$ac_c_preproc_warn_flag
11360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11367 if test -z "$ac_cpp_err"; then
11368 ac_header_preproc=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_header_preproc=no
11376 rm -f conftest.err conftest.$ac_ext
11377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6; }
11380 # So? What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11403 ## ------------------------------------ ##
11404 ## Report this to http://llvm.org/bugs/ ##
11405 ## ------------------------------------ ##
11407 ) | sed "s/^/$as_me: WARNING: /" >&2
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 eval "$as_ac_Header=\$ac_header_preproc"
11417 ac_res=`eval echo '${'$as_ac_Header'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h <<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433 for ac_header in string.h strings.h
11435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 ac_res=`eval echo '${'$as_ac_Header'}'`
11443 { echo "$as_me:$LINENO: result: $ac_res" >&5
11444 echo "${ECHO_T}$ac_res" >&6; }
11446 # Is the header compilable?
11447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 $ac_includes_default
11456 #include <$ac_header>
11458 rm -f conftest.$ac_objext
11459 if { (ac_try="$ac_compile"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_compile") 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473 { (case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_try") 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try='test -s conftest.$ac_objext'
11483 { (case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_try") 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_header_compiler=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_header_compiler=no
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 echo "${ECHO_T}$ac_header_compiler" >&6; }
11504 # Is the header present?
11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <$ac_header>
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev/null; then
11528 if test -s conftest.err; then
11529 ac_cpp_err=$ac_c_preproc_warn_flag
11530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11537 if test -z "$ac_cpp_err"; then
11538 ac_header_preproc=yes
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_header_preproc=no
11546 rm -f conftest.err conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548 echo "${ECHO_T}$ac_header_preproc" >&6; }
11550 # So? What about this header?
11551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11557 ac_header_preproc=yes
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11573 ## ------------------------------------ ##
11574 ## Report this to http://llvm.org/bugs/ ##
11575 ## ------------------------------------ ##
11577 ) | sed "s/^/$as_me: WARNING: /" >&2
11580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 eval "$as_ac_Header=\$ac_header_preproc"
11587 ac_res=`eval echo '${'$as_ac_Header'}'`
11588 { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11593 cat >>confdefs.h <<_ACEOF
11594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11604 for ac_func in strchr index
11606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11620 #define $ac_func innocuous_$ac_func
11622 /* System header to define __stub macros and hopefully few prototypes,
11623 which can conflict with char $ac_func (); below.
11624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625 <limits.h> exists even on freestanding compilers. */
11628 # include <limits.h>
11630 # include <assert.h>
11635 /* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11642 /* The GNU C library defines this for functions which it implements
11643 to always fail with ENOSYS. Some functions are actually named
11644 something starting with __ and the normal name is an alias. */
11645 #if defined __stub_$ac_func || defined __stub___$ac_func
11652 return $ac_func ();
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672 { (case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_try") 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_try") 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 eval "$as_ac_var=yes"
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 eval "$as_ac_var=no"
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11702 ac_res=`eval echo '${'$as_ac_var'}'`
11703 { echo "$as_me:$LINENO: result: $ac_res" >&5
11704 echo "${ECHO_T}$ac_res" >&6; }
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706 cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11715 for ac_func in strrchr rindex
11717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 cat >conftest.$ac_ext <<_ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11731 #define $ac_func innocuous_$ac_func
11733 /* System header to define __stub macros and hopefully few prototypes,
11734 which can conflict with char $ac_func (); below.
11735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736 <limits.h> exists even on freestanding compilers. */
11739 # include <limits.h>
11741 # include <assert.h>
11746 /* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11753 /* The GNU C library defines this for functions which it implements
11754 to always fail with ENOSYS. Some functions are actually named
11755 something starting with __ and the normal name is an alias. */
11756 #if defined __stub_$ac_func || defined __stub___$ac_func
11763 return $ac_func ();
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (ac_try="$ac_link"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_link") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest$ac_exeext'
11793 { (case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_try") 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 eval "$as_ac_var=yes"
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 eval "$as_ac_var=no"
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11813 ac_res=`eval echo '${'$as_ac_var'}'`
11814 { echo "$as_me:$LINENO: result: $ac_res" >&5
11815 echo "${ECHO_T}$ac_res" >&6; }
11816 if test `eval echo '${'$as_ac_var'}'` = yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11826 for ac_func in memcpy bcopy
11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 cat >conftest.$ac_ext <<_ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11842 #define $ac_func innocuous_$ac_func
11844 /* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char $ac_func (); below.
11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847 <limits.h> exists even on freestanding compilers. */
11850 # include <limits.h>
11852 # include <assert.h>
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11864 /* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867 #if defined __stub_$ac_func || defined __stub___$ac_func
11874 return $ac_func ();
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_try") 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 eval "$as_ac_var=yes"
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 eval "$as_ac_var=no"
11921 rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11924 ac_res=`eval echo '${'$as_ac_var'}'`
11925 { echo "$as_me:$LINENO: result: $ac_res" >&5
11926 echo "${ECHO_T}$ac_res" >&6; }
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11937 for ac_func in memmove strcmp
11939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953 #define $ac_func innocuous_$ac_func
11955 /* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11961 # include <limits.h>
11963 # include <assert.h>
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined __stub_$ac_func || defined __stub___$ac_func
11985 return $ac_func ();
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_link") 2>conftest.er1
11999 grep -v '^ *+' conftest.er1 >conftest.err
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005 { (case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_try") 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_try") 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 eval "$as_ac_var=yes"
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12029 eval "$as_ac_var=no"
12032 rm -f core conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12035 ac_res=`eval echo '${'$as_ac_var'}'`
12036 { echo "$as_me:$LINENO: result: $ac_res" >&5
12037 echo "${ECHO_T}$ac_res" >&6; }
12038 if test `eval echo '${'$as_ac_var'}'` = yes; then
12039 cat >>confdefs.h <<_ACEOF
12040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 for ac_func in closedir opendir readdir
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12065 #define $ac_func innocuous_$ac_func
12067 /* System header to define __stub macros and hopefully few prototypes,
12068 which can conflict with char $ac_func (); below.
12069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12070 <limits.h> exists even on freestanding compilers. */
12073 # include <limits.h>
12075 # include <assert.h>
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12087 /* The GNU C library defines this for functions which it implements
12088 to always fail with ENOSYS. Some functions are actually named
12089 something starting with __ and the normal name is an alias. */
12090 #if defined __stub_$ac_func || defined __stub___$ac_func
12097 return $ac_func ();
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (ac_try="$ac_link"
12104 case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_link") 2>conftest.er1
12111 grep -v '^ *+' conftest.er1 >conftest.err
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12117 { (case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest$ac_exeext'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 eval "$as_ac_var=yes"
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 eval "$as_ac_var=no"
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12147 ac_res=`eval echo '${'$as_ac_var'}'`
12148 { echo "$as_me:$LINENO: result: $ac_res" >&5
12149 echo "${ECHO_T}$ac_res" >&6; }
12150 if test `eval echo '${'$as_ac_var'}'` = yes; then
12151 cat >>confdefs.h <<_ACEOF
12152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12160 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12161 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12174 if test "$GCC" != "yes" && test "$ICC" != "yes"
12176 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12177 echo "$as_me: error: gcc|icc required but not found" >&2;}
12178 { (exit 1); exit 1; }; }
12181 if test "$GXX" != "yes" && test "$IXX" != "yes"
12183 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12184 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12185 { (exit 1); exit 1; }; }
12188 if test "$GCC" = "yes"
12190 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 #if !defined(__GNUC__) || __GNUC__ < 3
12199 #error Unsupported GCC version
12204 rm -f conftest.$ac_objext
12205 if { (ac_try="$ac_compile"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_compile") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest.$ac_objext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12244 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12245 { (exit 1); exit 1; }; }
12248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251 if test -z "$llvm_cv_gnu_make_command"
12253 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12254 echo "$as_me: error: GNU Make required but not found" >&2;}
12255 { (exit 1); exit 1; }; }
12258 { echo "$as_me:$LINENO: result: ok" >&5
12259 echo "${ECHO_T}ok" >&6; }
12261 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12262 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12263 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12265 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12267 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12271 NO_MAYBE_UNINITIALIZED=
12272 if test "$GXX" = "yes"
12274 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12276 if test -z "$NO_MAYBE_UNINITIALIZED"
12278 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12282 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12283 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12286 # Check whether --with-python was given.
12287 if test "${with_python+set}" = set; then
12288 withval=$with_python; PYTHON="$withval"
12292 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12293 { echo "$as_me:$LINENO: checking for python" >&5
12294 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12295 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12296 echo "${ECHO_T}user defined: $with_python" >&6; }
12298 if test -n "$PYTHON" ; then
12299 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12300 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12303 # Extract the first word of "python python2 python26", so it can be a program name with args.
12304 set dummy python python2 python26; ac_word=$2
12305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12307 if test "${ac_cv_path_PYTHON+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12322 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12331 echo "${ECHO_T}not found" >&6; }
12332 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12333 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12334 { (exit 1); exit 1; }; }"
12338 PYTHON=$ac_cv_path_PYTHON
12339 if test -n "$PYTHON"; then
12340 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12341 echo "${ECHO_T}$PYTHON" >&6; }
12343 { echo "$as_me:$LINENO: result: no" >&5
12344 echo "${ECHO_T}no" >&6; }
12350 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12351 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12352 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12353 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12354 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12355 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12356 if test "$ac_python_version_major" -eq "2" \
12357 && test "$ac_python_version_minor" -ge "5" ; then
12358 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12359 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12361 { echo "$as_me:$LINENO: result: not found" >&5
12362 echo "${ECHO_T}not found" >&6; }
12363 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12364 See \`config.log' for more details." >&5
12365 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12366 See \`config.log' for more details." >&2;}
12367 { (exit 1); exit 1; }; }
12372 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12373 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12374 if test "${ac_cv_lib_m_sin+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 ac_check_lib_save_LIBS=$LIBS
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12386 /* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12401 rm -f conftest.$ac_objext conftest$ac_exeext
12402 if { (ac_try="$ac_link"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_link") 2>conftest.er1
12410 grep -v '^ *+' conftest.er1 >conftest.err
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12416 { (case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_try") 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest$ac_exeext'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_cv_lib_m_sin=yes
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12447 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12448 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12449 if test $ac_cv_lib_m_sin = yes; then
12450 cat >>confdefs.h <<_ACEOF
12451 #define HAVE_LIBM 1
12458 if test "$llvm_cv_os_type" = "MingW" ; then
12460 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12461 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12462 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-limagehlp $LIBS"
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (ac_try="$ac_link"
12485 case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_link") 2>conftest.er1
12492 grep -v '^ *+' conftest.er1 >conftest.err
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest$ac_exeext'
12508 { (case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_try") 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 ac_cv_lib_imagehlp_main=yes
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 ac_cv_lib_imagehlp_main=no
12525 rm -f core conftest.err conftest.$ac_objext \
12526 conftest$ac_exeext conftest.$ac_ext
12527 LIBS=$ac_check_lib_save_LIBS
12529 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12530 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12531 if test $ac_cv_lib_imagehlp_main = yes; then
12532 cat >>confdefs.h <<_ACEOF
12533 #define HAVE_LIBIMAGEHLP 1
12536 LIBS="-limagehlp $LIBS"
12541 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12542 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12543 if test "${ac_cv_lib_psapi_main+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 ac_check_lib_save_LIBS=$LIBS
12547 LIBS="-lpsapi $LIBS"
12548 cat >conftest.$ac_ext <<_ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_link") 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12579 { (case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_try") 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; } &&
12588 { ac_try='test -s conftest$ac_exeext'
12589 { (case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_try") 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
12598 ac_cv_lib_psapi_main=yes
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12603 ac_cv_lib_psapi_main=no
12606 rm -f core conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12608 LIBS=$ac_check_lib_save_LIBS
12610 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12611 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12612 if test $ac_cv_lib_psapi_main = yes; then
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_LIBPSAPI 1
12617 LIBS="-lpsapi $LIBS"
12623 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12624 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12625 if test "${ac_cv_search_dlopen+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 ac_func_search_save_LIBS=$LIBS
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12651 for ac_lib in '' dl; do
12652 if test -z "$ac_lib"; then
12653 ac_res="none required"
12656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (ac_try="$ac_link"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_link") 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_try") 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_search_dlopen=$ac_res
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12700 rm -f core conftest.err conftest.$ac_objext \
12702 if test "${ac_cv_search_dlopen+set}" = set; then
12706 if test "${ac_cv_search_dlopen+set}" = set; then
12709 ac_cv_search_dlopen=no
12711 rm conftest.$ac_ext
12712 LIBS=$ac_func_search_save_LIBS
12714 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12715 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12716 ac_res=$ac_cv_search_dlopen
12717 if test "$ac_res" != no; then
12718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_DLOPEN 1
12725 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12726 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12730 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12731 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12732 if test "${ac_cv_search_clock_gettime+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 ac_func_search_save_LIBS=$LIBS
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12743 /* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12749 char clock_gettime ();
12753 return clock_gettime ();
12758 for ac_lib in '' rt; do
12759 if test -z "$ac_lib"; then
12760 ac_res="none required"
12763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (ac_try="$ac_link"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_link") 2>conftest.er1
12774 grep -v '^ *+' conftest.er1 >conftest.err
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12780 { (case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_try") 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; } &&
12789 { ac_try='test -s conftest$ac_exeext'
12790 { (case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_try") 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 ac_cv_search_clock_gettime=$ac_res
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12807 rm -f core conftest.err conftest.$ac_objext \
12809 if test "${ac_cv_search_clock_gettime+set}" = set; then
12813 if test "${ac_cv_search_clock_gettime+set}" = set; then
12816 ac_cv_search_clock_gettime=no
12818 rm conftest.$ac_ext
12819 LIBS=$ac_func_search_save_LIBS
12821 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12822 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12823 ac_res=$ac_cv_search_clock_gettime
12824 if test "$ac_res" != no; then
12825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12830 if test "$llvm_cv_enable_libffi" = "yes" ; then
12831 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12832 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12833 if test "${ac_cv_search_ffi_call+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 ac_func_search_save_LIBS=$LIBS
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12854 return ffi_call ();
12859 for ac_lib in '' ffi; do
12860 if test -z "$ac_lib"; then
12861 ac_res="none required"
12864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_link") 2>conftest.er1
12875 grep -v '^ *+' conftest.er1 >conftest.err
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_try") 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_cv_search_ffi_call=$ac_res
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12908 rm -f core conftest.err conftest.$ac_objext \
12910 if test "${ac_cv_search_ffi_call+set}" = set; then
12914 if test "${ac_cv_search_ffi_call+set}" = set; then
12917 ac_cv_search_ffi_call=no
12919 rm conftest.$ac_ext
12920 LIBS=$ac_func_search_save_LIBS
12922 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12923 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12924 ac_res=$ac_cv_search_ffi_call
12925 if test "$ac_res" != no; then
12926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_FFI_CALL 1
12933 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12934 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12935 { (exit 1); exit 1; }; }
12940 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12941 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12942 if test "${ac_cv_search_mallinfo+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 ac_func_search_save_LIBS=$LIBS
12946 cat >conftest.$ac_ext <<_ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12953 /* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12963 return mallinfo ();
12968 for ac_lib in '' malloc; do
12969 if test -z "$ac_lib"; then
12970 ac_res="none required"
12973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12975 rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (ac_try="$ac_link"
12977 case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_link") 2>conftest.er1
12984 grep -v '^ *+' conftest.er1 >conftest.err
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990 { (case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_try") 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest$ac_exeext'
13000 { (case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_try") 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_search_mallinfo=$ac_res
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13017 rm -f core conftest.err conftest.$ac_objext \
13019 if test "${ac_cv_search_mallinfo+set}" = set; then
13023 if test "${ac_cv_search_mallinfo+set}" = set; then
13026 ac_cv_search_mallinfo=no
13028 rm conftest.$ac_ext
13029 LIBS=$ac_func_search_save_LIBS
13031 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13032 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13033 ac_res=$ac_cv_search_mallinfo
13034 if test "$ac_res" != no; then
13035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13037 cat >>confdefs.h <<\_ACEOF
13038 #define HAVE_MALLINFO 1
13044 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13046 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13047 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13048 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 ac_check_lib_save_LIBS=$LIBS
13052 LIBS="-lpthread $LIBS"
13053 cat >conftest.$ac_ext <<_ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h. */
13060 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */
13066 char pthread_mutex_init ();
13070 return pthread_mutex_init ();
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (ac_try="$ac_link"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_link") 2>conftest.er1
13084 grep -v '^ *+' conftest.er1 >conftest.err
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13090 { (case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_try") 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; } &&
13099 { ac_try='test -s conftest$ac_exeext'
13100 { (case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105 (eval "$ac_try") 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_lib_pthread_pthread_mutex_init=yes
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 ac_cv_lib_pthread_pthread_mutex_init=no
13117 rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13119 LIBS=$ac_check_lib_save_LIBS
13121 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13122 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13123 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13124 cat >>confdefs.h <<_ACEOF
13125 #define HAVE_LIBPTHREAD 1
13128 LIBS="-lpthread $LIBS"
13132 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13133 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13134 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 ac_func_search_save_LIBS=$LIBS
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13145 /* Override any GCC internal prototype to avoid an error.
13146 Use char because int might match the return type of a GCC
13147 builtin and then its argument prototype would still apply. */
13151 char pthread_mutex_lock ();
13155 return pthread_mutex_lock ();
13160 for ac_lib in '' pthread; do
13161 if test -z "$ac_lib"; then
13162 ac_res="none required"
13165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_link") 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try='test -s conftest$ac_exeext'
13192 { (case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_try") 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 ac_cv_search_pthread_mutex_lock=$ac_res
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13209 rm -f core conftest.err conftest.$ac_objext \
13211 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13215 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13218 ac_cv_search_pthread_mutex_lock=no
13220 rm conftest.$ac_ext
13221 LIBS=$ac_func_search_save_LIBS
13223 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13224 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13225 ac_res=$ac_cv_search_pthread_mutex_lock
13226 if test "$ac_res" != no; then
13227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13229 cat >>confdefs.h <<\_ACEOF
13230 #define HAVE_PTHREAD_MUTEX_LOCK 1
13235 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13236 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13237 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 ac_func_search_save_LIBS=$LIBS
13241 cat >conftest.$ac_ext <<_ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13248 /* Override any GCC internal prototype to avoid an error.
13249 Use char because int might match the return type of a GCC
13250 builtin and then its argument prototype would still apply. */
13254 char pthread_rwlock_init ();
13258 return pthread_rwlock_init ();
13263 for ac_lib in '' pthread; do
13264 if test -z "$ac_lib"; then
13265 ac_res="none required"
13268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13270 rm -f conftest.$ac_objext conftest$ac_exeext
13271 if { (ac_try="$ac_link"
13272 case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_link") 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13285 { (case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_try") 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest$ac_exeext'
13295 { (case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_try") 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 ac_cv_search_pthread_rwlock_init=$ac_res
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13312 rm -f core conftest.err conftest.$ac_objext \
13314 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13318 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13321 ac_cv_search_pthread_rwlock_init=no
13323 rm conftest.$ac_ext
13324 LIBS=$ac_func_search_save_LIBS
13326 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13327 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13328 ac_res=$ac_cv_search_pthread_rwlock_init
13329 if test "$ac_res" != no; then
13330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13332 cat >>confdefs.h <<\_ACEOF
13333 #define HAVE_PTHREAD_RWLOCK_INIT 1
13338 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13339 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13340 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 ac_func_search_save_LIBS=$LIBS
13344 cat >conftest.$ac_ext <<_ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13357 char pthread_getspecific ();
13361 return pthread_getspecific ();
13366 for ac_lib in '' pthread; do
13367 if test -z "$ac_lib"; then
13368 ac_res="none required"
13371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13373 rm -f conftest.$ac_objext conftest$ac_exeext
13374 if { (ac_try="$ac_link"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>conftest.er1
13382 grep -v '^ *+' conftest.er1 >conftest.err
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_search_pthread_getspecific=$ac_res
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13415 rm -f core conftest.err conftest.$ac_objext \
13417 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13421 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13424 ac_cv_search_pthread_getspecific=no
13426 rm conftest.$ac_ext
13427 LIBS=$ac_func_search_save_LIBS
13429 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13430 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13431 ac_res=$ac_cv_search_pthread_getspecific
13432 if test "$ac_res" != no; then
13433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13435 cat >>confdefs.h <<\_ACEOF
13436 #define HAVE_PTHREAD_GETSPECIFIC 1
13444 # Check whether --with-udis86 was given.
13445 if test "${with_udis86+set}" = set; then
13446 withval=$with_udis86;
13451 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13454 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13455 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13456 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 ac_check_lib_save_LIBS=$LIBS
13460 LIBS="-ludis86 $LIBS"
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13468 /* Override any GCC internal prototype to avoid an error.
13469 Use char because int might match the return type of a GCC
13470 builtin and then its argument prototype would still apply. */
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (ac_try="$ac_link"
13485 case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_link") 2>conftest.er1
13492 grep -v '^ *+' conftest.er1 >conftest.err
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
13497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13498 { (case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_try") 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest$ac_exeext'
13508 { (case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_try") 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_lib_udis86_ud_init=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_cv_lib_udis86_ud_init=no
13525 rm -f core conftest.err conftest.$ac_objext \
13526 conftest$ac_exeext conftest.$ac_ext
13527 LIBS=$ac_check_lib_save_LIBS
13529 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13530 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13531 if test $ac_cv_lib_udis86_ud_init = yes; then
13532 cat >>confdefs.h <<_ACEOF
13533 #define HAVE_LIBUDIS86 1
13536 LIBS="-ludis86 $LIBS"
13540 echo "Error! You need to have libudis86 around."
13552 cat >>confdefs.h <<_ACEOF
13553 #define USE_UDIS86 $USE_UDIS86
13558 # Check whether --with-oprofile was given.
13559 if test "${with_oprofile+set}" = set; then
13560 withval=$with_oprofile;
13564 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13565 no) llvm_cv_oppath=
13568 *) llvm_cv_oppath="${withval}/lib/oprofile"
13569 CPPFLAGS="-I${withval}/include";;
13571 case $llvm_cv_os_type in
13573 if test -n "$llvm_cv_oppath" ; then
13574 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13575 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13576 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13577 if test "${ac_cv_search_bfd_init+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 ac_func_search_save_LIBS=$LIBS
13581 cat >conftest.$ac_ext <<_ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13598 return bfd_init ();
13603 for ac_lib in '' bfd; do
13604 if test -z "$ac_lib"; then
13605 ac_res="none required"
13608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (ac_try="$ac_link"
13612 case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_link") 2>conftest.er1
13619 grep -v '^ *+' conftest.er1 >conftest.err
13621 cat conftest.err >&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
13624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13625 { (case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_try") 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest$ac_exeext'
13635 { (case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_try") 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 ac_cv_search_bfd_init=$ac_res
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13652 rm -f core conftest.err conftest.$ac_objext \
13654 if test "${ac_cv_search_bfd_init+set}" = set; then
13658 if test "${ac_cv_search_bfd_init+set}" = set; then
13661 ac_cv_search_bfd_init=no
13663 rm conftest.$ac_ext
13664 LIBS=$ac_func_search_save_LIBS
13666 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13667 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13668 ac_res=$ac_cv_search_bfd_init
13669 if test "$ac_res" != no; then
13670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13674 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13675 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13676 if test "${ac_cv_search_op_open_agent+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 ac_func_search_save_LIBS=$LIBS
13680 cat >conftest.$ac_ext <<_ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13687 /* Override any GCC internal prototype to avoid an error.
13688 Use char because int might match the return type of a GCC
13689 builtin and then its argument prototype would still apply. */
13693 char op_open_agent ();
13697 return op_open_agent ();
13702 for ac_lib in '' opagent; do
13703 if test -z "$ac_lib"; then
13704 ac_res="none required"
13707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13709 rm -f conftest.$ac_objext conftest$ac_exeext
13710 if { (ac_try="$ac_link"
13711 case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_link") 2>conftest.er1
13718 grep -v '^ *+' conftest.er1 >conftest.err
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724 { (case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_try") 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest$ac_exeext'
13734 { (case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_try") 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_cv_search_op_open_agent=$ac_res
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13751 rm -f core conftest.err conftest.$ac_objext \
13753 if test "${ac_cv_search_op_open_agent+set}" = set; then
13757 if test "${ac_cv_search_op_open_agent+set}" = set; then
13760 ac_cv_search_op_open_agent=no
13762 rm conftest.$ac_ext
13763 LIBS=$ac_func_search_save_LIBS
13765 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13766 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13767 ac_res=$ac_cv_search_op_open_agent
13768 if test "$ac_res" != no; then
13769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13773 echo "Error! You need to have libopagent around."
13778 if test "${ac_cv_header_opagent_h+set}" = set; then
13779 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13780 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13781 if test "${ac_cv_header_opagent_h+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13785 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13787 # Is the header compilable?
13788 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13789 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13790 cat >conftest.$ac_ext <<_ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 $ac_includes_default
13797 #include <opagent.h>
13799 rm -f conftest.$ac_objext
13800 if { (ac_try="$ac_compile"
13801 case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_compile") 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13814 { (case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; } &&
13823 { ac_try='test -s conftest.$ac_objext'
13824 { (case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_try") 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_header_compiler=yes
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_header_compiler=no
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13843 echo "${ECHO_T}$ac_header_compiler" >&6; }
13845 # Is the header present?
13846 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13847 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 #include <opagent.h>
13856 if { (ac_try="$ac_cpp conftest.$ac_ext"
13857 case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13864 grep -v '^ *+' conftest.er1 >conftest.err
13866 cat conftest.err >&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } >/dev/null; then
13869 if test -s conftest.err; then
13870 ac_cpp_err=$ac_c_preproc_warn_flag
13871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13878 if test -z "$ac_cpp_err"; then
13879 ac_header_preproc=yes
13881 echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13884 ac_header_preproc=no
13887 rm -f conftest.err conftest.$ac_ext
13888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13889 echo "${ECHO_T}$ac_header_preproc" >&6; }
13891 # So? What about this header?
13892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13894 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13895 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13897 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13898 ac_header_preproc=yes
13901 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13902 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13903 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13904 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13905 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13906 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13907 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13908 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13910 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13912 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13914 ## ------------------------------------ ##
13915 ## Report this to http://llvm.org/bugs/ ##
13916 ## ------------------------------------ ##
13918 ) | sed "s/^/$as_me: WARNING: /" >&2
13921 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13922 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13923 if test "${ac_cv_header_opagent_h+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 ac_cv_header_opagent_h=$ac_header_preproc
13928 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13929 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13932 if test $ac_cv_header_opagent_h = yes; then
13936 echo "Error! You need to have opagent.h around."
13944 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13945 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13946 { (exit 1); exit 1; }; } ;;
13957 cat >>confdefs.h <<_ACEOF
13958 #define LLVM_USE_OPROFILE $USE_OPROFILE
13963 # Check whether --with-intel-jitevents was given.
13964 if test "${with_intel_jitevents+set}" = set; then
13965 withval=$with_intel_jitevents;
13967 yes) USE_INTEL_JITEVENTS=1
13969 no) USE_INTEL_JITEVENTS=0
13971 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13972 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13973 { (exit 1); exit 1; }; };;
13976 case $llvm_cv_os_type in
13977 Linux|Win32|Cygwin|MingW) ;;
13978 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13979 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13980 { (exit 1); exit 1; }; };;
13983 case "$llvm_cv_target_arch" in
13985 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13986 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13987 { (exit 1); exit 1; }; };;
13992 USE_INTEL_JITEVENTS=0
13998 cat >>confdefs.h <<_ACEOF
13999 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14003 for ac_prog in xml2-config
14005 # Extract the first word of "$ac_prog", so it can be a program name with args.
14006 set dummy $ac_prog; ac_word=$2
14007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14009 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 if test -n "$XML2CONFIG"; then
14013 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14022 ac_cv_prog_XML2CONFIG="$ac_prog"
14023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14032 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14033 if test -n "$XML2CONFIG"; then
14034 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14035 echo "${ECHO_T}$XML2CONFIG" >&6; }
14037 { echo "$as_me:$LINENO: result: no" >&5
14038 echo "${ECHO_T}no" >&6; }
14042 test -n "$XML2CONFIG" && break
14046 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14047 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14048 if test "x$XML2CONFIG" = "x"; then
14049 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14050 echo "${ECHO_T}xml2-config not found" >&6; }
14052 LIBXML2_INC=`$XML2CONFIG --cflags`
14053 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14054 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14055 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14056 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14057 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-lxml2 $LIBS"
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14069 /* Override any GCC internal prototype to avoid an error.
14070 Use char because int might match the return type of a GCC
14071 builtin and then its argument prototype would still apply. */
14075 char xmlReadFile ();
14079 return xmlReadFile ();
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_link") 2>conftest.er1
14093 grep -v '^ *+' conftest.er1 >conftest.err
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14099 { (case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_try") 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest$ac_exeext'
14109 { (case "(($ac_try" in
14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111 *) ac_try_echo=$ac_try;;
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_try") 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; }; then
14118 ac_cv_lib_xml2_xmlReadFile=yes
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ac_cv_lib_xml2_xmlReadFile=no
14126 rm -f core conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14130 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14131 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14132 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14134 cat >>confdefs.h <<\_ACEOF
14135 #define CLANG_HAVE_LIBXML 1
14138 LIBXML2_LIBS="-lxml2"
14151 ac_header_dirent=no
14152 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14153 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14154 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14155 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 #include <sys/types.h>
14177 rm -f conftest.$ac_objext
14178 if { (ac_try="$ac_compile"
14179 case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184 (eval "$ac_compile") 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14192 { (case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_try") 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try='test -s conftest.$ac_objext'
14202 { (case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_try") 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14211 eval "$as_ac_Header=yes"
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 eval "$as_ac_Header=no"
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 ac_res=`eval echo '${'$as_ac_Header'}'`
14222 { echo "$as_me:$LINENO: result: $ac_res" >&5
14223 echo "${ECHO_T}$ac_res" >&6; }
14224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14225 cat >>confdefs.h <<_ACEOF
14226 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14229 ac_header_dirent=$ac_hdr; break
14233 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14234 if test $ac_header_dirent = dirent.h; then
14235 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14236 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14237 if test "${ac_cv_search_opendir+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 ac_func_search_save_LIBS=$LIBS
14241 cat >conftest.$ac_ext <<_ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14248 /* Override any GCC internal prototype to avoid an error.
14249 Use char because int might match the return type of a GCC
14250 builtin and then its argument prototype would still apply. */
14263 for ac_lib in '' dir; do
14264 if test -z "$ac_lib"; then
14265 ac_res="none required"
14268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14270 rm -f conftest.$ac_objext conftest$ac_exeext
14271 if { (ac_try="$ac_link"
14272 case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_link") 2>conftest.er1
14279 grep -v '^ *+' conftest.er1 >conftest.err
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14285 { (case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_try") 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest$ac_exeext'
14295 { (case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_try") 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 ac_cv_search_opendir=$ac_res
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14312 rm -f core conftest.err conftest.$ac_objext \
14314 if test "${ac_cv_search_opendir+set}" = set; then
14318 if test "${ac_cv_search_opendir+set}" = set; then
14321 ac_cv_search_opendir=no
14323 rm conftest.$ac_ext
14324 LIBS=$ac_func_search_save_LIBS
14326 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14327 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14328 ac_res=$ac_cv_search_opendir
14329 if test "$ac_res" != no; then
14330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14335 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14336 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14337 if test "${ac_cv_search_opendir+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 ac_func_search_save_LIBS=$LIBS
14341 cat >conftest.$ac_ext <<_ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14363 for ac_lib in '' x; do
14364 if test -z "$ac_lib"; then
14365 ac_res="none required"
14368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_link") 2>conftest.er1
14379 grep -v '^ *+' conftest.er1 >conftest.err
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385 { (case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_try") 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest$ac_exeext'
14395 { (case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_try") 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_cv_search_opendir=$ac_res
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14412 rm -f core conftest.err conftest.$ac_objext \
14414 if test "${ac_cv_search_opendir+set}" = set; then
14418 if test "${ac_cv_search_opendir+set}" = set; then
14421 ac_cv_search_opendir=no
14423 rm conftest.$ac_ext
14424 LIBS=$ac_func_search_save_LIBS
14426 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14427 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14428 ac_res=$ac_cv_search_opendir
14429 if test "$ac_res" != no; then
14430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14436 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14437 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14438 if test "${ac_cv_header_mmap_anon+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 ac_cpp='$CPP $CPPFLAGS'
14443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14447 cat >conftest.$ac_ext <<_ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 #include <sys/mman.h>
14454 #include <unistd.h>
14459 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14464 rm -f conftest.$ac_objext
14465 if { (ac_try="$ac_compile"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_compile") 2>conftest.er1
14473 grep -v '^ *+' conftest.er1 >conftest.err
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14479 { (case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_try") 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; } &&
14488 { ac_try='test -s conftest.$ac_objext'
14489 { (case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_try") 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_header_mmap_anon=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_cv_header_mmap_anon=no
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 ac_cpp='$CPP $CPPFLAGS'
14509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14515 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14516 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14517 if test "$ac_cv_header_mmap_anon" = yes; then
14519 cat >>confdefs.h <<\_ACEOF
14520 #define HAVE_MMAP_ANONYMOUS 1
14525 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14526 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14527 if test "${ac_cv_header_stat_broken+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 cat >conftest.$ac_ext <<_ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14536 #include <sys/types.h>
14537 #include <sys/stat.h>
14539 #if defined S_ISBLK && defined S_IFDIR
14540 # if S_ISBLK (S_IFDIR)
14545 #if defined S_ISBLK && defined S_IFCHR
14546 # if S_ISBLK (S_IFCHR)
14551 #if defined S_ISLNK && defined S_IFREG
14552 # if S_ISLNK (S_IFREG)
14557 #if defined S_ISSOCK && defined S_IFREG
14558 # if S_ISSOCK (S_IFREG)
14564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14565 $EGREP "You lose" >/dev/null 2>&1; then
14566 ac_cv_header_stat_broken=yes
14568 ac_cv_header_stat_broken=no
14573 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14574 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14575 if test $ac_cv_header_stat_broken = yes; then
14577 cat >>confdefs.h <<\_ACEOF
14578 #define STAT_MACROS_BROKEN 1
14583 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14584 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14585 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 cat >conftest.$ac_ext <<_ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 #include <sys/types.h>
14595 #include <sys/wait.h>
14596 #ifndef WEXITSTATUS
14597 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14600 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14608 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_compile") 2>conftest.er1
14622 grep -v '^ *+' conftest.er1 >conftest.err
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest.$ac_objext'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_cv_header_sys_wait_h=yes
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_cv_header_sys_wait_h=no
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14658 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14659 if test $ac_cv_header_sys_wait_h = yes; then
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_SYS_WAIT_H 1
14667 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14668 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14669 if test "${ac_cv_header_time+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #include <sys/types.h>
14679 #include <sys/time.h>
14685 if ((struct tm *) 0)
14691 rm -f conftest.$ac_objext
14692 if { (ac_try="$ac_compile"
14693 case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_compile") 2>conftest.er1
14700 grep -v '^ *+' conftest.er1 >conftest.err
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; } &&
14715 { ac_try='test -s conftest.$ac_objext'
14716 { (case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_try") 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14725 ac_cv_header_time=yes
14727 echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14730 ac_cv_header_time=no
14733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14736 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14737 if test $ac_cv_header_time = yes; then
14739 cat >>confdefs.h <<\_ACEOF
14740 #define TIME_WITH_SYS_TIME 1
14752 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 ac_res=`eval echo '${'$as_ac_Header'}'`
14762 { echo "$as_me:$LINENO: result: $ac_res" >&5
14763 echo "${ECHO_T}$ac_res" >&6; }
14765 # Is the header compilable?
14766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14768 cat >conftest.$ac_ext <<_ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 $ac_includes_default
14775 #include <$ac_header>
14777 rm -f conftest.$ac_objext
14778 if { (ac_try="$ac_compile"
14779 case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_compile") 2>conftest.er1
14786 grep -v '^ *+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
14791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14792 { (case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_try") 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest.$ac_objext'
14802 { (case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_try") 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; }; then
14811 ac_header_compiler=yes
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_compiler=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 echo "${ECHO_T}$ac_header_compiler" >&6; }
14823 # Is the header present?
14824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 #include <$ac_header>
14834 if { (ac_try="$ac_cpp conftest.$ac_ext"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } >/dev/null; then
14847 if test -s conftest.err; then
14848 ac_cpp_err=$ac_c_preproc_warn_flag
14849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14856 if test -z "$ac_cpp_err"; then
14857 ac_header_preproc=yes
14859 echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14862 ac_header_preproc=no
14865 rm -f conftest.err conftest.$ac_ext
14866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14867 echo "${ECHO_T}$ac_header_preproc" >&6; }
14869 # So? What about this header?
14870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14876 ac_header_preproc=yes
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14892 ## ------------------------------------ ##
14893 ## Report this to http://llvm.org/bugs/ ##
14894 ## ------------------------------------ ##
14896 ) | sed "s/^/$as_me: WARNING: /" >&2
14899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14904 eval "$as_ac_Header=\$ac_header_preproc"
14906 ac_res=`eval echo '${'$as_ac_Header'}'`
14907 { echo "$as_me:$LINENO: result: $ac_res" >&5
14908 echo "${ECHO_T}$ac_res" >&6; }
14911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14926 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 ac_res=`eval echo '${'$as_ac_Header'}'`
14936 { echo "$as_me:$LINENO: result: $ac_res" >&5
14937 echo "${ECHO_T}$ac_res" >&6; }
14939 # Is the header compilable?
14940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14942 cat >conftest.$ac_ext <<_ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14948 $ac_includes_default
14949 #include <$ac_header>
14951 rm -f conftest.$ac_objext
14952 if { (ac_try="$ac_compile"
14953 case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_compile") 2>conftest.er1
14960 grep -v '^ *+' conftest.er1 >conftest.err
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
14965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14966 { (case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971 (eval "$ac_try") 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try='test -s conftest.$ac_objext'
14976 { (case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_try") 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_header_compiler=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_header_compiler=no
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995 echo "${ECHO_T}$ac_header_compiler" >&6; }
14997 # Is the header present?
14998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15000 cat >conftest.$ac_ext <<_ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 #include <$ac_header>
15008 if { (ac_try="$ac_cpp conftest.$ac_ext"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15016 grep -v '^ *+' conftest.er1 >conftest.err
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } >/dev/null; then
15021 if test -s conftest.err; then
15022 ac_cpp_err=$ac_c_preproc_warn_flag
15023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15030 if test -z "$ac_cpp_err"; then
15031 ac_header_preproc=yes
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_header_preproc=no
15039 rm -f conftest.err conftest.$ac_ext
15040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15041 echo "${ECHO_T}$ac_header_preproc" >&6; }
15043 # So? What about this header?
15044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15050 ac_header_preproc=yes
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15066 ## ------------------------------------ ##
15067 ## Report this to http://llvm.org/bugs/ ##
15068 ## ------------------------------------ ##
15070 ) | sed "s/^/$as_me: WARNING: /" >&2
15073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15078 eval "$as_ac_Header=\$ac_header_preproc"
15080 ac_res=`eval echo '${'$as_ac_Header'}'`
15081 { echo "$as_me:$LINENO: result: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15086 cat >>confdefs.h <<_ACEOF
15087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15096 for ac_header in utime.h windows.h
15098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 ac_res=`eval echo '${'$as_ac_Header'}'`
15106 { echo "$as_me:$LINENO: result: $ac_res" >&5
15107 echo "${ECHO_T}$ac_res" >&6; }
15109 # Is the header compilable?
15110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15112 cat >conftest.$ac_ext <<_ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15118 $ac_includes_default
15119 #include <$ac_header>
15121 rm -f conftest.$ac_objext
15122 if { (ac_try="$ac_compile"
15123 case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_compile") 2>conftest.er1
15130 grep -v '^ *+' conftest.er1 >conftest.err
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15136 { (case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_try") 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; } &&
15145 { ac_try='test -s conftest.$ac_objext'
15146 { (case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_try") 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15155 ac_header_compiler=yes
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ac_header_compiler=no
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15165 echo "${ECHO_T}$ac_header_compiler" >&6; }
15167 # Is the header present?
15168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15170 cat >conftest.$ac_ext <<_ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 #include <$ac_header>
15178 if { (ac_try="$ac_cpp conftest.$ac_ext"
15179 case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15186 grep -v '^ *+' conftest.er1 >conftest.err
15188 cat conftest.err >&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); } >/dev/null; then
15191 if test -s conftest.err; then
15192 ac_cpp_err=$ac_c_preproc_warn_flag
15193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15200 if test -z "$ac_cpp_err"; then
15201 ac_header_preproc=yes
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 ac_header_preproc=no
15209 rm -f conftest.err conftest.$ac_ext
15210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15211 echo "${ECHO_T}$ac_header_preproc" >&6; }
15213 # So? What about this header?
15214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15220 ac_header_preproc=yes
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15236 ## ------------------------------------ ##
15237 ## Report this to http://llvm.org/bugs/ ##
15238 ## ------------------------------------ ##
15240 ) | sed "s/^/$as_me: WARNING: /" >&2
15243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 eval "$as_ac_Header=\$ac_header_preproc"
15250 ac_res=`eval echo '${'$as_ac_Header'}'`
15251 { echo "$as_me:$LINENO: result: $ac_res" >&5
15252 echo "${ECHO_T}$ac_res" >&6; }
15255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15256 cat >>confdefs.h <<_ACEOF
15257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15269 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 ac_res=`eval echo '${'$as_ac_Header'}'`
15279 { echo "$as_me:$LINENO: result: $ac_res" >&5
15280 echo "${ECHO_T}$ac_res" >&6; }
15282 # Is the header compilable?
15283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15285 cat >conftest.$ac_ext <<_ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 $ac_includes_default
15292 #include <$ac_header>
15294 rm -f conftest.$ac_objext
15295 if { (ac_try="$ac_compile"
15296 case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_compile") 2>conftest.er1
15303 grep -v '^ *+' conftest.er1 >conftest.err
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15309 { (case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_try") 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest.$ac_objext'
15319 { (case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_try") 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_header_compiler=yes
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 ac_header_compiler=no
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15338 echo "${ECHO_T}$ac_header_compiler" >&6; }
15340 # Is the header present?
15341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15343 cat >conftest.$ac_ext <<_ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 #include <$ac_header>
15351 if { (ac_try="$ac_cpp conftest.$ac_ext"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15359 grep -v '^ *+' conftest.er1 >conftest.err
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } >/dev/null; then
15364 if test -s conftest.err; then
15365 ac_cpp_err=$ac_c_preproc_warn_flag
15366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15373 if test -z "$ac_cpp_err"; then
15374 ac_header_preproc=yes
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15379 ac_header_preproc=no
15382 rm -f conftest.err conftest.$ac_ext
15383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15384 echo "${ECHO_T}$ac_header_preproc" >&6; }
15386 # So? What about this header?
15387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15393 ac_header_preproc=yes
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15409 ## ------------------------------------ ##
15410 ## Report this to http://llvm.org/bugs/ ##
15411 ## ------------------------------------ ##
15413 ) | sed "s/^/$as_me: WARNING: /" >&2
15416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 eval "$as_ac_Header=\$ac_header_preproc"
15423 ac_res=`eval echo '${'$as_ac_Header'}'`
15424 { echo "$as_me:$LINENO: result: $ac_res" >&5
15425 echo "${ECHO_T}$ac_res" >&6; }
15428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15429 cat >>confdefs.h <<_ACEOF
15430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15441 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 ac_res=`eval echo '${'$as_ac_Header'}'`
15451 { echo "$as_me:$LINENO: result: $ac_res" >&5
15452 echo "${ECHO_T}$ac_res" >&6; }
15454 # Is the header compilable?
15455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15457 cat >conftest.$ac_ext <<_ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15463 $ac_includes_default
15464 #include <$ac_header>
15466 rm -f conftest.$ac_objext
15467 if { (ac_try="$ac_compile"
15468 case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_compile") 2>conftest.er1
15475 grep -v '^ *+' conftest.er1 >conftest.err
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15481 { (case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_try") 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } &&
15490 { ac_try='test -s conftest.$ac_objext'
15491 { (case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_try") 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_header_compiler=yes
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_header_compiler=no
15508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15510 echo "${ECHO_T}$ac_header_compiler" >&6; }
15512 # Is the header present?
15513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15515 cat >conftest.$ac_ext <<_ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 #include <$ac_header>
15523 if { (ac_try="$ac_cpp conftest.$ac_ext"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15531 grep -v '^ *+' conftest.er1 >conftest.err
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } >/dev/null; then
15536 if test -s conftest.err; then
15537 ac_cpp_err=$ac_c_preproc_warn_flag
15538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15545 if test -z "$ac_cpp_err"; then
15546 ac_header_preproc=yes
15548 echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15551 ac_header_preproc=no
15554 rm -f conftest.err conftest.$ac_ext
15555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15556 echo "${ECHO_T}$ac_header_preproc" >&6; }
15558 # So? What about this header?
15559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15565 ac_header_preproc=yes
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15581 ## ------------------------------------ ##
15582 ## Report this to http://llvm.org/bugs/ ##
15583 ## ------------------------------------ ##
15585 ) | sed "s/^/$as_me: WARNING: /" >&2
15588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 eval "$as_ac_Header=\$ac_header_preproc"
15595 ac_res=`eval echo '${'$as_ac_Header'}'`
15596 { echo "$as_me:$LINENO: result: $ac_res" >&5
15597 echo "${ECHO_T}$ac_res" >&6; }
15600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15610 for ac_header in valgrind/valgrind.h
15612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 ac_res=`eval echo '${'$as_ac_Header'}'`
15620 { echo "$as_me:$LINENO: result: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15623 # Is the header compilable?
15624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 $ac_includes_default
15633 #include <$ac_header>
15635 rm -f conftest.$ac_objext
15636 if { (ac_try="$ac_compile"
15637 case "(($ac_try" in
15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642 (eval "$ac_compile") 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15650 { (case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_try") 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; } &&
15659 { ac_try='test -s conftest.$ac_objext'
15660 { (case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_try") 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; }; then
15669 ac_header_compiler=yes
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 ac_header_compiler=no
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15679 echo "${ECHO_T}$ac_header_compiler" >&6; }
15681 # Is the header present?
15682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15684 cat >conftest.$ac_ext <<_ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15690 #include <$ac_header>
15692 if { (ac_try="$ac_cpp conftest.$ac_ext"
15693 case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15700 grep -v '^ *+' conftest.er1 >conftest.err
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } >/dev/null; then
15705 if test -s conftest.err; then
15706 ac_cpp_err=$ac_c_preproc_warn_flag
15707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15714 if test -z "$ac_cpp_err"; then
15715 ac_header_preproc=yes
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15720 ac_header_preproc=no
15723 rm -f conftest.err conftest.$ac_ext
15724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15725 echo "${ECHO_T}$ac_header_preproc" >&6; }
15727 # So? What about this header?
15728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15734 ac_header_preproc=yes
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15750 ## ------------------------------------ ##
15751 ## Report this to http://llvm.org/bugs/ ##
15752 ## ------------------------------------ ##
15754 ) | sed "s/^/$as_me: WARNING: /" >&2
15757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 eval "$as_ac_Header=\$ac_header_preproc"
15764 ac_res=`eval echo '${'$as_ac_Header'}'`
15765 { echo "$as_me:$LINENO: result: $ac_res" >&5
15766 echo "${ECHO_T}$ac_res" >&6; }
15769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15770 cat >>confdefs.h <<_ACEOF
15771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15779 for ac_header in fenv.h
15781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 ac_res=`eval echo '${'$as_ac_Header'}'`
15789 { echo "$as_me:$LINENO: result: $ac_res" >&5
15790 echo "${ECHO_T}$ac_res" >&6; }
15792 # Is the header compilable?
15793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15795 cat >conftest.$ac_ext <<_ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 $ac_includes_default
15802 #include <$ac_header>
15804 rm -f conftest.$ac_objext
15805 if { (ac_try="$ac_compile"
15806 case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_compile") 2>conftest.er1
15813 grep -v '^ *+' conftest.er1 >conftest.err
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15819 { (case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_try") 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
15829 { (case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_try") 2>&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_header_compiler=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 ac_header_compiler=no
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15848 echo "${ECHO_T}$ac_header_compiler" >&6; }
15850 # Is the header present?
15851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 #include <$ac_header>
15861 if { (ac_try="$ac_cpp conftest.$ac_ext"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } >/dev/null; then
15874 if test -s conftest.err; then
15875 ac_cpp_err=$ac_c_preproc_warn_flag
15876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15883 if test -z "$ac_cpp_err"; then
15884 ac_header_preproc=yes
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_header_preproc=no
15892 rm -f conftest.err conftest.$ac_ext
15893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15894 echo "${ECHO_T}$ac_header_preproc" >&6; }
15896 # So? What about this header?
15897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15903 ac_header_preproc=yes
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15919 ## ------------------------------------ ##
15920 ## Report this to http://llvm.org/bugs/ ##
15921 ## ------------------------------------ ##
15923 ) | sed "s/^/$as_me: WARNING: /" >&2
15926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 eval "$as_ac_Header=\$ac_header_preproc"
15933 ac_res=`eval echo '${'$as_ac_Header'}'`
15934 { echo "$as_me:$LINENO: result: $ac_res" >&5
15935 echo "${ECHO_T}$ac_res" >&6; }
15938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15939 cat >>confdefs.h <<_ACEOF
15940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15947 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
15948 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
15949 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 cat >conftest.$ac_ext <<_ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15963 #ifndef FE_ALL_EXCEPT
15964 char *p = (char *) FE_ALL_EXCEPT;
15972 rm -f conftest.$ac_objext
15973 if { (ac_try="$ac_compile"
15974 case "(($ac_try" in
15975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976 *) ac_try_echo=$ac_try;;
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979 (eval "$ac_compile") 2>conftest.er1
15981 grep -v '^ *+' conftest.er1 >conftest.err
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
15986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15987 { (case "(($ac_try" in
15988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15992 (eval "$ac_try") 2>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; } &&
15996 { ac_try='test -s conftest.$ac_objext'
15997 { (case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002 (eval "$ac_try") 2>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 ac_cv_have_decl_FE_ALL_EXCEPT=no
16014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16017 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16018 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16020 cat >>confdefs.h <<_ACEOF
16021 #define HAVE_DECL_FE_ALL_EXCEPT 1
16026 cat >>confdefs.h <<_ACEOF
16027 #define HAVE_DECL_FE_ALL_EXCEPT 0
16032 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16033 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16034 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16049 char *p = (char *) FE_INEXACT;
16057 rm -f conftest.$ac_objext
16058 if { (ac_try="$ac_compile"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16072 { (case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_try") 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
16082 { (case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_try") 2>&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; }; then
16091 ac_cv_have_decl_FE_INEXACT=yes
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ac_cv_have_decl_FE_INEXACT=no
16099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16102 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16103 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16105 cat >>confdefs.h <<_ACEOF
16106 #define HAVE_DECL_FE_INEXACT 1
16111 cat >>confdefs.h <<_ACEOF
16112 #define HAVE_DECL_FE_INEXACT 0
16119 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16121 for ac_header in pthread.h
16123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 ac_res=`eval echo '${'$as_ac_Header'}'`
16131 { echo "$as_me:$LINENO: result: $ac_res" >&5
16132 echo "${ECHO_T}$ac_res" >&6; }
16134 # Is the header compilable?
16135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16137 cat >conftest.$ac_ext <<_ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16143 $ac_includes_default
16144 #include <$ac_header>
16146 rm -f conftest.$ac_objext
16147 if { (ac_try="$ac_compile"
16148 case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_compile") 2>conftest.er1
16155 grep -v '^ *+' conftest.er1 >conftest.err
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16161 { (case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_try") 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; } &&
16170 { ac_try='test -s conftest.$ac_objext'
16171 { (case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_try") 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
16180 ac_header_compiler=yes
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_header_compiler=no
16188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16190 echo "${ECHO_T}$ac_header_compiler" >&6; }
16192 # Is the header present?
16193 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16195 cat >conftest.$ac_ext <<_ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 #include <$ac_header>
16203 if { (ac_try="$ac_cpp conftest.$ac_ext"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16211 grep -v '^ *+' conftest.er1 >conftest.err
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } >/dev/null; then
16216 if test -s conftest.err; then
16217 ac_cpp_err=$ac_c_preproc_warn_flag
16218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16225 if test -z "$ac_cpp_err"; then
16226 ac_header_preproc=yes
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ac_header_preproc=no
16234 rm -f conftest.err conftest.$ac_ext
16235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16236 echo "${ECHO_T}$ac_header_preproc" >&6; }
16238 # So? What about this header?
16239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16245 ac_header_preproc=yes
16248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16261 ## ------------------------------------ ##
16262 ## Report this to http://llvm.org/bugs/ ##
16263 ## ------------------------------------ ##
16265 ) | sed "s/^/$as_me: WARNING: /" >&2
16268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 eval "$as_ac_Header=\$ac_header_preproc"
16275 ac_res=`eval echo '${'$as_ac_Header'}'`
16276 { echo "$as_me:$LINENO: result: $ac_res" >&5
16277 echo "${ECHO_T}$ac_res" >&6; }
16280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16281 cat >>confdefs.h <<_ACEOF
16282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16298 if test "$llvm_cv_enable_libffi" = "yes" ; then
16301 for ac_header in ffi.h ffi/ffi.h
16303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 ac_res=`eval echo '${'$as_ac_Header'}'`
16311 { echo "$as_me:$LINENO: result: $ac_res" >&5
16312 echo "${ECHO_T}$ac_res" >&6; }
16314 # Is the header compilable?
16315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 $ac_includes_default
16324 #include <$ac_header>
16326 rm -f conftest.$ac_objext
16327 if { (ac_try="$ac_compile"
16328 case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_compile") 2>conftest.er1
16335 grep -v '^ *+' conftest.er1 >conftest.err
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
16340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16341 { (case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_try") 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; } &&
16350 { ac_try='test -s conftest.$ac_objext'
16351 { (case "(($ac_try" in
16352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353 *) ac_try_echo=$ac_try;;
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356 (eval "$ac_try") 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_header_compiler=yes
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16365 ac_header_compiler=no
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16370 echo "${ECHO_T}$ac_header_compiler" >&6; }
16372 # Is the header present?
16373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16375 cat >conftest.$ac_ext <<_ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 #include <$ac_header>
16383 if { (ac_try="$ac_cpp conftest.$ac_ext"
16384 case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } >/dev/null; then
16396 if test -s conftest.err; then
16397 ac_cpp_err=$ac_c_preproc_warn_flag
16398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16405 if test -z "$ac_cpp_err"; then
16406 ac_header_preproc=yes
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 ac_header_preproc=no
16414 rm -f conftest.err conftest.$ac_ext
16415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16416 echo "${ECHO_T}$ac_header_preproc" >&6; }
16418 # So? What about this header?
16419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16425 ac_header_preproc=yes
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16441 ## ------------------------------------ ##
16442 ## Report this to http://llvm.org/bugs/ ##
16443 ## ------------------------------------ ##
16445 ) | sed "s/^/$as_me: WARNING: /" >&2
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 eval "$as_ac_Header=\$ac_header_preproc"
16455 ac_res=`eval echo '${'$as_ac_Header'}'`
16456 { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16472 for ac_header in CrashReporterClient.h
16474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482 { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16485 # Is the header compilable?
16486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16488 cat >conftest.$ac_ext <<_ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 $ac_includes_default
16495 #include <$ac_header>
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_compile") 2>conftest.er1
16506 grep -v '^ *+' conftest.er1 >conftest.err
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } &&
16511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16512 { (case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_try") 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; } &&
16521 { ac_try='test -s conftest.$ac_objext'
16522 { (case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_try") 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 ac_header_compiler=yes
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16536 ac_header_compiler=no
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16541 echo "${ECHO_T}$ac_header_compiler" >&6; }
16543 # Is the header present?
16544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16546 cat >conftest.$ac_ext <<_ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 #include <$ac_header>
16554 if { (ac_try="$ac_cpp conftest.$ac_ext"
16555 case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16562 grep -v '^ *+' conftest.er1 >conftest.err
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } >/dev/null; then
16567 if test -s conftest.err; then
16568 ac_cpp_err=$ac_c_preproc_warn_flag
16569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16576 if test -z "$ac_cpp_err"; then
16577 ac_header_preproc=yes
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582 ac_header_preproc=no
16585 rm -f conftest.err conftest.$ac_ext
16586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16587 echo "${ECHO_T}$ac_header_preproc" >&6; }
16589 # So? What about this header?
16590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16596 ac_header_preproc=yes
16599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16612 ## ------------------------------------ ##
16613 ## Report this to http://llvm.org/bugs/ ##
16614 ## ------------------------------------ ##
16616 ) | sed "s/^/$as_me: WARNING: /" >&2
16619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 eval "$as_ac_Header=\$ac_header_preproc"
16626 ac_res=`eval echo '${'$as_ac_Header'}'`
16627 { echo "$as_me:$LINENO: result: $ac_res" >&5
16628 echo "${ECHO_T}$ac_res" >&6; }
16631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16632 cat >>confdefs.h <<_ACEOF
16633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16641 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16642 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16643 cat >conftest.$ac_ext <<_ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16651 extern const char *__crashreporter_info__;
16653 __crashreporter_info__ = "test";
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (ac_try="$ac_link"
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_link") 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_exeext'
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
16694 { echo "$as_me:$LINENO: result: yes" >&5
16695 echo "${ECHO_T}yes" >&6; }
16697 cat >>confdefs.h <<\_ACEOF
16698 #define HAVE_CRASHREPORTER_INFO 1
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16707 { echo "$as_me:$LINENO: result: no" >&5
16708 echo "${ECHO_T}no" >&6; }
16710 cat >>confdefs.h <<\_ACEOF
16711 #define HAVE_CRASHREPORTER_INFO 0
16717 rm -f core conftest.err conftest.$ac_objext \
16718 conftest$ac_exeext conftest.$ac_ext
16722 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16723 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16724 if test "${ac_cv_huge_val_sanity+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16729 ac_cpp='$CXXCPP $CPPFLAGS'
16730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16734 ac_save_CXXFLAGS=$CXXFLAGS
16735 CXXFLAGS="$CXXFLAGS -pedantic"
16736 if test "$cross_compiling" = yes; then
16737 ac_cv_huge_val_sanity=yes
16739 cat >conftest.$ac_ext <<_ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16749 double x = HUGE_VAL; return x != x;
16754 rm -f conftest$ac_exeext
16755 if { (ac_try="$ac_link"
16756 case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761 (eval "$ac_link") 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 ac_cv_huge_val_sanity=yes
16776 echo "$as_me: program exited with status $ac_status" >&5
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 ( exit $ac_status )
16781 ac_cv_huge_val_sanity=no
16783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16787 CXXFLAGS=$ac_save_CXXFLAGS
16789 ac_cpp='$CPP $CPPFLAGS'
16790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16796 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16797 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16798 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16801 { echo "$as_me:$LINENO: checking for pid_t" >&5
16802 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16803 if test "${ac_cv_type_pid_t+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 cat >conftest.$ac_ext <<_ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 $ac_includes_default
16813 typedef pid_t ac__type_new_;
16817 if ((ac__type_new_ *) 0)
16819 if (sizeof (ac__type_new_))
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_compile") 2>conftest.er1
16834 grep -v '^ *+' conftest.er1 >conftest.err
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16840 { (case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_try") 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest.$ac_objext'
16850 { (case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_try") 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_type_pid_t=yes
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 ac_cv_type_pid_t=no
16867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16870 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16871 if test $ac_cv_type_pid_t = yes; then
16875 cat >>confdefs.h <<_ACEOF
16881 { echo "$as_me:$LINENO: checking for size_t" >&5
16882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16883 if test "${ac_cv_type_size_t+set}" = set; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 cat >conftest.$ac_ext <<_ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 $ac_includes_default
16893 typedef size_t ac__type_new_;
16897 if ((ac__type_new_ *) 0)
16899 if (sizeof (ac__type_new_))
16905 rm -f conftest.$ac_objext
16906 if { (ac_try="$ac_compile"
16907 case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_compile") 2>conftest.er1
16914 grep -v '^ *+' conftest.er1 >conftest.err
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16920 { (case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_try") 2>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try='test -s conftest.$ac_objext'
16930 { (case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_try") 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_type_size_t=yes
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_cv_type_size_t=no
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16949 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16950 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16951 if test $ac_cv_type_size_t = yes; then
16955 cat >>confdefs.h <<_ACEOF
16956 #define size_t unsigned int
16962 cat >>confdefs.h <<_ACEOF
16963 #define RETSIGTYPE void
16966 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16967 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16968 if test "${ac_cv_struct_tm+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 cat >conftest.$ac_ext <<_ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 #include <sys/types.h>
16983 struct tm *tp; tp->tm_sec;
16988 rm -f conftest.$ac_objext
16989 if { (ac_try="$ac_compile"
16990 case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_compile") 2>conftest.er1
16997 grep -v '^ *+' conftest.er1 >conftest.err
16999 cat conftest.err >&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
17002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17003 { (case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_try") 2>&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; } &&
17012 { ac_try='test -s conftest.$ac_objext'
17013 { (case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_try") 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_struct_tm=time.h
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 ac_cv_struct_tm=sys/time.h
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17033 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17034 if test $ac_cv_struct_tm = sys/time.h; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define TM_IN_SYS_TIME 1
17042 { echo "$as_me:$LINENO: checking for int64_t" >&5
17043 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17044 if test "${ac_cv_type_int64_t+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 cat >conftest.$ac_ext <<_ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 $ac_includes_default
17054 typedef int64_t ac__type_new_;
17058 if ((ac__type_new_ *) 0)
17060 if (sizeof (ac__type_new_))
17066 rm -f conftest.$ac_objext
17067 if { (ac_try="$ac_compile"
17068 case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_compile") 2>conftest.er1
17075 grep -v '^ *+' conftest.er1 >conftest.err
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17081 { (case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_try") 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; } &&
17090 { ac_try='test -s conftest.$ac_objext'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; }; then
17100 ac_cv_type_int64_t=yes
17102 echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17105 ac_cv_type_int64_t=no
17108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17111 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17112 if test $ac_cv_type_int64_t = yes; then
17114 cat >>confdefs.h <<_ACEOF
17115 #define HAVE_INT64_T 1
17120 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17121 echo "$as_me: error: Type int64_t required but not found" >&2;}
17122 { (exit 1); exit 1; }; }
17125 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17126 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17127 if test "${ac_cv_type_uint64_t+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 cat >conftest.$ac_ext <<_ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 $ac_includes_default
17137 typedef uint64_t ac__type_new_;
17141 if ((ac__type_new_ *) 0)
17143 if (sizeof (ac__type_new_))
17149 rm -f conftest.$ac_objext
17150 if { (ac_try="$ac_compile"
17151 case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_compile") 2>conftest.er1
17158 grep -v '^ *+' conftest.er1 >conftest.err
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
17163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest.$ac_objext'
17174 { (case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_try") 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_cv_type_uint64_t=yes
17185 echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17188 ac_cv_type_uint64_t=no
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17194 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17195 if test $ac_cv_type_uint64_t = yes; then
17197 cat >>confdefs.h <<_ACEOF
17198 #define HAVE_UINT64_T 1
17203 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17204 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17205 if test "${ac_cv_type_u_int64_t+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17214 $ac_includes_default
17215 typedef u_int64_t ac__type_new_;
17219 if ((ac__type_new_ *) 0)
17221 if (sizeof (ac__type_new_))
17227 rm -f conftest.$ac_objext
17228 if { (ac_try="$ac_compile"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_compile") 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest.$ac_objext'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 ac_cv_type_u_int64_t=yes
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 ac_cv_type_u_int64_t=no
17269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17272 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17273 if test $ac_cv_type_u_int64_t = yes; then
17275 cat >>confdefs.h <<_ACEOF
17276 #define HAVE_U_INT64_T 1
17281 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17282 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17283 { (exit 1); exit 1; }; }
17297 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 cat >conftest.$ac_ext <<_ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17313 #define $ac_func innocuous_$ac_func
17315 /* System header to define __stub macros and hopefully few prototypes,
17316 which can conflict with char $ac_func (); below.
17317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17318 <limits.h> exists even on freestanding compilers. */
17321 # include <limits.h>
17323 # include <assert.h>
17328 /* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17335 /* The GNU C library defines this for functions which it implements
17336 to always fail with ENOSYS. Some functions are actually named
17337 something starting with __ and the normal name is an alias. */
17338 #if defined __stub_$ac_func || defined __stub___$ac_func
17345 return $ac_func ();
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (ac_try="$ac_link"
17352 case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357 (eval "$ac_link") 2>conftest.er1
17359 grep -v '^ *+' conftest.er1 >conftest.err
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } &&
17364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17365 { (case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_try") 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest$ac_exeext'
17375 { (case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_try") 2>&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 eval "$as_ac_var=yes"
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17389 eval "$as_ac_var=no"
17392 rm -f core conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
17395 ac_res=`eval echo '${'$as_ac_var'}'`
17396 { echo "$as_me:$LINENO: result: $ac_res" >&5
17397 echo "${ECHO_T}$ac_res" >&6; }
17398 if test `eval echo '${'$as_ac_var'}'` = yes; then
17399 cat >>confdefs.h <<_ACEOF
17400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17410 for ac_func in powf fmodf strtof round
17412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 cat >conftest.$ac_ext <<_ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17426 #define $ac_func innocuous_$ac_func
17428 /* System header to define __stub macros and hopefully few prototypes,
17429 which can conflict with char $ac_func (); below.
17430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431 <limits.h> exists even on freestanding compilers. */
17434 # include <limits.h>
17436 # include <assert.h>
17441 /* Override any GCC internal prototype to avoid an error.
17442 Use char because int might match the return type of a GCC
17443 builtin and then its argument prototype would still apply. */
17448 /* The GNU C library defines this for functions which it implements
17449 to always fail with ENOSYS. Some functions are actually named
17450 something starting with __ and the normal name is an alias. */
17451 #if defined __stub_$ac_func || defined __stub___$ac_func
17458 return $ac_func ();
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (ac_try="$ac_link"
17465 case "(($ac_try" in
17466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467 *) ac_try_echo=$ac_try;;
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470 (eval "$ac_link") 2>conftest.er1
17472 grep -v '^ *+' conftest.er1 >conftest.err
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478 { (case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_try") 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest$ac_exeext'
17488 { (case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493 (eval "$ac_try") 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 eval "$as_ac_var=yes"
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 eval "$as_ac_var=no"
17505 rm -f core conftest.err conftest.$ac_objext \
17506 conftest$ac_exeext conftest.$ac_ext
17508 ac_res=`eval echo '${'$as_ac_var'}'`
17509 { echo "$as_me:$LINENO: result: $ac_res" >&5
17510 echo "${ECHO_T}$ac_res" >&6; }
17511 if test `eval echo '${'$as_ac_var'}'` = yes; then
17512 cat >>confdefs.h <<_ACEOF
17513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17524 for ac_func in log log2 log10 exp exp2
17526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17532 cat >conftest.$ac_ext <<_ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17540 #define $ac_func innocuous_$ac_func
17542 /* System header to define __stub macros and hopefully few prototypes,
17543 which can conflict with char $ac_func (); below.
17544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17545 <limits.h> exists even on freestanding compilers. */
17548 # include <limits.h>
17550 # include <assert.h>
17555 /* Override any GCC internal prototype to avoid an error.
17556 Use char because int might match the return type of a GCC
17557 builtin and then its argument prototype would still apply. */
17562 /* The GNU C library defines this for functions which it implements
17563 to always fail with ENOSYS. Some functions are actually named
17564 something starting with __ and the normal name is an alias. */
17565 #if defined __stub_$ac_func || defined __stub___$ac_func
17572 return $ac_func ();
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (ac_try="$ac_link"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_link") 2>conftest.er1
17586 grep -v '^ *+' conftest.er1 >conftest.err
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17592 { (case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_try") 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; } &&
17601 { ac_try='test -s conftest$ac_exeext'
17602 { (case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_try") 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; }; then
17611 eval "$as_ac_var=yes"
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17616 eval "$as_ac_var=no"
17619 rm -f core conftest.err conftest.$ac_objext \
17620 conftest$ac_exeext conftest.$ac_ext
17622 ac_res=`eval echo '${'$as_ac_var'}'`
17623 { echo "$as_me:$LINENO: result: $ac_res" >&5
17624 echo "${ECHO_T}$ac_res" >&6; }
17625 if test `eval echo '${'$as_ac_var'}'` = yes; then
17626 cat >>confdefs.h <<_ACEOF
17627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17638 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17646 cat >conftest.$ac_ext <<_ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17654 #define $ac_func innocuous_$ac_func
17656 /* System header to define __stub macros and hopefully few prototypes,
17657 which can conflict with char $ac_func (); below.
17658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17659 <limits.h> exists even on freestanding compilers. */
17662 # include <limits.h>
17664 # include <assert.h>
17669 /* Override any GCC internal prototype to avoid an error.
17670 Use char because int might match the return type of a GCC
17671 builtin and then its argument prototype would still apply. */
17676 /* The GNU C library defines this for functions which it implements
17677 to always fail with ENOSYS. Some functions are actually named
17678 something starting with __ and the normal name is an alias. */
17679 #if defined __stub_$ac_func || defined __stub___$ac_func
17686 return $ac_func ();
17691 rm -f conftest.$ac_objext conftest$ac_exeext
17692 if { (ac_try="$ac_link"
17693 case "(($ac_try" in
17694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695 *) ac_try_echo=$ac_try;;
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698 (eval "$ac_link") 2>conftest.er1
17700 grep -v '^ *+' conftest.er1 >conftest.err
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17706 { (case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_try") 2>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest$ac_exeext'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 eval "$as_ac_var=yes"
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 eval "$as_ac_var=no"
17733 rm -f core conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
17736 ac_res=`eval echo '${'$as_ac_var'}'`
17737 { echo "$as_me:$LINENO: result: $ac_res" >&5
17738 echo "${ECHO_T}$ac_res" >&6; }
17739 if test `eval echo '${'$as_ac_var'}'` = yes; then
17740 cat >>confdefs.h <<_ACEOF
17741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17750 for ac_func in isatty mkdtemp mkstemp
17752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 cat >conftest.$ac_ext <<_ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17766 #define $ac_func innocuous_$ac_func
17768 /* System header to define __stub macros and hopefully few prototypes,
17769 which can conflict with char $ac_func (); below.
17770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17771 <limits.h> exists even on freestanding compilers. */
17774 # include <limits.h>
17776 # include <assert.h>
17781 /* Override any GCC internal prototype to avoid an error.
17782 Use char because int might match the return type of a GCC
17783 builtin and then its argument prototype would still apply. */
17788 /* The GNU C library defines this for functions which it implements
17789 to always fail with ENOSYS. Some functions are actually named
17790 something starting with __ and the normal name is an alias. */
17791 #if defined __stub_$ac_func || defined __stub___$ac_func
17798 return $ac_func ();
17803 rm -f conftest.$ac_objext conftest$ac_exeext
17804 if { (ac_try="$ac_link"
17805 case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_link") 2>conftest.er1
17812 grep -v '^ *+' conftest.er1 >conftest.err
17814 cat conftest.err >&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } &&
17817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17818 { (case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_try") 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; } &&
17827 { ac_try='test -s conftest$ac_exeext'
17828 { (case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_try") 2>&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; }; then
17837 eval "$as_ac_var=yes"
17839 echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17842 eval "$as_ac_var=no"
17845 rm -f core conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17848 ac_res=`eval echo '${'$as_ac_var'}'`
17849 { echo "$as_me:$LINENO: result: $ac_res" >&5
17850 echo "${ECHO_T}$ac_res" >&6; }
17851 if test `eval echo '${'$as_ac_var'}'` = yes; then
17852 cat >>confdefs.h <<_ACEOF
17853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17866 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17874 cat >conftest.$ac_ext <<_ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h. */
17880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17882 #define $ac_func innocuous_$ac_func
17884 /* System header to define __stub macros and hopefully few prototypes,
17885 which can conflict with char $ac_func (); below.
17886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17887 <limits.h> exists even on freestanding compilers. */
17890 # include <limits.h>
17892 # include <assert.h>
17897 /* Override any GCC internal prototype to avoid an error.
17898 Use char because int might match the return type of a GCC
17899 builtin and then its argument prototype would still apply. */
17904 /* The GNU C library defines this for functions which it implements
17905 to always fail with ENOSYS. Some functions are actually named
17906 something starting with __ and the normal name is an alias. */
17907 #if defined __stub_$ac_func || defined __stub___$ac_func
17914 return $ac_func ();
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (ac_try="$ac_link"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_link") 2>conftest.er1
17928 grep -v '^ *+' conftest.er1 >conftest.err
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } &&
17933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17934 { (case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_try") 2>&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest$ac_exeext'
17944 { (case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_try") 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953 eval "$as_ac_var=yes"
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17958 eval "$as_ac_var=no"
17961 rm -f core conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
17964 ac_res=`eval echo '${'$as_ac_var'}'`
17965 { echo "$as_me:$LINENO: result: $ac_res" >&5
17966 echo "${ECHO_T}$ac_res" >&6; }
17967 if test `eval echo '${'$as_ac_var'}'` = yes; then
17968 cat >>confdefs.h <<_ACEOF
17969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17979 for ac_func in strerror strerror_r setenv arc4random
17981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17995 #define $ac_func innocuous_$ac_func
17997 /* System header to define __stub macros and hopefully few prototypes,
17998 which can conflict with char $ac_func (); below.
17999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18000 <limits.h> exists even on freestanding compilers. */
18003 # include <limits.h>
18005 # include <assert.h>
18010 /* Override any GCC internal prototype to avoid an error.
18011 Use char because int might match the return type of a GCC
18012 builtin and then its argument prototype would still apply. */
18017 /* The GNU C library defines this for functions which it implements
18018 to always fail with ENOSYS. Some functions are actually named
18019 something starting with __ and the normal name is an alias. */
18020 #if defined __stub_$ac_func || defined __stub___$ac_func
18027 return $ac_func ();
18032 rm -f conftest.$ac_objext conftest$ac_exeext
18033 if { (ac_try="$ac_link"
18034 case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_link") 2>conftest.er1
18041 grep -v '^ *+' conftest.er1 >conftest.err
18043 cat conftest.err >&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18047 { (case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_try") 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; } &&
18056 { ac_try='test -s conftest$ac_exeext'
18057 { (case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_try") 2>&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; }; then
18066 eval "$as_ac_var=yes"
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 eval "$as_ac_var=no"
18074 rm -f core conftest.err conftest.$ac_objext \
18075 conftest$ac_exeext conftest.$ac_ext
18077 ac_res=`eval echo '${'$as_ac_var'}'`
18078 { echo "$as_me:$LINENO: result: $ac_res" >&5
18079 echo "${ECHO_T}$ac_res" >&6; }
18080 if test `eval echo '${'$as_ac_var'}'` = yes; then
18081 cat >>confdefs.h <<_ACEOF
18082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18092 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 cat >conftest.$ac_ext <<_ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18108 #define $ac_func innocuous_$ac_func
18110 /* System header to define __stub macros and hopefully few prototypes,
18111 which can conflict with char $ac_func (); below.
18112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18113 <limits.h> exists even on freestanding compilers. */
18116 # include <limits.h>
18118 # include <assert.h>
18123 /* Override any GCC internal prototype to avoid an error.
18124 Use char because int might match the return type of a GCC
18125 builtin and then its argument prototype would still apply. */
18130 /* The GNU C library defines this for functions which it implements
18131 to always fail with ENOSYS. Some functions are actually named
18132 something starting with __ and the normal name is an alias. */
18133 #if defined __stub_$ac_func || defined __stub___$ac_func
18140 return $ac_func ();
18145 rm -f conftest.$ac_objext conftest$ac_exeext
18146 if { (ac_try="$ac_link"
18147 case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_link") 2>conftest.er1
18154 grep -v '^ *+' conftest.er1 >conftest.err
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest$ac_exeext'
18170 { (case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_try") 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 eval "$as_ac_var=yes"
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 eval "$as_ac_var=no"
18187 rm -f core conftest.err conftest.$ac_objext \
18188 conftest$ac_exeext conftest.$ac_ext
18190 ac_res=`eval echo '${'$as_ac_var'}'`
18191 { echo "$as_me:$LINENO: result: $ac_res" >&5
18192 echo "${ECHO_T}$ac_res" >&6; }
18193 if test `eval echo '${'$as_ac_var'}'` = yes; then
18194 cat >>confdefs.h <<_ACEOF
18195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18206 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 cat >conftest.$ac_ext <<_ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18222 #define $ac_func innocuous_$ac_func
18224 /* System header to define __stub macros and hopefully few prototypes,
18225 which can conflict with char $ac_func (); below.
18226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 <limits.h> exists even on freestanding compilers. */
18230 # include <limits.h>
18232 # include <assert.h>
18237 /* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18244 /* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
18247 #if defined __stub_$ac_func || defined __stub___$ac_func
18254 return $ac_func ();
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (ac_try="$ac_link"
18261 case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_link") 2>conftest.er1
18268 grep -v '^ *+' conftest.er1 >conftest.err
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18274 { (case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_try") 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_try") 2>&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 eval "$as_ac_var=yes"
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18298 eval "$as_ac_var=no"
18301 rm -f core conftest.err conftest.$ac_objext \
18302 conftest$ac_exeext conftest.$ac_ext
18304 ac_res=`eval echo '${'$as_ac_var'}'`
18305 { echo "$as_me:$LINENO: result: $ac_res" >&5
18306 echo "${ECHO_T}$ac_res" >&6; }
18307 if test `eval echo '${'$as_ac_var'}'` = yes; then
18308 cat >>confdefs.h <<_ACEOF
18309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18315 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18316 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18317 if test "${llvm_cv_c_printf_a+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 ac_cpp='$CPP $CPPFLAGS'
18322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18326 if test "$cross_compiling" = yes; then
18327 llvmac_cv_c_printf_a=no
18329 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18338 #include <stdlib.h>
18344 volatile double A, B;
18348 sprintf(Buffer, "%a", A);
18352 if (A != 0x1.999999999999ap-4)
18359 rm -f conftest$ac_exeext
18360 if { (ac_try="$ac_link"
18361 case "(($ac_try" in
18362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363 *) ac_try_echo=$ac_try;;
18365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366 (eval "$ac_link") 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18370 { (case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_try") 2>&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 llvm_cv_c_printf_a=yes
18381 echo "$as_me: program exited with status $ac_status" >&5
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ( exit $ac_status )
18386 llvmac_cv_c_printf_a=no
18388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18393 ac_cpp='$CPP $CPPFLAGS'
18394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18399 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18400 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18401 if test "$llvm_cv_c_printf_a" = "yes"; then
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE_PRINTF_A 1
18411 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18412 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18413 if test "${ac_cv_func_rand48+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 ac_cpp='$CXXCPP $CPPFLAGS'
18419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18423 cat >conftest.$ac_ext <<_ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18429 #include <stdlib.h>
18433 srand48(0);lrand48();drand48();
18438 rm -f conftest.$ac_objext
18439 if { (ac_try="$ac_compile"
18440 case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_compile") 2>conftest.er1
18447 grep -v '^ *+' conftest.er1 >conftest.err
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest.$ac_objext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_func_rand48=yes
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 ac_cv_func_rand48=no
18480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 ac_cpp='$CPP $CPPFLAGS'
18483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18490 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18492 if test "$ac_cv_func_rand48" = "yes" ; then
18494 cat >>confdefs.h <<\_ACEOF
18495 #define HAVE_RAND48 1
18501 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18502 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18503 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 $ac_includes_default
18517 char *p = (char *) strerror_s;
18525 rm -f conftest.$ac_objext
18526 if { (ac_try="$ac_compile"
18527 case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_compile") 2>conftest.er1
18534 grep -v '^ *+' conftest.er1 >conftest.err
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18540 { (case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_try") 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 ac_cv_have_decl_strerror_s=yes
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18564 ac_cv_have_decl_strerror_s=no
18567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18569 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18570 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18571 if test $ac_cv_have_decl_strerror_s = yes; then
18573 cat >>confdefs.h <<_ACEOF
18574 #define HAVE_DECL_STRERROR_S 1
18579 cat >>confdefs.h <<_ACEOF
18580 #define HAVE_DECL_STRERROR_S 0
18588 if test "$llvm_cv_os_type" = "MingW" ; then
18589 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18590 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18591 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18592 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 ac_check_lib_save_LIBS=$LIBS
18596 cat >conftest.$ac_ext <<_ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18603 /* Override any GCC internal prototype to avoid an error.
18604 Use char because int might match the return type of a GCC
18605 builtin and then its argument prototype would still apply. */
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (ac_try="$ac_link"
18620 case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_link") 2>conftest.er1
18627 grep -v '^ *+' conftest.er1 >conftest.err
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } &&
18632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18633 { (case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_try") 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try='test -s conftest$ac_exeext'
18643 { (case "(($ac_try" in
18644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645 *) ac_try_echo=$ac_try;;
18647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648 (eval "$ac_try") 2>&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
18652 ac_cv_lib_gcc__alloca=yes
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18657 ac_cv_lib_gcc__alloca=no
18660 rm -f core conftest.err conftest.$ac_objext \
18661 conftest$ac_exeext conftest.$ac_ext
18662 LIBS=$ac_check_lib_save_LIBS
18664 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18665 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18666 if test $ac_cv_lib_gcc__alloca = yes; then
18668 cat >>confdefs.h <<\_ACEOF
18669 #define HAVE__ALLOCA 1
18674 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18675 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18676 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 ac_check_lib_save_LIBS=$LIBS
18681 cat >conftest.$ac_ext <<_ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h. */
18688 /* Override any GCC internal prototype to avoid an error.
18689 Use char because int might match the return type of a GCC
18690 builtin and then its argument prototype would still apply. */
18698 return __alloca ();
18703 rm -f conftest.$ac_objext conftest$ac_exeext
18704 if { (ac_try="$ac_link"
18705 case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_link") 2>conftest.er1
18712 grep -v '^ *+' conftest.er1 >conftest.err
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } &&
18717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18718 { (case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_try") 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest$ac_exeext'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 ac_cv_lib_gcc___alloca=yes
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18742 ac_cv_lib_gcc___alloca=no
18745 rm -f core conftest.err conftest.$ac_objext \
18746 conftest$ac_exeext conftest.$ac_ext
18747 LIBS=$ac_check_lib_save_LIBS
18749 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18750 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18751 if test $ac_cv_lib_gcc___alloca = yes; then
18753 cat >>confdefs.h <<\_ACEOF
18754 #define HAVE___ALLOCA 1
18759 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18760 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18761 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 ac_check_lib_save_LIBS=$LIBS
18766 cat >conftest.$ac_ext <<_ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18773 /* Override any GCC internal prototype to avoid an error.
18774 Use char because int might match the return type of a GCC
18775 builtin and then its argument prototype would still apply. */
18783 return __chkstk ();
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (ac_try="$ac_link"
18790 case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_link") 2>conftest.er1
18797 grep -v '^ *+' conftest.er1 >conftest.err
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18803 { (case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_try") 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try='test -s conftest$ac_exeext'
18813 { (case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_try") 2>&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; }; then
18822 ac_cv_lib_gcc___chkstk=yes
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18827 ac_cv_lib_gcc___chkstk=no
18830 rm -f core conftest.err conftest.$ac_objext \
18831 conftest$ac_exeext conftest.$ac_ext
18832 LIBS=$ac_check_lib_save_LIBS
18834 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18835 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18836 if test $ac_cv_lib_gcc___chkstk = yes; then
18838 cat >>confdefs.h <<\_ACEOF
18839 #define HAVE___CHKSTK 1
18844 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18845 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18846 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18849 ac_check_lib_save_LIBS=$LIBS
18851 cat >conftest.$ac_ext <<_ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h. */
18858 /* Override any GCC internal prototype to avoid an error.
18859 Use char because int might match the return type of a GCC
18860 builtin and then its argument prototype would still apply. */
18868 return ___chkstk ();
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_link") 2>conftest.er1
18882 grep -v '^ *+' conftest.er1 >conftest.err
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
18887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18888 { (case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_try") 2>&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; } &&
18897 { ac_try='test -s conftest$ac_exeext'
18898 { (case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_try") 2>&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; }; then
18907 ac_cv_lib_gcc____chkstk=yes
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18912 ac_cv_lib_gcc____chkstk=no
18915 rm -f core conftest.err conftest.$ac_objext \
18916 conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18919 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18920 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18921 if test $ac_cv_lib_gcc____chkstk = yes; then
18923 cat >>confdefs.h <<\_ACEOF
18924 #define HAVE____CHKSTK 1
18930 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18931 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18932 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 ac_check_lib_save_LIBS=$LIBS
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18944 /* Override any GCC internal prototype to avoid an error.
18945 Use char because int might match the return type of a GCC
18946 builtin and then its argument prototype would still apply. */
18954 return __ashldi3 ();
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (ac_try="$ac_link"
18961 case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_link") 2>conftest.er1
18968 grep -v '^ *+' conftest.er1 >conftest.err
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } &&
18973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18974 { (case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_try") 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest$ac_exeext'
18984 { (case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_try") 2>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_cv_lib_gcc___ashldi3=yes
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ac_cv_lib_gcc___ashldi3=no
19001 rm -f core conftest.err conftest.$ac_objext \
19002 conftest$ac_exeext conftest.$ac_ext
19003 LIBS=$ac_check_lib_save_LIBS
19005 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19006 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19007 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19009 cat >>confdefs.h <<\_ACEOF
19010 #define HAVE___ASHLDI3 1
19015 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19016 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19017 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19020 ac_check_lib_save_LIBS=$LIBS
19022 cat >conftest.$ac_ext <<_ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19029 /* Override any GCC internal prototype to avoid an error.
19030 Use char because int might match the return type of a GCC
19031 builtin and then its argument prototype would still apply. */
19039 return __ashrdi3 ();
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_link") 2>conftest.er1
19053 grep -v '^ *+' conftest.er1 >conftest.err
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } &&
19058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19059 { (case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_try") 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; } &&
19068 { ac_try='test -s conftest$ac_exeext'
19069 { (case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_try") 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 ac_cv_lib_gcc___ashrdi3=yes
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 ac_cv_lib_gcc___ashrdi3=no
19086 rm -f core conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19090 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19091 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19092 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19094 cat >>confdefs.h <<\_ACEOF
19095 #define HAVE___ASHRDI3 1
19100 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19101 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19102 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19105 ac_check_lib_save_LIBS=$LIBS
19107 cat >conftest.$ac_ext <<_ACEOF
19110 cat confdefs.h >>conftest.$ac_ext
19111 cat >>conftest.$ac_ext <<_ACEOF
19112 /* end confdefs.h. */
19114 /* Override any GCC internal prototype to avoid an error.
19115 Use char because int might match the return type of a GCC
19116 builtin and then its argument prototype would still apply. */
19124 return __divdi3 ();
19129 rm -f conftest.$ac_objext conftest$ac_exeext
19130 if { (ac_try="$ac_link"
19131 case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_link") 2>conftest.er1
19138 grep -v '^ *+' conftest.er1 >conftest.err
19140 cat conftest.err >&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
19143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19144 { (case "(($ac_try" in
19145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146 *) ac_try_echo=$ac_try;;
19148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149 (eval "$ac_try") 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; } &&
19153 { ac_try='test -s conftest$ac_exeext'
19154 { (case "(($ac_try" in
19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156 *) ac_try_echo=$ac_try;;
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_try") 2>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; }; then
19163 ac_cv_lib_gcc___divdi3=yes
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19168 ac_cv_lib_gcc___divdi3=no
19171 rm -f core conftest.err conftest.$ac_objext \
19172 conftest$ac_exeext conftest.$ac_ext
19173 LIBS=$ac_check_lib_save_LIBS
19175 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19176 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19177 if test $ac_cv_lib_gcc___divdi3 = yes; then
19179 cat >>confdefs.h <<\_ACEOF
19180 #define HAVE___DIVDI3 1
19185 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19186 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19187 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 ac_check_lib_save_LIBS=$LIBS
19192 cat >conftest.$ac_ext <<_ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19199 /* Override any GCC internal prototype to avoid an error.
19200 Use char because int might match the return type of a GCC
19201 builtin and then its argument prototype would still apply. */
19209 return __fixdfdi ();
19214 rm -f conftest.$ac_objext conftest$ac_exeext
19215 if { (ac_try="$ac_link"
19216 case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_link") 2>conftest.er1
19223 grep -v '^ *+' conftest.er1 >conftest.err
19225 cat conftest.err >&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } &&
19228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19229 { (case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_try") 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; } &&
19238 { ac_try='test -s conftest$ac_exeext'
19239 { (case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_try") 2>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_lib_gcc___fixdfdi=yes
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19253 ac_cv_lib_gcc___fixdfdi=no
19256 rm -f core conftest.err conftest.$ac_objext \
19257 conftest$ac_exeext conftest.$ac_ext
19258 LIBS=$ac_check_lib_save_LIBS
19260 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19261 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19262 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE___FIXDFDI 1
19270 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19271 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19272 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 ac_check_lib_save_LIBS=$LIBS
19277 cat >conftest.$ac_ext <<_ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19284 /* Override any GCC internal prototype to avoid an error.
19285 Use char because int might match the return type of a GCC
19286 builtin and then its argument prototype would still apply. */
19294 return __fixsfdi ();
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (ac_try="$ac_link"
19301 case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_link") 2>conftest.er1
19308 grep -v '^ *+' conftest.er1 >conftest.err
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } &&
19313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19314 { (case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_try") 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; } &&
19323 { ac_try='test -s conftest$ac_exeext'
19324 { (case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_try") 2>&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 ac_cv_lib_gcc___fixsfdi=yes
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 ac_cv_lib_gcc___fixsfdi=no
19341 rm -f core conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext conftest.$ac_ext
19343 LIBS=$ac_check_lib_save_LIBS
19345 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19346 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19347 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19349 cat >>confdefs.h <<\_ACEOF
19350 #define HAVE___FIXSFDI 1
19355 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19356 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19357 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19358 echo $ECHO_N "(cached) $ECHO_C" >&6
19360 ac_check_lib_save_LIBS=$LIBS
19362 cat >conftest.$ac_ext <<_ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19369 /* Override any GCC internal prototype to avoid an error.
19370 Use char because int might match the return type of a GCC
19371 builtin and then its argument prototype would still apply. */
19375 char __floatdidf ();
19379 return __floatdidf ();
19384 rm -f conftest.$ac_objext conftest$ac_exeext
19385 if { (ac_try="$ac_link"
19386 case "(($ac_try" in
19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388 *) ac_try_echo=$ac_try;;
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391 (eval "$ac_link") 2>conftest.er1
19393 grep -v '^ *+' conftest.er1 >conftest.err
19395 cat conftest.err >&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } &&
19398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19399 { (case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404 (eval "$ac_try") 2>&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try='test -s conftest$ac_exeext'
19409 { (case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_try") 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 ac_cv_lib_gcc___floatdidf=yes
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19423 ac_cv_lib_gcc___floatdidf=no
19426 rm -f core conftest.err conftest.$ac_objext \
19427 conftest$ac_exeext conftest.$ac_ext
19428 LIBS=$ac_check_lib_save_LIBS
19430 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19431 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19432 if test $ac_cv_lib_gcc___floatdidf = yes; then
19434 cat >>confdefs.h <<\_ACEOF
19435 #define HAVE___FLOATDIDF 1
19440 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19441 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19442 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 ac_check_lib_save_LIBS=$LIBS
19447 cat >conftest.$ac_ext <<_ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19454 /* Override any GCC internal prototype to avoid an error.
19455 Use char because int might match the return type of a GCC
19456 builtin and then its argument prototype would still apply. */
19464 return __lshrdi3 ();
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (ac_try="$ac_link"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_link") 2>conftest.er1
19478 grep -v '^ *+' conftest.er1 >conftest.err
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19484 { (case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_try") 2>&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest$ac_exeext'
19494 { (case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_try") 2>&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; }; then
19503 ac_cv_lib_gcc___lshrdi3=yes
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19508 ac_cv_lib_gcc___lshrdi3=no
19511 rm -f core conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19515 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19516 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19517 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19519 cat >>confdefs.h <<\_ACEOF
19520 #define HAVE___LSHRDI3 1
19525 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19526 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19527 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19530 ac_check_lib_save_LIBS=$LIBS
19532 cat >conftest.$ac_ext <<_ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19539 /* Override any GCC internal prototype to avoid an error.
19540 Use char because int might match the return type of a GCC
19541 builtin and then its argument prototype would still apply. */
19549 return __moddi3 ();
19554 rm -f conftest.$ac_objext conftest$ac_exeext
19555 if { (ac_try="$ac_link"
19556 case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_link") 2>conftest.er1
19563 grep -v '^ *+' conftest.er1 >conftest.err
19565 cat conftest.err >&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
19568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19569 { (case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_try") 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest$ac_exeext'
19579 { (case "(($ac_try" in
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_try") 2>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 ac_cv_lib_gcc___moddi3=yes
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 ac_cv_lib_gcc___moddi3=no
19596 rm -f core conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19600 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19601 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19602 if test $ac_cv_lib_gcc___moddi3 = yes; then
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE___MODDI3 1
19610 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19611 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19612 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 ac_check_lib_save_LIBS=$LIBS
19617 cat >conftest.$ac_ext <<_ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19624 /* Override any GCC internal prototype to avoid an error.
19625 Use char because int might match the return type of a GCC
19626 builtin and then its argument prototype would still apply. */
19634 return __udivdi3 ();
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (ac_try="$ac_link"
19641 case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_link") 2>conftest.er1
19648 grep -v '^ *+' conftest.er1 >conftest.err
19650 cat conftest.err >&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); } &&
19653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19654 { (case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_try") 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try='test -s conftest$ac_exeext'
19664 { (case "(($ac_try" in
19665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666 *) ac_try_echo=$ac_try;;
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669 (eval "$ac_try") 2>&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 ac_cv_lib_gcc___udivdi3=yes
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_cv_lib_gcc___udivdi3=no
19681 rm -f core conftest.err conftest.$ac_objext \
19682 conftest$ac_exeext conftest.$ac_ext
19683 LIBS=$ac_check_lib_save_LIBS
19685 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19686 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19687 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19689 cat >>confdefs.h <<\_ACEOF
19690 #define HAVE___UDIVDI3 1
19695 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19696 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19697 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19700 ac_check_lib_save_LIBS=$LIBS
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19709 /* Override any GCC internal prototype to avoid an error.
19710 Use char because int might match the return type of a GCC
19711 builtin and then its argument prototype would still apply. */
19719 return __umoddi3 ();
19724 rm -f conftest.$ac_objext conftest$ac_exeext
19725 if { (ac_try="$ac_link"
19726 case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_link") 2>conftest.er1
19733 grep -v '^ *+' conftest.er1 >conftest.err
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19739 { (case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_try") 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest$ac_exeext'
19749 { (case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_try") 2>&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
19758 ac_cv_lib_gcc___umoddi3=yes
19760 echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19763 ac_cv_lib_gcc___umoddi3=no
19766 rm -f core conftest.err conftest.$ac_objext \
19767 conftest$ac_exeext conftest.$ac_ext
19768 LIBS=$ac_check_lib_save_LIBS
19770 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19771 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19772 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19774 cat >>confdefs.h <<\_ACEOF
19775 #define HAVE___UMODDI3 1
19781 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19782 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19783 if test "${ac_cv_lib_gcc___main+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 ac_check_lib_save_LIBS=$LIBS
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19795 /* Override any GCC internal prototype to avoid an error.
19796 Use char because int might match the return type of a GCC
19797 builtin and then its argument prototype would still apply. */
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (ac_try="$ac_link"
19812 case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_link") 2>conftest.er1
19819 grep -v '^ *+' conftest.er1 >conftest.err
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
19824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19825 { (case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_try") 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } &&
19834 { ac_try='test -s conftest$ac_exeext'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 ac_cv_lib_gcc___main=yes
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ac_cv_lib_gcc___main=no
19852 rm -f core conftest.err conftest.$ac_objext \
19853 conftest$ac_exeext conftest.$ac_ext
19854 LIBS=$ac_check_lib_save_LIBS
19856 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19857 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19858 if test $ac_cv_lib_gcc___main = yes; then
19860 cat >>confdefs.h <<\_ACEOF
19861 #define HAVE___MAIN 1
19866 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19867 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19868 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19871 ac_check_lib_save_LIBS=$LIBS
19873 cat >conftest.$ac_ext <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19880 /* Override any GCC internal prototype to avoid an error.
19881 Use char because int might match the return type of a GCC
19882 builtin and then its argument prototype would still apply. */
19890 return __cmpdi2 ();
19895 rm -f conftest.$ac_objext conftest$ac_exeext
19896 if { (ac_try="$ac_link"
19897 case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_link") 2>conftest.er1
19904 grep -v '^ *+' conftest.er1 >conftest.err
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
19909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19910 { (case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_try") 2>&5
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; } &&
19919 { ac_try='test -s conftest$ac_exeext'
19920 { (case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_try") 2>&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929 ac_cv_lib_gcc___cmpdi2=yes
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_cv_lib_gcc___cmpdi2=no
19937 rm -f core conftest.err conftest.$ac_objext \
19938 conftest$ac_exeext conftest.$ac_ext
19939 LIBS=$ac_check_lib_save_LIBS
19941 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19942 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19943 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19945 cat >>confdefs.h <<\_ACEOF
19946 #define HAVE___CMPDI2 1
19953 if test "$llvm_cv_os_type" = "MingW" ; then
19954 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19955 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19956 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19964 #include <windows.h>
19965 #include <imagehlp.h>
19966 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19967 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19971 rm -f conftest.$ac_objext
19972 if { (ac_try="$ac_compile"
19973 case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_compile") 2>conftest.er1
19980 grep -v '^ *+' conftest.er1 >conftest.err
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19986 { (case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_try") 2>&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest.$ac_objext'
19996 { (case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_try") 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20006 { echo "$as_me:$LINENO: result: yes" >&5
20007 echo "${ECHO_T}yes" >&6; }
20008 llvm_cv_win32_elmcb_pcstr="PCSTR"
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20015 { echo "$as_me:$LINENO: result: no" >&5
20016 echo "${ECHO_T}no" >&6; }
20017 llvm_cv_win32_elmcb_pcstr="PSTR"
20021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 cat >>confdefs.h <<_ACEOF
20024 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20031 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20032 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20033 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 ac_cpp='$CXXCPP $CPPFLAGS'
20039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
20060 case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20073 { (case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_try") 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_try") 2>&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; }; then
20092 ac_cv_func_isnan_in_math_h=yes
20094 echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20097 ac_cv_func_isnan_in_math_h=no
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 ac_cpp='$CPP $CPPFLAGS'
20103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20109 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20110 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20113 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20115 cat >>confdefs.h <<\_ACEOF
20116 #define HAVE_ISNAN_IN_MATH_H 1
20122 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20123 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20124 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 ac_cpp='$CXXCPP $CPPFLAGS'
20130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_compile") 2>conftest.er1
20158 grep -v '^ *+' conftest.er1 >conftest.err
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } &&
20163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20164 { (case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_try") 2>&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_func_isnan_in_cmath=yes
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 ac_cv_func_isnan_in_cmath=no
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193 ac_cpp='$CPP $CPPFLAGS'
20194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20200 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20201 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20203 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20205 cat >>confdefs.h <<\_ACEOF
20206 #define HAVE_ISNAN_IN_CMATH 1
20212 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20213 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20214 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 ac_cpp='$CXXCPP $CPPFLAGS'
20220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20224 cat >conftest.$ac_ext <<_ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20234 float f; std::isnan(f);
20239 rm -f conftest.$ac_objext
20240 if { (ac_try="$ac_compile"
20241 case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_compile") 2>conftest.er1
20248 grep -v '^ *+' conftest.er1 >conftest.err
20250 cat conftest.err >&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } &&
20253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20254 { (case "(($ac_try" in
20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256 *) ac_try_echo=$ac_try;;
20258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259 (eval "$ac_try") 2>&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } &&
20263 { ac_try='test -s conftest.$ac_objext'
20264 { (case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_try") 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
20273 ac_cv_func_std_isnan_in_cmath=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_cv_func_std_isnan_in_cmath=no
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 ac_cpp='$CPP $CPPFLAGS'
20284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20290 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20291 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20293 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20295 cat >>confdefs.h <<\_ACEOF
20296 #define HAVE_STD_ISNAN_IN_CMATH 1
20304 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20305 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20306 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20311 ac_cpp='$CXXCPP $CPPFLAGS'
20312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20316 cat >conftest.$ac_ext <<_ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20331 rm -f conftest.$ac_objext
20332 if { (ac_try="$ac_compile"
20333 case "(($ac_try" in
20334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335 *) ac_try_echo=$ac_try;;
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338 (eval "$ac_compile") 2>conftest.er1
20340 grep -v '^ *+' conftest.er1 >conftest.err
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
20355 { ac_try='test -s conftest.$ac_objext'
20356 { (case "(($ac_try" in
20357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20358 *) ac_try_echo=$ac_try;;
20360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20361 (eval "$ac_try") 2>&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; }; then
20365 ac_cv_func_isinf_in_math_h=yes
20367 echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20370 ac_cv_func_isinf_in_math_h=no
20373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20375 ac_cpp='$CPP $CPPFLAGS'
20376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20382 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20383 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20385 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20387 cat >>confdefs.h <<\_ACEOF
20388 #define HAVE_ISINF_IN_MATH_H 1
20394 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20395 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20396 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 ac_cpp='$CXXCPP $CPPFLAGS'
20402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20406 cat >conftest.$ac_ext <<_ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20421 rm -f conftest.$ac_objext
20422 if { (ac_try="$ac_compile"
20423 case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_compile") 2>conftest.er1
20430 grep -v '^ *+' conftest.er1 >conftest.err
20432 cat conftest.err >&5
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } &&
20435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20436 { (case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_try") 2>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } &&
20445 { ac_try='test -s conftest.$ac_objext'
20446 { (case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_try") 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; }; then
20455 ac_cv_func_isinf_in_cmath=yes
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 ac_cv_func_isinf_in_cmath=no
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465 ac_cpp='$CPP $CPPFLAGS'
20466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20472 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20473 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20475 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20477 cat >>confdefs.h <<\_ACEOF
20478 #define HAVE_ISINF_IN_CMATH 1
20484 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20485 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20486 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 ac_cpp='$CXXCPP $CPPFLAGS'
20492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20496 cat >conftest.$ac_ext <<_ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20506 float f; std::isinf(f);
20511 rm -f conftest.$ac_objext
20512 if { (ac_try="$ac_compile"
20513 case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518 (eval "$ac_compile") 2>conftest.er1
20520 grep -v '^ *+' conftest.er1 >conftest.err
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } &&
20525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20526 { (case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_try") 2>&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; } &&
20535 { ac_try='test -s conftest.$ac_objext'
20536 { (case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_try") 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; }; then
20545 ac_cv_func_std_isinf_in_cmath=yes
20547 echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20550 ac_cv_func_std_isinf_in_cmath=no
20553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20555 ac_cpp='$CPP $CPPFLAGS'
20556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20562 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20563 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20565 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20567 cat >>confdefs.h <<\_ACEOF
20568 #define HAVE_STD_ISINF_IN_CMATH 1
20574 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20575 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20576 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 ac_cpp='$CXXCPP $CPPFLAGS'
20582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20586 cat >conftest.$ac_ext <<_ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h. */
20592 #include <ieeefp.h>
20596 float f; finite(f);
20601 rm -f conftest.$ac_objext
20602 if { (ac_try="$ac_compile"
20603 case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_compile") 2>conftest.er1
20610 grep -v '^ *+' conftest.er1 >conftest.err
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20616 { (case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621 (eval "$ac_try") 2>&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; } &&
20625 { ac_try='test -s conftest.$ac_objext'
20626 { (case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_try") 2>&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 ac_cv_func_finite_in_ieeefp_h=yes
20637 echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20640 ac_cv_func_finite_in_ieeefp_h=no
20643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645 ac_cpp='$CPP $CPPFLAGS'
20646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20652 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20653 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20655 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20657 cat >>confdefs.h <<\_ACEOF
20658 #define HAVE_FINITE_IN_IEEEFP_H 1
20665 if test "$llvm_cv_platform_type" = "Unix" ; then
20668 for ac_header in stdlib.h unistd.h
20670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 ac_res=`eval echo '${'$as_ac_Header'}'`
20678 { echo "$as_me:$LINENO: result: $ac_res" >&5
20679 echo "${ECHO_T}$ac_res" >&6; }
20681 # Is the header compilable?
20682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20684 cat >conftest.$ac_ext <<_ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 $ac_includes_default
20691 #include <$ac_header>
20693 rm -f conftest.$ac_objext
20694 if { (ac_try="$ac_compile"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_compile") 2>conftest.er1
20702 grep -v '^ *+' conftest.er1 >conftest.err
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20708 { (case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_try") 2>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; } &&
20717 { ac_try='test -s conftest.$ac_objext'
20718 { (case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_try") 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 ac_header_compiler=yes
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20732 ac_header_compiler=no
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20737 echo "${ECHO_T}$ac_header_compiler" >&6; }
20739 # Is the header present?
20740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #include <$ac_header>
20750 if { (ac_try="$ac_cpp conftest.$ac_ext"
20751 case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20758 grep -v '^ *+' conftest.er1 >conftest.err
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } >/dev/null; then
20763 if test -s conftest.err; then
20764 ac_cpp_err=$ac_c_preproc_warn_flag
20765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20772 if test -z "$ac_cpp_err"; then
20773 ac_header_preproc=yes
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20778 ac_header_preproc=no
20781 rm -f conftest.err conftest.$ac_ext
20782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20783 echo "${ECHO_T}$ac_header_preproc" >&6; }
20785 # So? What about this header?
20786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20792 ac_header_preproc=yes
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20808 ## ------------------------------------ ##
20809 ## Report this to http://llvm.org/bugs/ ##
20810 ## ------------------------------------ ##
20812 ) | sed "s/^/$as_me: WARNING: /" >&2
20815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 eval "$as_ac_Header=\$ac_header_preproc"
20822 ac_res=`eval echo '${'$as_ac_Header'}'`
20823 { echo "$as_me:$LINENO: result: $ac_res" >&5
20824 echo "${ECHO_T}$ac_res" >&6; }
20827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20828 cat >>confdefs.h <<_ACEOF
20829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20837 for ac_func in getpagesize
20839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 cat >conftest.$ac_ext <<_ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20853 #define $ac_func innocuous_$ac_func
20855 /* System header to define __stub macros and hopefully few prototypes,
20856 which can conflict with char $ac_func (); below.
20857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20858 <limits.h> exists even on freestanding compilers. */
20861 # include <limits.h>
20863 # include <assert.h>
20868 /* Override any GCC internal prototype to avoid an error.
20869 Use char because int might match the return type of a GCC
20870 builtin and then its argument prototype would still apply. */
20875 /* The GNU C library defines this for functions which it implements
20876 to always fail with ENOSYS. Some functions are actually named
20877 something starting with __ and the normal name is an alias. */
20878 #if defined __stub_$ac_func || defined __stub___$ac_func
20885 return $ac_func ();
20890 rm -f conftest.$ac_objext conftest$ac_exeext
20891 if { (ac_try="$ac_link"
20892 case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_link") 2>conftest.er1
20899 grep -v '^ *+' conftest.er1 >conftest.err
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } &&
20904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20905 { (case "(($ac_try" in
20906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907 *) ac_try_echo=$ac_try;;
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910 (eval "$ac_try") 2>&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; } &&
20914 { ac_try='test -s conftest$ac_exeext'
20915 { (case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_try") 2>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; }; then
20924 eval "$as_ac_var=yes"
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 eval "$as_ac_var=no"
20932 rm -f core conftest.err conftest.$ac_objext \
20933 conftest$ac_exeext conftest.$ac_ext
20935 ac_res=`eval echo '${'$as_ac_var'}'`
20936 { echo "$as_me:$LINENO: result: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20938 if test `eval echo '${'$as_ac_var'}'` = yes; then
20939 cat >>confdefs.h <<_ACEOF
20940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20946 { echo "$as_me:$LINENO: checking for working mmap" >&5
20947 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20948 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 if test "$cross_compiling" = yes; then
20952 ac_cv_func_mmap_fixed_mapped=no
20954 cat >conftest.$ac_ext <<_ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 $ac_includes_default
20961 /* malloc might have been renamed as rpl_malloc. */
20964 /* Thanks to Mike Haertel and Jim Avera for this test.
20965 Here is a matrix of mmap possibilities:
20966 mmap private not fixed
20967 mmap private fixed at somewhere currently unmapped
20968 mmap private fixed at somewhere already mapped
20969 mmap shared not fixed
20970 mmap shared fixed at somewhere currently unmapped
20971 mmap shared fixed at somewhere already mapped
20972 For private mappings, we should verify that changes cannot be read()
20973 back from the file, nor mmap's back from the file at a different
20974 address. (There have been systems where private was not correctly
20975 implemented like the infamous i386 svr4.0, and systems where the
20976 VM page cache was not coherent with the file system buffer cache
20977 like early versions of FreeBSD and possibly contemporary NetBSD.)
20978 For shared mappings, we should conversely verify that changes get
20979 propagated back to all the places they're supposed to be.
20981 Grep wants private fixed already mapped.
20982 The main things grep needs to know about mmap are:
20983 * does it exist and is it safe to write into the mmap'd area
20984 * how to use it (BSD variants) */
20987 #include <sys/mman.h>
20989 #if !STDC_HEADERS && !HAVE_STDLIB_H
20993 /* This mess was copied from the GNU getpagesize.h. */
20994 #if !HAVE_GETPAGESIZE
20995 /* Assume that all systems that can run configure have sys/param.h. */
20996 # if !HAVE_SYS_PARAM_H
20997 # define HAVE_SYS_PARAM_H 1
21000 # ifdef _SC_PAGESIZE
21001 # define getpagesize() sysconf(_SC_PAGESIZE)
21002 # else /* no _SC_PAGESIZE */
21003 # if HAVE_SYS_PARAM_H
21004 # include <sys/param.h>
21005 # ifdef EXEC_PAGESIZE
21006 # define getpagesize() EXEC_PAGESIZE
21007 # else /* no EXEC_PAGESIZE */
21009 # define getpagesize() NBPG * CLSIZE
21012 # endif /* no CLSIZE */
21013 # else /* no NBPG */
21015 # define getpagesize() NBPC
21016 # else /* no NBPC */
21018 # define getpagesize() PAGESIZE
21019 # endif /* PAGESIZE */
21020 # endif /* no NBPC */
21021 # endif /* no NBPG */
21022 # endif /* no EXEC_PAGESIZE */
21023 # else /* no HAVE_SYS_PARAM_H */
21024 # define getpagesize() 8192 /* punt totally */
21025 # endif /* no HAVE_SYS_PARAM_H */
21026 # endif /* no _SC_PAGESIZE */
21028 #endif /* no HAVE_GETPAGESIZE */
21033 char *data, *data2, *data3;
21037 pagesize = getpagesize ();
21039 /* First, make a file with some known garbage in it. */
21040 data = (char *) malloc (pagesize);
21043 for (i = 0; i < pagesize; ++i)
21044 *(data + i) = rand ();
21046 fd = creat ("conftest.mmap", 0600);
21049 if (write (fd, data, pagesize) != pagesize)
21053 /* Next, try to mmap the file at a fixed address which already has
21054 something else allocated at it. If we can, also make sure that
21055 we see the same garbage. */
21056 fd = open ("conftest.mmap", O_RDWR);
21059 data2 = (char *) malloc (2 * pagesize);
21062 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21063 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21064 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21066 for (i = 0; i < pagesize; ++i)
21067 if (*(data + i) != *(data2 + i))
21070 /* Finally, make sure that changes to the mapped area do not
21071 percolate back to the file as seen by read(). (This is a bug on
21072 some variants of i386 svr4.0.) */
21073 for (i = 0; i < pagesize; ++i)
21074 *(data2 + i) = *(data2 + i) + 1;
21075 data3 = (char *) malloc (pagesize);
21078 if (read (fd, data3, pagesize) != pagesize)
21080 for (i = 0; i < pagesize; ++i)
21081 if (*(data + i) != *(data3 + i))
21087 rm -f conftest$ac_exeext
21088 if { (ac_try="$ac_link"
21089 case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094 (eval "$ac_link") 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21098 { (case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_try") 2>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_cv_func_mmap_fixed_mapped=yes
21109 echo "$as_me: program exited with status $ac_status" >&5
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21113 ( exit $ac_status )
21114 ac_cv_func_mmap_fixed_mapped=no
21116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21121 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21122 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21123 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21125 cat >>confdefs.h <<\_ACEOF
21126 #define HAVE_MMAP 1
21130 rm -f conftest.mmap
21132 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21133 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21134 if test "${ac_cv_func_mmap_file+set}" = set; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 ac_cpp='$CPP $CPPFLAGS'
21139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21143 if test "$cross_compiling" = yes; then
21144 ac_cv_func_mmap_file=no
21146 cat >conftest.$ac_ext <<_ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h. */
21154 #include <sys/types.h>
21155 #include <sys/mman.h>
21163 fd = creat ("foo",0777);
21164 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21166 return (fd != (int) MAP_FAILED);
21171 rm -f conftest$ac_exeext
21172 if { (ac_try="$ac_link"
21173 case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_link") 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21182 { (case "(($ac_try" in
21183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184 *) ac_try_echo=$ac_try;;
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_try") 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191 ac_cv_func_mmap_file=yes
21193 echo "$as_me: program exited with status $ac_status" >&5
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 ( exit $ac_status )
21198 ac_cv_func_mmap_file=no
21200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21205 ac_cpp='$CPP $CPPFLAGS'
21206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21212 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21213 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21214 if test "$ac_cv_func_mmap_file" = yes; then
21216 cat >>confdefs.h <<\_ACEOF
21217 #define HAVE_MMAP_FILE
21224 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21225 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21226 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 if test "$llvm_cv_os_type" = "Interix" ; then
21230 ac_cv_need_dev_zero_for_mmap=yes
21232 ac_cv_need_dev_zero_for_mmap=no
21236 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21237 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21238 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21240 cat >>confdefs.h <<\_ACEOF
21241 #define NEED_DEV_ZERO_FOR_MMAP 1
21246 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21248 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21249 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21251 if test "$ac_cv_func_mmap_file" = "no"
21253 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21254 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21258 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21259 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21261 ac_cpp='$CXXCPP $CPPFLAGS'
21262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21266 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21275 volatile unsigned long val = 1;
21276 __sync_synchronize();
21277 __sync_val_compare_and_swap(&val, 1, 0);
21278 __sync_add_and_fetch(&val, 1);
21279 __sync_sub_and_fetch(&val, 1);
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (ac_try="$ac_link"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_link") 2>conftest.er1
21294 grep -v '^ *+' conftest.er1 >conftest.err
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
21299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21300 { (case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_try") 2>&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; } &&
21309 { ac_try='test -s conftest$ac_exeext'
21310 { (case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_try") 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21320 { echo "$as_me:$LINENO: result: yes" >&5
21321 echo "${ECHO_T}yes" >&6; }
21323 cat >>confdefs.h <<\_ACEOF
21324 #define LLVM_HAS_ATOMICS 1
21329 echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21333 { echo "$as_me:$LINENO: result: no" >&5
21334 echo "${ECHO_T}no" >&6; }
21336 cat >>confdefs.h <<\_ACEOF
21337 #define LLVM_HAS_ATOMICS 0
21340 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21341 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21345 rm -f core conftest.err conftest.$ac_objext \
21346 conftest$ac_exeext conftest.$ac_ext
21348 ac_cpp='$CPP $CPPFLAGS'
21349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21355 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21356 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21357 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21358 if test "${llvm_cv_linux_mixed+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 ac_cpp='$CPP $CPPFLAGS'
21363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21367 cat >conftest.$ac_ext <<_ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21374 error: Not x86-64 even if uname says so!
21385 rm -f conftest.$ac_objext
21386 if { (ac_try="$ac_compile"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_compile") 2>conftest.er1
21394 grep -v '^ *+' conftest.er1 >conftest.err
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
21399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21400 { (case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_try") 2>&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; } &&
21409 { ac_try='test -s conftest.$ac_objext'
21410 { (case "(($ac_try" in
21411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412 *) ac_try_echo=$ac_try;;
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415 (eval "$ac_try") 2>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; }; then
21419 llvm_cv_linux_mixed=no
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21424 llvm_cv_linux_mixed=yes
21427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429 ac_cpp='$CPP $CPPFLAGS'
21430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21436 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21437 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21439 if test "$llvm_cv_linux_mixed" = "yes"; then
21440 llvm_cv_target_arch="x86"
21446 for ac_func in __dso_handle
21448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 cat >conftest.$ac_ext <<_ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h. */
21460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21462 #define $ac_func innocuous_$ac_func
21464 /* System header to define __stub macros and hopefully few prototypes,
21465 which can conflict with char $ac_func (); below.
21466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21467 <limits.h> exists even on freestanding compilers. */
21470 # include <limits.h>
21472 # include <assert.h>
21477 /* Override any GCC internal prototype to avoid an error.
21478 Use char because int might match the return type of a GCC
21479 builtin and then its argument prototype would still apply. */
21484 /* The GNU C library defines this for functions which it implements
21485 to always fail with ENOSYS. Some functions are actually named
21486 something starting with __ and the normal name is an alias. */
21487 #if defined __stub_$ac_func || defined __stub___$ac_func
21494 return $ac_func ();
21499 rm -f conftest.$ac_objext conftest$ac_exeext
21500 if { (ac_try="$ac_link"
21501 case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_link") 2>conftest.er1
21508 grep -v '^ *+' conftest.er1 >conftest.err
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
21513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21514 { (case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_try") 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; } &&
21523 { ac_try='test -s conftest$ac_exeext'
21524 { (case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_try") 2>&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 eval "$as_ac_var=yes"
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21538 eval "$as_ac_var=no"
21541 rm -f core conftest.err conftest.$ac_objext \
21542 conftest$ac_exeext conftest.$ac_ext
21544 ac_res=`eval echo '${'$as_ac_var'}'`
21545 { echo "$as_me:$LINENO: result: $ac_res" >&5
21546 echo "${ECHO_T}$ac_res" >&6; }
21547 if test `eval echo '${'$as_ac_var'}'` = yes; then
21548 cat >>confdefs.h <<_ACEOF
21549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21556 SHLIBEXT=$libltdl_cv_shlibext
21559 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21562 if test "${prefix}" = "NONE" ; then
21563 prefix="/usr/local"
21565 eval LLVM_PREFIX="${prefix}";
21566 eval LLVM_BINDIR="${prefix}/bin";
21567 eval LLVM_LIBDIR="${prefix}/lib";
21568 eval LLVM_DATADIR="${prefix}/share/llvm";
21569 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21570 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21571 eval LLVM_INCLUDEDIR="${prefix}/include";
21572 eval LLVM_INFODIR="${prefix}/info";
21573 eval LLVM_MANDIR="${prefix}/man";
21574 LLVM_CONFIGTIME=`date`
21586 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21587 LLVM_CONFIGTIME="(timestamp not enabled)"
21591 cat >>confdefs.h <<_ACEOF
21592 #define LLVM_PREFIX "$LLVM_PREFIX"
21596 cat >>confdefs.h <<_ACEOF
21597 #define LLVM_BINDIR "$LLVM_BINDIR"
21601 cat >>confdefs.h <<_ACEOF
21602 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21606 cat >>confdefs.h <<_ACEOF
21607 #define LLVM_DATADIR "$LLVM_DATADIR"
21611 cat >>confdefs.h <<_ACEOF
21612 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21616 cat >>confdefs.h <<_ACEOF
21617 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21621 cat >>confdefs.h <<_ACEOF
21622 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21626 cat >>confdefs.h <<_ACEOF
21627 #define LLVM_INFODIR "$LLVM_INFODIR"
21631 cat >>confdefs.h <<_ACEOF
21632 #define LLVM_MANDIR "$LLVM_MANDIR"
21636 cat >>confdefs.h <<_ACEOF
21637 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21641 cat >>confdefs.h <<_ACEOF
21642 #define LLVM_HOSTTRIPLE "$host"
21646 cat >>confdefs.h <<_ACEOF
21647 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21651 if test "$BINDINGS_TO_BUILD" = auto ; then
21652 BINDINGS_TO_BUILD=""
21653 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21654 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21657 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21663 binding_prereqs_failed=0
21664 for a_binding in $BINDINGS_TO_BUILD ; do
21665 case "$a_binding" in
21667 if test "x$OCAMLC" = x ; then
21668 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21669 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21670 binding_prereqs_failed=1
21672 if test "x$OCAMLDEP" = x ; then
21673 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21674 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21675 binding_prereqs_failed=1
21677 if test "x$OCAMLOPT" = x ; then
21678 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21679 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21681 if test "x$with_ocaml_libdir" != xauto ; then
21682 OCAML_LIBDIR=$with_ocaml_libdir
21685 ocaml_stdlib="`"$OCAMLC" -where`"
21686 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21688 # ocaml stdlib is beneath our prefix; use stdlib
21689 OCAML_LIBDIR=$ocaml_stdlib
21692 # ocaml stdlib is outside our prefix; use libdir/ocaml
21693 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21700 if test "$binding_prereqs_failed" = 1 ; then
21701 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21702 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21703 { (exit 1); exit 1; }; }
21706 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21707 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21708 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21712 ac_cpp='$CXXCPP $CPPFLAGS'
21713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21717 oldcxxflags="$CXXFLAGS"
21718 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21719 cat >conftest.$ac_ext <<_ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21725 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21734 rm -f conftest.$ac_objext
21735 if { (ac_try="$ac_compile"
21736 case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741 (eval "$ac_compile") 2>conftest.er1
21743 grep -v '^ *+' conftest.er1 >conftest.err
21745 cat conftest.err >&5
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); } &&
21748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21749 { (case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754 (eval "$ac_try") 2>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; } &&
21758 { ac_try='test -s conftest.$ac_objext'
21759 { (case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_try") 2>&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; }; then
21768 llvm_cv_cxx_visibility_inlines_hidden=yes
21770 echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21773 llvm_cv_cxx_visibility_inlines_hidden=no
21776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21777 CXXFLAGS="$oldcxxflags"
21779 ac_cpp='$CPP $CPPFLAGS'
21780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21786 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21787 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21788 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21789 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21792 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21797 if test "$llvm_cv_link_use_r" = "yes" ; then
21804 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21805 RDYNAMIC="-Wl,-export-dynamic"
21812 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21819 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21821 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21823 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21825 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21827 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21830 ac_config_files="$ac_config_files Makefile.config"
21833 ac_config_files="$ac_config_files llvm.spec"
21836 ac_config_files="$ac_config_files docs/doxygen.cfg"
21839 if test "${clang_src_root}" = ""; then
21840 clang_src_root="$srcdir/tools/clang"
21842 if test -f ${clang_src_root}/README.txt; then
21843 configh="include/clang/Config/config.h"
21844 doxy="docs/doxygen.cfg"
21845 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21847 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21851 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21854 test "x$program_prefix" = "xNONE" && program_prefix=""
21858 ac_config_commands="$ac_config_commands setup"
21860 ac_config_commands="$ac_config_commands Makefile"
21863 ac_config_commands="$ac_config_commands Makefile.common"
21866 ac_config_commands="$ac_config_commands examples/Makefile"
21869 ac_config_commands="$ac_config_commands lib/Makefile"
21872 ac_config_commands="$ac_config_commands runtime/Makefile"
21875 ac_config_commands="$ac_config_commands test/Makefile"
21878 ac_config_commands="$ac_config_commands test/Makefile.tests"
21881 ac_config_commands="$ac_config_commands unittests/Makefile"
21884 ac_config_commands="$ac_config_commands tools/Makefile"
21887 ac_config_commands="$ac_config_commands utils/Makefile"
21890 ac_config_commands="$ac_config_commands projects/Makefile"
21893 ac_config_commands="$ac_config_commands bindings/Makefile"
21896 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21900 cat >confcache <<\_ACEOF
21901 # This file is a shell script that caches the results of configure
21902 # tests run on this system so they can be shared between configure
21903 # scripts and configure runs, see configure's option --config-cache.
21904 # It is not useful on other systems. If it contains results you don't
21905 # want to keep, you may remove or edit it.
21907 # config.status only pays attention to the cache file if you give it
21908 # the --recheck option to rerun configure.
21910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21912 # following values.
21916 # The following way of writing the cache mishandles newlines in values,
21917 # but we know of no workaround that is simple, portable, and efficient.
21918 # So, we kill variables containing newlines.
21919 # Ultrix sh set writes to stderr and can't be redirected directly,
21920 # and sets the high bit in the cache file unless we assign to the vars.
21922 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21923 eval ac_val=\$$ac_var
21927 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21928 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21931 _ | IFS | as_nl) ;; #(
21932 *) $as_unset $ac_var ;;
21938 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21939 *${as_nl}ac_space=\ *)
21940 # `set' does not quote correctly, so add quotes (double-quote
21941 # substitution turns \\\\ into \\, and sed turns \\ into \).
21944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21947 # `set' quotes correctly as required by POSIX, so do not add quotes.
21948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21957 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21959 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21961 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21962 if test -w "$cache_file"; then
21963 test "x$cache_file" != "x/dev/null" &&
21964 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21965 echo "$as_me: updating cache $cache_file" >&6;}
21966 cat confcache >$cache_file
21968 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21969 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21975 # Let make expand exec_prefix.
21976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21978 DEFS=-DHAVE_CONFIG_H
21982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21983 # 1. Remove the extension, and $U if already installed.
21984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21985 ac_i=`echo "$ac_i" | sed "$ac_script"`
21986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21987 # will be set to the directory where LIBOBJS objects are built.
21988 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21989 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21991 LIBOBJS=$ac_libobjs
21993 LTLIBOBJS=$ac_ltlibobjs
21996 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21997 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21998 Usually this means the macro was only invoked conditionally." >&5
21999 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22000 Usually this means the macro was only invoked conditionally." >&2;}
22001 { (exit 1); exit 1; }; }
22003 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22004 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22005 Usually this means the macro was only invoked conditionally." >&5
22006 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22007 Usually this means the macro was only invoked conditionally." >&2;}
22008 { (exit 1); exit 1; }; }
22011 : ${CONFIG_STATUS=./config.status}
22012 ac_clean_files_save=$ac_clean_files
22013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22016 cat >$CONFIG_STATUS <<_ACEOF
22018 # Generated by $as_me.
22019 # Run this file to recreate the current configuration.
22020 # Compiler output produced by configure, useful for debugging
22021 # configure, is in config.log if it exists.
22024 ac_cs_recheck=false
22026 SHELL=\${CONFIG_SHELL-$SHELL}
22029 cat >>$CONFIG_STATUS <<\_ACEOF
22030 ## --------------------- ##
22031 ## M4sh Initialization. ##
22032 ## --------------------- ##
22034 # Be Bourne compatible
22035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22038 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22039 # is contrary to our usage. Disable this feature.
22040 alias -g '${1+"$@"}'='"$@"'
22041 setopt NO_GLOB_SUBST
22043 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22045 BIN_SH=xpg4; export BIN_SH # for Tru64
22046 DUALCASE=1; export DUALCASE # for MKS sh
22050 # Avoid depending upon Character Ranges.
22051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22054 as_cr_digits='0123456789'
22055 as_cr_alnum=$as_cr_Letters$as_cr_digits
22057 # The user is always right.
22058 if test "${PATH_SEPARATOR+set}" != set; then
22059 echo "#! /bin/sh" >conf$$.sh
22060 echo "exit 0" >>conf$$.sh
22062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22070 # Support unset when possible.
22071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22079 # We need space, tab and new line, in precisely that order. Quoting is
22080 # there to prevent editors from complaining about space-tab.
22081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22082 # splitting by setting IFS to empty value.)
22087 # Find who we are. Look in the path if we contain no directory separator.
22089 *[\\/]* ) as_myself=$0 ;;
22090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22091 for as_dir in $PATH
22094 test -z "$as_dir" && as_dir=.
22095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22101 # We did not find ourselves, most probably we were run as `sh COMMAND'
22102 # in which case we are not to be found in the path.
22103 if test "x$as_myself" = x; then
22106 if test ! -f "$as_myself"; then
22107 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22108 { (exit 1); exit 1; }
22111 # Work around bugs in pre-3.0 UWIN ksh.
22112 for as_var in ENV MAIL MAILPATH
22113 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22121 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22122 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22123 LC_TELEPHONE LC_TIME
22125 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22126 eval $as_var=C; export $as_var
22128 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22132 # Required to use basename.
22133 if expr a : '\(a\)' >/dev/null 2>&1 &&
22134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22141 as_basename=basename
22147 # Name of the executable.
22148 as_me=`$as_basename -- "$0" ||
22149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22150 X"$0" : 'X\(//\)$' \| \
22151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22153 sed '/^.*\/\([^/][^/]*\)\/*$/{
22172 as_lineno_1=$LINENO
22173 as_lineno_2=$LINENO
22174 test "x$as_lineno_1" != "x$as_lineno_2" &&
22175 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22178 # uniformly replaced by the line number. The first 'sed' inserts a
22179 # line-number line after each line using $LINENO; the second 'sed'
22180 # does the real work. The second script uses 'N' to pair each
22181 # line-number line with the line containing $LINENO, and appends
22182 # trailing '-' during substitution so that $LINENO is not a special
22183 # case at line end.
22184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22185 # scripts with optimization help from Paolo Bonzini. Blame Lee
22186 # E. McMahon (1931-1989) for sed's syntax. :-)
22198 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22201 ' >$as_me.lineno &&
22202 chmod +x "$as_me.lineno" ||
22203 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22204 { (exit 1); exit 1; }; }
22206 # Don't try to exec as it changes $[0], causing all sort of problems
22207 # (the dirname of $[0] is not the place where we might find the
22208 # original and so on. Autoconf is especially sensitive to this).
22209 . "./$as_me.lineno"
22210 # Exit status is that of the last command.
22215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22221 ECHO_C= ECHO_N= ECHO_T=
22222 case `echo -n x` in
22224 case `echo 'x\c'` in
22225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22232 if expr a : '\(a\)' >/dev/null 2>&1 &&
22233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22239 rm -f conf$$ conf$$.exe conf$$.file
22240 if test -d conf$$.dir; then
22241 rm -f conf$$.dir/conf$$.file
22247 if ln -s conf$$.file conf$$ 2>/dev/null; then
22249 # ... but there are two gotchas:
22250 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22251 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22252 # In both cases, we have to default to `cp -p'.
22253 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22255 elif ln conf$$.file conf$$ 2>/dev/null; then
22260 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22261 rmdir conf$$.dir 2>/dev/null
22263 if mkdir -p . 2>/dev/null; then
22266 test -d ./-p && rmdir ./-p
22270 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22271 # systems may use methods other than mode bits to determine executability.
22272 cat >conf$$.file <<_ASEOF
22276 chmod +x conf$$.file
22277 if test -x conf$$.file >/dev/null 2>&1; then
22278 as_executable_p="test -x"
22284 # Sed expression to map a string onto a valid CPP name.
22285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22287 # Sed expression to map a string onto a valid variable name.
22288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22293 # Save the log message, to keep $[0] and so on meaningful, and to
22294 # report actual input values of CONFIG_FILES etc. instead of their
22295 # values after options handling.
22297 This file was extended by LLVM $as_me 3.3svn, which was
22298 generated by GNU Autoconf 2.60. Invocation command line was
22300 CONFIG_FILES = $CONFIG_FILES
22301 CONFIG_HEADERS = $CONFIG_HEADERS
22302 CONFIG_LINKS = $CONFIG_LINKS
22303 CONFIG_COMMANDS = $CONFIG_COMMANDS
22306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22311 cat >>$CONFIG_STATUS <<_ACEOF
22312 # Files that config.status was made for.
22313 config_files="$ac_config_files"
22314 config_headers="$ac_config_headers"
22315 config_commands="$ac_config_commands"
22319 cat >>$CONFIG_STATUS <<\_ACEOF
22321 \`$as_me' instantiates files from templates according to the
22322 current configuration.
22324 Usage: $0 [OPTIONS] [FILE]...
22326 -h, --help print this help, then exit
22327 -V, --version print version number, then exit
22328 -q, --quiet do not print progress messages
22329 -d, --debug don't remove temporary files
22330 --recheck update $as_me by reconfiguring in the same conditions
22331 --file=FILE[:TEMPLATE]
22332 instantiate the configuration file FILE
22333 --header=FILE[:TEMPLATE]
22334 instantiate the configuration header FILE
22336 Configuration files:
22339 Configuration headers:
22342 Configuration commands:
22345 Report bugs to <bug-autoconf@gnu.org>."
22348 cat >>$CONFIG_STATUS <<_ACEOF
22350 LLVM config.status 3.3svn
22351 configured by $0, generated by GNU Autoconf 2.60,
22352 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22354 Copyright (C) 2006 Free Software Foundation, Inc.
22355 This config.status script is free software; the Free Software Foundation
22356 gives unlimited permission to copy, distribute and modify it."
22363 cat >>$CONFIG_STATUS <<\_ACEOF
22364 # If no file are specified by the user, then we need to provide default
22365 # value. By we need to know if files were specified by the user.
22371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22383 # Handling of the options.
22384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22387 echo "$ac_cs_version"; exit ;;
22388 --debug | --debu | --deb | --de | --d | -d )
22390 --file | --fil | --fi | --f )
22392 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22393 ac_need_defaults=false;;
22394 --header | --heade | --head | --hea )
22396 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22397 ac_need_defaults=false;;
22399 # Conflict between --help and --header
22400 { echo "$as_me: error: ambiguous option: $1
22401 Try \`$0 --help' for more information." >&2
22402 { (exit 1); exit 1; }; };;
22403 --help | --hel | -h )
22404 echo "$ac_cs_usage"; exit ;;
22405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22406 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22409 # This is an error.
22410 -*) { echo "$as_me: error: unrecognized option: $1
22411 Try \`$0 --help' for more information." >&2
22412 { (exit 1); exit 1; }; } ;;
22414 *) ac_config_targets="$ac_config_targets $1"
22415 ac_need_defaults=false ;;
22421 ac_configure_extra_args=
22423 if $ac_cs_silent; then
22425 ac_configure_extra_args="$ac_configure_extra_args --silent"
22429 cat >>$CONFIG_STATUS <<_ACEOF
22430 if \$ac_cs_recheck; then
22431 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22432 CONFIG_SHELL=$SHELL
22433 export CONFIG_SHELL
22434 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22438 cat >>$CONFIG_STATUS <<\_ACEOF
22442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22443 ## Running $as_me. ##
22449 cat >>$CONFIG_STATUS <<_ACEOF
22453 llvm_src="${srcdir}"
22457 cat >>$CONFIG_STATUS <<\_ACEOF
22459 # Handling of arguments.
22460 for ac_config_target in $ac_config_targets
22462 case $ac_config_target in
22463 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22464 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22465 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22466 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22467 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22468 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22469 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22470 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22471 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22472 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22473 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22474 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22475 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22476 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22477 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22478 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22479 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22480 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22481 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22482 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22483 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22484 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22485 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22486 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22487 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22488 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22489 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22493 { (exit 1); exit 1; }; };;
22498 # If the user did not use the arguments to specify the items to instantiate,
22499 # then the envvar interface is used. Set only those that are not.
22500 # We use the long form for the default assignment because of an extremely
22501 # bizarre bug on SunOS 4.1.3.
22502 if $ac_need_defaults; then
22503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22508 # Have a temporary directory for convenience. Make it in the build tree
22509 # simply because there is no reason against having it here, and in addition,
22510 # creating and moving files from /tmp can sometimes cause problems.
22511 # Hook for its removal unless debugging.
22512 # Note that there is a small window in which the directory will not be cleaned:
22513 # after its creation but before its name has been assigned to `$tmp'.
22517 trap 'exit_status=$?
22518 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22520 trap '{ (exit 1); exit 1; }' 1 2 13 15
22522 # Create a (secure) tmp directory for tmp files.
22525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22526 test -n "$tmp" && test -d "$tmp"
22529 tmp=./conf$$-$RANDOM
22530 (umask 077 && mkdir "$tmp")
22533 echo "$me: cannot create a temporary directory in ." >&2
22534 { (exit 1); exit 1; }
22538 # Set up the sed scripts for CONFIG_FILES section.
22541 # No need to generate the scripts if there are no CONFIG_FILES.
22542 # This happens for instance when ./config.status config.h
22543 if test -n "$CONFIG_FILES"; then
22550 for ac_last_try in false false false false false :; do
22551 cat >conf$$subs.sed <<_ACEOF
22552 SHELL!$SHELL$ac_delim
22553 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22554 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22555 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22556 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22557 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22558 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22559 exec_prefix!$exec_prefix$ac_delim
22560 prefix!$prefix$ac_delim
22561 program_transform_name!$program_transform_name$ac_delim
22562 bindir!$bindir$ac_delim
22563 sbindir!$sbindir$ac_delim
22564 libexecdir!$libexecdir$ac_delim
22565 datarootdir!$datarootdir$ac_delim
22566 datadir!$datadir$ac_delim
22567 sysconfdir!$sysconfdir$ac_delim
22568 sharedstatedir!$sharedstatedir$ac_delim
22569 localstatedir!$localstatedir$ac_delim
22570 includedir!$includedir$ac_delim
22571 oldincludedir!$oldincludedir$ac_delim
22572 docdir!$docdir$ac_delim
22573 infodir!$infodir$ac_delim
22574 htmldir!$htmldir$ac_delim
22575 dvidir!$dvidir$ac_delim
22576 pdfdir!$pdfdir$ac_delim
22577 psdir!$psdir$ac_delim
22578 libdir!$libdir$ac_delim
22579 localedir!$localedir$ac_delim
22580 mandir!$mandir$ac_delim
22581 DEFS!$DEFS$ac_delim
22582 ECHO_C!$ECHO_C$ac_delim
22583 ECHO_N!$ECHO_N$ac_delim
22584 ECHO_T!$ECHO_T$ac_delim
22585 LIBS!$LIBS$ac_delim
22586 build_alias!$build_alias$ac_delim
22587 host_alias!$host_alias$ac_delim
22588 target_alias!$target_alias$ac_delim
22589 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22591 CFLAGS!$CFLAGS$ac_delim
22592 LDFLAGS!$LDFLAGS$ac_delim
22593 CPPFLAGS!$CPPFLAGS$ac_delim
22594 ac_ct_CC!$ac_ct_CC$ac_delim
22595 EXEEXT!$EXEEXT$ac_delim
22596 OBJEXT!$OBJEXT$ac_delim
22598 CXXFLAGS!$CXXFLAGS$ac_delim
22599 ac_ct_CXX!$ac_ct_CXX$ac_delim
22601 subdirs!$subdirs$ac_delim
22602 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22603 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22604 build!$build$ac_delim
22605 build_cpu!$build_cpu$ac_delim
22606 build_vendor!$build_vendor$ac_delim
22607 build_os!$build_os$ac_delim
22608 host!$host$ac_delim
22609 host_cpu!$host_cpu$ac_delim
22610 host_vendor!$host_vendor$ac_delim
22611 host_os!$host_os$ac_delim
22612 target!$target$ac_delim
22613 target_cpu!$target_cpu$ac_delim
22614 target_vendor!$target_vendor$ac_delim
22615 target_os!$target_os$ac_delim
22617 HOST_OS!$HOST_OS$ac_delim
22618 TARGET_OS!$TARGET_OS$ac_delim
22619 LINKALL!$LINKALL$ac_delim
22620 NOLINKALL!$NOLINKALL$ac_delim
22621 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22622 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22623 ARCH!$ARCH$ac_delim
22624 HOST_ARCH!$HOST_ARCH$ac_delim
22625 ENDIAN!$ENDIAN$ac_delim
22626 GREP!$GREP$ac_delim
22627 EGREP!$EGREP$ac_delim
22628 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22629 BUILD_CC!$BUILD_CC$ac_delim
22630 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22631 BUILD_CXX!$BUILD_CXX$ac_delim
22632 CVSBUILD!$CVSBUILD$ac_delim
22633 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22634 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22635 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22636 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22637 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22638 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22639 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22640 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22641 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22642 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22643 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22644 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22645 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22646 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22648 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22651 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22653 elif $ac_last_try; then
22654 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22655 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22656 { (exit 1); exit 1; }; }
22658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22662 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22663 if test -n "$ac_eof"; then
22664 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22665 ac_eof=`expr $ac_eof + 1`
22668 cat >>$CONFIG_STATUS <<_ACEOF
22669 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22673 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22674 s/^/s,@/; s/!/@,|#_!!_#|/
22677 s/'"$ac_delim"'$/,g/; t
22679 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22680 ' >>$CONFIG_STATUS <conf$$subs.sed
22681 rm -f conf$$subs.sed
22682 cat >>$CONFIG_STATUS <<_ACEOF
22688 for ac_last_try in false false false false false :; do
22689 cat >conf$$subs.sed <<_ACEOF
22690 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22691 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22692 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22693 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22694 ENABLE_PIC!$ENABLE_PIC$ac_delim
22695 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22696 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22697 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22698 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22699 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22700 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22701 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22702 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22703 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22704 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22705 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22706 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22707 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22708 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22709 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22711 ifGNUmake!$ifGNUmake$ac_delim
22712 LN_S!$LN_S$ac_delim
22715 DATE!$DATE$ac_delim
22716 FIND!$FIND$ac_delim
22717 MKDIR!$MKDIR$ac_delim
22719 RANLIB!$RANLIB$ac_delim
22724 BINPWD!$BINPWD$ac_delim
22725 GRAPHVIZ!$GRAPHVIZ$ac_delim
22728 NEATO!$NEATO$ac_delim
22729 TWOPI!$TWOPI$ac_delim
22730 CIRCO!$CIRCO$ac_delim
22732 DOTTY!$DOTTY$ac_delim
22733 XDOT_PY!$XDOT_PY$ac_delim
22734 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22735 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22736 INSTALL_DATA!$INSTALL_DATA$ac_delim
22737 BZIP2!$BZIP2$ac_delim
22739 DOXYGEN!$DOXYGEN$ac_delim
22740 GROFF!$GROFF$ac_delim
22741 GZIPBIN!$GZIPBIN$ac_delim
22742 PDFROFF!$PDFROFF$ac_delim
22744 OCAMLC!$OCAMLC$ac_delim
22745 OCAMLOPT!$OCAMLOPT$ac_delim
22746 OCAMLDEP!$OCAMLDEP$ac_delim
22747 OCAMLDOC!$OCAMLDOC$ac_delim
22749 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22750 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22751 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22752 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22753 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22754 LIBADD_DL!$LIBADD_DL$ac_delim
22755 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22756 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22757 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22758 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22759 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22760 PYTHON!$PYTHON$ac_delim
22761 USE_UDIS86!$USE_UDIS86$ac_delim
22762 USE_OPROFILE!$USE_OPROFILE$ac_delim
22763 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22764 XML2CONFIG!$XML2CONFIG$ac_delim
22765 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22766 LIBXML2_INC!$LIBXML2_INC$ac_delim
22767 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22768 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22769 MMAP_FILE!$MMAP_FILE$ac_delim
22770 SHLIBEXT!$SHLIBEXT$ac_delim
22771 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22772 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22773 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22774 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22775 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22776 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22777 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22778 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22779 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22780 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22781 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22782 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22783 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22784 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22785 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22786 RPATH!$RPATH$ac_delim
22789 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22791 elif $ac_last_try; then
22792 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22794 { (exit 1); exit 1; }; }
22796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22801 if test -n "$ac_eof"; then
22802 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22803 ac_eof=`expr $ac_eof + 1`
22806 cat >>$CONFIG_STATUS <<_ACEOF
22807 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22812 s/^/s,@/; s/!/@,|#_!!_#|/
22815 s/'"$ac_delim"'$/,g/; t
22817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22818 ' >>$CONFIG_STATUS <conf$$subs.sed
22819 rm -f conf$$subs.sed
22820 cat >>$CONFIG_STATUS <<_ACEOF
22826 for ac_last_try in false false false false false :; do
22827 cat >conf$$subs.sed <<_ACEOF
22828 RDYNAMIC!$RDYNAMIC$ac_delim
22829 program_prefix!$program_prefix$ac_delim
22830 LIBOBJS!$LIBOBJS$ac_delim
22831 LTLIBOBJS!$LTLIBOBJS$ac_delim
22834 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22836 elif $ac_last_try; then
22837 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22838 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22839 { (exit 1); exit 1; }; }
22841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22845 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22846 if test -n "$ac_eof"; then
22847 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22848 ac_eof=`expr $ac_eof + 1`
22851 cat >>$CONFIG_STATUS <<_ACEOF
22852 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22856 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22857 s/^/s,@/; s/!/@,|#_!!_#|/
22860 s/'"$ac_delim"'$/,g/; t
22862 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22863 ' >>$CONFIG_STATUS <conf$$subs.sed
22864 rm -f conf$$subs.sed
22865 cat >>$CONFIG_STATUS <<_ACEOF
22872 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22873 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22874 # trailing colons and then remove the whole line if VPATH becomes empty
22875 # (actually we leave an empty line to preserve line numbers).
22876 if test "x$srcdir" = x.; then
22877 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22878 s/:*\$(srcdir):*/:/
22879 s/:*\${srcdir}:*/:/
22881 s/^\([^=]*=[ ]*\):*/\1/
22887 cat >>$CONFIG_STATUS <<\_ACEOF
22888 fi # test -n "$CONFIG_FILES"
22891 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22894 :[FHLC]) ac_mode=$ac_tag; continue;;
22896 case $ac_mode$ac_tag in
22898 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22899 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22900 { (exit 1); exit 1; }; };;
22901 :[FH]-) ac_tag=-:-;;
22902 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22919 -) ac_f="$tmp/stdin";;
22920 *) # Look for the file first in the build tree, then in the source tree
22921 # (if the path is not absolute). The absolute path cannot be DOS-style,
22922 # because $ac_f cannot contain `:'.
22926 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22928 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22929 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22930 { (exit 1); exit 1; }; };;
22932 ac_file_inputs="$ac_file_inputs $ac_f"
22935 # Let's still pretend it is `configure' which instantiates (i.e., don't
22936 # use $as_me), people would be surprised to read:
22937 # /* config.h. Generated by config.status. */
22938 configure_input="Generated from "`IFS=:
22939 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22940 if test x"$ac_file" != x-; then
22941 configure_input="$ac_file. $configure_input"
22942 { echo "$as_me:$LINENO: creating $ac_file" >&5
22943 echo "$as_me: creating $ac_file" >&6;}
22947 *:-:* | *:-) cat >"$tmp/stdin";;
22952 ac_dir=`$as_dirname -- "$ac_file" ||
22953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22954 X"$ac_file" : 'X\(//\)[^/]' \| \
22955 X"$ac_file" : 'X\(//\)$' \| \
22956 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22962 /^X\(\/\/\)[^/].*/{
22977 -*) as_dir=./$as_dir;;
22979 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22983 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22984 *) as_qdir=$as_dir;;
22986 as_dirs="'$as_qdir' $as_dirs"
22987 as_dir=`$as_dirname -- "$as_dir" ||
22988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22989 X"$as_dir" : 'X\(//\)[^/]' \| \
22990 X"$as_dir" : 'X\(//\)$' \| \
22991 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22997 /^X\(\/\/\)[^/].*/{
23010 test -d "$as_dir" && break
23012 test -z "$as_dirs" || eval "mkdir $as_dirs"
23013 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23014 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23015 { (exit 1); exit 1; }; }; }
23019 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23021 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23022 # A ".." for each directory in $ac_dir_suffix.
23023 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23024 case $ac_top_builddir_sub in
23025 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23026 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23029 ac_abs_top_builddir=$ac_pwd
23030 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23031 # for backward compatibility:
23032 ac_top_builddir=$ac_top_build_prefix
23035 .) # We are building in place.
23037 ac_top_srcdir=$ac_top_builddir_sub
23038 ac_abs_top_srcdir=$ac_pwd ;;
23039 [\\/]* | ?:[\\/]* ) # Absolute name.
23040 ac_srcdir=$srcdir$ac_dir_suffix;
23041 ac_top_srcdir=$srcdir
23042 ac_abs_top_srcdir=$srcdir ;;
23043 *) # Relative name.
23044 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23045 ac_top_srcdir=$ac_top_build_prefix$srcdir
23046 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23048 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23058 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23059 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23063 cat >>$CONFIG_STATUS <<\_ACEOF
23064 # If the template does not know about datarootdir, expand it.
23065 # FIXME: This hack should be removed a few years after 2.60.
23066 ac_datarootdir_hack=; ac_datarootdir_seen=
23068 case `sed -n '/datarootdir/ {
23077 ' $ac_file_inputs` in
23078 *datarootdir*) ac_datarootdir_seen=yes;;
23079 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23080 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23081 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23083 cat >>$CONFIG_STATUS <<_ACEOF
23084 ac_datarootdir_hack='
23085 s&@datadir@&$datadir&g
23086 s&@docdir@&$docdir&g
23087 s&@infodir@&$infodir&g
23088 s&@localedir@&$localedir&g
23089 s&@mandir@&$mandir&g
23090 s&\\\${datarootdir}&$datarootdir&g' ;;
23094 # Neutralize VPATH when `$srcdir' = `.'.
23095 # Shell code in configure.ac might set extrasub.
23096 # FIXME: do we really want to maintain this feature?
23097 cat >>$CONFIG_STATUS <<_ACEOF
23101 cat >>$CONFIG_STATUS <<\_ACEOF
23103 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23104 s&@configure_input@&$configure_input&;t t
23105 s&@top_builddir@&$ac_top_builddir_sub&;t t
23106 s&@srcdir@&$ac_srcdir&;t t
23107 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23108 s&@top_srcdir@&$ac_top_srcdir&;t t
23109 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23110 s&@builddir@&$ac_builddir&;t t
23111 s&@abs_builddir@&$ac_abs_builddir&;t t
23112 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23113 s&@INSTALL@&$ac_INSTALL&;t t
23114 $ac_datarootdir_hack
23115 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23117 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23118 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23119 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23120 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23121 which seems to be undefined. Please make sure it is defined." >&5
23122 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23123 which seems to be undefined. Please make sure it is defined." >&2;}
23127 -) cat "$tmp/out"; rm -f "$tmp/out";;
23128 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23137 # Transform confdefs.h into a sed script `conftest.defines', that
23138 # substitutes the proper values into config.h.in to produce config.h.
23139 rm -f conftest.defines conftest.tail
23140 # First, append a space to every undef/define line, to ease matching.
23141 echo 's/$/ /' >conftest.defines
23142 # Then, protect against being on the right side of a sed subst, or in
23143 # an unquoted here document, in config.status. If some macros were
23144 # called several times there might be several #defines for the same
23145 # symbol, which is useless. But do not sort them, since the last
23146 # AC_DEFINE must be honored.
23147 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23148 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23149 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23150 # PARAMS is the parameter list in the macro definition--in most cases, it's
23151 # just an empty string.
23152 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23153 ac_dB='\\)[ (].*,\\1define\\2'
23161 s/^[ ]*#[ ]*define[ ][ ]*//
23166 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23167 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23168 ' >>conftest.defines
23170 # Remove the space that was appended to ease matching.
23171 # Then replace #undef with comments. This is necessary, for
23172 # example, in the case of _POSIX_SOURCE, which is predefined and required
23173 # on some systems where configure will not decide to define it.
23174 # (The regexp can be short, since the line contains either #define or #undef.)
23176 s,^[ #]*u.*,/* & */,' >>conftest.defines
23178 # Break up conftest.defines:
23179 ac_max_sed_lines=50
23181 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23182 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23183 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23185 ac_in='$ac_file_inputs'
23186 ac_out='"$tmp/out1"'
23187 ac_nxt='"$tmp/out2"'
23191 # Write a here document:
23192 cat >>$CONFIG_STATUS <<_ACEOF
23193 # First, check the format of the line:
23194 cat >"\$tmp/defines.sed" <<\\CEOF
23195 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23196 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23200 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23202 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23203 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23204 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23205 grep . conftest.tail >/dev/null || break
23206 rm -f conftest.defines
23207 mv conftest.tail conftest.defines
23209 rm -f conftest.defines conftest.tail
23211 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23212 cat >>$CONFIG_STATUS <<\_ACEOF
23213 if test x"$ac_file" != x-; then
23214 echo "/* $configure_input */" >"$tmp/config.h"
23215 cat "$ac_result" >>"$tmp/config.h"
23216 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23217 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23218 echo "$as_me: $ac_file is unchanged" >&6;}
23221 mv "$tmp/config.h" $ac_file
23224 echo "/* $configure_input */"
23230 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23231 echo "$as_me: executing $ac_file commands" >&6;}
23236 case $ac_file$ac_mode in
23237 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23238 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23239 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23240 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23241 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23242 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23243 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23244 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23245 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23246 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23247 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23248 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23249 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23250 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23251 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23252 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23253 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23254 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23255 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23256 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23257 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23258 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23259 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23260 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23261 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23262 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23268 { (exit 0); exit 0; }
23270 chmod +x $CONFIG_STATUS
23271 ac_clean_files=$ac_clean_files_save
23274 # configure is writing to config.log, and then calls config.status.
23275 # config.status does its own redirection, appending to config.log.
23276 # Unfortunately, on DOS this fails, as config.log is still kept open
23277 # by configure, so config.status won't be able to write to it; its
23278 # output is simply discarded. So we exec the FD to /dev/null,
23279 # effectively closing config.log, so it can be properly (re)opened and
23280 # appended to by config.status. When coming back to configure, we
23281 # need to make the FD available again.
23282 if test "$no_create" != yes; then
23284 ac_config_status_args=
23285 test "$silent" = yes &&
23286 ac_config_status_args="$ac_config_status_args --quiet"
23288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23291 # would make configure fail if this is the last instruction.
23292 $ac_cs_success || { (exit 1); exit 1; }
23296 # CONFIG_SUBDIRS section.
23298 if test "$no_recursion" != yes; then
23300 # Remove --cache-file and --srcdir arguments so they do not pile up.
23301 ac_sub_configure_args=
23303 eval "set x $ac_configure_args"
23307 if test -n "$ac_prev"; then
23312 -cache-file | --cache-file | --cache-fil | --cache-fi \
23313 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23314 ac_prev=cache_file ;;
23315 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23316 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23319 --config-cache | -C)
23321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23331 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23333 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23337 # Always prepend --prefix to ensure using the same prefix
23338 # in subdir configurations.
23339 ac_arg="--prefix=$prefix"
23341 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23343 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23346 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23348 # Do not complain, so a configure script can configure whichever
23349 # parts of a large source tree are present.
23350 test -d "$srcdir/$ac_dir" || continue
23352 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23353 echo "$as_me:$LINENO: $ac_msg" >&5
23357 -*) as_dir=./$as_dir;;
23359 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23363 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23364 *) as_qdir=$as_dir;;
23366 as_dirs="'$as_qdir' $as_dirs"
23367 as_dir=`$as_dirname -- "$as_dir" ||
23368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23369 X"$as_dir" : 'X\(//\)[^/]' \| \
23370 X"$as_dir" : 'X\(//\)$' \| \
23371 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23377 /^X\(\/\/\)[^/].*/{
23390 test -d "$as_dir" && break
23392 test -z "$as_dirs" || eval "mkdir $as_dirs"
23393 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23394 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23395 { (exit 1); exit 1; }; }; }
23399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23401 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23402 # A ".." for each directory in $ac_dir_suffix.
23403 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23404 case $ac_top_builddir_sub in
23405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23409 ac_abs_top_builddir=$ac_pwd
23410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23411 # for backward compatibility:
23412 ac_top_builddir=$ac_top_build_prefix
23415 .) # We are building in place.
23417 ac_top_srcdir=$ac_top_builddir_sub
23418 ac_abs_top_srcdir=$ac_pwd ;;
23419 [\\/]* | ?:[\\/]* ) # Absolute name.
23420 ac_srcdir=$srcdir$ac_dir_suffix;
23421 ac_top_srcdir=$srcdir
23422 ac_abs_top_srcdir=$srcdir ;;
23423 *) # Relative name.
23424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23425 ac_top_srcdir=$ac_top_build_prefix$srcdir
23426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23433 # Check for guested configure; otherwise get Cygnus style configure.
23434 if test -f "$ac_srcdir/configure.gnu"; then
23435 ac_sub_configure=$ac_srcdir/configure.gnu
23436 elif test -f "$ac_srcdir/configure"; then
23437 ac_sub_configure=$ac_srcdir/configure
23438 elif test -f "$ac_srcdir/configure.in"; then
23439 # This should be Cygnus configure.
23440 ac_sub_configure=$ac_aux_dir/configure
23442 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23443 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23447 # The recursion is here.
23448 if test -n "$ac_sub_configure"; then
23449 # Make the cache file name correct relative to the subdirectory.
23450 case $cache_file in
23451 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23452 *) # Relative name.
23453 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23456 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23457 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23458 # The eval makes quoting arguments work.
23459 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23460 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23461 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23462 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23463 { (exit 1); exit 1; }; }