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
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
798 ENABLE_VISIBILITY_INLINES_HIDDEN
805 ac_precious_vars='build_alias
816 ac_subdirs_all='projects/llvm-gcc
820 projects/llvm-poolalloc
823 projects/llvm-stacker
831 # Initialize some variables set by options.
833 ac_init_version=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name=s,x,x,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 -enable-* | --enable-*)
951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
972 -help | --help | --hel | --he | -h)
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1121 -site=* | --site=* | --sit=*)
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
1166 # Obsolete; use --with-x.
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
1214 # Be sure to have absolute directory names.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-polly Use polly if available (default is YES)
1405 --enable-libcpp Use libc++ if available (default is NO)
1406 --enable-cxx11 Use c++11 if available (default is NO)
1407 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1408 --enable-clang-static-analyzer
1409 Enable building of clang Static Analyzer (default is
1411 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1412 --enable-optimized Compile with optimizations enabled (default is NO)
1413 --enable-profiling Compile with profiling enabled (default is NO)
1414 --enable-assertions Compile with assertion checks enabled (default is
1416 --enable-werror Compile with -Werror enabled (default is NO)
1417 --enable-expensive-checks
1418 Compile with expensive debug checks enabled (default
1420 --enable-debug-runtime Build runtime libs with debug symbols (default is
1422 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1423 optimization is on and YES if it's off)
1424 --enable-keep-symbols Do not strip installed executables)
1425 --enable-jit Enable Just In Time Compiling (default is YES)
1426 --enable-docs Build documents (default is YES)
1427 --enable-doxygen Build doxygen documentation (default is NO)
1428 --enable-threads Use threads if available (default is YES)
1429 --enable-pthreads Use pthreads if available (default is YES)
1430 --enable-pic Build LLVM with Position Independent Code (default
1432 --enable-shared Build a shared library and link tools against it
1434 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1435 Win32 DLL (default is NO)
1436 --enable-timestamps Enable embedding timestamp information in build
1438 --enable-backtraces Enable embedding backtraces on crash (default is
1440 --enable-targets Build specific host targets: all or
1441 target1,target2,... Valid targets are: host, x86,
1442 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1443 xcore, msp430, nvptx, and cpp (default=all)
1444 --enable-experimental-targets
1445 Build experimental host targets: disable or
1446 target1,target2,... (default=disable)
1447 --enable-bindings Build specific language bindings:
1448 all,auto,none,{binding-name} (default=auto)
1449 --enable-libffi Check for the presence of libffi (default is NO)
1450 --enable-ltdl-install install libltdl
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-srcdir Directory to the out-of-tree Clang source
1462 --with-clang-resource-dir
1463 Relative directory from the Clang binary for
1465 --with-c-include-dirs Colon separated list of directories clang will
1467 --with-gcc-toolchain Directory where gcc is installed.
1468 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1469 --with-binutils-include Specify path to binutils/include/ containing
1470 plugin-api.h file for gold plugin.
1471 --with-bug-report-url Specify the URL where bug reports should be
1472 submitted (default=http://llvm.org/bugs/)
1473 --with-internal-prefix Installation directory for internal files
1474 --with-python path to python
1475 --with-udis86=<path> Use udis86 external x86 disassembler library
1476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
1478 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <http://llvm.org/bugs/>.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1523 .) # We are building in place.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 LLVM configure 3.3svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by LLVM $as_me 3.3svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_must_keep_next=false
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 -* ) ac_must_keep_next=true ;;
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1736 if test -n "$ac_subst_files"; then
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1743 for ac_var in $ac_subst_files
1745 eval ac_val=\$$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1754 if test -s confdefs.h; then
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1845 # Check that the precious variables saved in the cache have kept the same
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 cat >>confdefs.h <<\_ACEOF
1927 #define LLVM_VERSION_MAJOR 3
1931 cat >>confdefs.h <<\_ACEOF
1932 #define LLVM_VERSION_MINOR 3
1936 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1945 for ac_dir in autoconf "$srcdir"/autoconf; do
1946 if test -f "$ac_dir/install-sh"; then
1948 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 elif test -f "$ac_dir/install.sh"; then
1952 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 elif test -f "$ac_dir/shtool"; then
1956 ac_install_sh="$ac_aux_dir/shtool install -c"
1960 if test -z "$ac_aux_dir"; then
1961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1962 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # These three variables are undocumented and unsupported,
1967 # and are intended to be withdrawn in a future Autoconf release.
1968 # They can cause serious problems if a builder's source tree is in a directory
1969 # whose full name contains unusual characters.
1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1972 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976 if test ${srcdir} != "." ; then
1977 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1978 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1979 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1980 { (exit 1); exit 1; }; }
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989 if test -n "$ac_tool_prefix"; then
1990 for ac_prog in clang llvm-gcc gcc
1992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1996 if test "${ac_cv_prog_CC+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 if test -n "$CC"; then
2000 ac_cv_prog_CC="$CC" # Let the user override the test.
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2009 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 if test -n "$CC"; then
2021 { echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6; }
2024 { echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6; }
2029 test -n "$CC" && break
2032 if test -z "$CC"; then
2034 for ac_prog in clang llvm-gcc gcc
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2053 ac_cv_prog_ac_ct_CC="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6; }
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2073 test -n "$ac_ct_CC" && break
2076 if test "x$ac_ct_CC" = x; then
2079 case $cross_compiling:$ac_tool_warned in
2081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2082 whose name does not start with the host triplet. If you think this
2083 configuration is useful to you, please write to autoconf@gnu.org." >&5
2084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2085 whose name does not start with the host triplet. If you think this
2086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2087 ac_tool_warned=yes ;;
2094 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2095 See \`config.log' for more details." >&5
2096 echo "$as_me: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&2;}
2098 { (exit 1); exit 1; }; }
2100 # Provide some information about the compiler.
2101 echo "$as_me:$LINENO: checking for C compiler version" >&5
2102 ac_compiler=`set X $ac_compile; echo $2`
2103 { (ac_try="$ac_compiler --version >&5"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler --version >&5") 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (ac_try="$ac_compiler -v >&5"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -v >&5") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123 { (ac_try="$ac_compiler -V >&5"
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129 (eval "$ac_compiler -V >&5") 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2134 cat >conftest.$ac_ext <<_ACEOF
2137 cat confdefs.h >>conftest.$ac_ext
2138 cat >>conftest.$ac_ext <<_ACEOF
2139 /* end confdefs.h. */
2149 ac_clean_files_save=$ac_clean_files
2150 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2151 # Try to create an executable without -o first, disregard a.out.
2152 # It will help us diagnose broken compilers, and finding out an intuition
2154 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2155 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2156 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158 # List of possible output files, starting from the most likely.
2159 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2160 # only as a last resort. b.out is created by i960 compilers.
2161 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2163 # The IRIX 6 linker writes into existing files which may not be
2164 # executable, retaining their permissions. Remove them first so a
2165 # subsequent execution test works.
2167 for ac_file in $ac_files
2170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2171 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2176 if { (ac_try="$ac_link_default"
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2182 (eval "$ac_link_default") 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; then
2186 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2187 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2188 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2189 # so that the user can short-circuit this test for compilers unknown to
2191 for ac_file in $ac_files
2193 test -f "$ac_file" || continue
2195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2198 # We found the default executable, but exeext='' is most
2202 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2204 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206 # We set ac_cv_exeext here because the later test for it is not
2207 # safe: cross compilers may not add the suffix if given an `-o'
2208 # argument, so we may need to know it at that point already.
2209 # Even if this section looks crufty: it has the advantage of
2216 test "$ac_cv_exeext" = no && ac_cv_exeext=
2219 echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2222 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&2;}
2226 { (exit 77); exit 77; }; }
2229 ac_exeext=$ac_cv_exeext
2230 { echo "$as_me:$LINENO: result: $ac_file" >&5
2231 echo "${ECHO_T}$ac_file" >&6; }
2233 # Check that the compiler produces executables we can run. If not, either
2234 # the compiler is broken, or we cross compile.
2235 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2236 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2238 # If not cross compiling, check that we can run a simple program.
2239 if test "$cross_compiling" != yes; then
2240 if { ac_try='./$ac_file'
2241 { (case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2246 (eval "$ac_try") 2>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2252 if test "$cross_compiling" = maybe; then
2255 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2265 { echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6; }
2268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2269 ac_clean_files=$ac_clean_files_save
2270 # Check that the compiler produces executables we can run. If not, either
2271 # the compiler is broken, or we cross compile.
2272 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2274 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2275 echo "${ECHO_T}$cross_compiling" >&6; }
2277 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2279 if { (ac_try="$ac_link"
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285 (eval "$ac_link") 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; then
2289 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2290 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2291 # work properly (i.e., refer to `conftest.exe'), while it won't with
2293 for ac_file in conftest.exe conftest conftest.*; do
2294 test -f "$ac_file" || continue
2296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2303 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2310 rm -f conftest$ac_cv_exeext
2311 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2314 rm -f conftest.$ac_ext
2315 EXEEXT=$ac_cv_exeext
2317 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2319 if test "${ac_cv_objext+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 cat >conftest.$ac_ext <<_ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2337 rm -f conftest.o conftest.obj
2338 if { (ac_try="$ac_compile"
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_compile") 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 for ac_file in conftest.o conftest.obj conftest.*; do
2349 test -f "$ac_file" || continue;
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2352 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2360 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2361 See \`config.log' for more details." >&5
2362 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details." >&2;}
2364 { (exit 1); exit 1; }; }
2367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2369 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2370 echo "${ECHO_T}$ac_cv_objext" >&6; }
2371 OBJEXT=$ac_cv_objext
2373 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2374 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2375 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 cat >conftest.$ac_ext <<_ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2396 rm -f conftest.$ac_objext
2397 if { (ac_try="$ac_compile"
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_compile") 2>conftest.er1
2405 grep -v '^ *+' conftest.er1 >conftest.err
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; } &&
2420 { ac_try='test -s conftest.$ac_objext'
2421 { (case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_try") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2442 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2443 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2444 GCC=`test $ac_compiler_gnu = yes && echo yes`
2445 ac_test_CFLAGS=${CFLAGS+set}
2446 ac_save_CFLAGS=$CFLAGS
2447 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2448 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_cc_g+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 ac_save_c_werror_flag=$ac_c_werror_flag
2453 ac_c_werror_flag=yes
2456 cat >conftest.$ac_ext <<_ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_compile") 2>conftest.er1
2480 grep -v '^ *+' conftest.er1 >conftest.err
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2511 cat >conftest.$ac_ext <<_ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2526 rm -f conftest.$ac_objext
2527 if { (ac_try="$ac_compile"
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_compile") 2>conftest.er1
2535 grep -v '^ *+' conftest.er1 >conftest.err
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_try") 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2565 ac_c_werror_flag=$ac_save_c_werror_flag
2567 cat >conftest.$ac_ext <<_ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (ac_try="$ac_compile"
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612 (eval "$ac_try") 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 ac_c_werror_flag=$ac_save_c_werror_flag
2633 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2634 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2635 if test "$ac_test_CFLAGS" = set; then
2636 CFLAGS=$ac_save_CFLAGS
2637 elif test $ac_cv_prog_cc_g = yes; then
2638 if test "$GCC" = yes; then
2644 if test "$GCC" = yes; then
2650 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2651 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2652 if test "${ac_cv_prog_cc_c89+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 ac_cv_prog_cc_c89=no
2657 cat >conftest.$ac_ext <<_ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2665 #include <sys/types.h>
2666 #include <sys/stat.h>
2667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2668 struct buf { int x; };
2669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2670 static char *e (p, i)
2676 static char *f (char * (*g) (char **, int), char **p, ...)
2681 s = g (p, va_arg (v,int));
2686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2687 function prototypes and stuff, but not '\xHH' hex character constants.
2688 These don't provoke an error unfortunately, instead are silently treated
2689 as 'x'. The following induces an error, until -std is added to get
2690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2691 array size at least. It's necessary to write '\x00'==0 to get something
2692 that's true only with -std. */
2693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2696 inside strings and character constants. */
2698 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2700 int test (int i, double x);
2701 struct s1 {int (*f) (int a);};
2702 struct s2 {int (*f) (double a);};
2703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2717 CC="$ac_save_CC $ac_arg"
2718 rm -f conftest.$ac_objext
2719 if { (ac_try="$ac_compile"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_compile") 2>conftest.er1
2727 grep -v '^ *+' conftest.er1 >conftest.err
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; } &&
2742 { ac_try='test -s conftest.$ac_objext'
2743 { (case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_try") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2752 ac_cv_prog_cc_c89=$ac_arg
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f core conftest.err conftest.$ac_objext
2761 test "x$ac_cv_prog_cc_c89" != "xno" && break
2763 rm -f conftest.$ac_ext
2768 case "x$ac_cv_prog_cc_c89" in
2770 { echo "$as_me:$LINENO: result: none needed" >&5
2771 echo "${ECHO_T}none needed" >&6; } ;;
2773 { echo "$as_me:$LINENO: result: unsupported" >&5
2774 echo "${ECHO_T}unsupported" >&6; } ;;
2776 CC="$CC $ac_cv_prog_cc_c89"
2777 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2778 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 ac_cpp='$CXXCPP $CPPFLAGS'
2790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2793 if test -z "$CXX"; then
2794 if test -n "$CCC"; then
2797 if test -n "$ac_tool_prefix"; then
2798 for ac_prog in clang++ llvm-g++ g++
2800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2804 if test "${ac_cv_prog_CXX+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$CXX"; then
2808 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 if test -n "$CXX"; then
2829 { echo "$as_me:$LINENO: result: $CXX" >&5
2830 echo "${ECHO_T}$CXX" >&6; }
2832 { echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6; }
2837 test -n "$CXX" && break
2840 if test -z "$CXX"; then
2842 for ac_prog in clang++ llvm-g++ g++
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2848 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 if test -n "$ac_ct_CXX"; then
2852 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_ac_ct_CXX="$ac_prog"
2862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2872 if test -n "$ac_ct_CXX"; then
2873 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2874 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2876 { echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6; }
2881 test -n "$ac_ct_CXX" && break
2884 if test "x$ac_ct_CXX" = x; then
2887 case $cross_compiling:$ac_tool_warned in
2889 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2890 whose name does not start with the host triplet. If you think this
2891 configuration is useful to you, please write to autoconf@gnu.org." >&5
2892 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2893 whose name does not start with the host triplet. If you think this
2894 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2895 ac_tool_warned=yes ;;
2903 # Provide some information about the compiler.
2904 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2905 ac_compiler=`set X $ac_compile; echo $2`
2906 { (ac_try="$ac_compiler --version >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler --version >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (ac_try="$ac_compiler -v >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -v >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926 { (ac_try="$ac_compiler -V >&5"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compiler -V >&5") 2>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2937 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2939 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3006 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3007 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3008 GXX=`test $ac_compiler_gnu = yes && echo yes`
3009 ac_test_CXXFLAGS=${CXXFLAGS+set}
3010 ac_save_CXXFLAGS=$CXXFLAGS
3011 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3012 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_cxx_g+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3017 ac_cxx_werror_flag=yes
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3069 ac_cv_prog_cxx_g=yes
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3131 cat >conftest.$ac_ext <<_ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3180 ac_cv_prog_cxx_g=yes
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3197 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3198 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3199 if test "$ac_test_CXXFLAGS" = set; then
3200 CXXFLAGS=$ac_save_CXXFLAGS
3201 elif test $ac_cv_prog_cxx_g = yes; then
3202 if test "$GXX" = yes; then
3208 if test "$GXX" = yes; then
3215 ac_cpp='$CPP $CPPFLAGS'
3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3226 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3227 # On Suns, sometimes $CPP names a directory.
3228 if test -n "$CPP" && test -d "$CPP"; then
3231 if test -z "$CPP"; then
3232 if test "${ac_cv_prog_CPP+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 # Double quotes because CPP needs to be expanded
3236 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3239 for ac_c_preproc_warn_flag in '' yes
3241 # Use a header file that comes with gcc, so configuring glibc
3242 # with a fresh cross-compiler works.
3243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3244 # <limits.h> exists even on freestanding compilers.
3245 # On the NeXT, cc -E runs the code through the compiler's parser,
3246 # not just through cpp. "Syntax error" is here to catch this case.
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3254 # include <limits.h>
3256 # include <assert.h>
3260 if { (ac_try="$ac_cpp conftest.$ac_ext"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1 >conftest.err
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } >/dev/null; then
3273 if test -s conftest.err; then
3274 ac_cpp_err=$ac_c_preproc_warn_flag
3275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3282 if test -z "$ac_cpp_err"; then
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 # Broken: fails on valid input.
3292 rm -f conftest.err conftest.$ac_ext
3294 # OK, works on sane cases. Now check whether nonexistent headers
3295 # can be detected and how.
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 #include <ac_nonexistent.h>
3304 if { (ac_try="$ac_cpp conftest.$ac_ext"
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3312 grep -v '^ *+' conftest.er1 >conftest.err
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } >/dev/null; then
3317 if test -s conftest.err; then
3318 ac_cpp_err=$ac_c_preproc_warn_flag
3319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3326 if test -z "$ac_cpp_err"; then
3327 # Broken: success on invalid input.
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 # Passes both tests.
3338 rm -f conftest.err conftest.$ac_ext
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3355 { echo "$as_me:$LINENO: result: $CPP" >&5
3356 echo "${ECHO_T}$CPP" >&6; }
3358 for ac_c_preproc_warn_flag in '' yes
3360 # Use a header file that comes with gcc, so configuring glibc
3361 # with a fresh cross-compiler works.
3362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363 # <limits.h> exists even on freestanding compilers.
3364 # On the NeXT, cc -E runs the code through the compiler's parser,
3365 # not just through cpp. "Syntax error" is here to catch this case.
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3373 # include <limits.h>
3375 # include <assert.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null; then
3392 if test -s conftest.err; then
3393 ac_cpp_err=$ac_c_preproc_warn_flag
3394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401 if test -z "$ac_cpp_err"; then
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 # Broken: fails on valid input.
3411 rm -f conftest.err conftest.$ac_ext
3413 # OK, works on sane cases. Now check whether nonexistent headers
3414 # can be detected and how.
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include <ac_nonexistent.h>
3423 if { (ac_try="$ac_cpp conftest.$ac_ext"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } >/dev/null; then
3436 if test -s conftest.err; then
3437 ac_cpp_err=$ac_c_preproc_warn_flag
3438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445 if test -z "$ac_cpp_err"; then
3446 # Broken: success on invalid input.
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 # Passes both tests.
3457 rm -f conftest.err conftest.$ac_ext
3460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461 rm -f conftest.err conftest.$ac_ext
3462 if $ac_preproc_ok; then
3465 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3466 See \`config.log' for more details." >&5
3467 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3468 See \`config.log' for more details." >&2;}
3469 { (exit 1); exit 1; }; }
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479 if test "$CXX" = "clang++" ; then
3480 { echo "$as_me:$LINENO: checking whether clang works" >&5
3481 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3483 ac_cpp='$CXXCPP $CPPFLAGS'
3484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3496 #if __has_include (<cxxabi.h>)
3499 #if __has_include (<unwind.h>)
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3526 { (case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_try") 2>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; } &&
3535 { ac_try='test -s conftest.$ac_objext'
3536 { (case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_try") 2>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3546 { echo "$as_me:$LINENO: result: yes" >&5
3547 echo "${ECHO_T}yes" >&6; }
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3554 { echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6; }
3556 { { 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
3557 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;}
3558 { (exit 1); exit 1; }; }
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 if test -d ${srcdir}/projects/llvm-gcc ; then
3574 subdirs="$subdirs projects/llvm-gcc"
3578 if test -d ${srcdir}/projects/test-suite ; then
3579 subdirs="$subdirs projects/test-suite"
3583 if test -d ${srcdir}/projects/llvm-test ; then
3584 subdirs="$subdirs projects/llvm-test"
3588 if test -d ${srcdir}/projects/poolalloc ; then
3589 subdirs="$subdirs projects/poolalloc"
3593 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3594 subdirs="$subdirs projects/llvm-poolalloc"
3598 for i in `ls ${srcdir}/projects`
3600 if test -d ${srcdir}/projects/${i} ; then
3602 sample) subdirs="$subdirs projects/sample"
3604 privbracket) subdirs="$subdirs projects/privbracket"
3606 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3608 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3610 llvm-java) subdirs="$subdirs projects/llvm-java"
3612 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3614 safecode) subdirs="$subdirs projects/safecode"
3616 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3625 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3626 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3632 # Check whether --enable-polly was given.
3633 if test "${enable_polly+set}" = set; then
3634 enableval=$enable_polly;
3639 case "$enableval" in
3644 default) ENABLE_POLLY=1
3646 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3647 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3648 { (exit 1); exit 1; }; } ;;
3652 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3655 subdirs="$subdirs tools/polly"
3660 # Make sure we can run config.sub.
3661 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3662 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3663 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3664 { (exit 1); exit 1; }; }
3666 { echo "$as_me:$LINENO: checking build system type" >&5
3667 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3668 if test "${ac_cv_build+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 ac_build_alias=$build_alias
3672 test "x$ac_build_alias" = x &&
3673 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3674 test "x$ac_build_alias" = x &&
3675 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3676 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3677 { (exit 1); exit 1; }; }
3678 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3679 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3680 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3681 { (exit 1); exit 1; }; }
3684 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3685 echo "${ECHO_T}$ac_cv_build" >&6; }
3686 case $ac_cv_build in
3688 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3689 echo "$as_me: error: invalid value of canonical build" >&2;}
3690 { (exit 1); exit 1; }; };;
3693 ac_save_IFS=$IFS; IFS='-'
3699 # Remember, the first character of IFS is used to create $*,
3700 # except with old shells:
3703 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3706 { echo "$as_me:$LINENO: checking host system type" >&5
3707 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3708 if test "${ac_cv_host+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 if test "x$host_alias" = x; then
3712 ac_cv_host=$ac_cv_build
3714 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3715 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3716 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3717 { (exit 1); exit 1; }; }
3721 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3722 echo "${ECHO_T}$ac_cv_host" >&6; }
3725 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3726 echo "$as_me: error: invalid value of canonical host" >&2;}
3727 { (exit 1); exit 1; }; };;
3730 ac_save_IFS=$IFS; IFS='-'
3736 # Remember, the first character of IFS is used to create $*,
3737 # except with old shells:
3740 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3743 { echo "$as_me:$LINENO: checking target system type" >&5
3744 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3745 if test "${ac_cv_target+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 if test "x$target_alias" = x; then
3749 ac_cv_target=$ac_cv_host
3751 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3752 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3753 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3754 { (exit 1); exit 1; }; }
3758 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3759 echo "${ECHO_T}$ac_cv_target" >&6; }
3760 case $ac_cv_target in
3762 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3763 echo "$as_me: error: invalid value of canonical target" >&2;}
3764 { (exit 1); exit 1; }; };;
3766 target=$ac_cv_target
3767 ac_save_IFS=$IFS; IFS='-'
3773 # Remember, the first character of IFS is used to create $*,
3774 # except with old shells:
3777 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3780 # The aliases save the names the user supplied, while $host etc.
3781 # will get canonicalized.
3782 test -n "$target_alias" &&
3783 test "$program_prefix$program_suffix$program_transform_name" = \
3785 program_prefix=${target_alias}-
3787 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3788 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3789 if test "${llvm_cv_os_type+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 llvm_cv_link_all_option="-Wl,--whole-archive"
3795 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3796 llvm_cv_os_type="AIX"
3797 llvm_cv_platform_type="Unix" ;;
3799 llvm_cv_link_all_option="-Wl,--whole-archive"
3800 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3801 llvm_cv_os_type="IRIX"
3802 llvm_cv_platform_type="Unix" ;;
3804 llvm_cv_link_all_option="-Wl,--whole-archive"
3805 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3806 llvm_cv_os_type="Cygwin"
3807 llvm_cv_platform_type="Unix" ;;
3809 llvm_cv_link_all_option="-Wl,-all_load"
3810 llvm_cv_no_link_all_option="-Wl,-noall_load"
3811 llvm_cv_os_type="Darwin"
3812 llvm_cv_platform_type="Unix" ;;
3814 llvm_cv_link_all_option="-Wl,-all_load"
3815 llvm_cv_no_link_all_option="-Wl,-noall_load"
3816 llvm_cv_os_type="Minix"
3817 llvm_cv_platform_type="Unix" ;;
3818 *-*-freebsd* | *-*-kfreebsd-gnu)
3819 llvm_cv_link_all_option="-Wl,--whole-archive"
3820 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3821 llvm_cv_os_type="FreeBSD"
3822 llvm_cv_platform_type="Unix" ;;
3824 llvm_cv_link_all_option="-Wl,--whole-archive"
3825 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3826 llvm_cv_os_type="OpenBSD"
3827 llvm_cv_platform_type="Unix" ;;
3829 llvm_cv_link_all_option="-Wl,--whole-archive"
3830 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3831 llvm_cv_os_type="NetBSD"
3832 llvm_cv_platform_type="Unix" ;;
3834 llvm_cv_link_all_option="-Wl,--whole-archive"
3835 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3836 llvm_cv_os_type="DragonFly"
3837 llvm_cv_platform_type="Unix" ;;
3839 llvm_cv_link_all_option="-Wl,--whole-archive"
3840 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3841 llvm_cv_os_type="HP-UX"
3842 llvm_cv_platform_type="Unix" ;;
3844 llvm_cv_link_all_option="-Wl,--whole-archive"
3845 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3846 llvm_cv_os_type="Interix"
3847 llvm_cv_platform_type="Unix" ;;
3849 llvm_cv_link_all_option="-Wl,--whole-archive"
3850 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3851 llvm_cv_os_type="Linux"
3852 llvm_cv_platform_type="Unix" ;;
3854 llvm_cv_link_all_option="-Wl,--whole-archive"
3855 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3856 llvm_cv_os_type="GNU"
3857 llvm_cv_platform_type="Unix" ;;
3859 llvm_cv_link_all_option="-Wl,-z,allextract"
3860 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3861 llvm_cv_os_type="SunOS"
3862 llvm_cv_platform_type="Unix" ;;
3864 llvm_cv_link_all_option="-Wl,-z,allextract"
3865 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3866 llvm_cv_os_type="AuroraUX"
3867 llvm_cv_platform_type="Unix" ;;
3869 llvm_cv_link_all_option="-Wl,--whole-archive"
3870 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3871 llvm_cv_os_type="Win32"
3872 llvm_cv_platform_type="Win32" ;;
3874 llvm_cv_link_all_option="-Wl,--whole-archive"
3875 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3876 llvm_cv_os_type="MingW"
3877 llvm_cv_platform_type="Win32" ;;
3879 llvm_cv_link_all_option="-Wl,--whole-archive"
3880 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3881 llvm_cv_os_type="Haiku"
3882 llvm_cv_platform_type="Unix" ;;
3884 llvm_cv_link_all_option="-Wl,--whole-archive"
3885 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3886 llvm_cv_os_type="Freestanding"
3887 llvm_cv_platform_type="Unix" ;;
3889 llvm_cv_link_all_option="-Wl,--whole-archive"
3890 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3891 llvm_cv_os_type="Freestanding"
3892 llvm_cv_platform_type="Unix" ;;
3894 llvm_cv_link_all_option=""
3895 llvm_cv_no_link_all_option=""
3896 llvm_cv_os_type="Unknown"
3897 llvm_cv_platform_type="Unknown" ;;
3900 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3901 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3903 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3904 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3905 if test "${llvm_cv_target_os_type+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 llvm_cv_target_os_type="AIX" ;;
3912 llvm_cv_target_os_type="IRIX" ;;
3914 llvm_cv_target_os_type="Cygwin" ;;
3916 llvm_cv_target_os_type="Darwin" ;;
3918 llvm_cv_target_os_type="Minix" ;;
3919 *-*-freebsd* | *-*-kfreebsd-gnu)
3920 llvm_cv_target_os_type="FreeBSD" ;;
3922 llvm_cv_target_os_type="OpenBSD" ;;
3924 llvm_cv_target_os_type="NetBSD" ;;
3926 llvm_cv_target_os_type="DragonFly" ;;
3928 llvm_cv_target_os_type="HP-UX" ;;
3930 llvm_cv_target_os_type="Interix" ;;
3932 llvm_cv_target_os_type="Linux" ;;
3934 llvm_cv_target_os_type="GNU" ;;
3936 llvm_cv_target_os_type="SunOS" ;;
3938 llvm_cv_target_os_type="AuroraUX" ;;
3940 llvm_cv_target_os_type="Win32" ;;
3942 llvm_cv_target_os_type="MingW" ;;
3944 llvm_cv_target_os_type="Haiku" ;;
3946 llvm_cv_target_os_type="RTEMS" ;;
3948 llvm_cv_target_os_type="NativeClient" ;;
3950 llvm_cv_target_os_type="Freestanding" ;;
3952 llvm_cv_target_os_type="Unknown" ;;
3955 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3956 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3958 if test "$llvm_cv_os_type" = "Unknown" ; then
3959 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3960 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3961 { (exit 1); exit 1; }; }
3966 HOST_OS=$llvm_cv_os_type
3968 TARGET_OS=$llvm_cv_target_os_type
3971 LINKALL=$llvm_cv_link_all_option
3973 NOLINKALL=$llvm_cv_no_link_all_option
3976 case $llvm_cv_platform_type in
3979 cat >>confdefs.h <<\_ACEOF
3980 #define LLVM_ON_UNIX 1
3990 cat >>confdefs.h <<\_ACEOF
3991 #define LLVM_ON_WIN32 1
4001 { echo "$as_me:$LINENO: checking target architecture" >&5
4002 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4003 if test "${llvm_cv_target_arch+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 i?86-*) llvm_cv_target_arch="x86" ;;
4008 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4009 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4010 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4011 arm*-*) llvm_cv_target_arch="ARM" ;;
4012 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4013 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4014 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4015 xcore-*) llvm_cv_target_arch="XCore" ;;
4016 msp430-*) llvm_cv_target_arch="MSP430" ;;
4017 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4018 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4019 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4020 *) llvm_cv_target_arch="Unknown" ;;
4023 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4024 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4026 if test "$llvm_cv_target_arch" = "Unknown" ; then
4027 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4028 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4031 case "$llvm_cv_target_arch" in
4032 x86) LLVM_NATIVE_ARCH="X86" ;;
4033 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4034 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4037 ARCH=$llvm_cv_target_arch
4041 i?86-*) host_arch="x86" ;;
4042 amd64-* | x86_64-*) host_arch="x86_64" ;;
4043 sparc*-*) host_arch="Sparc" ;;
4044 powerpc*-*) host_arch="PowerPC" ;;
4045 arm*-*) host_arch="ARM" ;;
4046 aarch64*-*) host_arch="AArch64" ;;
4047 mips-* | mips64-*) host_arch="Mips" ;;
4048 mipsel-* | mips64el-*) host_arch="Mips" ;;
4049 xcore-*) host_arch="XCore" ;;
4050 msp430-*) host_arch="MSP430" ;;
4051 hexagon-*) host_arch="Hexagon" ;;
4052 mblaze-*) host_arch="MBlaze" ;;
4053 *) host_arch="Unknown" ;;
4056 if test "$host_arch" = "Unknown" ; then
4057 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4058 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4061 HOST_ARCH=$host_arch
4066 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4067 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4068 if test "${ac_cv_path_GREP+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 # Extract the first word of "grep ggrep" to use in msg output
4072 if test -z "$GREP"; then
4073 set dummy grep ggrep; ac_prog_name=$2
4074 if test "${ac_cv_path_GREP+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 ac_path_GREP_found=false
4078 # Loop through the user's path and test for each of PROGNAME-LIST
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4083 test -z "$as_dir" && as_dir=.
4084 for ac_prog in grep ggrep; do
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4087 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4088 # Check for GNU ac_path_GREP and select it if it is found.
4089 # Check for GNU $ac_path_GREP
4090 case `"$ac_path_GREP" --version 2>&1` in
4092 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4095 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4098 cat "conftest.in" "conftest.in" >"conftest.tmp"
4099 mv "conftest.tmp" "conftest.in"
4100 cp "conftest.in" "conftest.nl"
4101 echo 'GREP' >> "conftest.nl"
4102 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4104 ac_count=`expr $ac_count + 1`
4105 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4106 # Best one so far, save it but keep looking for a better one
4107 ac_cv_path_GREP="$ac_path_GREP"
4108 ac_path_GREP_max=$ac_count
4110 # 10*(2^10) chars as input seems more than enough
4111 test $ac_count -gt 10 && break
4113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4117 $ac_path_GREP_found && break 3
4127 GREP="$ac_cv_path_GREP"
4128 if test -z "$GREP"; then
4129 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4130 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4131 { (exit 1); exit 1; }; }
4135 ac_cv_path_GREP=$GREP
4140 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4141 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4142 GREP="$ac_cv_path_GREP"
4145 { echo "$as_me:$LINENO: checking for egrep" >&5
4146 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4147 if test "${ac_cv_path_EGREP+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4151 then ac_cv_path_EGREP="$GREP -E"
4153 # Extract the first word of "egrep" to use in msg output
4154 if test -z "$EGREP"; then
4155 set dummy egrep; ac_prog_name=$2
4156 if test "${ac_cv_path_EGREP+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 ac_path_EGREP_found=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 test -z "$as_dir" && as_dir=.
4166 for ac_prog in egrep; do
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4169 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4170 # Check for GNU ac_path_EGREP and select it if it is found.
4171 # Check for GNU $ac_path_EGREP
4172 case `"$ac_path_EGREP" --version 2>&1` in
4174 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4177 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4180 cat "conftest.in" "conftest.in" >"conftest.tmp"
4181 mv "conftest.tmp" "conftest.in"
4182 cp "conftest.in" "conftest.nl"
4183 echo 'EGREP' >> "conftest.nl"
4184 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186 ac_count=`expr $ac_count + 1`
4187 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4188 # Best one so far, save it but keep looking for a better one
4189 ac_cv_path_EGREP="$ac_path_EGREP"
4190 ac_path_EGREP_max=$ac_count
4192 # 10*(2^10) chars as input seems more than enough
4193 test $ac_count -gt 10 && break
4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199 $ac_path_EGREP_found && break 3
4209 EGREP="$ac_cv_path_EGREP"
4210 if test -z "$EGREP"; then
4211 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4212 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4213 { (exit 1); exit 1; }; }
4217 ac_cv_path_EGREP=$EGREP
4223 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4224 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4225 EGREP="$ac_cv_path_EGREP"
4228 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4229 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4230 if test "${ac_cv_header_stdc+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4252 rm -f conftest.$ac_objext
4253 if { (ac_try="$ac_compile"
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_compile") 2>conftest.er1
4261 grep -v '^ *+' conftest.er1 >conftest.err
4263 cat conftest.err >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } &&
4266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_try") 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 ac_cv_header_stdc=yes
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 ac_cv_header_stdc=no
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 if test $ac_cv_header_stdc = yes; then
4297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4298 cat >conftest.$ac_ext <<_ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "memchr" >/dev/null 2>&1; then
4311 ac_cv_header_stdc=no
4317 if test $ac_cv_header_stdc = yes; then
4318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "free" >/dev/null 2>&1; then
4332 ac_cv_header_stdc=no
4338 if test $ac_cv_header_stdc = yes; then
4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340 if test "$cross_compiling" = yes; then
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4351 #if ((' ' & 0x0FF) == 0x020)
4352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4355 # define ISLOWER(c) \
4356 (('a' <= (c) && (c) <= 'i') \
4357 || ('j' <= (c) && (c) <= 'r') \
4358 || ('s' <= (c) && (c) <= 'z'))
4359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4367 for (i = 0; i < 256; i++)
4368 if (XOR (islower (i), ISLOWER (i))
4369 || toupper (i) != TOUPPER (i))
4374 rm -f conftest$ac_exeext
4375 if { (ac_try="$ac_link"
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_link") 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4385 { (case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_try") 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4396 echo "$as_me: program exited with status $ac_status" >&5
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4401 ac_cv_header_stdc=no
4403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4409 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4410 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4411 if test $ac_cv_header_stdc = yes; then
4413 cat >>confdefs.h <<\_ACEOF
4414 #define STDC_HEADERS 1
4419 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4429 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4430 inttypes.h stdint.h unistd.h
4432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4446 #include <$ac_header>
4448 rm -f conftest.$ac_objext
4449 if { (ac_try="$ac_compile"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_compile") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest.$ac_objext'
4473 { (case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_try") 2>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 eval "$as_ac_Header=yes"
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 eval "$as_ac_Header=no"
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 ac_res=`eval echo '${'$as_ac_Header'}'`
4493 { echo "$as_me:$LINENO: result: $ac_res" >&5
4494 echo "${ECHO_T}$ac_res" >&6; }
4495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4496 cat >>confdefs.h <<_ACEOF
4497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4505 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4506 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4507 if test "${ac_cv_c_bigendian+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 # See if sys/param.h defines the BYTE_ORDER macro.
4511 cat >conftest.$ac_ext <<_ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #include <sys/types.h>
4518 #include <sys/param.h>
4523 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4531 rm -f conftest.$ac_objext
4532 if { (ac_try="$ac_compile"
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_compile") 2>conftest.er1
4540 grep -v '^ *+' conftest.er1 >conftest.err
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4546 { (case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_try") 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_try") 2>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 # It does; now see whether it defined to BIG_ENDIAN or not.
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <sys/types.h>
4573 #include <sys/param.h>
4578 #if BYTE_ORDER != BIG_ENDIAN
4586 rm -f conftest.$ac_objext
4587 if { (ac_try="$ac_compile"
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_compile") 2>conftest.er1
4595 grep -v '^ *+' conftest.er1 >conftest.err
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4601 { (case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_try") 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_try") 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_c_bigendian=yes
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4625 ac_cv_c_bigendian=no
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 # It does not; compile a test program.
4634 if test "$cross_compiling" = yes; then
4635 # try to guess the endianness by grepping values into an object file
4636 ac_cv_c_bigendian=unknown
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4644 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4645 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4646 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4647 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4648 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4652 _ascii (); _ebcdic ();
4657 rm -f conftest.$ac_objext
4658 if { (ac_try="$ac_compile"
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_compile") 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4672 { (case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677 (eval "$ac_try") 2>&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest.$ac_objext'
4682 { (case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_try") 2>&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4692 ac_cv_c_bigendian=yes
4694 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4695 if test "$ac_cv_c_bigendian" = unknown; then
4696 ac_cv_c_bigendian=no
4698 # finding both strings is unlikely to happen, but who knows?
4699 ac_cv_c_bigendian=unknown
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 cat >conftest.$ac_ext <<_ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 $ac_includes_default
4722 /* Are we little or big endian? From Harbison&Steele. */
4726 char c[sizeof (long int)];
4729 return u.c[sizeof (long int) - 1] == 1;
4735 rm -f conftest$ac_exeext
4736 if { (ac_try="$ac_link"
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_link") 2>&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4746 { (case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_try") 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_c_bigendian=no
4757 echo "$as_me: program exited with status $ac_status" >&5
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4762 ac_cv_c_bigendian=yes
4764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4773 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4774 case $ac_cv_c_bigendian in
4782 { { echo "$as_me:$LINENO: error: unknown endianness
4783 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4784 echo "$as_me: error: unknown endianness
4785 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4786 { (exit 1); exit 1; }; } ;;
4790 if test "$cross_compiling" = yes; then
4791 LLVM_CROSS_COMPILING=1
4794 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4795 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4796 if test "${ac_cv_build_exeext+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4800 ac_cv_build_exeext=.exe
4802 ac_build_prefix=${build_alias}-
4804 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4805 set dummy ${ac_build_prefix}gcc; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 if test -n "$BUILD_CC"; then
4812 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 BUILD_CC=$ac_cv_prog_BUILD_CC
4832 if test -n "$BUILD_CC"; then
4833 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4834 echo "${ECHO_T}$BUILD_CC" >&6; }
4836 { echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6; }
4841 if test -z "$BUILD_CC"; then
4842 # Extract the first word of "gcc", so it can be a program name with args.
4843 set dummy gcc; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 if test -n "$BUILD_CC"; then
4850 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_BUILD_CC="gcc"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 BUILD_CC=$ac_cv_prog_BUILD_CC
4870 if test -n "$BUILD_CC"; then
4871 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4872 echo "${ECHO_T}$BUILD_CC" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 if test -z "$BUILD_CC"; then
4880 # Extract the first word of "cc", so it can be a program name with args.
4881 set dummy cc; ac_word=$2
4882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4884 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 if test -n "$BUILD_CC"; then
4888 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4899 ac_prog_rejected=yes
4902 ac_cv_prog_BUILD_CC="cc"
4903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 if test $ac_prog_rejected = yes; then
4911 # We found a bogon in the path, so make sure we never use it.
4912 set dummy $ac_cv_prog_BUILD_CC
4914 if test $# != 0; then
4915 # We chose a different compiler from the bogus one.
4916 # However, it has the same basename, so the bogon will be chosen
4917 # first if we set BUILD_CC to just the basename; use the full file name.
4919 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4924 BUILD_CC=$ac_cv_prog_BUILD_CC
4925 if test -n "$BUILD_CC"; then
4926 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4927 echo "${ECHO_T}$BUILD_CC" >&6; }
4929 { echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6; }
4936 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4937 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4938 { (exit 1); exit 1; }; }
4939 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4941 echo 'int main () { return 0; }' > conftest.$ac_ext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4944 (eval $ac_build_link) 2>&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; then
4948 for file in conftest.*; do
4950 *.c | *.o | *.obj | *.dSYM) ;;
4951 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4955 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4956 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4957 { (exit 1); exit 1; }; }
4960 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4965 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4966 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4967 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4968 ac_build_exeext=$BUILD_EXEEXT
4970 ac_build_prefix=${build_alias}-
4971 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4972 set dummy ${ac_build_prefix}g++; ac_word=$2
4973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4975 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 if test -n "$BUILD_CXX"; then
4979 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4999 if test -n "$BUILD_CXX"; then
5000 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5001 echo "${ECHO_T}$BUILD_CXX" >&6; }
5003 { echo "$as_me:$LINENO: result: no" >&5
5004 echo "${ECHO_T}no" >&6; }
5008 if test -z "$BUILD_CXX"; then
5009 # Extract the first word of "g++", so it can be a program name with args.
5010 set dummy g++; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 if test -n "$BUILD_CXX"; then
5017 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_BUILD_CXX="g++"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5037 if test -n "$BUILD_CXX"; then
5038 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5039 echo "${ECHO_T}$BUILD_CXX" >&6; }
5041 { echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6; }
5046 if test -z "$BUILD_CXX"; then
5047 # Extract the first word of "c++", so it can be a program name with args.
5048 set dummy c++; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 if test -n "$BUILD_CXX"; then
5055 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5066 ac_prog_rejected=yes
5069 ac_cv_prog_BUILD_CXX="c++"
5070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 if test $ac_prog_rejected = yes; then
5078 # We found a bogon in the path, so make sure we never use it.
5079 set dummy $ac_cv_prog_BUILD_CXX
5081 if test $# != 0; then
5082 # We chose a different compiler from the bogus one.
5083 # However, it has the same basename, so the bogon will be chosen
5084 # first if we set BUILD_CXX to just the basename; use the full file name.
5086 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5091 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5092 if test -n "$BUILD_CXX"; then
5093 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5094 echo "${ECHO_T}$BUILD_CXX" >&6; }
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5104 LLVM_CROSS_COMPILING=0
5108 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5119 # Check whether --enable-libcpp was given.
5120 if test "${enable_libcpp+set}" = set; then
5121 enableval=$enable_libcpp;
5126 case "$enableval" in
5127 yes) ENABLE_LIBCPP=1
5131 default) ENABLE_LIBCPP=0
5133 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5134 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5135 { (exit 1); exit 1; }; } ;;
5138 # Check whether --enable-cxx11 was given.
5139 if test "${enable_cxx11+set}" = set; then
5140 enableval=$enable_cxx11;
5145 case "$enableval" in
5150 default) ENABLE_CXX11=0
5152 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5153 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5154 { (exit 1); exit 1; }; } ;;
5158 # Check whether --enable-clang-arcmt was given.
5159 if test "${enable_clang_arcmt+set}" = set; then
5160 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5165 case "$enableval" in
5166 yes) ENABLE_CLANG_ARCMT=1
5168 no) ENABLE_CLANG_ARCMT=0
5170 default) ENABLE_CLANG_ARCMT=1
5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5174 { (exit 1); exit 1; }; } ;;
5177 clang_static_analyzer="yes"
5178 # Check whether --enable-clang-static-analyzer was given.
5179 if test "${enable_clang_static_analyzer+set}" = set; then
5180 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5185 case "$enableval" in
5186 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5188 no) ENABLE_CLANG_STATIC_ANALYZER=0
5190 default) ENABLE_CLANG_STATIC_ANALYZER=1
5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
5197 # Check whether --enable-clang-rewriter was given.
5198 if test "${enable_clang_rewriter+set}" = set; then
5199 enableval=$enable_clang_rewriter;
5204 case "$enableval" in
5205 yes) ENABLE_CLANG_REWRITER=1
5208 if test ${clang_arcmt} != "no" ; then
5209 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5210 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5211 { (exit 1); exit 1; }; }
5213 if test ${clang_static_analyzer} != "no" ; then
5214 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5215 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5216 { (exit 1); exit 1; }; }
5218 ENABLE_CLANG_REWRITER=0
5221 default) ENABLE_CLANG_REWRITER=1
5223 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5224 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5225 { (exit 1); exit 1; }; } ;;
5228 # Check whether --enable-optimized was given.
5229 if test "${enable_optimized+set}" = set; then
5230 enableval=$enable_optimized;
5235 if test ${enableval} = "no" ; then
5239 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5243 # Check whether --enable-profiling was given.
5244 if test "${enable_profiling+set}" = set; then
5245 enableval=$enable_profiling;
5250 if test ${enableval} = "no" ; then
5254 ENABLE_PROFILING=ENABLE_PROFILING=1
5258 # Check whether --enable-assertions was given.
5259 if test "${enable_assertions+set}" = set; then
5260 enableval=$enable_assertions;
5265 if test ${enableval} = "yes" ; then
5269 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5273 # Check whether --enable-werror was given.
5274 if test "${enable_werror+set}" = set; then
5275 enableval=$enable_werror;
5280 case "$enableval" in
5281 yes) ENABLE_WERROR=1
5285 default) ENABLE_WERROR=0
5287 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5288 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5289 { (exit 1); exit 1; }; } ;;
5292 # Check whether --enable-expensive-checks was given.
5293 if test "${enable_expensive_checks+set}" = set; then
5294 enableval=$enable_expensive_checks;
5299 if test ${enableval} = "yes" ; then
5300 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5302 EXPENSIVE_CHECKS=yes
5305 ENABLE_EXPENSIVE_CHECKS=
5311 # Check whether --enable-debug-runtime was given.
5312 if test "${enable_debug_runtime+set}" = set; then
5313 enableval=$enable_debug_runtime;
5318 if test ${enableval} = "no" ; then
5322 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5326 # Check whether --enable-debug-symbols was given.
5327 if test "${enable_debug_symbols+set}" = set; then
5328 enableval=$enable_debug_symbols;
5333 if test ${enableval} = "no" ; then
5337 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5341 # Check whether --enable-keep-symbols was given.
5342 if test "${enable_keep_symbols+set}" = set; then
5343 enableval=$enable_keep_symbols;
5348 if test ${enableval} = "no" ; then
5352 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5356 # Check whether --enable-jit was given.
5357 if test "${enable_jit+set}" = set; then
5358 enableval=$enable_jit;
5363 if test ${enableval} = "no"
5368 case "$llvm_cv_target_arch" in
5369 x86) TARGET_HAS_JIT=1
5371 Sparc) TARGET_HAS_JIT=0
5373 PowerPC) TARGET_HAS_JIT=1
5375 x86_64) TARGET_HAS_JIT=1
5377 ARM) TARGET_HAS_JIT=1
5379 AArch64) TARGET_HAS_JIT=0
5381 Mips) TARGET_HAS_JIT=1
5383 XCore) TARGET_HAS_JIT=0
5385 MSP430) TARGET_HAS_JIT=0
5387 Hexagon) TARGET_HAS_JIT=0
5389 MBlaze) TARGET_HAS_JIT=0
5391 NVPTX) TARGET_HAS_JIT=0
5398 # Check whether --enable-docs was given.
5399 if test "${enable_docs+set}" = set; then
5400 enableval=$enable_docs;
5405 case "$enableval" in
5410 default) ENABLE_DOCS=1
5412 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5413 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5414 { (exit 1); exit 1; }; } ;;
5417 # Check whether --enable-doxygen was given.
5418 if test "${enable_doxygen+set}" = set; then
5419 enableval=$enable_doxygen;
5424 case "$enableval" in
5425 yes) ENABLE_DOXYGEN=1
5427 no) ENABLE_DOXYGEN=0
5429 default) ENABLE_DOXYGEN=0
5431 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5433 { (exit 1); exit 1; }; } ;;
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438 enableval=$enable_threads;
5443 case "$enableval" in
5444 yes) LLVM_ENABLE_THREADS=1
5446 no) LLVM_ENABLE_THREADS=0
5448 default) LLVM_ENABLE_THREADS=1
5450 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462 enableval=$enable_pthreads;
5467 case "$enableval" in
5468 yes) ENABLE_PTHREADS=1
5470 no) ENABLE_PTHREADS=0
5472 default) ENABLE_PTHREADS=1
5474 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5479 # Check whether --enable-pic was given.
5480 if test "${enable_pic+set}" = set; then
5481 enableval=$enable_pic;
5486 case "$enableval" in
5491 default) ENABLE_PIC=1
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5498 cat >>confdefs.h <<_ACEOF
5499 #define ENABLE_PIC $ENABLE_PIC
5503 # Check whether --enable-shared was given.
5504 if test "${enable_shared+set}" = set; then
5505 enableval=$enable_shared;
5510 case "$enableval" in
5511 yes) ENABLE_SHARED=1
5515 default) ENABLE_SHARED=0
5517 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5519 { (exit 1); exit 1; }; } ;;
5522 # Check whether --enable-embed-stdcxx was given.
5523 if test "${enable_embed_stdcxx+set}" = set; then
5524 enableval=$enable_embed_stdcxx;
5529 case "$enableval" in
5530 yes) ENABLE_EMBED_STDCXX=1
5532 no) ENABLE_EMBED_STDCXX=0
5534 default) ENABLE_EMBED_STDCXX=0
5536 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5537 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5538 { (exit 1); exit 1; }; } ;;
5541 # Check whether --enable-timestamps was given.
5542 if test "${enable_timestamps+set}" = set; then
5543 enableval=$enable_timestamps;
5548 case "$enableval" in
5549 yes) ENABLE_TIMESTAMPS=1
5551 no) ENABLE_TIMESTAMPS=0
5553 default) ENABLE_TIMESTAMPS=1
5555 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5556 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5557 { (exit 1); exit 1; }; } ;;
5560 cat >>confdefs.h <<_ACEOF
5561 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5566 # Check whether --enable-backtraces was given.
5567 if test "${enable_backtraces+set}" = set; then
5568 enableval=$enable_backtraces;
5573 case "$enableval" in
5574 yes) ENABLE_BACKTRACES=1
5576 no) ENABLE_BACKTRACES=0
5578 default) ENABLE_BACKTRACES=1
5580 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5581 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5582 { (exit 1); exit 1; }; } ;;
5585 cat >>confdefs.h <<_ACEOF
5586 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5591 # Check whether --enable-targets was given.
5592 if test "${enable_targets+set}" = set; then
5593 enableval=$enable_targets;
5598 if test "$enableval" = host-only ; then
5601 case "$enableval" in
5602 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5603 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5605 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5606 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5607 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5608 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5609 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5610 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5611 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5612 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5613 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5614 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5615 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5616 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5617 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5618 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5619 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5620 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5621 host) case "$llvm_cv_target_arch" in
5622 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5623 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5624 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5625 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5626 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5627 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5628 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5629 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5630 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5631 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5632 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5633 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5634 echo "$as_me: error: Can not set target to build" >&2;}
5635 { (exit 1); exit 1; }; } ;;
5637 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5638 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5639 { (exit 1); exit 1; }; } ;;
5645 # Check whether --enable-experimental-targets was given.
5646 if test "${enable_experimental_targets+set}" = set; then
5647 enableval=$enable_experimental_targets;
5653 if test ${enableval} != "disable"
5655 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5658 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5661 for a_target in $TARGETS_TO_BUILD; do
5662 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5664 cat >>confdefs.h <<_ACEOF
5665 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5668 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5669 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5670 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5671 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5672 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5673 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5675 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5676 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5679 cat >>confdefs.h <<_ACEOF
5680 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5684 cat >>confdefs.h <<_ACEOF
5685 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5689 cat >>confdefs.h <<_ACEOF
5690 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5694 cat >>confdefs.h <<_ACEOF
5695 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5698 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5700 cat >>confdefs.h <<_ACEOF
5701 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5705 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5707 cat >>confdefs.h <<_ACEOF
5708 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5715 LLVM_ENUM_TARGETS=""
5716 LLVM_ENUM_ASM_PRINTERS=""
5717 LLVM_ENUM_ASM_PARSERS=""
5718 LLVM_ENUM_DISASSEMBLERS=""
5719 for target_to_build in $TARGETS_TO_BUILD; do
5720 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5721 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5722 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5724 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5725 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5727 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5728 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5737 # Check whether --with-optimize-option was given.
5738 if test "${with_optimize_option+set}" = set; then
5739 withval=$with_optimize_option;
5744 { echo "$as_me:$LINENO: checking optimization flags" >&5
5745 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5748 case "$llvm_cv_os_type" in
5749 FreeBSD) optimize_option=-O2 ;;
5750 MingW) optimize_option=-O2 ;;
5751 *) optimize_option=-O3 ;;
5753 *) optimize_option="$withval" ;;
5755 OPTIMIZE_OPTION=$optimize_option
5757 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5758 echo "${ECHO_T}$optimize_option" >&6; }
5761 # Check whether --with-extra-options was given.
5762 if test "${with_extra_options+set}" = set; then
5763 withval=$with_extra_options;
5769 default) EXTRA_OPTIONS= ;;
5770 *) EXTRA_OPTIONS=$withval ;;
5772 EXTRA_OPTIONS=$EXTRA_OPTIONS
5776 # Check whether --with-extra-ld-options was given.
5777 if test "${with_extra_ld_options+set}" = set; then
5778 withval=$with_extra_ld_options;
5784 default) EXTRA_LD_OPTIONS= ;;
5785 *) EXTRA_LD_OPTIONS=$withval ;;
5787 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5790 # Check whether --enable-bindings was given.
5791 if test "${enable_bindings+set}" = set; then
5792 enableval=$enable_bindings;
5797 BINDINGS_TO_BUILD=""
5798 case "$enableval" in
5799 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5800 all ) BINDINGS_TO_BUILD="ocaml" ;;
5801 none | no) BINDINGS_TO_BUILD="" ;;
5802 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5803 case "$a_binding" in
5804 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5805 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5806 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5807 { (exit 1); exit 1; }; } ;;
5814 # Check whether --with-ocaml-libdir was given.
5815 if test "${with_ocaml_libdir+set}" = set; then
5816 withval=$with_ocaml_libdir;
5822 auto) with_ocaml_libdir="$withval" ;;
5823 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5824 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5825 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5826 { (exit 1); exit 1; }; } ;;
5830 # Check whether --with-clang-srcdir was given.
5831 if test "${with_clang_srcdir+set}" = set; then
5832 withval=$with_clang_srcdir;
5838 -) clang_src_root="" ;;
5839 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5840 *) clang_src_root="$ac_pwd/$withval" ;;
5842 CLANG_SRC_ROOT=$clang_src_root
5846 # Check whether --with-clang-resource-dir was given.
5847 if test "${with_clang_resource_dir+set}" = set; then
5848 withval=$with_clang_resource_dir;
5854 cat >>confdefs.h <<_ACEOF
5855 #define CLANG_RESOURCE_DIR "$withval"
5860 # Check whether --with-c-include-dirs was given.
5861 if test "${with_c_include_dirs+set}" = set; then
5862 withval=$with_c_include_dirs;
5868 cat >>confdefs.h <<_ACEOF
5869 #define C_INCLUDE_DIRS "$withval"
5873 # Clang normally uses the system c++ headers and libraries. With this option,
5874 # clang will use the ones provided by a gcc installation instead. This option should
5875 # be passed the same value that was used with --prefix when configuring gcc.
5877 # Check whether --with-gcc-toolchain was given.
5878 if test "${with_gcc_toolchain+set}" = set; then
5879 withval=$with_gcc_toolchain;
5885 cat >>confdefs.h <<_ACEOF
5886 #define GCC_INSTALL_PREFIX "$withval"
5891 # Check whether --with-default-sysroot was given.
5892 if test "${with_default_sysroot+set}" = set; then
5893 withval=$with_default_sysroot;
5899 cat >>confdefs.h <<_ACEOF
5900 #define DEFAULT_SYSROOT "$withval"
5905 # Check whether --with-binutils-include was given.
5906 if test "${with_binutils_include+set}" = set; then
5907 withval=$with_binutils_include;
5913 default) WITH_BINUTILS_INCDIR=default ;;
5914 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5915 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5916 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5917 { (exit 1); exit 1; }; } ;;
5919 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5920 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5922 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5923 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5924 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5925 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5926 { (exit 1); exit 1; }; };
5931 # Check whether --with-bug-report-url was given.
5932 if test "${with_bug_report_url+set}" = set; then
5933 withval=$with_bug_report_url;
5935 withval="http://llvm.org/bugs/"
5939 cat >>confdefs.h <<_ACEOF
5940 #define BUG_REPORT_URL "$withval"
5944 # Check whether --enable-libffi was given.
5945 if test "${enable_libffi+set}" = set; then
5946 enableval=$enable_libffi; case "$enableval" in
5947 yes) llvm_cv_enable_libffi="yes" ;;
5948 no) llvm_cv_enable_libffi="no" ;;
5949 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5950 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5951 { (exit 1); exit 1; }; } ;;
5954 llvm_cv_enable_libffi=no
5959 # Check whether --with-internal-prefix was given.
5960 if test "${with_internal_prefix+set}" = set; then
5961 withval=$with_internal_prefix;
5966 INTERNAL_PREFIX=$withval
5970 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5971 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5972 if test "${lt_cv_path_NM+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 if test -n "$NM"; then
5976 # Let the user override the test.
5979 lt_nm_to_check="${ac_tool_prefix}nm"
5980 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5981 lt_nm_to_check="$lt_nm_to_check nm"
5983 for lt_tmp_nm in $lt_nm_to_check; do
5984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5985 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5987 test -z "$ac_dir" && ac_dir=.
5988 tmp_nm="$ac_dir/$lt_tmp_nm"
5989 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5990 # Check to see if the nm accepts a BSD-compat flag.
5991 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5992 # nm: unknown option "B" ignored
5993 # Tru64's nm complains that /dev/null is an invalid object file
5994 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5995 */dev/null* | *'Invalid file or object type'*)
5996 lt_cv_path_NM="$tmp_nm -B"
6000 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6002 lt_cv_path_NM="$tmp_nm -p"
6006 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6007 continue # so that we can try to find one that supports BSD flags
6016 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6019 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6020 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6025 { echo "$as_me:$LINENO: checking for GNU make" >&5
6026 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6027 if test "${llvm_cv_gnu_make_command+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 llvm_cv_gnu_make_command=''
6031 for a in "$MAKE" make gmake gnumake ; do
6032 if test -z "$a" ; then continue ; fi ;
6033 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6035 llvm_cv_gnu_make_command=$a ;
6040 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6041 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6042 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6046 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6047 echo "${ECHO_T}\"Not found\"" >&6; };
6051 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6052 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6054 if test "$LN_S" = "ln -s"; then
6055 { echo "$as_me:$LINENO: result: yes" >&5
6056 echo "${ECHO_T}yes" >&6; }
6058 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6059 echo "${ECHO_T}no, using $LN_S" >&6; }
6062 # Extract the first word of "cmp", so it can be a program name with args.
6063 set dummy cmp; ac_word=$2
6064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6066 if test "${ac_cv_path_CMP+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6094 if test -n "$CMP"; then
6095 { echo "$as_me:$LINENO: result: $CMP" >&5
6096 echo "${ECHO_T}$CMP" >&6; }
6098 { echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6; }
6103 # Extract the first word of "cp", so it can be a program name with args.
6104 set dummy cp; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_path_CP+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6135 if test -n "$CP"; then
6136 { echo "$as_me:$LINENO: result: $CP" >&5
6137 echo "${ECHO_T}$CP" >&6; }
6139 { echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6; }
6144 # Extract the first word of "date", so it can be a program name with args.
6145 set dummy date; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_path_DATE+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6175 DATE=$ac_cv_path_DATE
6176 if test -n "$DATE"; then
6177 { echo "$as_me:$LINENO: result: $DATE" >&5
6178 echo "${ECHO_T}$DATE" >&6; }
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6185 # Extract the first word of "find", so it can be a program name with args.
6186 set dummy find; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_FIND+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6216 FIND=$ac_cv_path_FIND
6217 if test -n "$FIND"; then
6218 { echo "$as_me:$LINENO: result: $FIND" >&5
6219 echo "${ECHO_T}$FIND" >&6; }
6221 { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6226 # Extract the first word of "grep", so it can be a program name with args.
6227 set dummy grep; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_path_GREP+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6257 GREP=$ac_cv_path_GREP
6258 if test -n "$GREP"; then
6259 { echo "$as_me:$LINENO: result: $GREP" >&5
6260 echo "${ECHO_T}$GREP" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6267 # Extract the first word of "mkdir", so it can be a program name with args.
6268 set dummy mkdir; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_MKDIR+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6298 MKDIR=$ac_cv_path_MKDIR
6299 if test -n "$MKDIR"; then
6300 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6301 echo "${ECHO_T}$MKDIR" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 # Extract the first word of "mv", so it can be a program name with args.
6309 set dummy mv; ac_word=$2
6310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6312 if test "${ac_cv_path_MV+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6340 if test -n "$MV"; then
6341 { echo "$as_me:$LINENO: result: $MV" >&5
6342 echo "${ECHO_T}$MV" >&6; }
6344 { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6354 if test "${ac_cv_prog_RANLIB+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 if test -n "$RANLIB"; then
6358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 RANLIB=$ac_cv_prog_RANLIB
6378 if test -n "$RANLIB"; then
6379 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6380 echo "${ECHO_T}$RANLIB" >&6; }
6382 { echo "$as_me:$LINENO: result: no" >&5
6383 echo "${ECHO_T}no" >&6; }
6388 if test -z "$ac_cv_prog_RANLIB"; then
6389 ac_ct_RANLIB=$RANLIB
6390 # Extract the first word of "ranlib", so it can be a program name with args.
6391 set dummy ranlib; ac_word=$2
6392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 if test -n "$ac_ct_RANLIB"; then
6398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_prog_ac_ct_RANLIB="ranlib"
6408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6418 if test -n "$ac_ct_RANLIB"; then
6419 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6420 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6422 { echo "$as_me:$LINENO: result: no" >&5
6423 echo "${ECHO_T}no" >&6; }
6426 if test "x$ac_ct_RANLIB" = x; then
6429 case $cross_compiling:$ac_tool_warned in
6431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6432 whose name does not start with the host triplet. If you think this
6433 configuration is useful to you, please write to autoconf@gnu.org." >&5
6434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6435 whose name does not start with the host triplet. If you think this
6436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6437 ac_tool_warned=yes ;;
6439 RANLIB=$ac_ct_RANLIB
6442 RANLIB="$ac_cv_prog_RANLIB"
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}ar; ac_word=$2
6448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6450 if test "${ac_cv_prog_AR+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 if test -n "$AR"; then
6454 ac_cv_prog_AR="$AR" # Let the user override the test.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_AR="${ac_tool_prefix}ar"
6464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 if test -n "$AR"; then
6475 { echo "$as_me:$LINENO: result: $AR" >&5
6476 echo "${ECHO_T}$AR" >&6; }
6478 { echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6; }
6484 if test -z "$ac_cv_prog_AR"; then
6486 # Extract the first word of "ar", so it can be a program name with args.
6487 set dummy ar; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 if test -n "$ac_ct_AR"; then
6494 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_ac_ct_AR="ar"
6504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6514 if test -n "$ac_ct_AR"; then
6515 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6516 echo "${ECHO_T}$ac_ct_AR" >&6; }
6518 { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6522 if test "x$ac_ct_AR" = x; then
6525 case $cross_compiling:$ac_tool_warned in
6527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6528 whose name does not start with the host triplet. If you think this
6529 configuration is useful to you, please write to autoconf@gnu.org." >&5
6530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6531 whose name does not start with the host triplet. If you think this
6532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6533 ac_tool_warned=yes ;;
6541 # Extract the first word of "rm", so it can be a program name with args.
6542 set dummy rm; ac_word=$2
6543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6545 if test "${ac_cv_path_RM+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6573 if test -n "$RM"; then
6574 { echo "$as_me:$LINENO: result: $RM" >&5
6575 echo "${ECHO_T}$RM" >&6; }
6577 { echo "$as_me:$LINENO: result: no" >&5
6578 echo "${ECHO_T}no" >&6; }
6582 # Extract the first word of "sed", so it can be a program name with args.
6583 set dummy sed; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_SED+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6614 if test -n "$SED"; then
6615 { echo "$as_me:$LINENO: result: $SED" >&5
6616 echo "${ECHO_T}$SED" >&6; }
6618 { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6623 # Extract the first word of "tar", so it can be a program name with args.
6624 set dummy tar; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_TAR+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6655 if test -n "$TAR"; then
6656 { echo "$as_me:$LINENO: result: $TAR" >&5
6657 echo "${ECHO_T}$TAR" >&6; }
6659 { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6664 # Extract the first word of "pwd", so it can be a program name with args.
6665 set dummy pwd; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_BINPWD+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6695 BINPWD=$ac_cv_path_BINPWD
6696 if test -n "$BINPWD"; then
6697 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6698 echo "${ECHO_T}$BINPWD" >&6; }
6700 { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6706 # Extract the first word of "Graphviz", so it can be a program name with args.
6707 set dummy Graphviz; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6737 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6738 if test -n "$GRAPHVIZ"; then
6739 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6740 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6742 { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6747 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6749 cat >>confdefs.h <<\_ACEOF
6750 #define HAVE_GRAPHVIZ 1
6753 if test "$llvm_cv_os_type" = "MingW" ; then
6754 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6757 cat >>confdefs.h <<_ACEOF
6758 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6762 # Extract the first word of "dot", so it can be a program name with args.
6763 set dummy dot; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_DOT+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6794 if test -n "$DOT"; then
6795 { echo "$as_me:$LINENO: result: $DOT" >&5
6796 echo "${ECHO_T}$DOT" >&6; }
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6803 if test "$DOT" != "echo dot" ; then
6805 cat >>confdefs.h <<\_ACEOF
6809 if test "$llvm_cv_os_type" = "MingW" ; then
6810 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6813 cat >>confdefs.h <<_ACEOF
6814 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6818 # Extract the first word of "fdp", so it can be a program name with args.
6819 set dummy fdp; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_FDP+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6850 if test -n "$FDP"; then
6851 { echo "$as_me:$LINENO: result: $FDP" >&5
6852 echo "${ECHO_T}$FDP" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6859 if test "$FDP" != "echo fdp" ; then
6861 cat >>confdefs.h <<\_ACEOF
6865 if test "$llvm_cv_os_type" = "MingW" ; then
6866 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6869 cat >>confdefs.h <<_ACEOF
6870 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6874 # Extract the first word of "neato", so it can be a program name with args.
6875 set dummy neato; ac_word=$2
6876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6878 if test "${ac_cv_path_NEATO+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6905 NEATO=$ac_cv_path_NEATO
6906 if test -n "$NEATO"; then
6907 { echo "$as_me:$LINENO: result: $NEATO" >&5
6908 echo "${ECHO_T}$NEATO" >&6; }
6910 { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6915 if test "$NEATO" != "echo neato" ; then
6917 cat >>confdefs.h <<\_ACEOF
6918 #define HAVE_NEATO 1
6921 if test "$llvm_cv_os_type" = "MingW" ; then
6922 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6925 cat >>confdefs.h <<_ACEOF
6926 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6930 # Extract the first word of "twopi", so it can be a program name with args.
6931 set dummy twopi; ac_word=$2
6932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934 if test "${ac_cv_path_TWOPI+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6961 TWOPI=$ac_cv_path_TWOPI
6962 if test -n "$TWOPI"; then
6963 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6964 echo "${ECHO_T}$TWOPI" >&6; }
6966 { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6971 if test "$TWOPI" != "echo twopi" ; then
6973 cat >>confdefs.h <<\_ACEOF
6974 #define HAVE_TWOPI 1
6977 if test "$llvm_cv_os_type" = "MingW" ; then
6978 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6981 cat >>confdefs.h <<_ACEOF
6982 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6986 # Extract the first word of "circo", so it can be a program name with args.
6987 set dummy circo; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_CIRCO+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7017 CIRCO=$ac_cv_path_CIRCO
7018 if test -n "$CIRCO"; then
7019 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7020 echo "${ECHO_T}$CIRCO" >&6; }
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7027 if test "$CIRCO" != "echo circo" ; then
7029 cat >>confdefs.h <<\_ACEOF
7030 #define HAVE_CIRCO 1
7033 if test "$llvm_cv_os_type" = "MingW" ; then
7034 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7037 cat >>confdefs.h <<_ACEOF
7038 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7042 for ac_prog in gv gsview32
7044 # Extract the first word of "$ac_prog", so it can be a program name with args.
7045 set dummy $ac_prog; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_path_GV+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 if test -n "$GV"; then
7076 { echo "$as_me:$LINENO: result: $GV" >&5
7077 echo "${ECHO_T}$GV" >&6; }
7079 { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7084 test -n "$GV" && break
7086 test -n "$GV" || GV="echo gv"
7088 if test "$GV" != "echo gv" ; then
7090 cat >>confdefs.h <<\_ACEOF
7094 if test "$llvm_cv_os_type" = "MingW" ; then
7095 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7098 cat >>confdefs.h <<_ACEOF
7099 #define LLVM_PATH_GV "$GV${EXEEXT}"
7103 # Extract the first word of "dotty", so it can be a program name with args.
7104 set dummy dotty; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_DOTTY+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7134 DOTTY=$ac_cv_path_DOTTY
7135 if test -n "$DOTTY"; then
7136 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7137 echo "${ECHO_T}$DOTTY" >&6; }
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7144 if test "$DOTTY" != "echo dotty" ; then
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_DOTTY 1
7150 if test "$llvm_cv_os_type" = "MingW" ; then
7151 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7154 cat >>confdefs.h <<_ACEOF
7155 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7159 # Extract the first word of "xdot.py", so it can be a program name with args.
7160 set dummy xdot.py; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7190 XDOT_PY=$ac_cv_path_XDOT_PY
7191 if test -n "$XDOT_PY"; then
7192 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7193 echo "${ECHO_T}$XDOT_PY" >&6; }
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7200 if test "$XDOT_PY" != "echo xdot.py" ; then
7202 cat >>confdefs.h <<\_ACEOF
7203 #define HAVE_XDOT_PY 1
7206 if test "$llvm_cv_os_type" = "MingW" ; then
7207 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7210 cat >>confdefs.h <<_ACEOF
7211 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7216 # Find a good install program. We prefer a C program (faster),
7217 # so one script is as good as another. But avoid the broken or
7218 # incompatible versions:
7219 # SysV /etc/install, /usr/sbin/install
7220 # SunOS /usr/etc/install
7221 # IRIX /sbin/install
7223 # AmigaOS /C/install, which installs bootblocks on floppy discs
7224 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7225 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7226 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7227 # OS/2's system install, which has a completely different semantic
7228 # ./install, which can be erroneously created by make from ./install.sh.
7229 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7230 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7231 if test -z "$INSTALL"; then
7232 if test "${ac_cv_path_install+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 # Account for people who put trailing slashes in PATH elements.
7242 ./ | .// | /cC/* | \
7243 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7244 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7247 # OSF1 and SCO ODT 3.0 have their own names for install.
7248 # Don't use installbsd from OSF since it installs stuff as root
7250 for ac_prog in ginstall scoinst install; do
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7253 if test $ac_prog = install &&
7254 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7255 # AIX install. It has an incompatible calling convention.
7257 elif test $ac_prog = install &&
7258 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7259 # program-specific install script used by HP pwplus--don't use.
7262 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7275 if test "${ac_cv_path_install+set}" = set; then
7276 INSTALL=$ac_cv_path_install
7278 # As a last resort, use the slow shell script. Don't cache a
7279 # value for INSTALL within a source directory, because that will
7280 # break other packages using the cache if that directory is
7281 # removed, or if the value is a relative name.
7282 INSTALL=$ac_install_sh
7285 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7286 echo "${ECHO_T}$INSTALL" >&6; }
7288 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7289 # It thinks the first close brace ends the variable substitution.
7290 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7292 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7294 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7297 [\\/$]* | ?:[\\/]* ) ;;
7298 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7301 # Extract the first word of "bzip2", so it can be a program name with args.
7302 set dummy bzip2; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_BZIP2+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 BZIP2=$ac_cv_path_BZIP2
7332 if test -n "$BZIP2"; then
7333 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7334 echo "${ECHO_T}$BZIP2" >&6; }
7336 { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7341 # Extract the first word of "cat", so it can be a program name with args.
7342 set dummy cat; ac_word=$2
7343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345 if test "${ac_cv_path_CAT+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 if test -n "$CAT"; then
7373 { echo "$as_me:$LINENO: result: $CAT" >&5
7374 echo "${ECHO_T}$CAT" >&6; }
7376 { echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6; }
7381 # Extract the first word of "doxygen", so it can be a program name with args.
7382 set dummy doxygen; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 DOXYGEN=$ac_cv_path_DOXYGEN
7412 if test -n "$DOXYGEN"; then
7413 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7414 echo "${ECHO_T}$DOXYGEN" >&6; }
7416 { echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6; }
7421 # Extract the first word of "groff", so it can be a program name with args.
7422 set dummy groff; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_path_GROFF+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 GROFF=$ac_cv_path_GROFF
7452 if test -n "$GROFF"; then
7453 { echo "$as_me:$LINENO: result: $GROFF" >&5
7454 echo "${ECHO_T}$GROFF" >&6; }
7456 { echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6; }
7461 # Extract the first word of "gzip", so it can be a program name with args.
7462 set dummy gzip; ac_word=$2
7463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 GZIPBIN=$ac_cv_path_GZIPBIN
7492 if test -n "$GZIPBIN"; then
7493 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7494 echo "${ECHO_T}$GZIPBIN" >&6; }
7496 { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7501 # Extract the first word of "pdfroff", so it can be a program name with args.
7502 set dummy pdfroff; ac_word=$2
7503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7505 if test "${ac_cv_path_PDFROFF+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 PDFROFF=$ac_cv_path_PDFROFF
7532 if test -n "$PDFROFF"; then
7533 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7534 echo "${ECHO_T}$PDFROFF" >&6; }
7536 { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7541 # Extract the first word of "zip", so it can be a program name with args.
7542 set dummy zip; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_path_ZIP+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 if test -n "$ZIP"; then
7573 { echo "$as_me:$LINENO: result: $ZIP" >&5
7574 echo "${ECHO_T}$ZIP" >&6; }
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7581 for ac_prog in ocamlc
7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_OCAMLC+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 OCAMLC=$ac_cv_path_OCAMLC
7614 if test -n "$OCAMLC"; then
7615 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7616 echo "${ECHO_T}$OCAMLC" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7623 test -n "$OCAMLC" && break
7626 for ac_prog in ocamlopt
7628 # Extract the first word of "$ac_prog", so it can be a program name with args.
7629 set dummy $ac_prog; ac_word=$2
7630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 OCAMLOPT=$ac_cv_path_OCAMLOPT
7659 if test -n "$OCAMLOPT"; then
7660 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7661 echo "${ECHO_T}$OCAMLOPT" >&6; }
7663 { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7668 test -n "$OCAMLOPT" && break
7671 for ac_prog in ocamldep
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 OCAMLDEP=$ac_cv_path_OCAMLDEP
7704 if test -n "$OCAMLDEP"; then
7705 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7706 echo "${ECHO_T}$OCAMLDEP" >&6; }
7708 { echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6; }
7713 test -n "$OCAMLDEP" && break
7716 for ac_prog in ocamldoc
7718 # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 OCAMLDOC=$ac_cv_path_OCAMLDOC
7749 if test -n "$OCAMLDOC"; then
7750 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7751 echo "${ECHO_T}$OCAMLDOC" >&6; }
7753 { echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6; }
7758 test -n "$OCAMLDOC" && break
7761 for ac_prog in gas as
7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7767 if test "${ac_cv_path_GAS+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 if test -n "$GAS"; then
7795 { echo "$as_me:$LINENO: result: $GAS" >&5
7796 echo "${ECHO_T}$GAS" >&6; }
7798 { echo "$as_me:$LINENO: result: no" >&5
7799 echo "${ECHO_T}no" >&6; }
7803 test -n "$GAS" && break
7807 { echo "$as_me:$LINENO: checking for linker version" >&5
7808 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7809 if test "${llvm_cv_link_version+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 version_string="$(ld -v 2>&1 | head -1)"
7816 if (echo "$version_string" | grep -q "ld64"); then
7817 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7819 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7823 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7824 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7826 cat >>confdefs.h <<_ACEOF
7827 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7832 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7833 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7834 if test "${llvm_cv_link_use_r+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 ac_cpp='$CPP $CPPFLAGS'
7839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844 CFLAGS="$CFLAGS -Wl,-R."
7845 cat >conftest.$ac_ext <<_ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (ac_try="$ac_link"
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_link") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875 { (case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_try") 2>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_try") 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 llvm_cv_link_use_r=yes
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 llvm_cv_link_use_r=no
7902 rm -f core conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7914 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7915 if test "$llvm_cv_link_use_r" = yes ; then
7917 cat >>confdefs.h <<\_ACEOF
7918 #define HAVE_LINK_R 1
7924 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7925 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7926 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (ac_try="$ac_link"
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959 (eval "$ac_link") 2>conftest.er1
7961 grep -v '^ *+' conftest.er1 >conftest.err
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7967 { (case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_try") 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (case "(($ac_try" in
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_try") 2>&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; }; then
7986 llvm_cv_link_use_export_dynamic=yes
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 llvm_cv_link_use_export_dynamic=no
7994 rm -f core conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8006 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8007 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8009 cat >>confdefs.h <<\_ACEOF
8010 #define HAVE_LINK_EXPORT_DYNAMIC 1
8016 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8017 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8018 if test "${llvm_cv_link_use_version_script+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 ac_cpp='$CPP $CPPFLAGS'
8023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029 # The following code is from the autoconf manual,
8030 # "11.13: Limitations of Usual Tools".
8031 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8032 # Use mktemp if possible; otherwise fall back on mkdir,
8033 # with $RANDOM to make collisions less likely.
8037 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8039 test -n "$tmp" && test -d "$tmp"
8041 tmp=$TMPDIR/foo$$-$RANDOM
8042 (umask 077 && mkdir "$tmp")
8045 echo "{" > "$tmp/export.map"
8046 echo " global: main;" >> "$tmp/export.map"
8047 echo " local: *;" >> "$tmp/export.map"
8048 echo "};" >> "$tmp/export.map"
8050 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (ac_try="$ac_link"
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_link") 2>conftest.er1
8075 grep -v '^ *+' conftest.er1 >conftest.err
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8081 { (case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_try") 2>&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try='test -s conftest$ac_exeext'
8091 { (case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_try") 2>&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 llvm_cv_link_use_version_script=yes
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 llvm_cv_link_use_version_script=no
8108 rm -f core conftest.err conftest.$ac_objext \
8109 conftest$ac_exeext conftest.$ac_ext
8110 rm "$tmp/export.map"
8114 ac_cpp='$CPP $CPPFLAGS'
8115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8122 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8123 if test "$llvm_cv_link_use_version_script" = yes ; then
8124 HAVE_LINK_VERSION_SCRIPT=1
8131 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8132 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8133 if test "${ac_cv_c_const+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8146 /* FIXME: Include the comments suggested by Paul. */
8148 /* Ultrix mips cc rejects this. */
8149 typedef int charset[2];
8151 /* SunOS 4.1.1 cc rejects this. */
8152 char const *const *ccp;
8154 /* NEC SVR4.0.2 mips cc rejects this. */
8155 struct point {int x, y;};
8156 static struct point const zero = {0,0};
8157 /* AIX XL C 1.02.0.0 rejects this.
8158 It does not let you subtract one const X* pointer from another in
8159 an arm of an if-expression whose if-part is not a constant
8161 const char *g = "string";
8162 ccp = &g + (g ? g-g : 0);
8163 /* HPUX 7.0 cc rejects these. */
8166 ccp = (char const *const *) p;
8167 { /* SCO 3.2v4 cc rejects this. */
8169 char const *s = 0 ? (char *) 0 : (char const *) 0;
8174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8176 const int *foo = &x[0];
8179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8180 typedef const int *iptr;
8184 { /* AIX XL C 1.02.0.0 rejects this saying
8185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8186 struct s { int j; const int *ap[3]; };
8187 struct s *b; b->j = 5;
8189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8193 return !x[0] && !zero.x;
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8209 grep -v '^ *+' conftest.er1 >conftest.err
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8245 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8246 if test $ac_cv_c_const = no; then
8248 cat >>confdefs.h <<\_ACEOF
8260 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8261 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8262 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8263 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 #include <sys/types.h>
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest.$ac_objext'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 eval "$as_ac_Header=yes"
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8324 eval "$as_ac_Header=no"
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 ac_res=`eval echo '${'$as_ac_Header'}'`
8330 { echo "$as_me:$LINENO: result: $ac_res" >&5
8331 echo "${ECHO_T}$ac_res" >&6; }
8332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8333 cat >>confdefs.h <<_ACEOF
8334 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8337 ac_header_dirent=$ac_hdr; break
8341 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8342 if test $ac_header_dirent = dirent.h; then
8343 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8344 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8345 if test "${ac_cv_search_opendir+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 ac_func_search_save_LIBS=$LIBS
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8356 /* Override any GCC internal prototype to avoid an error.
8357 Use char because int might match the return type of a GCC
8358 builtin and then its argument prototype would still apply. */
8371 for ac_lib in '' dir; do
8372 if test -z "$ac_lib"; then
8373 ac_res="none required"
8376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (ac_try="$ac_link"
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_link") 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8393 { (case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_try") 2>&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; }; then
8412 ac_cv_search_opendir=$ac_res
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8420 rm -f core conftest.err conftest.$ac_objext \
8422 if test "${ac_cv_search_opendir+set}" = set; then
8426 if test "${ac_cv_search_opendir+set}" = set; then
8429 ac_cv_search_opendir=no
8432 LIBS=$ac_func_search_save_LIBS
8434 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8435 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8436 ac_res=$ac_cv_search_opendir
8437 if test "$ac_res" != no; then
8438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8443 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8444 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8445 if test "${ac_cv_search_opendir+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_func_search_save_LIBS=$LIBS
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8456 /* Override any GCC internal prototype to avoid an error.
8457 Use char because int might match the return type of a GCC
8458 builtin and then its argument prototype would still apply. */
8471 for ac_lib in '' x; do
8472 if test -z "$ac_lib"; then
8473 ac_res="none required"
8476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_link") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_search_opendir=$ac_res
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8520 rm -f core conftest.err conftest.$ac_objext \
8522 if test "${ac_cv_search_opendir+set}" = set; then
8526 if test "${ac_cv_search_opendir+set}" = set; then
8529 ac_cv_search_opendir=no
8532 LIBS=$ac_func_search_save_LIBS
8534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8536 ac_res=$ac_cv_search_opendir
8537 if test "$ac_res" != no; then
8538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8545 for ac_header in dlfcn.h
8547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 ac_res=`eval echo '${'$as_ac_Header'}'`
8555 { echo "$as_me:$LINENO: result: $ac_res" >&5
8556 echo "${ECHO_T}$ac_res" >&6; }
8558 # Is the header compilable?
8559 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8561 cat >conftest.$ac_ext <<_ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8567 $ac_includes_default
8568 #include <$ac_header>
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_compile") 2>conftest.er1
8579 grep -v '^ *+' conftest.er1 >conftest.err
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8585 { (case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_try") 2>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_try") 2>&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 ac_header_compiler=yes
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8609 ac_header_compiler=no
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8614 echo "${ECHO_T}$ac_header_compiler" >&6; }
8616 # Is the header present?
8617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8619 cat >conftest.$ac_ext <<_ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 #include <$ac_header>
8627 if { (ac_try="$ac_cpp conftest.$ac_ext"
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } >/dev/null; then
8640 if test -s conftest.err; then
8641 ac_cpp_err=$ac_c_preproc_warn_flag
8642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8649 if test -z "$ac_cpp_err"; then
8650 ac_header_preproc=yes
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 ac_header_preproc=no
8658 rm -f conftest.err conftest.$ac_ext
8659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8660 echo "${ECHO_T}$ac_header_preproc" >&6; }
8662 # So? What about this header?
8663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8669 ac_header_preproc=yes
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8685 ## ------------------------------------ ##
8686 ## Report this to http://llvm.org/bugs/ ##
8687 ## ------------------------------------ ##
8689 ) | sed "s/^/$as_me: WARNING: /" >&2
8692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 eval "$as_ac_Header=\$ac_header_preproc"
8699 ac_res=`eval echo '${'$as_ac_Header'}'`
8700 { echo "$as_me:$LINENO: result: $ac_res" >&5
8701 echo "${ECHO_T}$ac_res" >&6; }
8704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8705 cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8713 # Check whether --enable-ltdl-install was given.
8714 if test "${enable_ltdl_install+set}" = set; then
8715 enableval=$enable_ltdl_install;
8719 if test x"${enable_ltdl_install-no}" != xno; then
8721 INSTALL_LTDL_FALSE='#'
8723 INSTALL_LTDL_TRUE='#'
8727 if test x"${enable_ltdl_convenience-no}" != xno; then
8728 CONVENIENCE_LTDL_TRUE=
8729 CONVENIENCE_LTDL_FALSE='#'
8731 CONVENIENCE_LTDL_TRUE='#'
8732 CONVENIENCE_LTDL_FALSE=
8736 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8737 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8739 libname_spec='lib$name'
8747 shlibpath_overrides_runpath=unknown
8749 dynamic_linker="$host_os ld.so"
8750 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8751 if test "$GCC" = yes; then
8752 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8753 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8754 # if the path contains ";" then we assume it to be the separator
8755 # otherwise default to the standard path separator (i.e. ":") - it is
8756 # assumed that no part of a normal pathname contains ";" but that should
8757 # okay in the real world where ";" in dirpaths is itself problematic.
8758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8763 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8765 need_lib_prefix=unknown
8766 hardcode_into_libs=no
8768 # when you set need_version to no, make sure it does not cause -set_version
8769 # flags to be left without arguments
8770 need_version=unknown
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8776 shlibpath_var=LIBPATH
8778 # AIX 3 has no versioning support, so we append a major version to the name.
8779 soname_spec='${libname}${release}${shared_ext}$major'
8786 hardcode_into_libs=yes
8787 if test "$host_cpu" = ia64; then
8788 # AIX 5 supports IA64
8789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8790 shlibpath_var=LD_LIBRARY_PATH
8792 # With GCC up to 2.95.x, collect2 would create an import file
8793 # for dependence libraries. The import file would start with
8794 # the line `#! .'. This would cause the generated library to
8795 # depend on `.', always an invalid library. This was fixed in
8796 # development snapshots of GCC prior to 3.0.
8798 aix4 | aix4.[01] | aix4.[01].*)
8799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8801 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8809 # soname into executable. Probably we can add versioning support to
8810 # collect2, so additional links can be useful in future.
8811 if test "$aix_use_runtimelinking" = yes; then
8812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8813 # instead of lib<name>.a to let people know that these are not
8814 # typical AIX shared libraries.
8815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 # We preserve .a as extension for shared libraries through AIX4.2
8818 # and later when we are not doing run time linking.
8819 library_names_spec='${libname}${release}.a $libname.a'
8820 soname_spec='${libname}${release}${shared_ext}$major'
8822 shlibpath_var=LIBPATH
8827 library_names_spec='$libname.ixlibrary $libname.a'
8828 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8829 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'
8833 library_names_spec='${libname}${shared_ext}'
8834 dynamic_linker="$host_os ld.so"
8835 shlibpath_var=LIBRARY_PATH
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8842 soname_spec='${libname}${release}${shared_ext}$major'
8843 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8844 shlibpath_var=LD_LIBRARY_PATH
8845 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8846 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8847 # the default ld.so.conf also contains /usr/contrib/lib and
8848 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8849 # libtool to hard-code these into programs
8852 cygwin* | mingw* | pw32*)
8853 version_type=windows
8858 case $GCC,$host_os in
8859 yes,cygwin* | yes,mingw* | yes,pw32*)
8860 library_names_spec='$libname.dll.a'
8861 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8862 postinstall_cmds='base_file=`basename \${file}`~
8863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8864 dldir=$destdir/`dirname \$dlpath`~
8865 test -d \$dldir || mkdir -p \$dldir~
8866 $install_prog $dir/$dlname \$dldir/$dlname~
8867 chmod a+x \$dldir/$dlname'
8868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8869 dlpath=$dir/\$dldll~
8871 shlibpath_overrides_runpath=yes
8875 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8876 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8877 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8880 # MinGW DLLs use traditional 'lib' prefix
8881 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8882 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8883 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8884 # It is most probably a Windows format PATH printed by
8885 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8886 # path with ; separators, and with drive letters. We can handle the
8887 # drive letters (cygwin fileutils understands them), so leave them,
8888 # especially as we might pass files found there to a mingw objdump,
8889 # which wouldn't understand a cygwinified path. Ahh.
8890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8896 # pw32 DLLs use 'pw' prefix rather than 'lib'
8897 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8903 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8906 dynamic_linker='Win32 ld.exe'
8907 # FIXME: first we should search . and the directory the executable is in
8911 darwin* | rhapsody*)
8912 dynamic_linker="$host_os dyld"
8916 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8917 soname_spec='${libname}${release}${major}$shared_ext'
8918 shlibpath_overrides_runpath=yes
8919 shlibpath_var=DYLD_LIBRARY_PATH
8920 shrext_cmds='.dylib'
8921 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8922 if test "$GCC" = yes; then
8923 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"`
8925 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8927 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 shlibpath_var=LD_LIBRARY_PATH
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=no
8951 hardcode_into_libs=yes
8952 dynamic_linker='GNU ld.so'
8955 freebsd* | dragonfly*)
8956 # DragonFly does not have aout. When/if they implement a new
8957 # versioning mechanism, adjust this.
8958 if test -x /usr/bin/objformat; then
8959 objformat=`/usr/bin/objformat`
8962 freebsd[123].*) objformat=aout ;;
8966 version_type=freebsd-$objformat
8967 case $version_type in
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8978 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=yes
8983 freebsd3.[01]* | freebsdelf3.[01]*)
8984 shlibpath_overrides_runpath=yes
8985 hardcode_into_libs=yes
8987 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8988 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8989 shlibpath_overrides_runpath=no
8990 hardcode_into_libs=yes
8992 freebsd*) # from 4.6 on
8993 shlibpath_overrides_runpath=yes
8994 hardcode_into_libs=yes
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 hardcode_into_libs=yes
9009 hpux9* | hpux10* | hpux11*)
9010 # Give a soname corresponding to the major version so that dld.sl refuses to
9011 # link against other versions.
9018 hardcode_into_libs=yes
9019 dynamic_linker="$host_os dld.so"
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 if test "X$HPUX_IA64_MODE" = X32; then
9025 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9027 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9033 hardcode_into_libs=yes
9034 dynamic_linker="$host_os dld.sl"
9035 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9044 dynamic_linker="$host_os dld.sl"
9045 shlibpath_var=SHLIB_PATH
9046 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9051 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9052 postinstall_cmds='chmod 555 $lib'
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=no
9064 hardcode_into_libs=yes
9067 irix5* | irix6* | nonstopux*)
9069 nonstopux*) version_type=nonstopux ;;
9071 if test "$lt_cv_prog_gnu_ld" = yes; then
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9082 irix5* | nonstopux*)
9086 case $LD in # libtool.m4 will add one of these switches to LD
9087 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9088 libsuff= shlibsuff= libmagic=32-bit;;
9089 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9090 libsuff=32 shlibsuff=N32 libmagic=N32;;
9091 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9092 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9093 *) libsuff= shlibsuff= libmagic=never-match;;
9097 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9098 shlibpath_overrides_runpath=no
9099 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9100 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9101 hardcode_into_libs=yes
9104 # No shared lib support for Linux oldld, aout, or coff.
9105 linux*oldld* | linux*aout* | linux*coff*)
9109 # This must be Linux ELF.
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=no
9119 # This implies no fast_install, which is unacceptable.
9120 # Some rework will be needed to allow for fast_install
9121 # before this can be enabled.
9122 hardcode_into_libs=yes
9124 # Append ld.so.conf contents to the search path
9125 if test -f /etc/ld.so.conf; then
9126 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' ' '`
9127 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9130 # We used to test for /lib/ld.so.1 and disable shared libraries on
9131 # powerpc, because MkLinux only supported shared libraries with the
9132 # GNU dynamic linker. Since this was broken with cross compilers,
9133 # most powerpc-linux boxes support dynamic linking these days and
9134 # people can always --disable-shared, the test was removed, and we
9135 # assume the GNU/Linux dynamic linker is in use.
9136 dynamic_linker='GNU/Linux ld.so'
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 shlibpath_overrides_runpath=no
9147 hardcode_into_libs=yes
9148 dynamic_linker='GNU ld.so'
9155 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9158 dynamic_linker='NetBSD (a.out) ld.so'
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 dynamic_linker='NetBSD ld.elf_so'
9164 shlibpath_var=LD_LIBRARY_PATH
9165 shlibpath_overrides_runpath=yes
9166 hardcode_into_libs=yes
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 shlibpath_overrides_runpath=yes
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 shlibpath_overrides_runpath=yes
9188 sys_lib_dlsearch_path_spec="/usr/lib"
9190 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9192 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9193 *) need_version=no ;;
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9200 openbsd2.[89] | openbsd2.[89].*)
9201 shlibpath_overrides_runpath=no
9204 shlibpath_overrides_runpath=yes
9208 shlibpath_overrides_runpath=yes
9213 libname_spec='$name'
9216 library_names_spec='$libname${shared_ext} $libname.a'
9217 dynamic_linker='OS/2 ld.exe'
9218 shlibpath_var=LIBPATH
9221 osf3* | osf4* | osf5*)
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 shlibpath_var=LD_LIBRARY_PATH
9228 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9229 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=yes
9240 hardcode_into_libs=yes
9241 # ldd complains unless libraries are executable
9242 postinstall_cmds='chmod +x $lib'
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9248 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 shlibpath_overrides_runpath=yes
9251 if test "$with_gnu_ld" = yes; then
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 case $host_vendor in
9264 shlibpath_overrides_runpath=no
9266 export_dynamic_flag_spec='${wl}-Blargedynsym'
9267 runpath_var=LD_RUN_PATH
9275 shlibpath_overrides_runpath=no
9276 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9282 if test -d /usr/nec ;then
9284 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9285 soname_spec='$libname${shared_ext}.$major'
9286 shlibpath_var=LD_LIBRARY_PATH
9290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9291 version_type=freebsd-elf
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 hardcode_into_libs=yes
9298 if test "$with_gnu_ld" = yes; then
9299 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9300 shlibpath_overrides_runpath=no
9302 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9303 shlibpath_overrides_runpath=yes
9306 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9310 sys_lib_dlsearch_path_spec='/usr/lib'
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9324 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9325 echo "${ECHO_T}$dynamic_linker" >&6; }
9326 test "$dynamic_linker" = no && can_build_shared=no
9328 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9329 if test "$GCC" = yes; then
9330 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9334 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9335 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9336 if test "${libltdl_cv_shlibext+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 eval libltdl_cv_shlibext=$shrext_cmds
9344 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9345 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9346 if test -n "$libltdl_cv_shlibext"; then
9348 cat >>confdefs.h <<_ACEOF
9349 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9355 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9356 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9357 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 libltdl_cv_shlibpath_var="$shlibpath_var"
9362 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9363 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9364 if test -n "$libltdl_cv_shlibpath_var"; then
9366 cat >>confdefs.h <<_ACEOF
9367 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9373 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9374 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9375 if test "${libltdl_cv_sys_search_path+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9380 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9381 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9382 if test -n "$libltdl_cv_sys_search_path"; then
9384 for dir in $libltdl_cv_sys_search_path; do
9385 if test -z "$sys_search_path"; then
9386 sys_search_path="$dir"
9388 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9392 cat >>confdefs.h <<_ACEOF
9393 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9398 { echo "$as_me:$LINENO: checking for objdir" >&5
9399 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9400 if test "${libltdl_cv_objdir+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 libltdl_cv_objdir="$objdir"
9404 if test -n "$objdir"; then
9407 rm -f .libs 2>/dev/null
9408 mkdir .libs 2>/dev/null
9409 if test -d .libs; then
9410 libltdl_cv_objdir=.libs
9412 # MS-DOS does not allow filenames that begin with a dot.
9413 libltdl_cv_objdir=_libs
9415 rmdir .libs 2>/dev/null
9419 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9420 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9422 cat >>confdefs.h <<_ACEOF
9423 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9431 # Check for command to grab the raw symbol name followed by C symbol from nm.
9432 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9433 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9434 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 # These are sane defaults that work on at least a few old systems.
9439 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9441 # Character class describing NM global symbol codes.
9442 symcode='[BCDEGRST]'
9444 # Regexp to match symbols that can be accessed directly from C.
9445 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9447 # Transform an extracted symbol line into a proper C declaration
9448 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9450 # Transform an extracted symbol line into symbol name and symbol address
9451 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9453 # Define system-specific variables.
9458 cygwin* | mingw* | pw32*)
9459 symcode='[ABCDGISTW]'
9461 hpux*) # Its linker distinguishes data from code symbols
9462 if test "$host_cpu" = ia64; then
9463 symcode='[ABCDEGRST]'
9465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9466 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'"
9469 if test "$host_cpu" = ia64; then
9470 symcode='[ABCDGIRSTW]'
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'"
9476 symcode='[BCDEGRST]'
9479 symcode='[BCDEGQRST]'
9490 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9498 # Handle CRLF in mingw tool chain
9502 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9506 # If we're using GNU nm, then use its standard symbol codes.
9507 case `$NM -V 2>&1` in
9508 *GNU* | *'with BFD'*)
9509 symcode='[ABCDGIRSTW]' ;;
9512 # Try without a prefix undercore, then with it.
9513 for ac_symprfx in "" "_"; do
9515 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9516 symxfrm="\\1 $ac_symprfx\\2 \\2"
9518 # Write the raw and C identifiers.
9519 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9521 # Check to see that the pipe works correctly.
9525 cat > conftest.$ac_ext <<EOF
9530 void nm_test_func(){}
9534 int main(){nm_test_var='a';nm_test_func();return(0);}
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; then
9542 # Now try to grab the symbols.
9544 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9545 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && test -s "$nlist"; then
9549 # Try sorting and uniquifying the output.
9550 if sort "$nlist" | uniq > "$nlist"T; then
9551 mv -f "$nlist"T "$nlist"
9556 # Make sure that we snagged all the symbols we need.
9557 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9558 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9559 cat <<EOF > conftest.$ac_ext
9565 # Now generate the symbol file.
9566 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9568 cat <<EOF >> conftest.$ac_ext
9569 #if defined (__STDC__) && __STDC__
9570 # define lt_ptr_t void *
9572 # define lt_ptr_t char *
9576 /* The mapping between symbol names and symbols. */
9581 lt_preloaded_symbols[] =
9584 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9585 cat <<\EOF >> conftest.$ac_ext
9593 # Now try linking the two files.
9594 mv conftest.$ac_objext conftstm.$ac_objext
9595 lt_save_LIBS="$LIBS"
9596 lt_save_CFLAGS="$CFLAGS"
9597 LIBS="conftstm.$ac_objext"
9598 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600 (eval $ac_link) 2>&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9606 LIBS="$lt_save_LIBS"
9607 CFLAGS="$lt_save_CFLAGS"
9609 echo "cannot find nm_test_func in $nlist" >&5
9612 echo "cannot find nm_test_var in $nlist" >&5
9615 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9618 echo "$progname: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9621 rm -f conftest* conftst*
9623 # Do not use the global_symbol_pipe unless it works.
9624 if test "$pipe_works" = yes; then
9627 lt_cv_sys_global_symbol_pipe=
9633 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9634 lt_cv_sys_global_symbol_to_cdecl=
9636 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9637 { echo "$as_me:$LINENO: result: failed" >&5
9638 echo "${ECHO_T}failed" >&6; }
9640 { echo "$as_me:$LINENO: result: ok" >&5
9641 echo "${ECHO_T}ok" >&6; }
9645 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9646 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9647 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9651 libltdl_cv_preloaded_symbols=yes
9653 libltdl_cv_preloaded_symbols=no
9657 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9658 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9659 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9661 cat >>confdefs.h <<\_ACEOF
9662 #define HAVE_PRELOADED_SYMBOLS 1
9670 ac_cpp='$CPP $CPPFLAGS'
9671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9676 { echo "$as_me:$LINENO: checking for shl_load" >&5
9677 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9678 if test "${ac_cv_func_shl_load+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9689 #define shl_load innocuous_shl_load
9691 /* System header to define __stub macros and hopefully few prototypes,
9692 which can conflict with char shl_load (); below.
9693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9694 <limits.h> exists even on freestanding compilers. */
9697 # include <limits.h>
9699 # include <assert.h>
9704 /* Override any GCC internal prototype to avoid an error.
9705 Use char because int might match the return type of a GCC
9706 builtin and then its argument prototype would still apply. */
9711 /* The GNU C library defines this for functions which it implements
9712 to always fail with ENOSYS. Some functions are actually named
9713 something starting with __ and the normal name is an alias. */
9714 #if defined __stub_shl_load || defined __stub___shl_load
9726 rm -f conftest.$ac_objext conftest$ac_exeext
9727 if { (ac_try="$ac_link"
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_link") 2>conftest.er1
9735 grep -v '^ *+' conftest.er1 >conftest.err
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9741 { (case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_try") 2>&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest$ac_exeext'
9751 { (case "(($ac_try" in
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_try") 2>&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 ac_cv_func_shl_load=yes
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_cv_func_shl_load=no
9768 rm -f core conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9771 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9772 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9773 if test $ac_cv_func_shl_load = yes; then
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_SHL_LOAD 1
9780 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9781 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9782 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 ac_check_lib_save_LIBS=$LIBS
9787 cat >conftest.$ac_ext <<_ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9794 /* Override any GCC internal prototype to avoid an error.
9795 Use char because int might match the return type of a GCC
9796 builtin and then its argument prototype would still apply. */
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_link") 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9824 { (case "(($ac_try" in
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_try") 2>&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_try") 2>&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_cv_lib_dld_shl_load=yes
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_cv_lib_dld_shl_load=no
9851 rm -f core conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_lib_save_LIBS
9855 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9856 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9857 if test $ac_cv_lib_dld_shl_load = yes; then
9859 cat >>confdefs.h <<\_ACEOF
9860 #define HAVE_SHL_LOAD 1
9863 LIBADD_DL="$LIBADD_DL -ldld"
9865 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 ac_check_lib_save_LIBS=$LIBS
9872 cat >conftest.$ac_ext <<_ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9879 /* Override any GCC internal prototype to avoid an error.
9880 Use char because int might match the return type of a GCC
9881 builtin and then its argument prototype would still apply. */
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (ac_try="$ac_link"
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_link") 2>conftest.er1
9903 grep -v '^ *+' conftest.er1 >conftest.err
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9909 { (case "(($ac_try" in
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_try") 2>&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; } &&
9918 { ac_try='test -s conftest$ac_exeext'
9919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_try") 2>&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_cv_lib_dl_dlopen=yes
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ac_cv_lib_dl_dlopen=no
9936 rm -f core conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
9938 LIBS=$ac_check_lib_save_LIBS
9940 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9941 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9942 if test $ac_cv_lib_dl_dlopen = yes; then
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_LIBDL 1
9948 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9950 cat >conftest.$ac_ext <<_ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
9992 { ac_try='test -s conftest$ac_exeext'
9993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10003 cat >>confdefs.h <<\_ACEOF
10004 #define HAVE_LIBDL 1
10006 libltdl_cv_func_dlopen="yes"
10008 echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10011 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10012 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10013 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-lsvld $LIBS"
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10025 /* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10049 grep -v '^ *+' conftest.er1 >conftest.err
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10055 { (case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_try") 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; } &&
10064 { ac_try='test -s conftest$ac_exeext'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_lib_svld_dlopen=yes
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 ac_cv_lib_svld_dlopen=no
10082 rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10086 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10087 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10088 if test $ac_cv_lib_svld_dlopen = yes; then
10090 cat >>confdefs.h <<\_ACEOF
10091 #define HAVE_LIBDL 1
10094 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10096 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10097 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10098 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 ac_check_lib_save_LIBS=$LIBS
10103 cat >conftest.$ac_ext <<_ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10110 /* Override any GCC internal prototype to avoid an error.
10111 Use char because int might match the return type of a GCC
10112 builtin and then its argument prototype would still apply. */
10120 return dld_link ();
10125 rm -f conftest.$ac_objext conftest$ac_exeext
10126 if { (ac_try="$ac_link"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_link") 2>conftest.er1
10134 grep -v '^ *+' conftest.er1 >conftest.err
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10140 { (case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_try") 2>&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try='test -s conftest$ac_exeext'
10150 { (case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_try") 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_cv_lib_dld_dld_link=yes
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10164 ac_cv_lib_dld_dld_link=no
10167 rm -f core conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
10169 LIBS=$ac_check_lib_save_LIBS
10171 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10172 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10173 if test $ac_cv_lib_dld_dld_link = yes; then
10175 cat >>confdefs.h <<\_ACEOF
10179 LIBADD_DL="$LIBADD_DL -ldld"
10181 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10182 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10183 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 cat >conftest.$ac_ext <<_ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10194 #define _dyld_func_lookup innocuous__dyld_func_lookup
10196 /* System header to define __stub macros and hopefully few prototypes,
10197 which can conflict with char _dyld_func_lookup (); below.
10198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10199 <limits.h> exists even on freestanding compilers. */
10202 # include <limits.h>
10204 # include <assert.h>
10207 #undef _dyld_func_lookup
10209 /* Override any GCC internal prototype to avoid an error.
10210 Use char because int might match the return type of a GCC
10211 builtin and then its argument prototype would still apply. */
10215 char _dyld_func_lookup ();
10216 /* The GNU C library defines this for functions which it implements
10217 to always fail with ENOSYS. Some functions are actually named
10218 something starting with __ and the normal name is an alias. */
10219 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10226 return _dyld_func_lookup ();
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (ac_try="$ac_link"
10233 case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>conftest.er1
10240 grep -v '^ *+' conftest.er1 >conftest.err
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10246 { (case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_try") 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_try") 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 ac_cv_func__dyld_func_lookup=yes
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10270 ac_cv_func__dyld_func_lookup=no
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10276 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10277 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10278 if test $ac_cv_func__dyld_func_lookup = yes; then
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_DYLD 1
10295 rm -f core conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10307 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10309 lt_save_LIBS="$LIBS"
10310 LIBS="$LIBS $LIBADD_DL"
10312 for ac_func in dlerror
10314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 cat >conftest.$ac_ext <<_ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10328 #define $ac_func innocuous_$ac_func
10330 /* System header to define __stub macros and hopefully few prototypes,
10331 which can conflict with char $ac_func (); below.
10332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10333 <limits.h> exists even on freestanding compilers. */
10336 # include <limits.h>
10338 # include <assert.h>
10343 /* Override any GCC internal prototype to avoid an error.
10344 Use char because int might match the return type of a GCC
10345 builtin and then its argument prototype would still apply. */
10350 /* The GNU C library defines this for functions which it implements
10351 to always fail with ENOSYS. Some functions are actually named
10352 something starting with __ and the normal name is an alias. */
10353 #if defined __stub_$ac_func || defined __stub___$ac_func
10360 return $ac_func ();
10365 rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (ac_try="$ac_link"
10367 case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372 (eval "$ac_link") 2>conftest.er1
10374 grep -v '^ *+' conftest.er1 >conftest.err
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
10379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10380 { (case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_try") 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; } &&
10389 { ac_try='test -s conftest$ac_exeext'
10390 { (case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_try") 2>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 eval "$as_ac_var=yes"
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 eval "$as_ac_var=no"
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10410 ac_res=`eval echo '${'$as_ac_var'}'`
10411 { echo "$as_me:$LINENO: result: $ac_res" >&5
10412 echo "${ECHO_T}$ac_res" >&6; }
10413 if test `eval echo '${'$as_ac_var'}'` = yes; then
10414 cat >>confdefs.h <<_ACEOF
10415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10421 LIBS="$lt_save_LIBS"
10424 ac_cpp='$CPP $CPPFLAGS'
10425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10431 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10432 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10433 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 ac_cv_sys_symbol_underscore=no
10437 cat > conftest.$ac_ext <<EOF
10438 void nm_test_func(){}
10439 int main(){nm_test_func;return 0;}
10441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442 (eval $ac_compile) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; then
10446 # Now try to grab the symbols.
10447 ac_nlist=conftest.nm
10448 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10449 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && test -s "$ac_nlist"; then
10453 # See whether the symbols have a leading underscore.
10454 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10455 ac_cv_sys_symbol_underscore=yes
10457 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10460 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10464 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10467 echo "configure: failed program was:" >&5
10473 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10474 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10477 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10478 if test x"$libltdl_cv_func_dlopen" = xyes ||
10479 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10480 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10481 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10482 if test "${libltdl_cv_need_uscore+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 libltdl_cv_need_uscore=unknown
10487 LIBS="$LIBS $LIBADD_DL"
10488 if test "$cross_compiling" = yes; then :
10489 libltdl_cv_need_uscore=cross
10491 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10492 lt_status=$lt_dlunknown
10493 cat > conftest.$ac_ext <<EOF
10494 #line 10493 "configure"
10495 #include "confdefs.h"
10504 # define LT_DLGLOBAL RTLD_GLOBAL
10507 # define LT_DLGLOBAL DL_GLOBAL
10509 # define LT_DLGLOBAL 0
10513 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10514 find out it does not work in some platform. */
10515 #ifndef LT_DLLAZY_OR_NOW
10517 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10520 # define LT_DLLAZY_OR_NOW DL_LAZY
10523 # define LT_DLLAZY_OR_NOW RTLD_NOW
10526 # define LT_DLLAZY_OR_NOW DL_NOW
10528 # define LT_DLLAZY_OR_NOW 0
10536 extern "C" void exit (int);
10539 void fnord() { int i=42;}
10542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10543 int status = $lt_dlunknown;
10547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10548 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10549 /* dlclose (self); */
10557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10562 (./conftest; exit; ) >&5 2>/dev/null
10564 case x$lt_status in
10565 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10566 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10567 x$lt_dlunknown|x*) ;;
10570 # compilation failed
10579 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10580 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10584 if test x"$libltdl_cv_need_uscore" = xyes; then
10586 cat >>confdefs.h <<\_ACEOF
10587 #define NEED_USCORE 1
10593 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10594 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10595 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 # PORTME does your system automatically load deplibs for dlopen?
10599 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10600 # For now, we just catch OSes we know something about -- in the
10601 # future, we'll try test this programmatically.
10602 libltdl_cv_sys_dlopen_deplibs=unknown
10604 aix3*|aix4.1.*|aix4.2.*)
10605 # Unknown whether this is true for these versions of AIX, but
10606 # we want this `case' here to explicitly catch those versions.
10607 libltdl_cv_sys_dlopen_deplibs=unknown
10610 libltdl_cv_sys_dlopen_deplibs=yes
10613 # Assuming the user has installed a libdl from somewhere, this is true
10614 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10615 libltdl_cv_sys_dlopen_deplibs=yes
10617 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10618 # GNU and its variants, using gnu ld.so (Glibc)
10619 libltdl_cv_sys_dlopen_deplibs=yes
10622 libltdl_cv_sys_dlopen_deplibs=yes
10625 libltdl_cv_sys_dlopen_deplibs=yes
10627 irix[12345]*|irix6.[01]*)
10628 # Catch all versions of IRIX before 6.2, and indicate that we don't
10629 # know how it worked for any of those versions.
10630 libltdl_cv_sys_dlopen_deplibs=unknown
10633 # The case above catches anything before 6.2, and it's known that
10634 # at 6.2 and later dlopen does load deplibs.
10635 libltdl_cv_sys_dlopen_deplibs=yes
10638 libltdl_cv_sys_dlopen_deplibs=yes
10641 libltdl_cv_sys_dlopen_deplibs=yes
10644 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10645 # it did *not* use an RPATH in a shared library to find objects the
10646 # library depends on, so we explicitly say `no'.
10647 libltdl_cv_sys_dlopen_deplibs=no
10649 osf5.0|osf5.0a|osf5.1)
10650 # dlopen *does* load deplibs and with the right loader patch applied
10651 # it even uses RPATH in a shared library to search for shared objects
10652 # that the library depends on, but there's no easy way to know if that
10653 # patch is installed. Since this is the case, all we can really
10654 # say is unknown -- it depends on the patch being installed. If
10655 # it is, this changes to `yes'. Without it, it would be `no'.
10656 libltdl_cv_sys_dlopen_deplibs=unknown
10659 # the two cases above should catch all versions of osf <= 5.1. Read
10660 # the comments above for what we know about them.
10661 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10662 # is used to find them so we can finally say `yes'.
10663 libltdl_cv_sys_dlopen_deplibs=yes
10666 libltdl_cv_sys_dlopen_deplibs=yes
10668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10669 libltdl_cv_sys_dlopen_deplibs=yes
10674 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10675 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10676 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10678 cat >>confdefs.h <<\_ACEOF
10679 #define LTDL_DLOPEN_DEPLIBS 1
10685 for ac_header in argz.h
10687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 ac_res=`eval echo '${'$as_ac_Header'}'`
10695 { echo "$as_me:$LINENO: result: $ac_res" >&5
10696 echo "${ECHO_T}$ac_res" >&6; }
10698 # Is the header compilable?
10699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10701 cat >conftest.$ac_ext <<_ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 $ac_includes_default
10708 #include <$ac_header>
10710 rm -f conftest.$ac_objext
10711 if { (ac_try="$ac_compile"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_compile") 2>conftest.er1
10719 grep -v '^ *+' conftest.er1 >conftest.err
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10725 { (case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_try") 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; } &&
10734 { ac_try='test -s conftest.$ac_objext'
10735 { (case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_try") 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10744 ac_header_compiler=yes
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 ac_header_compiler=no
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10754 echo "${ECHO_T}$ac_header_compiler" >&6; }
10756 # Is the header present?
10757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10759 cat >conftest.$ac_ext <<_ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 #include <$ac_header>
10767 if { (ac_try="$ac_cpp conftest.$ac_ext"
10768 case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10775 grep -v '^ *+' conftest.er1 >conftest.err
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } >/dev/null; then
10780 if test -s conftest.err; then
10781 ac_cpp_err=$ac_c_preproc_warn_flag
10782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789 if test -z "$ac_cpp_err"; then
10790 ac_header_preproc=yes
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_header_preproc=no
10798 rm -f conftest.err conftest.$ac_ext
10799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10800 echo "${ECHO_T}$ac_header_preproc" >&6; }
10802 # So? What about this header?
10803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10809 ac_header_preproc=yes
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10825 ## ------------------------------------ ##
10826 ## Report this to http://llvm.org/bugs/ ##
10827 ## ------------------------------------ ##
10829 ) | sed "s/^/$as_me: WARNING: /" >&2
10832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 eval "$as_ac_Header=\$ac_header_preproc"
10839 ac_res=`eval echo '${'$as_ac_Header'}'`
10840 { echo "$as_me:$LINENO: result: $ac_res" >&5
10841 echo "${ECHO_T}$ac_res" >&6; }
10844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10845 cat >>confdefs.h <<_ACEOF
10846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10854 { echo "$as_me:$LINENO: checking for error_t" >&5
10855 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10856 if test "${ac_cv_type_error_t+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 cat >conftest.$ac_ext <<_ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h. */
10869 typedef error_t ac__type_new_;
10873 if ((ac__type_new_ *) 0)
10875 if (sizeof (ac__type_new_))
10881 rm -f conftest.$ac_objext
10882 if { (ac_try="$ac_compile"
10883 case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_compile") 2>conftest.er1
10890 grep -v '^ *+' conftest.er1 >conftest.err
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
10895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10896 { (case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_try") 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest.$ac_objext'
10906 { (case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_try") 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_type_error_t=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_type_error_t=no
10923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10925 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10926 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10927 if test $ac_cv_type_error_t = yes; then
10929 cat >>confdefs.h <<_ACEOF
10930 #define HAVE_ERROR_T 1
10936 cat >>confdefs.h <<\_ACEOF
10937 #define error_t int
10948 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10964 #define $ac_func innocuous_$ac_func
10966 /* System header to define __stub macros and hopefully few prototypes,
10967 which can conflict with char $ac_func (); below.
10968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10969 <limits.h> exists even on freestanding compilers. */
10972 # include <limits.h>
10974 # include <assert.h>
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10986 /* The GNU C library defines this for functions which it implements
10987 to always fail with ENOSYS. Some functions are actually named
10988 something starting with __ and the normal name is an alias. */
10989 #if defined __stub_$ac_func || defined __stub___$ac_func
10996 return $ac_func ();
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (ac_try="$ac_link"
11003 case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_link") 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest$ac_exeext'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 eval "$as_ac_var=yes"
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 eval "$as_ac_var=no"
11043 rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11046 ac_res=`eval echo '${'$as_ac_var'}'`
11047 { echo "$as_me:$LINENO: result: $ac_res" >&5
11048 echo "${ECHO_T}$ac_res" >&6; }
11049 if test `eval echo '${'$as_ac_var'}'` = yes; then
11050 cat >>confdefs.h <<_ACEOF
11051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11084 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 ac_res=`eval echo '${'$as_ac_Header'}'`
11095 { echo "$as_me:$LINENO: result: $ac_res" >&5
11096 echo "${ECHO_T}$ac_res" >&6; }
11098 # Is the header compilable?
11099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11101 cat >conftest.$ac_ext <<_ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 $ac_includes_default
11108 #include <$ac_header>
11110 rm -f conftest.$ac_objext
11111 if { (ac_try="$ac_compile"
11112 case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_compile") 2>conftest.er1
11119 grep -v '^ *+' conftest.er1 >conftest.err
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125 { (case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_try") 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try='test -s conftest.$ac_objext'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_header_compiler=yes
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_header_compiler=no
11152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11154 echo "${ECHO_T}$ac_header_compiler" >&6; }
11156 # Is the header present?
11157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11159 cat >conftest.$ac_ext <<_ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h. */
11165 #include <$ac_header>
11167 if { (ac_try="$ac_cpp conftest.$ac_ext"
11168 case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11175 grep -v '^ *+' conftest.er1 >conftest.err
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } >/dev/null; then
11180 if test -s conftest.err; then
11181 ac_cpp_err=$ac_c_preproc_warn_flag
11182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11189 if test -z "$ac_cpp_err"; then
11190 ac_header_preproc=yes
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ac_header_preproc=no
11198 rm -f conftest.err conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11200 echo "${ECHO_T}$ac_header_preproc" >&6; }
11202 # So? What about this header?
11203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11209 ac_header_preproc=yes
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11225 ## ------------------------------------ ##
11226 ## Report this to http://llvm.org/bugs/ ##
11227 ## ------------------------------------ ##
11229 ) | sed "s/^/$as_me: WARNING: /" >&2
11232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 eval "$as_ac_Header=\$ac_header_preproc"
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11245 cat >>confdefs.h <<_ACEOF
11246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11257 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 ac_res=`eval echo '${'$as_ac_Header'}'`
11267 { echo "$as_me:$LINENO: result: $ac_res" >&5
11268 echo "${ECHO_T}$ac_res" >&6; }
11270 # Is the header compilable?
11271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11273 cat >conftest.$ac_ext <<_ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 $ac_includes_default
11280 #include <$ac_header>
11282 rm -f conftest.$ac_objext
11283 if { (ac_try="$ac_compile"
11284 case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_compile") 2>conftest.er1
11291 grep -v '^ *+' conftest.er1 >conftest.err
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11297 { (case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_try") 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest.$ac_objext'
11307 { (case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_try") 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 ac_header_compiler=yes
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 ac_header_compiler=no
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11326 echo "${ECHO_T}$ac_header_compiler" >&6; }
11328 # Is the header present?
11329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11331 cat >conftest.$ac_ext <<_ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 #include <$ac_header>
11339 if { (ac_try="$ac_cpp conftest.$ac_ext"
11340 case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11347 grep -v '^ *+' conftest.er1 >conftest.err
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } >/dev/null; then
11352 if test -s conftest.err; then
11353 ac_cpp_err=$ac_c_preproc_warn_flag
11354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11361 if test -z "$ac_cpp_err"; then
11362 ac_header_preproc=yes
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_header_preproc=no
11370 rm -f conftest.err conftest.$ac_ext
11371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11372 echo "${ECHO_T}$ac_header_preproc" >&6; }
11374 # So? What about this header?
11375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11381 ac_header_preproc=yes
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11397 ## ------------------------------------ ##
11398 ## Report this to http://llvm.org/bugs/ ##
11399 ## ------------------------------------ ##
11401 ) | sed "s/^/$as_me: WARNING: /" >&2
11404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 eval "$as_ac_Header=\$ac_header_preproc"
11411 ac_res=`eval echo '${'$as_ac_Header'}'`
11412 { echo "$as_me:$LINENO: result: $ac_res" >&5
11413 echo "${ECHO_T}$ac_res" >&6; }
11416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11417 cat >>confdefs.h <<_ACEOF
11418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427 for ac_header in string.h strings.h
11429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 ac_res=`eval echo '${'$as_ac_Header'}'`
11437 { echo "$as_me:$LINENO: result: $ac_res" >&5
11438 echo "${ECHO_T}$ac_res" >&6; }
11440 # Is the header compilable?
11441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11443 cat >conftest.$ac_ext <<_ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 $ac_includes_default
11450 #include <$ac_header>
11452 rm -f conftest.$ac_objext
11453 if { (ac_try="$ac_compile"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11467 { (case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_try") 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try='test -s conftest.$ac_objext'
11477 { (case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_try") 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 ac_header_compiler=yes
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11491 ac_header_compiler=no
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11496 echo "${ECHO_T}$ac_header_compiler" >&6; }
11498 # Is the header present?
11499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 #include <$ac_header>
11509 if { (ac_try="$ac_cpp conftest.$ac_ext"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11517 grep -v '^ *+' conftest.er1 >conftest.err
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } >/dev/null; then
11522 if test -s conftest.err; then
11523 ac_cpp_err=$ac_c_preproc_warn_flag
11524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11531 if test -z "$ac_cpp_err"; then
11532 ac_header_preproc=yes
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_header_preproc=no
11540 rm -f conftest.err conftest.$ac_ext
11541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11542 echo "${ECHO_T}$ac_header_preproc" >&6; }
11544 # So? What about this header?
11545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11551 ac_header_preproc=yes
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11567 ## ------------------------------------ ##
11568 ## Report this to http://llvm.org/bugs/ ##
11569 ## ------------------------------------ ##
11571 ) | sed "s/^/$as_me: WARNING: /" >&2
11574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 eval "$as_ac_Header=\$ac_header_preproc"
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582 { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11598 for ac_func in strchr index
11600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11614 #define $ac_func innocuous_$ac_func
11616 /* System header to define __stub macros and hopefully few prototypes,
11617 which can conflict with char $ac_func (); below.
11618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619 <limits.h> exists even on freestanding compilers. */
11622 # include <limits.h>
11624 # include <assert.h>
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11636 /* The GNU C library defines this for functions which it implements
11637 to always fail with ENOSYS. Some functions are actually named
11638 something starting with __ and the normal name is an alias. */
11639 #if defined __stub_$ac_func || defined __stub___$ac_func
11646 return $ac_func ();
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (ac_try="$ac_link"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_link") 2>conftest.er1
11660 grep -v '^ *+' conftest.er1 >conftest.err
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666 { (case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_try") 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest$ac_exeext'
11676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 eval "$as_ac_var=yes"
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 eval "$as_ac_var=no"
11693 rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11696 ac_res=`eval echo '${'$as_ac_var'}'`
11697 { echo "$as_me:$LINENO: result: $ac_res" >&5
11698 echo "${ECHO_T}$ac_res" >&6; }
11699 if test `eval echo '${'$as_ac_var'}'` = yes; then
11700 cat >>confdefs.h <<_ACEOF
11701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11709 for ac_func in strrchr rindex
11711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11725 #define $ac_func innocuous_$ac_func
11727 /* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11733 # include <limits.h>
11735 # include <assert.h>
11740 /* Override any GCC internal prototype to avoid an error.
11741 Use char because int might match the return type of a GCC
11742 builtin and then its argument prototype would still apply. */
11747 /* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
11750 #if defined __stub_$ac_func || defined __stub___$ac_func
11757 return $ac_func ();
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11771 grep -v '^ *+' conftest.er1 >conftest.err
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest$ac_exeext'
11787 { (case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_try") 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 eval "$as_ac_var=yes"
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11804 rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11807 ac_res=`eval echo '${'$as_ac_var'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810 if test `eval echo '${'$as_ac_var'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11820 for ac_func in memcpy bcopy
11822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11836 #define $ac_func innocuous_$ac_func
11838 /* System header to define __stub macros and hopefully few prototypes,
11839 which can conflict with char $ac_func (); below.
11840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841 <limits.h> exists even on freestanding compilers. */
11844 # include <limits.h>
11846 # include <assert.h>
11851 /* Override any GCC internal prototype to avoid an error.
11852 Use char because int might match the return type of a GCC
11853 builtin and then its argument prototype would still apply. */
11858 /* The GNU C library defines this for functions which it implements
11859 to always fail with ENOSYS. Some functions are actually named
11860 something starting with __ and the normal name is an alias. */
11861 #if defined __stub_$ac_func || defined __stub___$ac_func
11868 return $ac_func ();
11873 rm -f conftest.$ac_objext conftest$ac_exeext
11874 if { (ac_try="$ac_link"
11875 case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_link") 2>conftest.er1
11882 grep -v '^ *+' conftest.er1 >conftest.err
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11888 { (case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_try") 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try='test -s conftest$ac_exeext'
11898 { (case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_try") 2>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 eval "$as_ac_var=yes"
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 eval "$as_ac_var=no"
11915 rm -f core conftest.err conftest.$ac_objext \
11916 conftest$ac_exeext conftest.$ac_ext
11918 ac_res=`eval echo '${'$as_ac_var'}'`
11919 { echo "$as_me:$LINENO: result: $ac_res" >&5
11920 echo "${ECHO_T}$ac_res" >&6; }
11921 if test `eval echo '${'$as_ac_var'}'` = yes; then
11922 cat >>confdefs.h <<_ACEOF
11923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11931 for ac_func in memmove strcmp
11933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 cat >conftest.$ac_ext <<_ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11947 #define $ac_func innocuous_$ac_func
11949 /* System header to define __stub macros and hopefully few prototypes,
11950 which can conflict with char $ac_func (); below.
11951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11952 <limits.h> exists even on freestanding compilers. */
11955 # include <limits.h>
11957 # include <assert.h>
11962 /* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
11969 /* The GNU C library defines this for functions which it implements
11970 to always fail with ENOSYS. Some functions are actually named
11971 something starting with __ and the normal name is an alias. */
11972 #if defined __stub_$ac_func || defined __stub___$ac_func
11979 return $ac_func ();
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (ac_try="$ac_link"
11986 case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_link") 2>conftest.er1
11993 grep -v '^ *+' conftest.er1 >conftest.err
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11999 { (case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_try") 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest$ac_exeext'
12009 { (case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014 (eval "$ac_try") 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 eval "$as_ac_var=yes"
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12023 eval "$as_ac_var=no"
12026 rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12029 ac_res=`eval echo '${'$as_ac_var'}'`
12030 { echo "$as_me:$LINENO: result: $ac_res" >&5
12031 echo "${ECHO_T}$ac_res" >&6; }
12032 if test `eval echo '${'$as_ac_var'}'` = yes; then
12033 cat >>confdefs.h <<_ACEOF
12034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12043 for ac_func in closedir opendir readdir
12045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 cat >conftest.$ac_ext <<_ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12059 #define $ac_func innocuous_$ac_func
12061 /* System header to define __stub macros and hopefully few prototypes,
12062 which can conflict with char $ac_func (); below.
12063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064 <limits.h> exists even on freestanding compilers. */
12067 # include <limits.h>
12069 # include <assert.h>
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12081 /* The GNU C library defines this for functions which it implements
12082 to always fail with ENOSYS. Some functions are actually named
12083 something starting with __ and the normal name is an alias. */
12084 #if defined __stub_$ac_func || defined __stub___$ac_func
12091 return $ac_func ();
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (ac_try="$ac_link"
12098 case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_link") 2>conftest.er1
12105 grep -v '^ *+' conftest.er1 >conftest.err
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12111 { (case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_try") 2>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; } &&
12120 { ac_try='test -s conftest$ac_exeext'
12121 { (case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_try") 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 eval "$as_ac_var=yes"
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 eval "$as_ac_var=no"
12138 rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12141 ac_res=`eval echo '${'$as_ac_var'}'`
12142 { echo "$as_me:$LINENO: result: $ac_res" >&5
12143 echo "${ECHO_T}$ac_res" >&6; }
12144 if test `eval echo '${'$as_ac_var'}'` = yes; then
12145 cat >>confdefs.h <<_ACEOF
12146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12154 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12155 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12168 if test "$GCC" != "yes" && test "$ICC" != "yes"
12170 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12171 echo "$as_me: error: gcc|icc required but not found" >&2;}
12172 { (exit 1); exit 1; }; }
12175 if test "$GXX" != "yes" && test "$IXX" != "yes"
12177 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12178 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12179 { (exit 1); exit 1; }; }
12182 if test "$GCC" = "yes"
12184 cat >conftest.$ac_ext <<_ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12192 #if !defined(__GNUC__) || __GNUC__ < 3
12193 #error Unsupported GCC version
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_compile") 2>conftest.er1
12207 grep -v '^ *+' conftest.er1 >conftest.err
12209 cat conftest.err >&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12213 { (case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_try") 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; } &&
12222 { ac_try='test -s conftest.$ac_objext'
12223 { (case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228 (eval "$ac_try") 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12238 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12239 { (exit 1); exit 1; }; }
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 if test -z "$llvm_cv_gnu_make_command"
12247 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12248 echo "$as_me: error: GNU Make required but not found" >&2;}
12249 { (exit 1); exit 1; }; }
12252 { echo "$as_me:$LINENO: result: ok" >&5
12253 echo "${ECHO_T}ok" >&6; }
12255 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12256 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12257 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12259 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12261 NO_NESTED_ANON_TYPES=`$CXX -Werror -Wno-nested-anon-types -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-nested-anon-types`
12263 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12265 if test "$GXX" = "yes"
12267 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12269 if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12271 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12274 gxx_version=`$CXX -dumpversion`
12275 gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12276 gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12277 gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12279 if test "$gxx_version_major" -ge "4" \
12280 && test "$gxx_version_minor" -ge "7"; then
12283 NO_MAYBE_UNINITIALIZED=
12284 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12290 NO_MAYBE_UNINITIALIZED=
12292 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12293 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12296 # Check whether --with-python was given.
12297 if test "${with_python+set}" = set; then
12298 withval=$with_python; PYTHON="$withval"
12302 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12303 { echo "$as_me:$LINENO: checking for python" >&5
12304 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12305 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12306 echo "${ECHO_T}user defined: $with_python" >&6; }
12308 if test -n "$PYTHON" ; then
12309 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12310 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12313 # Extract the first word of "python python2 python26", so it can be a program name with args.
12314 set dummy python python2 python26; ac_word=$2
12315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12317 if test "${ac_cv_path_PYTHON+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12332 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12341 echo "${ECHO_T}not found" >&6; }
12342 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12343 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12344 { (exit 1); exit 1; }; }"
12348 PYTHON=$ac_cv_path_PYTHON
12349 if test -n "$PYTHON"; then
12350 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12351 echo "${ECHO_T}$PYTHON" >&6; }
12353 { echo "$as_me:$LINENO: result: no" >&5
12354 echo "${ECHO_T}no" >&6; }
12360 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12361 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12362 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12363 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12364 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12365 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12366 if test "$ac_python_version_major" -eq "2" \
12367 && test "$ac_python_version_minor" -ge "5" ; then
12368 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12369 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12371 { echo "$as_me:$LINENO: result: not found" >&5
12372 echo "${ECHO_T}not found" >&6; }
12373 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12374 See \`config.log' for more details." >&5
12375 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12376 See \`config.log' for more details." >&2;}
12377 { (exit 1); exit 1; }; }
12382 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12383 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12384 if test "${ac_cv_lib_m_sin+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 ac_check_lib_save_LIBS=$LIBS
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (ac_try="$ac_link"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_link") 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12435 { ac_try='test -s conftest$ac_exeext'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_cv_lib_m_sin=yes
12447 echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12453 rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12457 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12458 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12459 if test $ac_cv_lib_m_sin = yes; then
12460 cat >>confdefs.h <<_ACEOF
12461 #define HAVE_LIBM 1
12468 if test "$llvm_cv_os_type" = "MingW" ; then
12470 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12471 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12472 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 ac_check_lib_save_LIBS=$LIBS
12476 LIBS="-limagehlp $LIBS"
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (ac_try="$ac_link"
12495 case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_link") 2>conftest.er1
12502 grep -v '^ *+' conftest.er1 >conftest.err
12504 cat conftest.err >&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } &&
12507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12517 { ac_try='test -s conftest$ac_exeext'
12518 { (case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_try") 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 ac_cv_lib_imagehlp_main=yes
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 ac_cv_lib_imagehlp_main=no
12535 rm -f core conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12539 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12540 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12541 if test $ac_cv_lib_imagehlp_main = yes; then
12542 cat >>confdefs.h <<_ACEOF
12543 #define HAVE_LIBIMAGEHLP 1
12546 LIBS="-limagehlp $LIBS"
12551 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12552 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12553 if test "${ac_cv_lib_psapi_main+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 ac_check_lib_save_LIBS=$LIBS
12557 LIBS="-lpsapi $LIBS"
12558 cat >conftest.$ac_ext <<_ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12574 rm -f conftest.$ac_objext conftest$ac_exeext
12575 if { (ac_try="$ac_link"
12576 case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_link") 2>conftest.er1
12583 grep -v '^ *+' conftest.er1 >conftest.err
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12598 { ac_try='test -s conftest$ac_exeext'
12599 { (case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_try") 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; }; then
12608 ac_cv_lib_psapi_main=yes
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 ac_cv_lib_psapi_main=no
12616 rm -f core conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12618 LIBS=$ac_check_lib_save_LIBS
12620 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12621 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12622 if test $ac_cv_lib_psapi_main = yes; then
12623 cat >>confdefs.h <<_ACEOF
12624 #define HAVE_LIBPSAPI 1
12627 LIBS="-lpsapi $LIBS"
12633 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12634 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12635 if test "${ac_cv_search_dlopen+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 ac_func_search_save_LIBS=$LIBS
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12661 for ac_lib in '' dl; do
12662 if test -z "$ac_lib"; then
12663 ac_res="none required"
12666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12668 rm -f conftest.$ac_objext conftest$ac_exeext
12669 if { (ac_try="$ac_link"
12670 case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675 (eval "$ac_link") 2>conftest.er1
12677 grep -v '^ *+' conftest.er1 >conftest.err
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
12682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12692 { ac_try='test -s conftest$ac_exeext'
12693 { (case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_try") 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 ac_cv_search_dlopen=$ac_res
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12710 rm -f core conftest.err conftest.$ac_objext \
12712 if test "${ac_cv_search_dlopen+set}" = set; then
12716 if test "${ac_cv_search_dlopen+set}" = set; then
12719 ac_cv_search_dlopen=no
12721 rm conftest.$ac_ext
12722 LIBS=$ac_func_search_save_LIBS
12724 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12725 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12726 ac_res=$ac_cv_search_dlopen
12727 if test "$ac_res" != no; then
12728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12730 cat >>confdefs.h <<\_ACEOF
12731 #define HAVE_DLOPEN 1
12735 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12736 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12740 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12741 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12742 if test "${ac_cv_search_clock_gettime+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 ac_func_search_save_LIBS=$LIBS
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12753 /* Override any GCC internal prototype to avoid an error.
12754 Use char because int might match the return type of a GCC
12755 builtin and then its argument prototype would still apply. */
12759 char clock_gettime ();
12763 return clock_gettime ();
12768 for ac_lib in '' rt; do
12769 if test -z "$ac_lib"; then
12770 ac_res="none required"
12773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_link") 2>conftest.er1
12784 grep -v '^ *+' conftest.er1 >conftest.err
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12799 { ac_try='test -s conftest$ac_exeext'
12800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_cv_search_clock_gettime=$ac_res
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12817 rm -f core conftest.err conftest.$ac_objext \
12819 if test "${ac_cv_search_clock_gettime+set}" = set; then
12823 if test "${ac_cv_search_clock_gettime+set}" = set; then
12826 ac_cv_search_clock_gettime=no
12828 rm conftest.$ac_ext
12829 LIBS=$ac_func_search_save_LIBS
12831 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12832 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12833 ac_res=$ac_cv_search_clock_gettime
12834 if test "$ac_res" != no; then
12835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12840 if test "$llvm_cv_enable_libffi" = "yes" ; then
12841 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12842 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12843 if test "${ac_cv_search_ffi_call+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 ac_func_search_save_LIBS=$LIBS
12847 cat >conftest.$ac_ext <<_ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12864 return ffi_call ();
12869 for ac_lib in '' ffi; do
12870 if test -z "$ac_lib"; then
12871 ac_res="none required"
12874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12876 rm -f conftest.$ac_objext conftest$ac_exeext
12877 if { (ac_try="$ac_link"
12878 case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883 (eval "$ac_link") 2>conftest.er1
12885 grep -v '^ *+' conftest.er1 >conftest.err
12887 cat conftest.err >&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12900 { ac_try='test -s conftest$ac_exeext'
12901 { (case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_try") 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 ac_cv_search_ffi_call=$ac_res
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12918 rm -f core conftest.err conftest.$ac_objext \
12920 if test "${ac_cv_search_ffi_call+set}" = set; then
12924 if test "${ac_cv_search_ffi_call+set}" = set; then
12927 ac_cv_search_ffi_call=no
12929 rm conftest.$ac_ext
12930 LIBS=$ac_func_search_save_LIBS
12932 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12933 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12934 ac_res=$ac_cv_search_ffi_call
12935 if test "$ac_res" != no; then
12936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_FFI_CALL 1
12943 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12944 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12945 { (exit 1); exit 1; }; }
12950 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12951 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12952 if test "${ac_cv_search_mallinfo+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 ac_func_search_save_LIBS=$LIBS
12956 cat >conftest.$ac_ext <<_ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12963 /* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12973 return mallinfo ();
12978 for ac_lib in '' malloc; do
12979 if test -z "$ac_lib"; then
12980 ac_res="none required"
12983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_link") 2>conftest.er1
12994 grep -v '^ *+' conftest.er1 >conftest.err
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } &&
12999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13009 { ac_try='test -s conftest$ac_exeext'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_search_mallinfo=$ac_res
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13027 rm -f core conftest.err conftest.$ac_objext \
13029 if test "${ac_cv_search_mallinfo+set}" = set; then
13033 if test "${ac_cv_search_mallinfo+set}" = set; then
13036 ac_cv_search_mallinfo=no
13038 rm conftest.$ac_ext
13039 LIBS=$ac_func_search_save_LIBS
13041 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13042 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13043 ac_res=$ac_cv_search_mallinfo
13044 if test "$ac_res" != no; then
13045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_MALLINFO 1
13054 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13056 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13057 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13058 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 ac_check_lib_save_LIBS=$LIBS
13062 LIBS="-lpthread $LIBS"
13063 cat >conftest.$ac_ext <<_ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13070 /* Override any GCC internal prototype to avoid an error.
13071 Use char because int might match the return type of a GCC
13072 builtin and then its argument prototype would still apply. */
13076 char pthread_mutex_init ();
13080 return pthread_mutex_init ();
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (ac_try="$ac_link"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_link") 2>conftest.er1
13094 grep -v '^ *+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_try") 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_cv_lib_pthread_pthread_mutex_init=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 ac_cv_lib_pthread_pthread_mutex_init=no
13127 rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13131 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13132 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13133 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13134 cat >>confdefs.h <<_ACEOF
13135 #define HAVE_LIBPTHREAD 1
13138 LIBS="-lpthread $LIBS"
13142 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13143 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13144 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 ac_func_search_save_LIBS=$LIBS
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13155 /* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
13157 builtin and then its argument prototype would still apply. */
13161 char pthread_mutex_lock ();
13165 return pthread_mutex_lock ();
13170 for ac_lib in '' pthread; do
13171 if test -z "$ac_lib"; then
13172 ac_res="none required"
13175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_link") 2>conftest.er1
13186 grep -v '^ *+' conftest.er1 >conftest.err
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13201 { ac_try='test -s conftest$ac_exeext'
13202 { (case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_try") 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 ac_cv_search_pthread_mutex_lock=$ac_res
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13219 rm -f core conftest.err conftest.$ac_objext \
13221 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13225 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13228 ac_cv_search_pthread_mutex_lock=no
13230 rm conftest.$ac_ext
13231 LIBS=$ac_func_search_save_LIBS
13233 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13234 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13235 ac_res=$ac_cv_search_pthread_mutex_lock
13236 if test "$ac_res" != no; then
13237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13239 cat >>confdefs.h <<\_ACEOF
13240 #define HAVE_PTHREAD_MUTEX_LOCK 1
13245 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13246 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13247 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 ac_func_search_save_LIBS=$LIBS
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13264 char pthread_rwlock_init ();
13268 return pthread_rwlock_init ();
13273 for ac_lib in '' pthread; do
13274 if test -z "$ac_lib"; then
13275 ac_res="none required"
13278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13280 rm -f conftest.$ac_objext conftest$ac_exeext
13281 if { (ac_try="$ac_link"
13282 case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_link") 2>conftest.er1
13289 grep -v '^ *+' conftest.er1 >conftest.err
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13304 { ac_try='test -s conftest$ac_exeext'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_cv_search_pthread_rwlock_init=$ac_res
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13322 rm -f core conftest.err conftest.$ac_objext \
13324 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13328 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13331 ac_cv_search_pthread_rwlock_init=no
13333 rm conftest.$ac_ext
13334 LIBS=$ac_func_search_save_LIBS
13336 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13337 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13338 ac_res=$ac_cv_search_pthread_rwlock_init
13339 if test "$ac_res" != no; then
13340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13342 cat >>confdefs.h <<\_ACEOF
13343 #define HAVE_PTHREAD_RWLOCK_INIT 1
13348 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13349 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13350 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 ac_func_search_save_LIBS=$LIBS
13354 cat >conftest.$ac_ext <<_ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13361 /* Override any GCC internal prototype to avoid an error.
13362 Use char because int might match the return type of a GCC
13363 builtin and then its argument prototype would still apply. */
13367 char pthread_getspecific ();
13371 return pthread_getspecific ();
13376 for ac_lib in '' pthread; do
13377 if test -z "$ac_lib"; then
13378 ac_res="none required"
13381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_link") 2>conftest.er1
13392 grep -v '^ *+' conftest.er1 >conftest.err
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13407 { ac_try='test -s conftest$ac_exeext'
13408 { (case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_try") 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417 ac_cv_search_pthread_getspecific=$ac_res
13419 echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13425 rm -f core conftest.err conftest.$ac_objext \
13427 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13431 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13434 ac_cv_search_pthread_getspecific=no
13436 rm conftest.$ac_ext
13437 LIBS=$ac_func_search_save_LIBS
13439 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13440 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13441 ac_res=$ac_cv_search_pthread_getspecific
13442 if test "$ac_res" != no; then
13443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_PTHREAD_GETSPECIFIC 1
13454 # Check whether --with-udis86 was given.
13455 if test "${with_udis86+set}" = set; then
13456 withval=$with_udis86;
13461 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13464 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13465 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13466 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 ac_check_lib_save_LIBS=$LIBS
13470 LIBS="-ludis86 $LIBS"
13471 cat >conftest.$ac_ext <<_ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13478 /* Override any GCC internal prototype to avoid an error.
13479 Use char because int might match the return type of a GCC
13480 builtin and then its argument prototype would still apply. */
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (ac_try="$ac_link"
13495 case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_link") 2>conftest.er1
13502 grep -v '^ *+' conftest.er1 >conftest.err
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13517 { ac_try='test -s conftest$ac_exeext'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_lib_udis86_ud_init=yes
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13532 ac_cv_lib_udis86_ud_init=no
13535 rm -f core conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13539 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13540 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13541 if test $ac_cv_lib_udis86_ud_init = yes; then
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_LIBUDIS86 1
13546 LIBS="-ludis86 $LIBS"
13550 echo "Error! You need to have libudis86 around."
13562 cat >>confdefs.h <<_ACEOF
13563 #define USE_UDIS86 $USE_UDIS86
13568 # Check whether --with-oprofile was given.
13569 if test "${with_oprofile+set}" = set; then
13570 withval=$with_oprofile;
13574 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13575 no) llvm_cv_oppath=
13578 *) llvm_cv_oppath="${withval}/lib/oprofile"
13579 CPPFLAGS="-I${withval}/include";;
13581 case $llvm_cv_os_type in
13583 if test -n "$llvm_cv_oppath" ; then
13584 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13585 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13586 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13587 if test "${ac_cv_search_bfd_init+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 ac_func_search_save_LIBS=$LIBS
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13598 /* Override any GCC internal prototype to avoid an error.
13599 Use char because int might match the return type of a GCC
13600 builtin and then its argument prototype would still apply. */
13608 return bfd_init ();
13613 for ac_lib in '' bfd; do
13614 if test -z "$ac_lib"; then
13615 ac_res="none required"
13618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13620 rm -f conftest.$ac_objext conftest$ac_exeext
13621 if { (ac_try="$ac_link"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_link") 2>conftest.er1
13629 grep -v '^ *+' conftest.er1 >conftest.err
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_search_bfd_init=$ac_res
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13662 rm -f core conftest.err conftest.$ac_objext \
13664 if test "${ac_cv_search_bfd_init+set}" = set; then
13668 if test "${ac_cv_search_bfd_init+set}" = set; then
13671 ac_cv_search_bfd_init=no
13673 rm conftest.$ac_ext
13674 LIBS=$ac_func_search_save_LIBS
13676 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13677 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13678 ac_res=$ac_cv_search_bfd_init
13679 if test "$ac_res" != no; then
13680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13684 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13685 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13686 if test "${ac_cv_search_op_open_agent+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 ac_func_search_save_LIBS=$LIBS
13690 cat >conftest.$ac_ext <<_ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13697 /* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply. */
13703 char op_open_agent ();
13707 return op_open_agent ();
13712 for ac_lib in '' opagent; do
13713 if test -z "$ac_lib"; then
13714 ac_res="none required"
13717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13719 rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (ac_try="$ac_link"
13721 case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_link") 2>conftest.er1
13728 grep -v '^ *+' conftest.er1 >conftest.err
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } &&
13733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13743 { ac_try='test -s conftest$ac_exeext'
13744 { (case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_try") 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_cv_search_op_open_agent=$ac_res
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13761 rm -f core conftest.err conftest.$ac_objext \
13763 if test "${ac_cv_search_op_open_agent+set}" = set; then
13767 if test "${ac_cv_search_op_open_agent+set}" = set; then
13770 ac_cv_search_op_open_agent=no
13772 rm conftest.$ac_ext
13773 LIBS=$ac_func_search_save_LIBS
13775 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13776 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13777 ac_res=$ac_cv_search_op_open_agent
13778 if test "$ac_res" != no; then
13779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13783 echo "Error! You need to have libopagent around."
13788 if test "${ac_cv_header_opagent_h+set}" = set; then
13789 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13790 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13791 if test "${ac_cv_header_opagent_h+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13795 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13797 # Is the header compilable?
13798 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13799 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13800 cat >conftest.$ac_ext <<_ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 $ac_includes_default
13807 #include <opagent.h>
13809 rm -f conftest.$ac_objext
13810 if { (ac_try="$ac_compile"
13811 case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_compile") 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13833 { ac_try='test -s conftest.$ac_objext'
13834 { (case "(($ac_try" in
13835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_try") 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 ac_header_compiler=yes
13845 echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13848 ac_header_compiler=no
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13853 echo "${ECHO_T}$ac_header_compiler" >&6; }
13855 # Is the header present?
13856 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13857 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13858 cat >conftest.$ac_ext <<_ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 #include <opagent.h>
13866 if { (ac_try="$ac_cpp conftest.$ac_ext"
13867 case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13874 grep -v '^ *+' conftest.er1 >conftest.err
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } >/dev/null; then
13879 if test -s conftest.err; then
13880 ac_cpp_err=$ac_c_preproc_warn_flag
13881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13888 if test -z "$ac_cpp_err"; then
13889 ac_header_preproc=yes
13891 echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13894 ac_header_preproc=no
13897 rm -f conftest.err conftest.$ac_ext
13898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13899 echo "${ECHO_T}$ac_header_preproc" >&6; }
13901 # So? What about this header?
13902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13904 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13905 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13907 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13908 ac_header_preproc=yes
13911 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13912 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13913 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13914 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13915 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13916 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13917 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13918 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13920 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13922 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13924 ## ------------------------------------ ##
13925 ## Report this to http://llvm.org/bugs/ ##
13926 ## ------------------------------------ ##
13928 ) | sed "s/^/$as_me: WARNING: /" >&2
13931 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13932 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13933 if test "${ac_cv_header_opagent_h+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 ac_cv_header_opagent_h=$ac_header_preproc
13938 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13939 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13942 if test $ac_cv_header_opagent_h = yes; then
13946 echo "Error! You need to have opagent.h around."
13954 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13955 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13956 { (exit 1); exit 1; }; } ;;
13967 cat >>confdefs.h <<_ACEOF
13968 #define LLVM_USE_OPROFILE $USE_OPROFILE
13973 # Check whether --with-intel-jitevents was given.
13974 if test "${with_intel_jitevents+set}" = set; then
13975 withval=$with_intel_jitevents;
13977 yes) USE_INTEL_JITEVENTS=1
13979 no) USE_INTEL_JITEVENTS=0
13981 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13982 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13983 { (exit 1); exit 1; }; };;
13986 case $llvm_cv_os_type in
13987 Linux|Win32|Cygwin|MingW) ;;
13988 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13989 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13990 { (exit 1); exit 1; }; };;
13993 case "$llvm_cv_target_arch" in
13995 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13996 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13997 { (exit 1); exit 1; }; };;
14002 USE_INTEL_JITEVENTS=0
14008 cat >>confdefs.h <<_ACEOF
14009 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14013 for ac_prog in xml2-config
14015 # Extract the first word of "$ac_prog", so it can be a program name with args.
14016 set dummy $ac_prog; ac_word=$2
14017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14019 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 if test -n "$XML2CONFIG"; then
14023 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14026 for as_dir in $PATH
14029 test -z "$as_dir" && as_dir=.
14030 for ac_exec_ext in '' $ac_executable_extensions; do
14031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14032 ac_cv_prog_XML2CONFIG="$ac_prog"
14033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14042 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14043 if test -n "$XML2CONFIG"; then
14044 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14045 echo "${ECHO_T}$XML2CONFIG" >&6; }
14047 { echo "$as_me:$LINENO: result: no" >&5
14048 echo "${ECHO_T}no" >&6; }
14052 test -n "$XML2CONFIG" && break
14056 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14057 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14058 if test "x$XML2CONFIG" = "x"; then
14059 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14060 echo "${ECHO_T}xml2-config not found" >&6; }
14062 LIBXML2_INC=`$XML2CONFIG --cflags`
14063 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14064 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14065 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14066 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14067 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 ac_check_lib_save_LIBS=$LIBS
14071 LIBS="-lxml2 $LIBS"
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14085 char xmlReadFile ();
14089 return xmlReadFile ();
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14118 { ac_try='test -s conftest$ac_exeext'
14119 { (case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_try") 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
14128 ac_cv_lib_xml2_xmlReadFile=yes
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 ac_cv_lib_xml2_xmlReadFile=no
14136 rm -f core conftest.err conftest.$ac_objext \
14137 conftest$ac_exeext conftest.$ac_ext
14138 LIBS=$ac_check_lib_save_LIBS
14140 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14141 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14142 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14144 cat >>confdefs.h <<\_ACEOF
14145 #define CLANG_HAVE_LIBXML 1
14148 LIBXML2_LIBS="-lxml2"
14161 ac_header_dirent=no
14162 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14163 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14164 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14165 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 cat >conftest.$ac_ext <<_ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14175 #include <sys/types.h>
14187 rm -f conftest.$ac_objext
14188 if { (ac_try="$ac_compile"
14189 case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_compile") 2>conftest.er1
14196 grep -v '^ *+' conftest.er1 >conftest.err
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14211 { ac_try='test -s conftest.$ac_objext'
14212 { (case "(($ac_try" in
14213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_try") 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 eval "$as_ac_Header=yes"
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14226 eval "$as_ac_Header=no"
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 ac_res=`eval echo '${'$as_ac_Header'}'`
14232 { echo "$as_me:$LINENO: result: $ac_res" >&5
14233 echo "${ECHO_T}$ac_res" >&6; }
14234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14235 cat >>confdefs.h <<_ACEOF
14236 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14239 ac_header_dirent=$ac_hdr; break
14243 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14244 if test $ac_header_dirent = dirent.h; then
14245 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14246 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14247 if test "${ac_cv_search_opendir+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 ac_func_search_save_LIBS=$LIBS
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14258 /* Override any GCC internal prototype to avoid an error.
14259 Use char because int might match the return type of a GCC
14260 builtin and then its argument prototype would still apply. */
14273 for ac_lib in '' dir; do
14274 if test -z "$ac_lib"; then
14275 ac_res="none required"
14278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_link") 2>conftest.er1
14289 grep -v '^ *+' conftest.er1 >conftest.err
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14304 { ac_try='test -s conftest$ac_exeext'
14305 { (case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_try") 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_search_opendir=$ac_res
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14322 rm -f core conftest.err conftest.$ac_objext \
14324 if test "${ac_cv_search_opendir+set}" = set; then
14328 if test "${ac_cv_search_opendir+set}" = set; then
14331 ac_cv_search_opendir=no
14333 rm conftest.$ac_ext
14334 LIBS=$ac_func_search_save_LIBS
14336 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14337 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14338 ac_res=$ac_cv_search_opendir
14339 if test "$ac_res" != no; then
14340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14345 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14347 if test "${ac_cv_search_opendir+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 ac_func_search_save_LIBS=$LIBS
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14373 for ac_lib in '' x; do
14374 if test -z "$ac_lib"; then
14375 ac_res="none required"
14378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14380 rm -f conftest.$ac_objext conftest$ac_exeext
14381 if { (ac_try="$ac_link"
14382 case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387 (eval "$ac_link") 2>conftest.er1
14389 grep -v '^ *+' conftest.er1 >conftest.err
14391 cat conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14404 { ac_try='test -s conftest$ac_exeext'
14405 { (case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_try") 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_cv_search_opendir=$ac_res
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14422 rm -f core conftest.err conftest.$ac_objext \
14424 if test "${ac_cv_search_opendir+set}" = set; then
14428 if test "${ac_cv_search_opendir+set}" = set; then
14431 ac_cv_search_opendir=no
14433 rm conftest.$ac_ext
14434 LIBS=$ac_func_search_save_LIBS
14436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14438 ac_res=$ac_cv_search_opendir
14439 if test "$ac_res" != no; then
14440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14446 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14447 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14448 if test "${ac_cv_header_mmap_anon+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 ac_cpp='$CPP $CPPFLAGS'
14453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #include <sys/mman.h>
14464 #include <unistd.h>
14469 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14474 rm -f conftest.$ac_objext
14475 if { (ac_try="$ac_compile"
14476 case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_compile") 2>conftest.er1
14483 grep -v '^ *+' conftest.er1 >conftest.err
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } &&
14488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14498 { ac_try='test -s conftest.$ac_objext'
14499 { (case "(($ac_try" in
14500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501 *) ac_try_echo=$ac_try;;
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504 (eval "$ac_try") 2>&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }; then
14508 ac_cv_header_mmap_anon=yes
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 ac_cv_header_mmap_anon=no
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 ac_cpp='$CPP $CPPFLAGS'
14519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14525 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14526 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14527 if test "$ac_cv_header_mmap_anon" = yes; then
14529 cat >>confdefs.h <<\_ACEOF
14530 #define HAVE_MMAP_ANONYMOUS 1
14535 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14536 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14537 if test "${ac_cv_header_stat_broken+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 cat >conftest.$ac_ext <<_ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 #include <sys/types.h>
14547 #include <sys/stat.h>
14549 #if defined S_ISBLK && defined S_IFDIR
14550 # if S_ISBLK (S_IFDIR)
14555 #if defined S_ISBLK && defined S_IFCHR
14556 # if S_ISBLK (S_IFCHR)
14561 #if defined S_ISLNK && defined S_IFREG
14562 # if S_ISLNK (S_IFREG)
14567 #if defined S_ISSOCK && defined S_IFREG
14568 # if S_ISSOCK (S_IFREG)
14574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14575 $EGREP "You lose" >/dev/null 2>&1; then
14576 ac_cv_header_stat_broken=yes
14578 ac_cv_header_stat_broken=no
14583 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14584 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14585 if test $ac_cv_header_stat_broken = yes; then
14587 cat >>confdefs.h <<\_ACEOF
14588 #define STAT_MACROS_BROKEN 1
14593 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14594 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14595 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 cat >conftest.$ac_ext <<_ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14604 #include <sys/types.h>
14605 #include <sys/wait.h>
14606 #ifndef WEXITSTATUS
14607 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14610 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14618 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14632 grep -v '^ *+' conftest.er1 >conftest.err
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14647 { ac_try='test -s conftest.$ac_objext'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_header_sys_wait_h=yes
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_cv_header_sys_wait_h=no
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14668 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14669 if test $ac_cv_header_sys_wait_h = yes; then
14671 cat >>confdefs.h <<\_ACEOF
14672 #define HAVE_SYS_WAIT_H 1
14677 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14678 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14679 if test "${ac_cv_header_time+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 cat >conftest.$ac_ext <<_ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h. */
14688 #include <sys/types.h>
14689 #include <sys/time.h>
14695 if ((struct tm *) 0)
14701 rm -f conftest.$ac_objext
14702 if { (ac_try="$ac_compile"
14703 case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_compile") 2>conftest.er1
14710 grep -v '^ *+' conftest.er1 >conftest.err
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
14715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }; then
14735 ac_cv_header_time=yes
14737 echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14740 ac_cv_header_time=no
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14746 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14747 if test $ac_cv_header_time = yes; then
14749 cat >>confdefs.h <<\_ACEOF
14750 #define TIME_WITH_SYS_TIME 1
14762 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 ac_res=`eval echo '${'$as_ac_Header'}'`
14772 { echo "$as_me:$LINENO: result: $ac_res" >&5
14773 echo "${ECHO_T}$ac_res" >&6; }
14775 # Is the header compilable?
14776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14778 cat >conftest.$ac_ext <<_ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 $ac_includes_default
14785 #include <$ac_header>
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_compile") 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14811 { ac_try='test -s conftest.$ac_objext'
14812 { (case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_try") 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_header_compiler=yes
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 ac_header_compiler=no
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 echo "${ECHO_T}$ac_header_compiler" >&6; }
14833 # Is the header present?
14834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14836 cat >conftest.$ac_ext <<_ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 #include <$ac_header>
14844 if { (ac_try="$ac_cpp conftest.$ac_ext"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14852 grep -v '^ *+' conftest.er1 >conftest.err
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } >/dev/null; then
14857 if test -s conftest.err; then
14858 ac_cpp_err=$ac_c_preproc_warn_flag
14859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14866 if test -z "$ac_cpp_err"; then
14867 ac_header_preproc=yes
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_header_preproc=no
14875 rm -f conftest.err conftest.$ac_ext
14876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 echo "${ECHO_T}$ac_header_preproc" >&6; }
14879 # So? What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14886 ac_header_preproc=yes
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14902 ## ------------------------------------ ##
14903 ## Report this to http://llvm.org/bugs/ ##
14904 ## ------------------------------------ ##
14906 ) | sed "s/^/$as_me: WARNING: /" >&2
14909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 eval "$as_ac_Header=\$ac_header_preproc"
14916 ac_res=`eval echo '${'$as_ac_Header'}'`
14917 { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14936 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 ac_res=`eval echo '${'$as_ac_Header'}'`
14946 { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14949 # Is the header compilable?
14950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 $ac_includes_default
14959 #include <$ac_header>
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_compile") 2>conftest.er1
14970 grep -v '^ *+' conftest.er1 >conftest.err
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14985 { ac_try='test -s conftest.$ac_objext'
14986 { (case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_try") 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_header_compiler=yes
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 ac_header_compiler=no
15003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15005 echo "${ECHO_T}$ac_header_compiler" >&6; }
15007 # Is the header present?
15008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15010 cat >conftest.$ac_ext <<_ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 #include <$ac_header>
15018 if { (ac_try="$ac_cpp conftest.$ac_ext"
15019 case "(($ac_try" in
15020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15026 grep -v '^ *+' conftest.er1 >conftest.err
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } >/dev/null; then
15031 if test -s conftest.err; then
15032 ac_cpp_err=$ac_c_preproc_warn_flag
15033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15040 if test -z "$ac_cpp_err"; then
15041 ac_header_preproc=yes
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_header_preproc=no
15049 rm -f conftest.err conftest.$ac_ext
15050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15051 echo "${ECHO_T}$ac_header_preproc" >&6; }
15053 # So? What about this header?
15054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15060 ac_header_preproc=yes
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15076 ## ------------------------------------ ##
15077 ## Report this to http://llvm.org/bugs/ ##
15078 ## ------------------------------------ ##
15080 ) | sed "s/^/$as_me: WARNING: /" >&2
15083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 eval "$as_ac_Header=\$ac_header_preproc"
15090 ac_res=`eval echo '${'$as_ac_Header'}'`
15091 { echo "$as_me:$LINENO: result: $ac_res" >&5
15092 echo "${ECHO_T}$ac_res" >&6; }
15095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15096 cat >>confdefs.h <<_ACEOF
15097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15106 for ac_header in utime.h windows.h
15108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116 { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15119 # Is the header compilable?
15120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 $ac_includes_default
15129 #include <$ac_header>
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_compile") 2>conftest.er1
15140 grep -v '^ *+' conftest.er1 >conftest.err
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_try") 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 ac_header_compiler=yes
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_header_compiler=no
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15175 echo "${ECHO_T}$ac_header_compiler" >&6; }
15177 # Is the header present?
15178 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15180 cat >conftest.$ac_ext <<_ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186 #include <$ac_header>
15188 if { (ac_try="$ac_cpp conftest.$ac_ext"
15189 case "(($ac_try" in
15190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191 *) ac_try_echo=$ac_try;;
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15196 grep -v '^ *+' conftest.er1 >conftest.err
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } >/dev/null; then
15201 if test -s conftest.err; then
15202 ac_cpp_err=$ac_c_preproc_warn_flag
15203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15210 if test -z "$ac_cpp_err"; then
15211 ac_header_preproc=yes
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_header_preproc=no
15219 rm -f conftest.err conftest.$ac_ext
15220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15221 echo "${ECHO_T}$ac_header_preproc" >&6; }
15223 # So? What about this header?
15224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15230 ac_header_preproc=yes
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15246 ## ------------------------------------ ##
15247 ## Report this to http://llvm.org/bugs/ ##
15248 ## ------------------------------------ ##
15250 ) | sed "s/^/$as_me: WARNING: /" >&2
15253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 eval "$as_ac_Header=\$ac_header_preproc"
15260 ac_res=`eval echo '${'$as_ac_Header'}'`
15261 { echo "$as_me:$LINENO: result: $ac_res" >&5
15262 echo "${ECHO_T}$ac_res" >&6; }
15265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15266 cat >>confdefs.h <<_ACEOF
15267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15279 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 ac_res=`eval echo '${'$as_ac_Header'}'`
15289 { echo "$as_me:$LINENO: result: $ac_res" >&5
15290 echo "${ECHO_T}$ac_res" >&6; }
15292 # Is the header compilable?
15293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15295 cat >conftest.$ac_ext <<_ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15301 $ac_includes_default
15302 #include <$ac_header>
15304 rm -f conftest.$ac_objext
15305 if { (ac_try="$ac_compile"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_compile") 2>conftest.er1
15313 grep -v '^ *+' conftest.er1 >conftest.err
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
15318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15328 { ac_try='test -s conftest.$ac_objext'
15329 { (case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_try") 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 ac_header_compiler=yes
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15343 ac_header_compiler=no
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15348 echo "${ECHO_T}$ac_header_compiler" >&6; }
15350 # Is the header present?
15351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15353 cat >conftest.$ac_ext <<_ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 #include <$ac_header>
15361 if { (ac_try="$ac_cpp conftest.$ac_ext"
15362 case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15369 grep -v '^ *+' conftest.er1 >conftest.err
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } >/dev/null; then
15374 if test -s conftest.err; then
15375 ac_cpp_err=$ac_c_preproc_warn_flag
15376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15383 if test -z "$ac_cpp_err"; then
15384 ac_header_preproc=yes
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ac_header_preproc=no
15392 rm -f conftest.err conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15394 echo "${ECHO_T}$ac_header_preproc" >&6; }
15396 # So? What about this header?
15397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15403 ac_header_preproc=yes
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15419 ## ------------------------------------ ##
15420 ## Report this to http://llvm.org/bugs/ ##
15421 ## ------------------------------------ ##
15423 ) | sed "s/^/$as_me: WARNING: /" >&2
15426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429 echo $ECHO_N "(cached) $ECHO_C" >&6
15431 eval "$as_ac_Header=\$ac_header_preproc"
15433 ac_res=`eval echo '${'$as_ac_Header'}'`
15434 { echo "$as_me:$LINENO: result: $ac_res" >&5
15435 echo "${ECHO_T}$ac_res" >&6; }
15438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15439 cat >>confdefs.h <<_ACEOF
15440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15451 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461 { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15464 # Is the header compilable?
15465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15467 cat >conftest.$ac_ext <<_ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h. */
15473 $ac_includes_default
15474 #include <$ac_header>
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_compile") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
15501 { (case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_try") 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_header_compiler=yes
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 ac_header_compiler=no
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15520 echo "${ECHO_T}$ac_header_compiler" >&6; }
15522 # Is the header present?
15523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 #include <$ac_header>
15533 if { (ac_try="$ac_cpp conftest.$ac_ext"
15534 case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } >/dev/null; then
15546 if test -s conftest.err; then
15547 ac_cpp_err=$ac_c_preproc_warn_flag
15548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15555 if test -z "$ac_cpp_err"; then
15556 ac_header_preproc=yes
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15561 ac_header_preproc=no
15564 rm -f conftest.err conftest.$ac_ext
15565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15566 echo "${ECHO_T}$ac_header_preproc" >&6; }
15568 # So? What about this header?
15569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15575 ac_header_preproc=yes
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15591 ## ------------------------------------ ##
15592 ## Report this to http://llvm.org/bugs/ ##
15593 ## ------------------------------------ ##
15595 ) | sed "s/^/$as_me: WARNING: /" >&2
15598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 eval "$as_ac_Header=\$ac_header_preproc"
15605 ac_res=`eval echo '${'$as_ac_Header'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15620 for ac_header in valgrind/valgrind.h
15622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 ac_res=`eval echo '${'$as_ac_Header'}'`
15630 { echo "$as_me:$LINENO: result: $ac_res" >&5
15631 echo "${ECHO_T}$ac_res" >&6; }
15633 # Is the header compilable?
15634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15636 cat >conftest.$ac_ext <<_ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 $ac_includes_default
15643 #include <$ac_header>
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652 (eval "$ac_compile") 2>conftest.er1
15654 grep -v '^ *+' conftest.er1 >conftest.err
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_header_compiler=yes
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_header_compiler=no
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15689 echo "${ECHO_T}$ac_header_compiler" >&6; }
15691 # Is the header present?
15692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15694 cat >conftest.$ac_ext <<_ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15700 #include <$ac_header>
15702 if { (ac_try="$ac_cpp conftest.$ac_ext"
15703 case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15710 grep -v '^ *+' conftest.er1 >conftest.err
15712 cat conftest.err >&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } >/dev/null; then
15715 if test -s conftest.err; then
15716 ac_cpp_err=$ac_c_preproc_warn_flag
15717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15724 if test -z "$ac_cpp_err"; then
15725 ac_header_preproc=yes
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15730 ac_header_preproc=no
15733 rm -f conftest.err conftest.$ac_ext
15734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15735 echo "${ECHO_T}$ac_header_preproc" >&6; }
15737 # So? What about this header?
15738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15744 ac_header_preproc=yes
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15760 ## ------------------------------------ ##
15761 ## Report this to http://llvm.org/bugs/ ##
15762 ## ------------------------------------ ##
15764 ) | sed "s/^/$as_me: WARNING: /" >&2
15767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15772 eval "$as_ac_Header=\$ac_header_preproc"
15774 ac_res=`eval echo '${'$as_ac_Header'}'`
15775 { echo "$as_me:$LINENO: result: $ac_res" >&5
15776 echo "${ECHO_T}$ac_res" >&6; }
15779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15780 cat >>confdefs.h <<_ACEOF
15781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15789 for ac_header in fenv.h
15791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 ac_res=`eval echo '${'$as_ac_Header'}'`
15799 { echo "$as_me:$LINENO: result: $ac_res" >&5
15800 echo "${ECHO_T}$ac_res" >&6; }
15802 # Is the header compilable?
15803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 $ac_includes_default
15812 #include <$ac_header>
15814 rm -f conftest.$ac_objext
15815 if { (ac_try="$ac_compile"
15816 case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_compile") 2>conftest.er1
15823 grep -v '^ *+' conftest.er1 >conftest.err
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } &&
15828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15838 { ac_try='test -s conftest.$ac_objext'
15839 { (case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_try") 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15848 ac_header_compiler=yes
15850 echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 ac_header_compiler=no
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15858 echo "${ECHO_T}$ac_header_compiler" >&6; }
15860 # Is the header present?
15861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15863 cat >conftest.$ac_ext <<_ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 #include <$ac_header>
15871 if { (ac_try="$ac_cpp conftest.$ac_ext"
15872 case "(($ac_try" in
15873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874 *) ac_try_echo=$ac_try;;
15876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15879 grep -v '^ *+' conftest.er1 >conftest.err
15881 cat conftest.err >&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } >/dev/null; then
15884 if test -s conftest.err; then
15885 ac_cpp_err=$ac_c_preproc_warn_flag
15886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15893 if test -z "$ac_cpp_err"; then
15894 ac_header_preproc=yes
15896 echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15899 ac_header_preproc=no
15902 rm -f conftest.err conftest.$ac_ext
15903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15904 echo "${ECHO_T}$ac_header_preproc" >&6; }
15906 # So? What about this header?
15907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15913 ac_header_preproc=yes
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15929 ## ------------------------------------ ##
15930 ## Report this to http://llvm.org/bugs/ ##
15931 ## ------------------------------------ ##
15933 ) | sed "s/^/$as_me: WARNING: /" >&2
15936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 eval "$as_ac_Header=\$ac_header_preproc"
15943 ac_res=`eval echo '${'$as_ac_Header'}'`
15944 { echo "$as_me:$LINENO: result: $ac_res" >&5
15945 echo "${ECHO_T}$ac_res" >&6; }
15948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15949 cat >>confdefs.h <<_ACEOF
15950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15957 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15959 for ac_header in pthread.h
15961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 ac_res=`eval echo '${'$as_ac_Header'}'`
15969 { echo "$as_me:$LINENO: result: $ac_res" >&5
15970 echo "${ECHO_T}$ac_res" >&6; }
15972 # Is the header compilable?
15973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 $ac_includes_default
15982 #include <$ac_header>
15984 rm -f conftest.$ac_objext
15985 if { (ac_try="$ac_compile"
15986 case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_compile") 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
15998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15999 { (case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_try") 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest.$ac_objext'
16009 { (case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_try") 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_header_compiler=yes
16020 echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 ac_header_compiler=no
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028 echo "${ECHO_T}$ac_header_compiler" >&6; }
16030 # Is the header present?
16031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16033 cat >conftest.$ac_ext <<_ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 #include <$ac_header>
16041 if { (ac_try="$ac_cpp conftest.$ac_ext"
16042 case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } >/dev/null; then
16054 if test -s conftest.err; then
16055 ac_cpp_err=$ac_c_preproc_warn_flag
16056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16063 if test -z "$ac_cpp_err"; then
16064 ac_header_preproc=yes
16066 echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16069 ac_header_preproc=no
16072 rm -f conftest.err conftest.$ac_ext
16073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16074 echo "${ECHO_T}$ac_header_preproc" >&6; }
16076 # So? What about this header?
16077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16083 ac_header_preproc=yes
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16099 ## ------------------------------------ ##
16100 ## Report this to http://llvm.org/bugs/ ##
16101 ## ------------------------------------ ##
16103 ) | sed "s/^/$as_me: WARNING: /" >&2
16106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 eval "$as_ac_Header=\$ac_header_preproc"
16113 ac_res=`eval echo '${'$as_ac_Header'}'`
16114 { echo "$as_me:$LINENO: result: $ac_res" >&5
16115 echo "${ECHO_T}$ac_res" >&6; }
16118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16119 cat >>confdefs.h <<_ACEOF
16120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16136 if test "$llvm_cv_enable_libffi" = "yes" ; then
16139 for ac_header in ffi.h ffi/ffi.h
16141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 ac_res=`eval echo '${'$as_ac_Header'}'`
16149 { echo "$as_me:$LINENO: result: $ac_res" >&5
16150 echo "${ECHO_T}$ac_res" >&6; }
16152 # Is the header compilable?
16153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16155 cat >conftest.$ac_ext <<_ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 $ac_includes_default
16162 #include <$ac_header>
16164 rm -f conftest.$ac_objext
16165 if { (ac_try="$ac_compile"
16166 case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_compile") 2>conftest.er1
16173 grep -v '^ *+' conftest.er1 >conftest.err
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179 { (case "(($ac_try" in
16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181 *) ac_try_echo=$ac_try;;
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184 (eval "$ac_try") 2>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest.$ac_objext'
16189 { (case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_try") 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_header_compiler=yes
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 ac_header_compiler=no
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16208 echo "${ECHO_T}$ac_header_compiler" >&6; }
16210 # Is the header present?
16211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16219 #include <$ac_header>
16221 if { (ac_try="$ac_cpp conftest.$ac_ext"
16222 case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16229 grep -v '^ *+' conftest.er1 >conftest.err
16231 cat conftest.err >&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } >/dev/null; then
16234 if test -s conftest.err; then
16235 ac_cpp_err=$ac_c_preproc_warn_flag
16236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16243 if test -z "$ac_cpp_err"; then
16244 ac_header_preproc=yes
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16249 ac_header_preproc=no
16252 rm -f conftest.err conftest.$ac_ext
16253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254 echo "${ECHO_T}$ac_header_preproc" >&6; }
16256 # So? What about this header?
16257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263 ac_header_preproc=yes
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16279 ## ------------------------------------ ##
16280 ## Report this to http://llvm.org/bugs/ ##
16281 ## ------------------------------------ ##
16283 ) | sed "s/^/$as_me: WARNING: /" >&2
16286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 eval "$as_ac_Header=\$ac_header_preproc"
16293 ac_res=`eval echo '${'$as_ac_Header'}'`
16294 { echo "$as_me:$LINENO: result: $ac_res" >&5
16295 echo "${ECHO_T}$ac_res" >&6; }
16298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16299 cat >>confdefs.h <<_ACEOF
16300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16310 for ac_header in CrashReporterClient.h
16312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 ac_res=`eval echo '${'$as_ac_Header'}'`
16320 { echo "$as_me:$LINENO: result: $ac_res" >&5
16321 echo "${ECHO_T}$ac_res" >&6; }
16323 # Is the header compilable?
16324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16326 cat >conftest.$ac_ext <<_ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16332 $ac_includes_default
16333 #include <$ac_header>
16335 rm -f conftest.$ac_objext
16336 if { (ac_try="$ac_compile"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_compile") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350 { (case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_try") 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest.$ac_objext'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_header_compiler=yes
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_header_compiler=no
16377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16379 echo "${ECHO_T}$ac_header_compiler" >&6; }
16381 # Is the header present?
16382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16384 cat >conftest.$ac_ext <<_ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16390 #include <$ac_header>
16392 if { (ac_try="$ac_cpp conftest.$ac_ext"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } >/dev/null; then
16405 if test -s conftest.err; then
16406 ac_cpp_err=$ac_c_preproc_warn_flag
16407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16414 if test -z "$ac_cpp_err"; then
16415 ac_header_preproc=yes
16417 echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16420 ac_header_preproc=no
16423 rm -f conftest.err conftest.$ac_ext
16424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16425 echo "${ECHO_T}$ac_header_preproc" >&6; }
16427 # So? What about this header?
16428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16434 ac_header_preproc=yes
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16450 ## ------------------------------------ ##
16451 ## Report this to http://llvm.org/bugs/ ##
16452 ## ------------------------------------ ##
16454 ) | sed "s/^/$as_me: WARNING: /" >&2
16457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 eval "$as_ac_Header=\$ac_header_preproc"
16464 ac_res=`eval echo '${'$as_ac_Header'}'`
16465 { echo "$as_me:$LINENO: result: $ac_res" >&5
16466 echo "${ECHO_T}$ac_res" >&6; }
16469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16470 cat >>confdefs.h <<_ACEOF
16471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16479 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16480 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16481 cat >conftest.$ac_ext <<_ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16489 extern const char *__crashreporter_info__;
16491 __crashreporter_info__ = "test";
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
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_link") 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_exeext'
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
16532 { echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6; }
16535 cat >>confdefs.h <<\_ACEOF
16536 #define HAVE_CRASHREPORTER_INFO 1
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16545 { echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6; }
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_CRASHREPORTER_INFO 0
16555 rm -f core conftest.err conftest.$ac_objext \
16556 conftest$ac_exeext conftest.$ac_ext
16560 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16561 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16562 if test "${ac_cv_huge_val_sanity+set}" = set; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_cpp='$CXXCPP $CPPFLAGS'
16568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16572 ac_save_CXXFLAGS=$CXXFLAGS
16573 CXXFLAGS="$CXXFLAGS -pedantic"
16574 if test "$cross_compiling" = yes; then
16575 ac_cv_huge_val_sanity=yes
16577 cat >conftest.$ac_ext <<_ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */
16587 double x = HUGE_VAL; return x != x;
16592 rm -f conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_link") 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_huge_val_sanity=yes
16614 echo "$as_me: program exited with status $ac_status" >&5
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ( exit $ac_status )
16619 ac_cv_huge_val_sanity=no
16621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16625 CXXFLAGS=$ac_save_CXXFLAGS
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16634 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16635 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16636 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16639 { echo "$as_me:$LINENO: checking for pid_t" >&5
16640 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16641 if test "${ac_cv_type_pid_t+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 cat >conftest.$ac_ext <<_ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 $ac_includes_default
16651 typedef pid_t ac__type_new_;
16655 if ((ac__type_new_ *) 0)
16657 if (sizeof (ac__type_new_))
16663 rm -f conftest.$ac_objext
16664 if { (ac_try="$ac_compile"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_compile") 2>conftest.er1
16672 grep -v '^ *+' conftest.er1 >conftest.err
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16678 { (case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_try") 2>&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; } &&
16687 { ac_try='test -s conftest.$ac_objext'
16688 { (case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_try") 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ac_cv_type_pid_t=yes
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 ac_cv_type_pid_t=no
16705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16707 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16708 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16709 if test $ac_cv_type_pid_t = yes; then
16713 cat >>confdefs.h <<_ACEOF
16719 { echo "$as_me:$LINENO: checking for size_t" >&5
16720 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16721 if test "${ac_cv_type_size_t+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 cat >conftest.$ac_ext <<_ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 $ac_includes_default
16731 typedef size_t ac__type_new_;
16735 if ((ac__type_new_ *) 0)
16737 if (sizeof (ac__type_new_))
16743 rm -f conftest.$ac_objext
16744 if { (ac_try="$ac_compile"
16745 case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_compile") 2>conftest.er1
16752 grep -v '^ *+' conftest.er1 >conftest.err
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758 { (case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_try") 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest.$ac_objext'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_cv_type_size_t=yes
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_cv_type_size_t=no
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16788 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16789 if test $ac_cv_type_size_t = yes; then
16793 cat >>confdefs.h <<_ACEOF
16794 #define size_t unsigned int
16800 cat >>confdefs.h <<_ACEOF
16801 #define RETSIGTYPE void
16804 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16805 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16806 if test "${ac_cv_struct_tm+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 #include <sys/types.h>
16821 struct tm *tp; tp->tm_sec;
16826 rm -f conftest.$ac_objext
16827 if { (ac_try="$ac_compile"
16828 case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_compile") 2>conftest.er1
16835 grep -v '^ *+' conftest.er1 >conftest.err
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841 { (case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; } &&
16850 { ac_try='test -s conftest.$ac_objext'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_struct_tm=time.h
16862 echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ac_cv_struct_tm=sys/time.h
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16871 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16872 if test $ac_cv_struct_tm = sys/time.h; then
16874 cat >>confdefs.h <<\_ACEOF
16875 #define TM_IN_SYS_TIME 1
16880 { echo "$as_me:$LINENO: checking for int64_t" >&5
16881 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16882 if test "${ac_cv_type_int64_t+set}" = set; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 cat >conftest.$ac_ext <<_ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16891 $ac_includes_default
16892 typedef int64_t ac__type_new_;
16896 if ((ac__type_new_ *) 0)
16898 if (sizeof (ac__type_new_))
16904 rm -f conftest.$ac_objext
16905 if { (ac_try="$ac_compile"
16906 case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_compile") 2>conftest.er1
16913 grep -v '^ *+' conftest.er1 >conftest.err
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919 { (case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_try") 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try='test -s conftest.$ac_objext'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; }; then
16938 ac_cv_type_int64_t=yes
16940 echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16943 ac_cv_type_int64_t=no
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16949 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16950 if test $ac_cv_type_int64_t = yes; then
16952 cat >>confdefs.h <<_ACEOF
16953 #define HAVE_INT64_T 1
16958 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16959 echo "$as_me: error: Type int64_t required but not found" >&2;}
16960 { (exit 1); exit 1; }; }
16963 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16964 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16965 if test "${ac_cv_type_uint64_t+set}" = set; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16968 cat >conftest.$ac_ext <<_ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 $ac_includes_default
16975 typedef uint64_t ac__type_new_;
16979 if ((ac__type_new_ *) 0)
16981 if (sizeof (ac__type_new_))
16987 rm -f conftest.$ac_objext
16988 if { (ac_try="$ac_compile"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_compile") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1 >conftest.err
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
17001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17002 { (case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_try") 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest.$ac_objext'
17012 { (case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_try") 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 ac_cv_type_uint64_t=yes
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_cv_type_uint64_t=no
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17032 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17033 if test $ac_cv_type_uint64_t = yes; then
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_UINT64_T 1
17041 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17042 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17043 if test "${ac_cv_type_u_int64_t+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 cat >conftest.$ac_ext <<_ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 $ac_includes_default
17053 typedef u_int64_t ac__type_new_;
17057 if ((ac__type_new_ *) 0)
17059 if (sizeof (ac__type_new_))
17065 rm -f conftest.$ac_objext
17066 if { (ac_try="$ac_compile"
17067 case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_compile") 2>conftest.er1
17074 grep -v '^ *+' conftest.er1 >conftest.err
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_try") 2>&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; } &&
17089 { ac_try='test -s conftest.$ac_objext'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17099 ac_cv_type_u_int64_t=yes
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 ac_cv_type_u_int64_t=no
17107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17110 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17111 if test $ac_cv_type_u_int64_t = yes; then
17113 cat >>confdefs.h <<_ACEOF
17114 #define HAVE_U_INT64_T 1
17119 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17120 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17121 { (exit 1); exit 1; }; }
17135 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 cat >conftest.$ac_ext <<_ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17151 #define $ac_func innocuous_$ac_func
17153 /* System header to define __stub macros and hopefully few prototypes,
17154 which can conflict with char $ac_func (); below.
17155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17156 <limits.h> exists even on freestanding compilers. */
17159 # include <limits.h>
17161 # include <assert.h>
17166 /* Override any GCC internal prototype to avoid an error.
17167 Use char because int might match the return type of a GCC
17168 builtin and then its argument prototype would still apply. */
17173 /* The GNU C library defines this for functions which it implements
17174 to always fail with ENOSYS. Some functions are actually named
17175 something starting with __ and the normal name is an alias. */
17176 #if defined __stub_$ac_func || defined __stub___$ac_func
17183 return $ac_func ();
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (ac_try="$ac_link"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_link") 2>conftest.er1
17197 grep -v '^ *+' conftest.er1 >conftest.err
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17203 { (case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208 (eval "$ac_try") 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest$ac_exeext'
17213 { (case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_try") 2>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 eval "$as_ac_var=yes"
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 eval "$as_ac_var=no"
17230 rm -f core conftest.err conftest.$ac_objext \
17231 conftest$ac_exeext conftest.$ac_ext
17233 ac_res=`eval echo '${'$as_ac_var'}'`
17234 { echo "$as_me:$LINENO: result: $ac_res" >&5
17235 echo "${ECHO_T}$ac_res" >&6; }
17236 if test `eval echo '${'$as_ac_var'}'` = yes; then
17237 cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17248 for ac_func in powf fmodf strtof round
17250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17264 #define $ac_func innocuous_$ac_func
17266 /* System header to define __stub macros and hopefully few prototypes,
17267 which can conflict with char $ac_func (); below.
17268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17269 <limits.h> exists even on freestanding compilers. */
17272 # include <limits.h>
17274 # include <assert.h>
17279 /* Override any GCC internal prototype to avoid an error.
17280 Use char because int might match the return type of a GCC
17281 builtin and then its argument prototype would still apply. */
17286 /* The GNU C library defines this for functions which it implements
17287 to always fail with ENOSYS. Some functions are actually named
17288 something starting with __ and the normal name is an alias. */
17289 #if defined __stub_$ac_func || defined __stub___$ac_func
17296 return $ac_func ();
17301 rm -f conftest.$ac_objext conftest$ac_exeext
17302 if { (ac_try="$ac_link"
17303 case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_link") 2>conftest.er1
17310 grep -v '^ *+' conftest.er1 >conftest.err
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
17315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17316 { (case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_try") 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; } &&
17325 { ac_try='test -s conftest$ac_exeext'
17326 { (case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_try") 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 eval "$as_ac_var=yes"
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 eval "$as_ac_var=no"
17343 rm -f core conftest.err conftest.$ac_objext \
17344 conftest$ac_exeext conftest.$ac_ext
17346 ac_res=`eval echo '${'$as_ac_var'}'`
17347 { echo "$as_me:$LINENO: result: $ac_res" >&5
17348 echo "${ECHO_T}$ac_res" >&6; }
17349 if test `eval echo '${'$as_ac_var'}'` = yes; then
17350 cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17362 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17378 #define $ac_func innocuous_$ac_func
17380 /* System header to define __stub macros and hopefully few prototypes,
17381 which can conflict with char $ac_func (); below.
17382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383 <limits.h> exists even on freestanding compilers. */
17386 # include <limits.h>
17388 # include <assert.h>
17393 /* Override any GCC internal prototype to avoid an error.
17394 Use char because int might match the return type of a GCC
17395 builtin and then its argument prototype would still apply. */
17400 /* The GNU C library defines this for functions which it implements
17401 to always fail with ENOSYS. Some functions are actually named
17402 something starting with __ and the normal name is an alias. */
17403 #if defined __stub_$ac_func || defined __stub___$ac_func
17410 return $ac_func ();
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_link") 2>conftest.er1
17424 grep -v '^ *+' conftest.er1 >conftest.err
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
17429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17430 { (case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_try") 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest$ac_exeext'
17440 { (case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_try") 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 eval "$as_ac_var=yes"
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 eval "$as_ac_var=no"
17457 rm -f core conftest.err conftest.$ac_objext \
17458 conftest$ac_exeext conftest.$ac_ext
17460 ac_res=`eval echo '${'$as_ac_var'}'`
17461 { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17463 if test `eval echo '${'$as_ac_var'}'` = yes; then
17464 cat >>confdefs.h <<_ACEOF
17465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17474 for ac_func in isatty mkdtemp mkstemp
17476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 cat >conftest.$ac_ext <<_ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17490 #define $ac_func innocuous_$ac_func
17492 /* System header to define __stub macros and hopefully few prototypes,
17493 which can conflict with char $ac_func (); below.
17494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17495 <limits.h> exists even on freestanding compilers. */
17498 # include <limits.h>
17500 # include <assert.h>
17505 /* Override any GCC internal prototype to avoid an error.
17506 Use char because int might match the return type of a GCC
17507 builtin and then its argument prototype would still apply. */
17512 /* The GNU C library defines this for functions which it implements
17513 to always fail with ENOSYS. Some functions are actually named
17514 something starting with __ and the normal name is an alias. */
17515 #if defined __stub_$ac_func || defined __stub___$ac_func
17522 return $ac_func ();
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (ac_try="$ac_link"
17529 case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_link") 2>conftest.er1
17536 grep -v '^ *+' conftest.er1 >conftest.err
17538 cat conftest.err >&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17542 { (case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_try") 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try='test -s conftest$ac_exeext'
17552 { (case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_try") 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
17561 eval "$as_ac_var=yes"
17563 echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 eval "$as_ac_var=no"
17569 rm -f core conftest.err conftest.$ac_objext \
17570 conftest$ac_exeext conftest.$ac_ext
17572 ac_res=`eval echo '${'$as_ac_var'}'`
17573 { echo "$as_me:$LINENO: result: $ac_res" >&5
17574 echo "${ECHO_T}$ac_res" >&6; }
17575 if test `eval echo '${'$as_ac_var'}'` = yes; then
17576 cat >>confdefs.h <<_ACEOF
17577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17590 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17598 cat >conftest.$ac_ext <<_ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17606 #define $ac_func innocuous_$ac_func
17608 /* System header to define __stub macros and hopefully few prototypes,
17609 which can conflict with char $ac_func (); below.
17610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611 <limits.h> exists even on freestanding compilers. */
17614 # include <limits.h>
17616 # include <assert.h>
17621 /* Override any GCC internal prototype to avoid an error.
17622 Use char because int might match the return type of a GCC
17623 builtin and then its argument prototype would still apply. */
17628 /* The GNU C library defines this for functions which it implements
17629 to always fail with ENOSYS. Some functions are actually named
17630 something starting with __ and the normal name is an alias. */
17631 #if defined __stub_$ac_func || defined __stub___$ac_func
17638 return $ac_func ();
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (ac_try="$ac_link"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_link") 2>conftest.er1
17652 grep -v '^ *+' conftest.er1 >conftest.err
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest$ac_exeext'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 eval "$as_ac_var=yes"
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17682 eval "$as_ac_var=no"
17685 rm -f core conftest.err conftest.$ac_objext \
17686 conftest$ac_exeext conftest.$ac_ext
17688 ac_res=`eval echo '${'$as_ac_var'}'`
17689 { echo "$as_me:$LINENO: result: $ac_res" >&5
17690 echo "${ECHO_T}$ac_res" >&6; }
17691 if test `eval echo '${'$as_ac_var'}'` = yes; then
17692 cat >>confdefs.h <<_ACEOF
17693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17703 for ac_func in strerror strerror_r setenv arc4random
17705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17711 cat >conftest.$ac_ext <<_ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17719 #define $ac_func innocuous_$ac_func
17721 /* System header to define __stub macros and hopefully few prototypes,
17722 which can conflict with char $ac_func (); below.
17723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17724 <limits.h> exists even on freestanding compilers. */
17727 # include <limits.h>
17729 # include <assert.h>
17734 /* Override any GCC internal prototype to avoid an error.
17735 Use char because int might match the return type of a GCC
17736 builtin and then its argument prototype would still apply. */
17741 /* The GNU C library defines this for functions which it implements
17742 to always fail with ENOSYS. Some functions are actually named
17743 something starting with __ and the normal name is an alias. */
17744 #if defined __stub_$ac_func || defined __stub___$ac_func
17751 return $ac_func ();
17756 rm -f conftest.$ac_objext conftest$ac_exeext
17757 if { (ac_try="$ac_link"
17758 case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_link") 2>conftest.er1
17765 grep -v '^ *+' conftest.er1 >conftest.err
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17771 { (case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_try") 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_try") 2>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 eval "$as_ac_var=yes"
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17795 eval "$as_ac_var=no"
17798 rm -f core conftest.err conftest.$ac_objext \
17799 conftest$ac_exeext conftest.$ac_ext
17801 ac_res=`eval echo '${'$as_ac_var'}'`
17802 { echo "$as_me:$LINENO: result: $ac_res" >&5
17803 echo "${ECHO_T}$ac_res" >&6; }
17804 if test `eval echo '${'$as_ac_var'}'` = yes; then
17805 cat >>confdefs.h <<_ACEOF
17806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17816 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17822 echo $ECHO_N "(cached) $ECHO_C" >&6
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17832 #define $ac_func innocuous_$ac_func
17834 /* System header to define __stub macros and hopefully few prototypes,
17835 which can conflict with char $ac_func (); below.
17836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17837 <limits.h> exists even on freestanding compilers. */
17840 # include <limits.h>
17842 # include <assert.h>
17847 /* Override any GCC internal prototype to avoid an error.
17848 Use char because int might match the return type of a GCC
17849 builtin and then its argument prototype would still apply. */
17854 /* The GNU C library defines this for functions which it implements
17855 to always fail with ENOSYS. Some functions are actually named
17856 something starting with __ and the normal name is an alias. */
17857 #if defined __stub_$ac_func || defined __stub___$ac_func
17864 return $ac_func ();
17869 rm -f conftest.$ac_objext conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_link") 2>conftest.er1
17878 grep -v '^ *+' conftest.er1 >conftest.err
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17884 { (case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_try") 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; } &&
17893 { ac_try='test -s conftest$ac_exeext'
17894 { (case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_try") 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; }; then
17903 eval "$as_ac_var=yes"
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 eval "$as_ac_var=no"
17911 rm -f core conftest.err conftest.$ac_objext \
17912 conftest$ac_exeext conftest.$ac_ext
17914 ac_res=`eval echo '${'$as_ac_var'}'`
17915 { echo "$as_me:$LINENO: result: $ac_res" >&5
17916 echo "${ECHO_T}$ac_res" >&6; }
17917 if test `eval echo '${'$as_ac_var'}'` = yes; then
17918 cat >>confdefs.h <<_ACEOF
17919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17930 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 cat >conftest.$ac_ext <<_ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17946 #define $ac_func innocuous_$ac_func
17948 /* System header to define __stub macros and hopefully few prototypes,
17949 which can conflict with char $ac_func (); below.
17950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17951 <limits.h> exists even on freestanding compilers. */
17954 # include <limits.h>
17956 # include <assert.h>
17961 /* Override any GCC internal prototype to avoid an error.
17962 Use char because int might match the return type of a GCC
17963 builtin and then its argument prototype would still apply. */
17968 /* The GNU C library defines this for functions which it implements
17969 to always fail with ENOSYS. Some functions are actually named
17970 something starting with __ and the normal name is an alias. */
17971 #if defined __stub_$ac_func || defined __stub___$ac_func
17978 return $ac_func ();
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (ac_try="$ac_link"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_link") 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17998 { (case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_try") 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest$ac_exeext'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 eval "$as_ac_var=yes"
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 eval "$as_ac_var=no"
18025 rm -f core conftest.err conftest.$ac_objext \
18026 conftest$ac_exeext conftest.$ac_ext
18028 ac_res=`eval echo '${'$as_ac_var'}'`
18029 { echo "$as_me:$LINENO: result: $ac_res" >&5
18030 echo "${ECHO_T}$ac_res" >&6; }
18031 if test `eval echo '${'$as_ac_var'}'` = yes; then
18032 cat >>confdefs.h <<_ACEOF
18033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18039 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18040 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18041 if test "${llvm_cv_c_printf_a+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18045 ac_cpp='$CPP $CPPFLAGS'
18046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18050 if test "$cross_compiling" = yes; then
18051 llvmac_cv_c_printf_a=no
18053 cat >conftest.$ac_ext <<_ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h. */
18062 #include <stdlib.h>
18068 volatile double A, B;
18072 sprintf(Buffer, "%a", A);
18076 if (A != 0x1.999999999999ap-4)
18083 rm -f conftest$ac_exeext
18084 if { (ac_try="$ac_link"
18085 case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_link") 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 llvm_cv_c_printf_a=yes
18105 echo "$as_me: program exited with status $ac_status" >&5
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ( exit $ac_status )
18110 llvmac_cv_c_printf_a=no
18112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18117 ac_cpp='$CPP $CPPFLAGS'
18118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18123 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18124 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18125 if test "$llvm_cv_c_printf_a" = "yes"; then
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE_PRINTF_A 1
18135 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18136 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18137 if test "${ac_cv_func_rand48+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 ac_cpp='$CXXCPP $CPPFLAGS'
18143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18147 cat >conftest.$ac_ext <<_ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 #include <stdlib.h>
18157 srand48(0);lrand48();drand48();
18162 rm -f conftest.$ac_objext
18163 if { (ac_try="$ac_compile"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_compile") 2>conftest.er1
18171 grep -v '^ *+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
18176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest.$ac_objext'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_cv_func_rand48=yes
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ac_cv_func_rand48=no
18204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 ac_cpp='$CPP $CPPFLAGS'
18207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18213 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18214 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18216 if test "$ac_cv_func_rand48" = "yes" ; then
18218 cat >>confdefs.h <<\_ACEOF
18219 #define HAVE_RAND48 1
18225 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18226 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18227 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 cat >conftest.$ac_ext <<_ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18236 $ac_includes_default
18241 char *p = (char *) strerror_s;
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_compile") 2>conftest.er1
18258 grep -v '^ *+' conftest.er1 >conftest.err
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18264 { (case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_try") 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18283 ac_cv_have_decl_strerror_s=yes
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_cv_have_decl_strerror_s=no
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18294 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18295 if test $ac_cv_have_decl_strerror_s = yes; then
18297 cat >>confdefs.h <<_ACEOF
18298 #define HAVE_DECL_STRERROR_S 1
18303 cat >>confdefs.h <<_ACEOF
18304 #define HAVE_DECL_STRERROR_S 0
18312 if test "$llvm_cv_os_type" = "MingW" ; then
18313 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18314 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18315 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 ac_check_lib_save_LIBS=$LIBS
18320 cat >conftest.$ac_ext <<_ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18327 /* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_link") 2>conftest.er1
18351 grep -v '^ *+' conftest.er1 >conftest.err
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest$ac_exeext'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_gcc__alloca=yes
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_cv_lib_gcc__alloca=no
18384 rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18389 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18390 if test $ac_cv_lib_gcc__alloca = yes; then
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE__ALLOCA 1
18398 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18399 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 ac_check_lib_save_LIBS=$LIBS
18405 cat >conftest.$ac_ext <<_ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18422 return __alloca ();
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 ac_cv_lib_gcc___alloca=yes
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 ac_cv_lib_gcc___alloca=no
18469 rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18474 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18475 if test $ac_cv_lib_gcc___alloca = yes; then
18477 cat >>confdefs.h <<\_ACEOF
18478 #define HAVE___ALLOCA 1
18483 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18484 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18485 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18488 ac_check_lib_save_LIBS=$LIBS
18490 cat >conftest.$ac_ext <<_ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18497 /* Override any GCC internal prototype to avoid an error.
18498 Use char because int might match the return type of a GCC
18499 builtin and then its argument prototype would still apply. */
18507 return __chkstk ();
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_link") 2>conftest.er1
18521 grep -v '^ *+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_lib_gcc___chkstk=yes
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_lib_gcc___chkstk=no
18554 rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18559 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18560 if test $ac_cv_lib_gcc___chkstk = yes; then
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE___CHKSTK 1
18568 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18569 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18570 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 ac_check_lib_save_LIBS=$LIBS
18575 cat >conftest.$ac_ext <<_ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18582 /* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
18592 return ___chkstk ();
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_link") 2>conftest.er1
18606 grep -v '^ *+' conftest.er1 >conftest.err
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612 { (case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_try") 2>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; } &&
18621 { ac_try='test -s conftest$ac_exeext'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_lib_gcc____chkstk=yes
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ac_cv_lib_gcc____chkstk=no
18639 rm -f core conftest.err conftest.$ac_objext \
18640 conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18644 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18645 if test $ac_cv_lib_gcc____chkstk = yes; then
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE____CHKSTK 1
18654 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18655 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18656 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 ac_check_lib_save_LIBS=$LIBS
18661 cat >conftest.$ac_ext <<_ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18668 /* Override any GCC internal prototype to avoid an error.
18669 Use char because int might match the return type of a GCC
18670 builtin and then its argument prototype would still apply. */
18678 return __ashldi3 ();
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (ac_try="$ac_link"
18685 case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_link") 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest$ac_exeext'
18708 { (case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_try") 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 ac_cv_lib_gcc___ashldi3=yes
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 ac_cv_lib_gcc___ashldi3=no
18725 rm -f core conftest.err conftest.$ac_objext \
18726 conftest$ac_exeext conftest.$ac_ext
18727 LIBS=$ac_check_lib_save_LIBS
18729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18730 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18731 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18733 cat >>confdefs.h <<\_ACEOF
18734 #define HAVE___ASHLDI3 1
18739 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18740 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18741 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 ac_check_lib_save_LIBS=$LIBS
18746 cat >conftest.$ac_ext <<_ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18753 /* Override any GCC internal prototype to avoid an error.
18754 Use char because int might match the return type of a GCC
18755 builtin and then its argument prototype would still apply. */
18763 return __ashrdi3 ();
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18777 grep -v '^ *+' conftest.er1 >conftest.err
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest$ac_exeext'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_cv_lib_gcc___ashrdi3=yes
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ac_cv_lib_gcc___ashrdi3=no
18810 rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18814 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18815 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18816 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE___ASHRDI3 1
18824 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18825 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18826 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 ac_check_lib_save_LIBS=$LIBS
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18838 /* Override any GCC internal prototype to avoid an error.
18839 Use char because int might match the return type of a GCC
18840 builtin and then its argument prototype would still apply. */
18848 return __divdi3 ();
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (ac_try="$ac_link"
18855 case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_link") 2>conftest.er1
18862 grep -v '^ *+' conftest.er1 >conftest.err
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868 { (case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_try") 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest$ac_exeext'
18878 { (case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_try") 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_lib_gcc___divdi3=yes
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 ac_cv_lib_gcc___divdi3=no
18895 rm -f core conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext conftest.$ac_ext
18897 LIBS=$ac_check_lib_save_LIBS
18899 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18900 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18901 if test $ac_cv_lib_gcc___divdi3 = yes; then
18903 cat >>confdefs.h <<\_ACEOF
18904 #define HAVE___DIVDI3 1
18909 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18910 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18911 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 ac_check_lib_save_LIBS=$LIBS
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18923 /* Override any GCC internal prototype to avoid an error.
18924 Use char because int might match the return type of a GCC
18925 builtin and then its argument prototype would still apply. */
18933 return __fixdfdi ();
18938 rm -f conftest.$ac_objext conftest$ac_exeext
18939 if { (ac_try="$ac_link"
18940 case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_link") 2>conftest.er1
18947 grep -v '^ *+' conftest.er1 >conftest.err
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18953 { (case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_try") 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest$ac_exeext'
18963 { (case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_try") 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_cv_lib_gcc___fixdfdi=yes
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18977 ac_cv_lib_gcc___fixdfdi=no
18980 rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
18982 LIBS=$ac_check_lib_save_LIBS
18984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18985 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18986 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18988 cat >>confdefs.h <<\_ACEOF
18989 #define HAVE___FIXDFDI 1
18994 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18995 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18996 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 ac_check_lib_save_LIBS=$LIBS
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19008 /* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19018 return __fixsfdi ();
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (ac_try="$ac_link"
19025 case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_link") 2>conftest.er1
19032 grep -v '^ *+' conftest.er1 >conftest.err
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_lib_gcc___fixsfdi=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_cv_lib_gcc___fixsfdi=no
19065 rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19069 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19070 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19071 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE___FIXSFDI 1
19079 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19080 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19081 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 ac_check_lib_save_LIBS=$LIBS
19086 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19093 /* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19099 char __floatdidf ();
19103 return __floatdidf ();
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (ac_try="$ac_link"
19110 case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_link") 2>conftest.er1
19117 grep -v '^ *+' conftest.er1 >conftest.err
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest$ac_exeext'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_cv_lib_gcc___floatdidf=yes
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ac_cv_lib_gcc___floatdidf=no
19150 rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19155 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19156 if test $ac_cv_lib_gcc___floatdidf = yes; then
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE___FLOATDIDF 1
19164 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19165 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 ac_check_lib_save_LIBS=$LIBS
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19178 /* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19188 return __lshrdi3 ();
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_link") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest$ac_exeext'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_lib_gcc___lshrdi3=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_lib_gcc___lshrdi3=no
19235 rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19240 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19241 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE___LSHRDI3 1
19249 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19250 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19251 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19254 ac_check_lib_save_LIBS=$LIBS
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19263 /* Override any GCC internal prototype to avoid an error.
19264 Use char because int might match the return type of a GCC
19265 builtin and then its argument prototype would still apply. */
19273 return __moddi3 ();
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_link") 2>conftest.er1
19287 grep -v '^ *+' conftest.er1 >conftest.err
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest$ac_exeext'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_lib_gcc___moddi3=yes
19314 echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19317 ac_cv_lib_gcc___moddi3=no
19320 rm -f core conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext conftest.$ac_ext
19322 LIBS=$ac_check_lib_save_LIBS
19324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19325 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19326 if test $ac_cv_lib_gcc___moddi3 = yes; then
19328 cat >>confdefs.h <<\_ACEOF
19329 #define HAVE___MODDI3 1
19334 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19335 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19336 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 ac_check_lib_save_LIBS=$LIBS
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19348 /* Override any GCC internal prototype to avoid an error.
19349 Use char because int might match the return type of a GCC
19350 builtin and then its argument prototype would still apply. */
19358 return __udivdi3 ();
19363 rm -f conftest.$ac_objext conftest$ac_exeext
19364 if { (ac_try="$ac_link"
19365 case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_link") 2>conftest.er1
19372 grep -v '^ *+' conftest.er1 >conftest.err
19374 cat conftest.err >&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest$ac_exeext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 ac_cv_lib_gcc___udivdi3=yes
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 ac_cv_lib_gcc___udivdi3=no
19405 rm -f core conftest.err conftest.$ac_objext \
19406 conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_lib_save_LIBS
19409 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19410 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19411 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19413 cat >>confdefs.h <<\_ACEOF
19414 #define HAVE___UDIVDI3 1
19419 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19420 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19421 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 ac_check_lib_save_LIBS=$LIBS
19426 cat >conftest.$ac_ext <<_ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19433 /* Override any GCC internal prototype to avoid an error.
19434 Use char because int might match the return type of a GCC
19435 builtin and then its argument prototype would still apply. */
19443 return __umoddi3 ();
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_link") 2>conftest.er1
19457 grep -v '^ *+' conftest.er1 >conftest.err
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } &&
19462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19463 { (case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_try") 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest$ac_exeext'
19473 { (case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_try") 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_lib_gcc___umoddi3=yes
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 ac_cv_lib_gcc___umoddi3=no
19490 rm -f core conftest.err conftest.$ac_objext \
19491 conftest$ac_exeext conftest.$ac_ext
19492 LIBS=$ac_check_lib_save_LIBS
19494 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19495 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19496 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19498 cat >>confdefs.h <<\_ACEOF
19499 #define HAVE___UMODDI3 1
19505 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19506 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19507 if test "${ac_cv_lib_gcc___main+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 ac_check_lib_save_LIBS=$LIBS
19512 cat >conftest.$ac_ext <<_ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h. */
19519 /* Override any GCC internal prototype to avoid an error.
19520 Use char because int might match the return type of a GCC
19521 builtin and then its argument prototype would still apply. */
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (ac_try="$ac_link"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_link") 2>conftest.er1
19543 grep -v '^ *+' conftest.er1 >conftest.err
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest$ac_exeext'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_cv_lib_gcc___main=yes
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_cv_lib_gcc___main=no
19576 rm -f core conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
19578 LIBS=$ac_check_lib_save_LIBS
19580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19581 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19582 if test $ac_cv_lib_gcc___main = yes; then
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE___MAIN 1
19590 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19591 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19592 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 ac_check_lib_save_LIBS=$LIBS
19597 cat >conftest.$ac_ext <<_ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19604 /* Override any GCC internal prototype to avoid an error.
19605 Use char because int might match the return type of a GCC
19606 builtin and then its argument prototype would still apply. */
19614 return __cmpdi2 ();
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_link") 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest$ac_exeext'
19644 { (case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_try") 2>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 ac_cv_lib_gcc___cmpdi2=yes
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_cv_lib_gcc___cmpdi2=no
19661 rm -f core conftest.err conftest.$ac_objext \
19662 conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19666 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19667 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE___CMPDI2 1
19677 if test "$llvm_cv_os_type" = "MingW" ; then
19678 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19679 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19680 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19688 #include <windows.h>
19689 #include <imagehlp.h>
19690 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19691 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19695 rm -f conftest.$ac_objext
19696 if { (ac_try="$ac_compile"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_compile") 2>conftest.er1
19704 grep -v '^ *+' conftest.er1 >conftest.err
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
19709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19710 { (case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_try") 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest.$ac_objext'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19730 { echo "$as_me:$LINENO: result: yes" >&5
19731 echo "${ECHO_T}yes" >&6; }
19732 llvm_cv_win32_elmcb_pcstr="PCSTR"
19735 echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19739 { echo "$as_me:$LINENO: result: no" >&5
19740 echo "${ECHO_T}no" >&6; }
19741 llvm_cv_win32_elmcb_pcstr="PSTR"
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 cat >>confdefs.h <<_ACEOF
19748 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19755 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19756 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19757 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 ac_cpp='$CXXCPP $CPPFLAGS'
19763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } &&
19806 { ac_try='test -s conftest.$ac_objext'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_cv_func_isnan_in_math_h=yes
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_cv_func_isnan_in_math_h=no
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 ac_cpp='$CPP $CPPFLAGS'
19827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19833 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19834 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19837 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_ISNAN_IN_MATH_H 1
19846 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19847 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19848 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 ac_cpp='$CXXCPP $CPPFLAGS'
19854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19858 cat >conftest.$ac_ext <<_ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19873 rm -f conftest.$ac_objext
19874 if { (ac_try="$ac_compile"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_compile") 2>conftest.er1
19882 grep -v '^ *+' conftest.er1 >conftest.err
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19888 { (case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_try") 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; } &&
19897 { ac_try='test -s conftest.$ac_objext'
19898 { (case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_try") 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_cv_func_isnan_in_cmath=yes
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ac_cv_func_isnan_in_cmath=no
19915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19917 ac_cpp='$CPP $CPPFLAGS'
19918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19924 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19925 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19927 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19929 cat >>confdefs.h <<\_ACEOF
19930 #define HAVE_ISNAN_IN_CMATH 1
19936 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19937 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19938 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 ac_cpp='$CXXCPP $CPPFLAGS'
19944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19948 cat >conftest.$ac_ext <<_ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19958 float f; std::isnan(f);
19963 rm -f conftest.$ac_objext
19964 if { (ac_try="$ac_compile"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_compile") 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19978 { (case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_try") 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } &&
19987 { ac_try='test -s conftest.$ac_objext'
19988 { (case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_try") 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_cv_func_std_isnan_in_cmath=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_func_std_isnan_in_cmath=no
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007 ac_cpp='$CPP $CPPFLAGS'
20008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20014 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20015 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20017 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20019 cat >>confdefs.h <<\_ACEOF
20020 #define HAVE_STD_ISNAN_IN_CMATH 1
20028 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20029 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20030 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 ac_cpp='$CXXCPP $CPPFLAGS'
20036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20055 rm -f conftest.$ac_objext
20056 if { (ac_try="$ac_compile"
20057 case "(($ac_try" in
20058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062 (eval "$ac_compile") 2>conftest.er1
20064 grep -v '^ *+' conftest.er1 >conftest.err
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } &&
20069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20070 { (case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_try") 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; } &&
20079 { ac_try='test -s conftest.$ac_objext'
20080 { (case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_try") 2>&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_cv_func_isinf_in_math_h=yes
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 ac_cv_func_isinf_in_math_h=no
20097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20099 ac_cpp='$CPP $CPPFLAGS'
20100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20107 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20109 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20111 cat >>confdefs.h <<\_ACEOF
20112 #define HAVE_ISINF_IN_MATH_H 1
20118 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20119 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20120 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 ac_cpp='$CXXCPP $CPPFLAGS'
20126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20145 rm -f conftest.$ac_objext
20146 if { (ac_try="$ac_compile"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_compile") 2>conftest.er1
20154 grep -v '^ *+' conftest.er1 >conftest.err
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } &&
20159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20160 { (case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_try") 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } &&
20169 { ac_try='test -s conftest.$ac_objext'
20170 { (case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175 (eval "$ac_try") 2>&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
20179 ac_cv_func_isinf_in_cmath=yes
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_cv_func_isinf_in_cmath=no
20187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189 ac_cpp='$CPP $CPPFLAGS'
20190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20196 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20197 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20199 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_ISINF_IN_CMATH 1
20208 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20209 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20210 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 ac_cpp='$CXXCPP $CPPFLAGS'
20216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20220 cat >conftest.$ac_ext <<_ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h. */
20230 float f; std::isinf(f);
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_compile") 2>conftest.er1
20244 grep -v '^ *+' conftest.er1 >conftest.err
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
20249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20250 { (case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_try") 2>&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_try") 2>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20269 ac_cv_func_std_isinf_in_cmath=yes
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20274 ac_cv_func_std_isinf_in_cmath=no
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279 ac_cpp='$CPP $CPPFLAGS'
20280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20286 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20287 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20289 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20291 cat >>confdefs.h <<\_ACEOF
20292 #define HAVE_STD_ISINF_IN_CMATH 1
20298 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20299 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20300 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 ac_cpp='$CXXCPP $CPPFLAGS'
20306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 #include <ieeefp.h>
20320 float f; finite(f);
20325 rm -f conftest.$ac_objext
20326 if { (ac_try="$ac_compile"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_compile") 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20340 { (case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_try") 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; } &&
20349 { ac_try='test -s conftest.$ac_objext'
20350 { (case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_try") 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_cv_func_finite_in_ieeefp_h=yes
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20364 ac_cv_func_finite_in_ieeefp_h=no
20367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369 ac_cpp='$CPP $CPPFLAGS'
20370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20376 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20377 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20379 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20381 cat >>confdefs.h <<\_ACEOF
20382 #define HAVE_FINITE_IN_IEEEFP_H 1
20389 if test "$llvm_cv_platform_type" = "Unix" ; then
20392 for ac_header in stdlib.h unistd.h
20394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 ac_res=`eval echo '${'$as_ac_Header'}'`
20402 { echo "$as_me:$LINENO: result: $ac_res" >&5
20403 echo "${ECHO_T}$ac_res" >&6; }
20405 # Is the header compilable?
20406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 $ac_includes_default
20415 #include <$ac_header>
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_compile") 2>conftest.er1
20426 grep -v '^ *+' conftest.er1 >conftest.err
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } &&
20431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20432 { (case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_try") 2>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; } &&
20441 { ac_try='test -s conftest.$ac_objext'
20442 { (case "(($ac_try" in
20443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444 *) ac_try_echo=$ac_try;;
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447 (eval "$ac_try") 2>&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; }; then
20451 ac_header_compiler=yes
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20456 ac_header_compiler=no
20459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20461 echo "${ECHO_T}$ac_header_compiler" >&6; }
20463 # Is the header present?
20464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20466 cat >conftest.$ac_ext <<_ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 #include <$ac_header>
20474 if { (ac_try="$ac_cpp conftest.$ac_ext"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20482 grep -v '^ *+' conftest.er1 >conftest.err
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } >/dev/null; then
20487 if test -s conftest.err; then
20488 ac_cpp_err=$ac_c_preproc_warn_flag
20489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20496 if test -z "$ac_cpp_err"; then
20497 ac_header_preproc=yes
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_header_preproc=no
20505 rm -f conftest.err conftest.$ac_ext
20506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20507 echo "${ECHO_T}$ac_header_preproc" >&6; }
20509 # So? What about this header?
20510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20516 ac_header_preproc=yes
20519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20532 ## ------------------------------------ ##
20533 ## Report this to http://llvm.org/bugs/ ##
20534 ## ------------------------------------ ##
20536 ) | sed "s/^/$as_me: WARNING: /" >&2
20539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 eval "$as_ac_Header=\$ac_header_preproc"
20546 ac_res=`eval echo '${'$as_ac_Header'}'`
20547 { echo "$as_me:$LINENO: result: $ac_res" >&5
20548 echo "${ECHO_T}$ac_res" >&6; }
20551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20552 cat >>confdefs.h <<_ACEOF
20553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20561 for ac_func in getpagesize
20563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20577 #define $ac_func innocuous_$ac_func
20579 /* System header to define __stub macros and hopefully few prototypes,
20580 which can conflict with char $ac_func (); below.
20581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20582 <limits.h> exists even on freestanding compilers. */
20585 # include <limits.h>
20587 # include <assert.h>
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20599 /* The GNU C library defines this for functions which it implements
20600 to always fail with ENOSYS. Some functions are actually named
20601 something starting with __ and the normal name is an alias. */
20602 #if defined __stub_$ac_func || defined __stub___$ac_func
20609 return $ac_func ();
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } &&
20628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20629 { (case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_try") 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; } &&
20638 { ac_try='test -s conftest$ac_exeext'
20639 { (case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_try") 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648 eval "$as_ac_var=yes"
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 eval "$as_ac_var=no"
20656 rm -f core conftest.err conftest.$ac_objext \
20657 conftest$ac_exeext conftest.$ac_ext
20659 ac_res=`eval echo '${'$as_ac_var'}'`
20660 { echo "$as_me:$LINENO: result: $ac_res" >&5
20661 echo "${ECHO_T}$ac_res" >&6; }
20662 if test `eval echo '${'$as_ac_var'}'` = yes; then
20663 cat >>confdefs.h <<_ACEOF
20664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20670 { echo "$as_me:$LINENO: checking for working mmap" >&5
20671 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20672 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 if test "$cross_compiling" = yes; then
20676 ac_cv_func_mmap_fixed_mapped=no
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 $ac_includes_default
20685 /* malloc might have been renamed as rpl_malloc. */
20688 /* Thanks to Mike Haertel and Jim Avera for this test.
20689 Here is a matrix of mmap possibilities:
20690 mmap private not fixed
20691 mmap private fixed at somewhere currently unmapped
20692 mmap private fixed at somewhere already mapped
20693 mmap shared not fixed
20694 mmap shared fixed at somewhere currently unmapped
20695 mmap shared fixed at somewhere already mapped
20696 For private mappings, we should verify that changes cannot be read()
20697 back from the file, nor mmap's back from the file at a different
20698 address. (There have been systems where private was not correctly
20699 implemented like the infamous i386 svr4.0, and systems where the
20700 VM page cache was not coherent with the file system buffer cache
20701 like early versions of FreeBSD and possibly contemporary NetBSD.)
20702 For shared mappings, we should conversely verify that changes get
20703 propagated back to all the places they're supposed to be.
20705 Grep wants private fixed already mapped.
20706 The main things grep needs to know about mmap are:
20707 * does it exist and is it safe to write into the mmap'd area
20708 * how to use it (BSD variants) */
20711 #include <sys/mman.h>
20713 #if !STDC_HEADERS && !HAVE_STDLIB_H
20717 /* This mess was copied from the GNU getpagesize.h. */
20718 #if !HAVE_GETPAGESIZE
20719 /* Assume that all systems that can run configure have sys/param.h. */
20720 # if !HAVE_SYS_PARAM_H
20721 # define HAVE_SYS_PARAM_H 1
20724 # ifdef _SC_PAGESIZE
20725 # define getpagesize() sysconf(_SC_PAGESIZE)
20726 # else /* no _SC_PAGESIZE */
20727 # if HAVE_SYS_PARAM_H
20728 # include <sys/param.h>
20729 # ifdef EXEC_PAGESIZE
20730 # define getpagesize() EXEC_PAGESIZE
20731 # else /* no EXEC_PAGESIZE */
20733 # define getpagesize() NBPG * CLSIZE
20736 # endif /* no CLSIZE */
20737 # else /* no NBPG */
20739 # define getpagesize() NBPC
20740 # else /* no NBPC */
20742 # define getpagesize() PAGESIZE
20743 # endif /* PAGESIZE */
20744 # endif /* no NBPC */
20745 # endif /* no NBPG */
20746 # endif /* no EXEC_PAGESIZE */
20747 # else /* no HAVE_SYS_PARAM_H */
20748 # define getpagesize() 8192 /* punt totally */
20749 # endif /* no HAVE_SYS_PARAM_H */
20750 # endif /* no _SC_PAGESIZE */
20752 #endif /* no HAVE_GETPAGESIZE */
20757 char *data, *data2, *data3;
20761 pagesize = getpagesize ();
20763 /* First, make a file with some known garbage in it. */
20764 data = (char *) malloc (pagesize);
20767 for (i = 0; i < pagesize; ++i)
20768 *(data + i) = rand ();
20770 fd = creat ("conftest.mmap", 0600);
20773 if (write (fd, data, pagesize) != pagesize)
20777 /* Next, try to mmap the file at a fixed address which already has
20778 something else allocated at it. If we can, also make sure that
20779 we see the same garbage. */
20780 fd = open ("conftest.mmap", O_RDWR);
20783 data2 = (char *) malloc (2 * pagesize);
20786 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20787 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20788 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20790 for (i = 0; i < pagesize; ++i)
20791 if (*(data + i) != *(data2 + i))
20794 /* Finally, make sure that changes to the mapped area do not
20795 percolate back to the file as seen by read(). (This is a bug on
20796 some variants of i386 svr4.0.) */
20797 for (i = 0; i < pagesize; ++i)
20798 *(data2 + i) = *(data2 + i) + 1;
20799 data3 = (char *) malloc (pagesize);
20802 if (read (fd, data3, pagesize) != pagesize)
20804 for (i = 0; i < pagesize; ++i)
20805 if (*(data + i) != *(data3 + i))
20811 rm -f conftest$ac_exeext
20812 if { (ac_try="$ac_link"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_link") 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20822 { (case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_try") 2>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; }; then
20831 ac_cv_func_mmap_fixed_mapped=yes
20833 echo "$as_me: program exited with status $ac_status" >&5
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ( exit $ac_status )
20838 ac_cv_func_mmap_fixed_mapped=no
20840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20845 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20846 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20847 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20849 cat >>confdefs.h <<\_ACEOF
20850 #define HAVE_MMAP 1
20854 rm -f conftest.mmap
20856 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20857 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20858 if test "${ac_cv_func_mmap_file+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 ac_cpp='$CPP $CPPFLAGS'
20863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20867 if test "$cross_compiling" = yes; then
20868 ac_cv_func_mmap_file=no
20870 cat >conftest.$ac_ext <<_ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20878 #include <sys/types.h>
20879 #include <sys/mman.h>
20887 fd = creat ("foo",0777);
20888 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20890 return (fd != (int) MAP_FAILED);
20895 rm -f conftest$ac_exeext
20896 if { (ac_try="$ac_link"
20897 case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_link") 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20906 { (case "(($ac_try" in
20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908 *) ac_try_echo=$ac_try;;
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911 (eval "$ac_try") 2>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915 ac_cv_func_mmap_file=yes
20917 echo "$as_me: program exited with status $ac_status" >&5
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20921 ( exit $ac_status )
20922 ac_cv_func_mmap_file=no
20924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20929 ac_cpp='$CPP $CPPFLAGS'
20930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20937 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20938 if test "$ac_cv_func_mmap_file" = yes; then
20940 cat >>confdefs.h <<\_ACEOF
20941 #define HAVE_MMAP_FILE
20948 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20949 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20950 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 if test "$llvm_cv_os_type" = "Interix" ; then
20954 ac_cv_need_dev_zero_for_mmap=yes
20956 ac_cv_need_dev_zero_for_mmap=no
20960 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20961 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20962 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20964 cat >>confdefs.h <<\_ACEOF
20965 #define NEED_DEV_ZERO_FOR_MMAP 1
20970 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20972 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20973 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20975 if test "$ac_cv_func_mmap_file" = "no"
20977 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20978 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20982 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20983 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20985 ac_cpp='$CXXCPP $CPPFLAGS'
20986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20990 cat >conftest.$ac_ext <<_ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20999 volatile unsigned long val = 1;
21000 __sync_synchronize();
21001 __sync_val_compare_and_swap(&val, 1, 0);
21002 __sync_add_and_fetch(&val, 1);
21003 __sync_sub_and_fetch(&val, 1);
21009 rm -f conftest.$ac_objext conftest$ac_exeext
21010 if { (ac_try="$ac_link"
21011 case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_link") 2>conftest.er1
21018 grep -v '^ *+' conftest.er1 >conftest.err
21020 cat conftest.err >&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } &&
21023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21024 { (case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_try") 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; } &&
21033 { ac_try='test -s conftest$ac_exeext'
21034 { (case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_try") 2>&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21044 { echo "$as_me:$LINENO: result: yes" >&5
21045 echo "${ECHO_T}yes" >&6; }
21047 cat >>confdefs.h <<\_ACEOF
21048 #define LLVM_HAS_ATOMICS 1
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21057 { echo "$as_me:$LINENO: result: no" >&5
21058 echo "${ECHO_T}no" >&6; }
21060 cat >>confdefs.h <<\_ACEOF
21061 #define LLVM_HAS_ATOMICS 0
21064 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21065 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21069 rm -f core conftest.err conftest.$ac_objext \
21070 conftest$ac_exeext conftest.$ac_ext
21072 ac_cpp='$CPP $CPPFLAGS'
21073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21079 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21080 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21081 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21082 if test "${llvm_cv_linux_mixed+set}" = set; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21086 ac_cpp='$CPP $CPPFLAGS'
21087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21098 error: Not x86-64 even if uname says so!
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_compile") 2>conftest.er1
21118 grep -v '^ *+' conftest.er1 >conftest.err
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } &&
21123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21124 { (case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129 (eval "$ac_try") 2>&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; } &&
21133 { ac_try='test -s conftest.$ac_objext'
21134 { (case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_try") 2>&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; }; then
21143 llvm_cv_linux_mixed=no
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21148 llvm_cv_linux_mixed=yes
21151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21153 ac_cpp='$CPP $CPPFLAGS'
21154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21160 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21161 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21163 if test "$llvm_cv_linux_mixed" = "yes"; then
21164 llvm_cv_target_arch="x86"
21170 for ac_func in __dso_handle
21172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21186 #define $ac_func innocuous_$ac_func
21188 /* System header to define __stub macros and hopefully few prototypes,
21189 which can conflict with char $ac_func (); below.
21190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21191 <limits.h> exists even on freestanding compilers. */
21194 # include <limits.h>
21196 # include <assert.h>
21201 /* Override any GCC internal prototype to avoid an error.
21202 Use char because int might match the return type of a GCC
21203 builtin and then its argument prototype would still apply. */
21208 /* The GNU C library defines this for functions which it implements
21209 to always fail with ENOSYS. Some functions are actually named
21210 something starting with __ and the normal name is an alias. */
21211 #if defined __stub_$ac_func || defined __stub___$ac_func
21218 return $ac_func ();
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (ac_try="$ac_link"
21225 case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_link") 2>conftest.er1
21232 grep -v '^ *+' conftest.er1 >conftest.err
21234 cat conftest.err >&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21238 { (case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_try") 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; } &&
21247 { ac_try='test -s conftest$ac_exeext'
21248 { (case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_try") 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 eval "$as_ac_var=yes"
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 eval "$as_ac_var=no"
21265 rm -f core conftest.err conftest.$ac_objext \
21266 conftest$ac_exeext conftest.$ac_ext
21268 ac_res=`eval echo '${'$as_ac_var'}'`
21269 { echo "$as_me:$LINENO: result: $ac_res" >&5
21270 echo "${ECHO_T}$ac_res" >&6; }
21271 if test `eval echo '${'$as_ac_var'}'` = yes; then
21272 cat >>confdefs.h <<_ACEOF
21273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21280 SHLIBEXT=$libltdl_cv_shlibext
21283 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21286 if test "${prefix}" = "NONE" ; then
21287 prefix="/usr/local"
21289 eval LLVM_PREFIX="${prefix}";
21290 eval LLVM_BINDIR="${prefix}/bin";
21291 eval LLVM_LIBDIR="${prefix}/lib";
21292 eval LLVM_DATADIR="${prefix}/share/llvm";
21293 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21294 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21295 eval LLVM_INCLUDEDIR="${prefix}/include";
21296 eval LLVM_INFODIR="${prefix}/info";
21297 eval LLVM_MANDIR="${prefix}/man";
21298 LLVM_CONFIGTIME=`date`
21310 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21311 LLVM_CONFIGTIME="(timestamp not enabled)"
21315 cat >>confdefs.h <<_ACEOF
21316 #define LLVM_PREFIX "$LLVM_PREFIX"
21320 cat >>confdefs.h <<_ACEOF
21321 #define LLVM_BINDIR "$LLVM_BINDIR"
21325 cat >>confdefs.h <<_ACEOF
21326 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21330 cat >>confdefs.h <<_ACEOF
21331 #define LLVM_DATADIR "$LLVM_DATADIR"
21335 cat >>confdefs.h <<_ACEOF
21336 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21340 cat >>confdefs.h <<_ACEOF
21341 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21345 cat >>confdefs.h <<_ACEOF
21346 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21350 cat >>confdefs.h <<_ACEOF
21351 #define LLVM_INFODIR "$LLVM_INFODIR"
21355 cat >>confdefs.h <<_ACEOF
21356 #define LLVM_MANDIR "$LLVM_MANDIR"
21360 cat >>confdefs.h <<_ACEOF
21361 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21365 cat >>confdefs.h <<_ACEOF
21366 #define LLVM_HOSTTRIPLE "$host"
21370 cat >>confdefs.h <<_ACEOF
21371 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21375 if test "$BINDINGS_TO_BUILD" = auto ; then
21376 BINDINGS_TO_BUILD=""
21377 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21378 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21381 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21387 binding_prereqs_failed=0
21388 for a_binding in $BINDINGS_TO_BUILD ; do
21389 case "$a_binding" in
21391 if test "x$OCAMLC" = x ; then
21392 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21393 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21394 binding_prereqs_failed=1
21396 if test "x$OCAMLDEP" = x ; then
21397 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21398 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21399 binding_prereqs_failed=1
21401 if test "x$OCAMLOPT" = x ; then
21402 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21403 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21405 if test "x$with_ocaml_libdir" != xauto ; then
21406 OCAML_LIBDIR=$with_ocaml_libdir
21409 ocaml_stdlib="`"$OCAMLC" -where`"
21410 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21412 # ocaml stdlib is beneath our prefix; use stdlib
21413 OCAML_LIBDIR=$ocaml_stdlib
21416 # ocaml stdlib is outside our prefix; use libdir/ocaml
21417 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21424 if test "$binding_prereqs_failed" = 1 ; then
21425 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21426 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21427 { (exit 1); exit 1; }; }
21430 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21431 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21432 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21433 echo $ECHO_N "(cached) $ECHO_C" >&6
21436 ac_cpp='$CXXCPP $CPPFLAGS'
21437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21441 oldcxxflags="$CXXFLAGS"
21442 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21443 cat >conftest.$ac_ext <<_ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21458 rm -f conftest.$ac_objext
21459 if { (ac_try="$ac_compile"
21460 case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_compile") 2>conftest.er1
21467 grep -v '^ *+' conftest.er1 >conftest.err
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } &&
21472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21473 { (case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_try") 2>&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; } &&
21482 { ac_try='test -s conftest.$ac_objext'
21483 { (case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_try") 2>&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); }; }; then
21492 llvm_cv_cxx_visibility_inlines_hidden=yes
21494 echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21497 llvm_cv_cxx_visibility_inlines_hidden=no
21500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21501 CXXFLAGS="$oldcxxflags"
21503 ac_cpp='$CPP $CPPFLAGS'
21504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21510 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21511 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21512 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21513 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21516 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21521 if test "$llvm_cv_link_use_r" = "yes" ; then
21528 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21529 RDYNAMIC="-Wl,-export-dynamic"
21536 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21543 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21545 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21547 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21549 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21551 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21554 ac_config_files="$ac_config_files Makefile.config"
21557 ac_config_files="$ac_config_files llvm.spec"
21560 ac_config_files="$ac_config_files docs/doxygen.cfg"
21563 if test "${clang_src_root}" = ""; then
21564 clang_src_root="$srcdir/tools/clang"
21566 if test -f ${clang_src_root}/README.txt; then
21567 configh="include/clang/Config/config.h"
21568 doxy="docs/doxygen.cfg"
21569 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21571 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21575 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21578 test "x$program_prefix" = "xNONE" && program_prefix=""
21582 ac_config_commands="$ac_config_commands setup"
21584 ac_config_commands="$ac_config_commands Makefile"
21587 ac_config_commands="$ac_config_commands Makefile.common"
21590 ac_config_commands="$ac_config_commands examples/Makefile"
21593 ac_config_commands="$ac_config_commands lib/Makefile"
21596 ac_config_commands="$ac_config_commands runtime/Makefile"
21599 ac_config_commands="$ac_config_commands test/Makefile"
21602 ac_config_commands="$ac_config_commands test/Makefile.tests"
21605 ac_config_commands="$ac_config_commands unittests/Makefile"
21608 ac_config_commands="$ac_config_commands tools/Makefile"
21611 ac_config_commands="$ac_config_commands utils/Makefile"
21614 ac_config_commands="$ac_config_commands projects/Makefile"
21617 ac_config_commands="$ac_config_commands bindings/Makefile"
21620 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21624 cat >confcache <<\_ACEOF
21625 # This file is a shell script that caches the results of configure
21626 # tests run on this system so they can be shared between configure
21627 # scripts and configure runs, see configure's option --config-cache.
21628 # It is not useful on other systems. If it contains results you don't
21629 # want to keep, you may remove or edit it.
21631 # config.status only pays attention to the cache file if you give it
21632 # the --recheck option to rerun configure.
21634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21636 # following values.
21640 # The following way of writing the cache mishandles newlines in values,
21641 # but we know of no workaround that is simple, portable, and efficient.
21642 # So, we kill variables containing newlines.
21643 # Ultrix sh set writes to stderr and can't be redirected directly,
21644 # and sets the high bit in the cache file unless we assign to the vars.
21646 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21647 eval ac_val=\$$ac_var
21651 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21652 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21655 _ | IFS | as_nl) ;; #(
21656 *) $as_unset $ac_var ;;
21662 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21663 *${as_nl}ac_space=\ *)
21664 # `set' does not quote correctly, so add quotes (double-quote
21665 # substitution turns \\\\ into \\, and sed turns \\ into \).
21668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21671 # `set' quotes correctly as required by POSIX, so do not add quotes.
21672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21683 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21685 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21686 if test -w "$cache_file"; then
21687 test "x$cache_file" != "x/dev/null" &&
21688 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21689 echo "$as_me: updating cache $cache_file" >&6;}
21690 cat confcache >$cache_file
21692 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21693 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21698 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21699 # Let make expand exec_prefix.
21700 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21702 DEFS=-DHAVE_CONFIG_H
21706 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21707 # 1. Remove the extension, and $U if already installed.
21708 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21709 ac_i=`echo "$ac_i" | sed "$ac_script"`
21710 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21711 # will be set to the directory where LIBOBJS objects are built.
21712 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21713 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21715 LIBOBJS=$ac_libobjs
21717 LTLIBOBJS=$ac_ltlibobjs
21720 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21721 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21722 Usually this means the macro was only invoked conditionally." >&5
21723 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21724 Usually this means the macro was only invoked conditionally." >&2;}
21725 { (exit 1); exit 1; }; }
21727 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21728 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21729 Usually this means the macro was only invoked conditionally." >&5
21730 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21731 Usually this means the macro was only invoked conditionally." >&2;}
21732 { (exit 1); exit 1; }; }
21735 : ${CONFIG_STATUS=./config.status}
21736 ac_clean_files_save=$ac_clean_files
21737 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21738 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21739 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21740 cat >$CONFIG_STATUS <<_ACEOF
21742 # Generated by $as_me.
21743 # Run this file to recreate the current configuration.
21744 # Compiler output produced by configure, useful for debugging
21745 # configure, is in config.log if it exists.
21748 ac_cs_recheck=false
21750 SHELL=\${CONFIG_SHELL-$SHELL}
21753 cat >>$CONFIG_STATUS <<\_ACEOF
21754 ## --------------------- ##
21755 ## M4sh Initialization. ##
21756 ## --------------------- ##
21758 # Be Bourne compatible
21759 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21762 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21763 # is contrary to our usage. Disable this feature.
21764 alias -g '${1+"$@"}'='"$@"'
21765 setopt NO_GLOB_SUBST
21767 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21769 BIN_SH=xpg4; export BIN_SH # for Tru64
21770 DUALCASE=1; export DUALCASE # for MKS sh
21774 # Avoid depending upon Character Ranges.
21775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21778 as_cr_digits='0123456789'
21779 as_cr_alnum=$as_cr_Letters$as_cr_digits
21781 # The user is always right.
21782 if test "${PATH_SEPARATOR+set}" != set; then
21783 echo "#! /bin/sh" >conf$$.sh
21784 echo "exit 0" >>conf$$.sh
21786 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21794 # Support unset when possible.
21795 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21803 # We need space, tab and new line, in precisely that order. Quoting is
21804 # there to prevent editors from complaining about space-tab.
21805 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21806 # splitting by setting IFS to empty value.)
21811 # Find who we are. Look in the path if we contain no directory separator.
21813 *[\\/]* ) as_myself=$0 ;;
21814 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21815 for as_dir in $PATH
21818 test -z "$as_dir" && as_dir=.
21819 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21825 # We did not find ourselves, most probably we were run as `sh COMMAND'
21826 # in which case we are not to be found in the path.
21827 if test "x$as_myself" = x; then
21830 if test ! -f "$as_myself"; then
21831 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21832 { (exit 1); exit 1; }
21835 # Work around bugs in pre-3.0 UWIN ksh.
21836 for as_var in ENV MAIL MAILPATH
21837 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21845 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21846 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21847 LC_TELEPHONE LC_TIME
21849 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21850 eval $as_var=C; export $as_var
21852 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21856 # Required to use basename.
21857 if expr a : '\(a\)' >/dev/null 2>&1 &&
21858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21865 as_basename=basename
21871 # Name of the executable.
21872 as_me=`$as_basename -- "$0" ||
21873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21874 X"$0" : 'X\(//\)$' \| \
21875 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21877 sed '/^.*\/\([^/][^/]*\)\/*$/{
21896 as_lineno_1=$LINENO
21897 as_lineno_2=$LINENO
21898 test "x$as_lineno_1" != "x$as_lineno_2" &&
21899 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21901 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21902 # uniformly replaced by the line number. The first 'sed' inserts a
21903 # line-number line after each line using $LINENO; the second 'sed'
21904 # does the real work. The second script uses 'N' to pair each
21905 # line-number line with the line containing $LINENO, and appends
21906 # trailing '-' during substitution so that $LINENO is not a special
21907 # case at line end.
21908 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21909 # scripts with optimization help from Paolo Bonzini. Blame Lee
21910 # E. McMahon (1931-1989) for sed's syntax. :-)
21922 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21925 ' >$as_me.lineno &&
21926 chmod +x "$as_me.lineno" ||
21927 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21928 { (exit 1); exit 1; }; }
21930 # Don't try to exec as it changes $[0], causing all sort of problems
21931 # (the dirname of $[0] is not the place where we might find the
21932 # original and so on. Autoconf is especially sensitive to this).
21933 . "./$as_me.lineno"
21934 # Exit status is that of the last command.
21939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21945 ECHO_C= ECHO_N= ECHO_T=
21946 case `echo -n x` in
21948 case `echo 'x\c'` in
21949 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21956 if expr a : '\(a\)' >/dev/null 2>&1 &&
21957 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21963 rm -f conf$$ conf$$.exe conf$$.file
21964 if test -d conf$$.dir; then
21965 rm -f conf$$.dir/conf$$.file
21971 if ln -s conf$$.file conf$$ 2>/dev/null; then
21973 # ... but there are two gotchas:
21974 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21975 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21976 # In both cases, we have to default to `cp -p'.
21977 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21979 elif ln conf$$.file conf$$ 2>/dev/null; then
21984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21985 rmdir conf$$.dir 2>/dev/null
21987 if mkdir -p . 2>/dev/null; then
21990 test -d ./-p && rmdir ./-p
21994 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21995 # systems may use methods other than mode bits to determine executability.
21996 cat >conf$$.file <<_ASEOF
22000 chmod +x conf$$.file
22001 if test -x conf$$.file >/dev/null 2>&1; then
22002 as_executable_p="test -x"
22008 # Sed expression to map a string onto a valid CPP name.
22009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22011 # Sed expression to map a string onto a valid variable name.
22012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22017 # Save the log message, to keep $[0] and so on meaningful, and to
22018 # report actual input values of CONFIG_FILES etc. instead of their
22019 # values after options handling.
22021 This file was extended by LLVM $as_me 3.3svn, which was
22022 generated by GNU Autoconf 2.60. Invocation command line was
22024 CONFIG_FILES = $CONFIG_FILES
22025 CONFIG_HEADERS = $CONFIG_HEADERS
22026 CONFIG_LINKS = $CONFIG_LINKS
22027 CONFIG_COMMANDS = $CONFIG_COMMANDS
22030 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22035 cat >>$CONFIG_STATUS <<_ACEOF
22036 # Files that config.status was made for.
22037 config_files="$ac_config_files"
22038 config_headers="$ac_config_headers"
22039 config_commands="$ac_config_commands"
22043 cat >>$CONFIG_STATUS <<\_ACEOF
22045 \`$as_me' instantiates files from templates according to the
22046 current configuration.
22048 Usage: $0 [OPTIONS] [FILE]...
22050 -h, --help print this help, then exit
22051 -V, --version print version number, then exit
22052 -q, --quiet do not print progress messages
22053 -d, --debug don't remove temporary files
22054 --recheck update $as_me by reconfiguring in the same conditions
22055 --file=FILE[:TEMPLATE]
22056 instantiate the configuration file FILE
22057 --header=FILE[:TEMPLATE]
22058 instantiate the configuration header FILE
22060 Configuration files:
22063 Configuration headers:
22066 Configuration commands:
22069 Report bugs to <bug-autoconf@gnu.org>."
22072 cat >>$CONFIG_STATUS <<_ACEOF
22074 LLVM config.status 3.3svn
22075 configured by $0, generated by GNU Autoconf 2.60,
22076 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22078 Copyright (C) 2006 Free Software Foundation, Inc.
22079 This config.status script is free software; the Free Software Foundation
22080 gives unlimited permission to copy, distribute and modify it."
22087 cat >>$CONFIG_STATUS <<\_ACEOF
22088 # If no file are specified by the user, then we need to provide default
22089 # value. By we need to know if files were specified by the user.
22095 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22096 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22107 # Handling of the options.
22108 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22110 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22111 echo "$ac_cs_version"; exit ;;
22112 --debug | --debu | --deb | --de | --d | -d )
22114 --file | --fil | --fi | --f )
22116 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22117 ac_need_defaults=false;;
22118 --header | --heade | --head | --hea )
22120 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22121 ac_need_defaults=false;;
22123 # Conflict between --help and --header
22124 { echo "$as_me: error: ambiguous option: $1
22125 Try \`$0 --help' for more information." >&2
22126 { (exit 1); exit 1; }; };;
22127 --help | --hel | -h )
22128 echo "$ac_cs_usage"; exit ;;
22129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22133 # This is an error.
22134 -*) { echo "$as_me: error: unrecognized option: $1
22135 Try \`$0 --help' for more information." >&2
22136 { (exit 1); exit 1; }; } ;;
22138 *) ac_config_targets="$ac_config_targets $1"
22139 ac_need_defaults=false ;;
22145 ac_configure_extra_args=
22147 if $ac_cs_silent; then
22149 ac_configure_extra_args="$ac_configure_extra_args --silent"
22153 cat >>$CONFIG_STATUS <<_ACEOF
22154 if \$ac_cs_recheck; then
22155 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22156 CONFIG_SHELL=$SHELL
22157 export CONFIG_SHELL
22158 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22162 cat >>$CONFIG_STATUS <<\_ACEOF
22166 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22167 ## Running $as_me. ##
22173 cat >>$CONFIG_STATUS <<_ACEOF
22177 llvm_src="${srcdir}"
22181 cat >>$CONFIG_STATUS <<\_ACEOF
22183 # Handling of arguments.
22184 for ac_config_target in $ac_config_targets
22186 case $ac_config_target in
22187 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22188 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22189 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22190 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22191 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22192 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22193 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22194 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22195 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22196 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22197 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22198 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22199 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22200 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22201 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22202 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22203 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22204 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22205 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22206 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22207 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22208 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22209 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22210 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22211 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22212 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22213 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22215 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22216 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22217 { (exit 1); exit 1; }; };;
22222 # If the user did not use the arguments to specify the items to instantiate,
22223 # then the envvar interface is used. Set only those that are not.
22224 # We use the long form for the default assignment because of an extremely
22225 # bizarre bug on SunOS 4.1.3.
22226 if $ac_need_defaults; then
22227 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22228 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22229 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22232 # Have a temporary directory for convenience. Make it in the build tree
22233 # simply because there is no reason against having it here, and in addition,
22234 # creating and moving files from /tmp can sometimes cause problems.
22235 # Hook for its removal unless debugging.
22236 # Note that there is a small window in which the directory will not be cleaned:
22237 # after its creation but before its name has been assigned to `$tmp'.
22241 trap 'exit_status=$?
22242 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22244 trap '{ (exit 1); exit 1; }' 1 2 13 15
22246 # Create a (secure) tmp directory for tmp files.
22249 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22250 test -n "$tmp" && test -d "$tmp"
22253 tmp=./conf$$-$RANDOM
22254 (umask 077 && mkdir "$tmp")
22257 echo "$me: cannot create a temporary directory in ." >&2
22258 { (exit 1); exit 1; }
22262 # Set up the sed scripts for CONFIG_FILES section.
22265 # No need to generate the scripts if there are no CONFIG_FILES.
22266 # This happens for instance when ./config.status config.h
22267 if test -n "$CONFIG_FILES"; then
22274 for ac_last_try in false false false false false :; do
22275 cat >conf$$subs.sed <<_ACEOF
22276 SHELL!$SHELL$ac_delim
22277 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22278 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22279 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22280 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22281 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22282 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22283 exec_prefix!$exec_prefix$ac_delim
22284 prefix!$prefix$ac_delim
22285 program_transform_name!$program_transform_name$ac_delim
22286 bindir!$bindir$ac_delim
22287 sbindir!$sbindir$ac_delim
22288 libexecdir!$libexecdir$ac_delim
22289 datarootdir!$datarootdir$ac_delim
22290 datadir!$datadir$ac_delim
22291 sysconfdir!$sysconfdir$ac_delim
22292 sharedstatedir!$sharedstatedir$ac_delim
22293 localstatedir!$localstatedir$ac_delim
22294 includedir!$includedir$ac_delim
22295 oldincludedir!$oldincludedir$ac_delim
22296 docdir!$docdir$ac_delim
22297 infodir!$infodir$ac_delim
22298 htmldir!$htmldir$ac_delim
22299 dvidir!$dvidir$ac_delim
22300 pdfdir!$pdfdir$ac_delim
22301 psdir!$psdir$ac_delim
22302 libdir!$libdir$ac_delim
22303 localedir!$localedir$ac_delim
22304 mandir!$mandir$ac_delim
22305 DEFS!$DEFS$ac_delim
22306 ECHO_C!$ECHO_C$ac_delim
22307 ECHO_N!$ECHO_N$ac_delim
22308 ECHO_T!$ECHO_T$ac_delim
22309 LIBS!$LIBS$ac_delim
22310 build_alias!$build_alias$ac_delim
22311 host_alias!$host_alias$ac_delim
22312 target_alias!$target_alias$ac_delim
22313 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22315 CFLAGS!$CFLAGS$ac_delim
22316 LDFLAGS!$LDFLAGS$ac_delim
22317 CPPFLAGS!$CPPFLAGS$ac_delim
22318 ac_ct_CC!$ac_ct_CC$ac_delim
22319 EXEEXT!$EXEEXT$ac_delim
22320 OBJEXT!$OBJEXT$ac_delim
22322 CXXFLAGS!$CXXFLAGS$ac_delim
22323 ac_ct_CXX!$ac_ct_CXX$ac_delim
22325 subdirs!$subdirs$ac_delim
22326 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22327 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22328 build!$build$ac_delim
22329 build_cpu!$build_cpu$ac_delim
22330 build_vendor!$build_vendor$ac_delim
22331 build_os!$build_os$ac_delim
22332 host!$host$ac_delim
22333 host_cpu!$host_cpu$ac_delim
22334 host_vendor!$host_vendor$ac_delim
22335 host_os!$host_os$ac_delim
22336 target!$target$ac_delim
22337 target_cpu!$target_cpu$ac_delim
22338 target_vendor!$target_vendor$ac_delim
22339 target_os!$target_os$ac_delim
22341 HOST_OS!$HOST_OS$ac_delim
22342 TARGET_OS!$TARGET_OS$ac_delim
22343 LINKALL!$LINKALL$ac_delim
22344 NOLINKALL!$NOLINKALL$ac_delim
22345 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22346 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22347 ARCH!$ARCH$ac_delim
22348 HOST_ARCH!$HOST_ARCH$ac_delim
22349 ENDIAN!$ENDIAN$ac_delim
22350 GREP!$GREP$ac_delim
22351 EGREP!$EGREP$ac_delim
22352 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22353 BUILD_CC!$BUILD_CC$ac_delim
22354 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22355 BUILD_CXX!$BUILD_CXX$ac_delim
22356 CVSBUILD!$CVSBUILD$ac_delim
22357 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22358 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22359 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22360 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22361 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22362 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22363 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22364 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22365 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22366 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22367 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22368 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22369 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22370 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22372 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22375 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22377 elif $ac_last_try; then
22378 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22380 { (exit 1); exit 1; }; }
22382 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22387 if test -n "$ac_eof"; then
22388 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22389 ac_eof=`expr $ac_eof + 1`
22392 cat >>$CONFIG_STATUS <<_ACEOF
22393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22398 s/^/s,@/; s/!/@,|#_!!_#|/
22401 s/'"$ac_delim"'$/,g/; t
22403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22404 ' >>$CONFIG_STATUS <conf$$subs.sed
22405 rm -f conf$$subs.sed
22406 cat >>$CONFIG_STATUS <<_ACEOF
22412 for ac_last_try in false false false false false :; do
22413 cat >conf$$subs.sed <<_ACEOF
22414 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22415 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22416 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22417 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22418 ENABLE_PIC!$ENABLE_PIC$ac_delim
22419 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22420 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22421 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22422 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22423 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22424 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22425 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22426 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22427 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22428 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22429 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22430 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22431 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22432 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22433 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22435 ifGNUmake!$ifGNUmake$ac_delim
22436 LN_S!$LN_S$ac_delim
22439 DATE!$DATE$ac_delim
22440 FIND!$FIND$ac_delim
22441 MKDIR!$MKDIR$ac_delim
22443 RANLIB!$RANLIB$ac_delim
22448 BINPWD!$BINPWD$ac_delim
22449 GRAPHVIZ!$GRAPHVIZ$ac_delim
22452 NEATO!$NEATO$ac_delim
22453 TWOPI!$TWOPI$ac_delim
22454 CIRCO!$CIRCO$ac_delim
22456 DOTTY!$DOTTY$ac_delim
22457 XDOT_PY!$XDOT_PY$ac_delim
22458 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22459 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22460 INSTALL_DATA!$INSTALL_DATA$ac_delim
22461 BZIP2!$BZIP2$ac_delim
22463 DOXYGEN!$DOXYGEN$ac_delim
22464 GROFF!$GROFF$ac_delim
22465 GZIPBIN!$GZIPBIN$ac_delim
22466 PDFROFF!$PDFROFF$ac_delim
22468 OCAMLC!$OCAMLC$ac_delim
22469 OCAMLOPT!$OCAMLOPT$ac_delim
22470 OCAMLDEP!$OCAMLDEP$ac_delim
22471 OCAMLDOC!$OCAMLDOC$ac_delim
22473 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22474 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22475 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22476 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22477 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22478 LIBADD_DL!$LIBADD_DL$ac_delim
22479 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22480 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22481 NO_NESTED_ANON_TYPES!$NO_NESTED_ANON_TYPES$ac_delim
22482 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22483 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22484 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22485 PYTHON!$PYTHON$ac_delim
22486 USE_UDIS86!$USE_UDIS86$ac_delim
22487 USE_OPROFILE!$USE_OPROFILE$ac_delim
22488 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22489 XML2CONFIG!$XML2CONFIG$ac_delim
22490 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22491 LIBXML2_INC!$LIBXML2_INC$ac_delim
22492 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22493 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22494 MMAP_FILE!$MMAP_FILE$ac_delim
22495 SHLIBEXT!$SHLIBEXT$ac_delim
22496 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22497 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22498 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22499 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22500 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22501 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22502 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22503 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22504 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22505 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22506 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22507 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22508 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22509 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22510 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22513 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22515 elif $ac_last_try; then
22516 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22517 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22518 { (exit 1); exit 1; }; }
22520 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22524 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22525 if test -n "$ac_eof"; then
22526 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22527 ac_eof=`expr $ac_eof + 1`
22530 cat >>$CONFIG_STATUS <<_ACEOF
22531 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22535 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22536 s/^/s,@/; s/!/@,|#_!!_#|/
22539 s/'"$ac_delim"'$/,g/; t
22541 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22542 ' >>$CONFIG_STATUS <conf$$subs.sed
22543 rm -f conf$$subs.sed
22544 cat >>$CONFIG_STATUS <<_ACEOF
22550 for ac_last_try in false false false false false :; do
22551 cat >conf$$subs.sed <<_ACEOF
22552 RPATH!$RPATH$ac_delim
22553 RDYNAMIC!$RDYNAMIC$ac_delim
22554 program_prefix!$program_prefix$ac_delim
22555 LIBOBJS!$LIBOBJS$ac_delim
22556 LTLIBOBJS!$LTLIBOBJS$ac_delim
22559 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
22561 elif $ac_last_try; then
22562 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22563 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22564 { (exit 1); exit 1; }; }
22566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22570 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22571 if test -n "$ac_eof"; then
22572 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22573 ac_eof=`expr $ac_eof + 1`
22576 cat >>$CONFIG_STATUS <<_ACEOF
22577 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22581 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22582 s/^/s,@/; s/!/@,|#_!!_#|/
22585 s/'"$ac_delim"'$/,g/; t
22587 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22588 ' >>$CONFIG_STATUS <conf$$subs.sed
22589 rm -f conf$$subs.sed
22590 cat >>$CONFIG_STATUS <<_ACEOF
22597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22599 # trailing colons and then remove the whole line if VPATH becomes empty
22600 # (actually we leave an empty line to preserve line numbers).
22601 if test "x$srcdir" = x.; then
22602 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22603 s/:*\$(srcdir):*/:/
22604 s/:*\${srcdir}:*/:/
22606 s/^\([^=]*=[ ]*\):*/\1/
22612 cat >>$CONFIG_STATUS <<\_ACEOF
22613 fi # test -n "$CONFIG_FILES"
22616 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22619 :[FHLC]) ac_mode=$ac_tag; continue;;
22621 case $ac_mode$ac_tag in
22623 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22624 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22625 { (exit 1); exit 1; }; };;
22626 :[FH]-) ac_tag=-:-;;
22627 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22644 -) ac_f="$tmp/stdin";;
22645 *) # Look for the file first in the build tree, then in the source tree
22646 # (if the path is not absolute). The absolute path cannot be DOS-style,
22647 # because $ac_f cannot contain `:'.
22651 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22653 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22654 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22655 { (exit 1); exit 1; }; };;
22657 ac_file_inputs="$ac_file_inputs $ac_f"
22660 # Let's still pretend it is `configure' which instantiates (i.e., don't
22661 # use $as_me), people would be surprised to read:
22662 # /* config.h. Generated by config.status. */
22663 configure_input="Generated from "`IFS=:
22664 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22665 if test x"$ac_file" != x-; then
22666 configure_input="$ac_file. $configure_input"
22667 { echo "$as_me:$LINENO: creating $ac_file" >&5
22668 echo "$as_me: creating $ac_file" >&6;}
22672 *:-:* | *:-) cat >"$tmp/stdin";;
22677 ac_dir=`$as_dirname -- "$ac_file" ||
22678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22679 X"$ac_file" : 'X\(//\)[^/]' \| \
22680 X"$ac_file" : 'X\(//\)$' \| \
22681 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22687 /^X\(\/\/\)[^/].*/{
22702 -*) as_dir=./$as_dir;;
22704 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22708 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22709 *) as_qdir=$as_dir;;
22711 as_dirs="'$as_qdir' $as_dirs"
22712 as_dir=`$as_dirname -- "$as_dir" ||
22713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22714 X"$as_dir" : 'X\(//\)[^/]' \| \
22715 X"$as_dir" : 'X\(//\)$' \| \
22716 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22722 /^X\(\/\/\)[^/].*/{
22735 test -d "$as_dir" && break
22737 test -z "$as_dirs" || eval "mkdir $as_dirs"
22738 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22739 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22740 { (exit 1); exit 1; }; }; }
22744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22746 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22747 # A ".." for each directory in $ac_dir_suffix.
22748 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22749 case $ac_top_builddir_sub in
22750 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22751 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22754 ac_abs_top_builddir=$ac_pwd
22755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22756 # for backward compatibility:
22757 ac_top_builddir=$ac_top_build_prefix
22760 .) # We are building in place.
22762 ac_top_srcdir=$ac_top_builddir_sub
22763 ac_abs_top_srcdir=$ac_pwd ;;
22764 [\\/]* | ?:[\\/]* ) # Absolute name.
22765 ac_srcdir=$srcdir$ac_dir_suffix;
22766 ac_top_srcdir=$srcdir
22767 ac_abs_top_srcdir=$srcdir ;;
22768 *) # Relative name.
22769 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22770 ac_top_srcdir=$ac_top_build_prefix$srcdir
22771 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22783 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22784 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22788 cat >>$CONFIG_STATUS <<\_ACEOF
22789 # If the template does not know about datarootdir, expand it.
22790 # FIXME: This hack should be removed a few years after 2.60.
22791 ac_datarootdir_hack=; ac_datarootdir_seen=
22793 case `sed -n '/datarootdir/ {
22802 ' $ac_file_inputs` in
22803 *datarootdir*) ac_datarootdir_seen=yes;;
22804 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22805 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22806 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22808 cat >>$CONFIG_STATUS <<_ACEOF
22809 ac_datarootdir_hack='
22810 s&@datadir@&$datadir&g
22811 s&@docdir@&$docdir&g
22812 s&@infodir@&$infodir&g
22813 s&@localedir@&$localedir&g
22814 s&@mandir@&$mandir&g
22815 s&\\\${datarootdir}&$datarootdir&g' ;;
22819 # Neutralize VPATH when `$srcdir' = `.'.
22820 # Shell code in configure.ac might set extrasub.
22821 # FIXME: do we really want to maintain this feature?
22822 cat >>$CONFIG_STATUS <<_ACEOF
22826 cat >>$CONFIG_STATUS <<\_ACEOF
22828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22829 s&@configure_input@&$configure_input&;t t
22830 s&@top_builddir@&$ac_top_builddir_sub&;t t
22831 s&@srcdir@&$ac_srcdir&;t t
22832 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22833 s&@top_srcdir@&$ac_top_srcdir&;t t
22834 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22835 s&@builddir@&$ac_builddir&;t t
22836 s&@abs_builddir@&$ac_abs_builddir&;t t
22837 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22838 s&@INSTALL@&$ac_INSTALL&;t t
22839 $ac_datarootdir_hack
22840 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22842 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22843 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22844 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22845 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22846 which seems to be undefined. Please make sure it is defined." >&5
22847 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22848 which seems to be undefined. Please make sure it is defined." >&2;}
22852 -) cat "$tmp/out"; rm -f "$tmp/out";;
22853 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22862 # Transform confdefs.h into a sed script `conftest.defines', that
22863 # substitutes the proper values into config.h.in to produce config.h.
22864 rm -f conftest.defines conftest.tail
22865 # First, append a space to every undef/define line, to ease matching.
22866 echo 's/$/ /' >conftest.defines
22867 # Then, protect against being on the right side of a sed subst, or in
22868 # an unquoted here document, in config.status. If some macros were
22869 # called several times there might be several #defines for the same
22870 # symbol, which is useless. But do not sort them, since the last
22871 # AC_DEFINE must be honored.
22872 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22873 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22874 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22875 # PARAMS is the parameter list in the macro definition--in most cases, it's
22876 # just an empty string.
22877 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22878 ac_dB='\\)[ (].*,\\1define\\2'
22886 s/^[ ]*#[ ]*define[ ][ ]*//
22891 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22892 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22893 ' >>conftest.defines
22895 # Remove the space that was appended to ease matching.
22896 # Then replace #undef with comments. This is necessary, for
22897 # example, in the case of _POSIX_SOURCE, which is predefined and required
22898 # on some systems where configure will not decide to define it.
22899 # (The regexp can be short, since the line contains either #define or #undef.)
22901 s,^[ #]*u.*,/* & */,' >>conftest.defines
22903 # Break up conftest.defines:
22904 ac_max_sed_lines=50
22906 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22907 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22908 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22910 ac_in='$ac_file_inputs'
22911 ac_out='"$tmp/out1"'
22912 ac_nxt='"$tmp/out2"'
22916 # Write a here document:
22917 cat >>$CONFIG_STATUS <<_ACEOF
22918 # First, check the format of the line:
22919 cat >"\$tmp/defines.sed" <<\\CEOF
22920 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22921 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22925 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22927 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22928 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22929 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22930 grep . conftest.tail >/dev/null || break
22931 rm -f conftest.defines
22932 mv conftest.tail conftest.defines
22934 rm -f conftest.defines conftest.tail
22936 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22937 cat >>$CONFIG_STATUS <<\_ACEOF
22938 if test x"$ac_file" != x-; then
22939 echo "/* $configure_input */" >"$tmp/config.h"
22940 cat "$ac_result" >>"$tmp/config.h"
22941 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22942 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22943 echo "$as_me: $ac_file is unchanged" >&6;}
22946 mv "$tmp/config.h" $ac_file
22949 echo "/* $configure_input */"
22955 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22956 echo "$as_me: executing $ac_file commands" >&6;}
22961 case $ac_file$ac_mode in
22962 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22963 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22964 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22965 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22966 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22967 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22968 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22969 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22970 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22971 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22972 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22973 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22974 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22975 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22976 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22977 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22978 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22979 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22980 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22981 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22982 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22984 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22986 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22993 { (exit 0); exit 0; }
22995 chmod +x $CONFIG_STATUS
22996 ac_clean_files=$ac_clean_files_save
22999 # configure is writing to config.log, and then calls config.status.
23000 # config.status does its own redirection, appending to config.log.
23001 # Unfortunately, on DOS this fails, as config.log is still kept open
23002 # by configure, so config.status won't be able to write to it; its
23003 # output is simply discarded. So we exec the FD to /dev/null,
23004 # effectively closing config.log, so it can be properly (re)opened and
23005 # appended to by config.status. When coming back to configure, we
23006 # need to make the FD available again.
23007 if test "$no_create" != yes; then
23009 ac_config_status_args=
23010 test "$silent" = yes &&
23011 ac_config_status_args="$ac_config_status_args --quiet"
23013 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23015 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23016 # would make configure fail if this is the last instruction.
23017 $ac_cs_success || { (exit 1); exit 1; }
23021 # CONFIG_SUBDIRS section.
23023 if test "$no_recursion" != yes; then
23025 # Remove --cache-file and --srcdir arguments so they do not pile up.
23026 ac_sub_configure_args=
23028 eval "set x $ac_configure_args"
23032 if test -n "$ac_prev"; then
23037 -cache-file | --cache-file | --cache-fil | --cache-fi \
23038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23039 ac_prev=cache_file ;;
23040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23044 --config-cache | -C)
23046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23056 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23058 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23062 # Always prepend --prefix to ensure using the same prefix
23063 # in subdir configurations.
23064 ac_arg="--prefix=$prefix"
23066 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23068 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23071 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23073 # Do not complain, so a configure script can configure whichever
23074 # parts of a large source tree are present.
23075 test -d "$srcdir/$ac_dir" || continue
23077 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23078 echo "$as_me:$LINENO: $ac_msg" >&5
23082 -*) as_dir=./$as_dir;;
23084 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23088 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23089 *) as_qdir=$as_dir;;
23091 as_dirs="'$as_qdir' $as_dirs"
23092 as_dir=`$as_dirname -- "$as_dir" ||
23093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23094 X"$as_dir" : 'X\(//\)[^/]' \| \
23095 X"$as_dir" : 'X\(//\)$' \| \
23096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23102 /^X\(\/\/\)[^/].*/{
23115 test -d "$as_dir" && break
23117 test -z "$as_dirs" || eval "mkdir $as_dirs"
23118 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23119 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23120 { (exit 1); exit 1; }; }; }
23124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23126 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23127 # A ".." for each directory in $ac_dir_suffix.
23128 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23129 case $ac_top_builddir_sub in
23130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23134 ac_abs_top_builddir=$ac_pwd
23135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23136 # for backward compatibility:
23137 ac_top_builddir=$ac_top_build_prefix
23140 .) # We are building in place.
23142 ac_top_srcdir=$ac_top_builddir_sub
23143 ac_abs_top_srcdir=$ac_pwd ;;
23144 [\\/]* | ?:[\\/]* ) # Absolute name.
23145 ac_srcdir=$srcdir$ac_dir_suffix;
23146 ac_top_srcdir=$srcdir
23147 ac_abs_top_srcdir=$srcdir ;;
23148 *) # Relative name.
23149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23150 ac_top_srcdir=$ac_top_build_prefix$srcdir
23151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23158 # Check for guested configure; otherwise get Cygnus style configure.
23159 if test -f "$ac_srcdir/configure.gnu"; then
23160 ac_sub_configure=$ac_srcdir/configure.gnu
23161 elif test -f "$ac_srcdir/configure"; then
23162 ac_sub_configure=$ac_srcdir/configure
23163 elif test -f "$ac_srcdir/configure.in"; then
23164 # This should be Cygnus configure.
23165 ac_sub_configure=$ac_aux_dir/configure
23167 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23168 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23172 # The recursion is here.
23173 if test -n "$ac_sub_configure"; then
23174 # Make the cache file name correct relative to the subdirectory.
23175 case $cache_file in
23176 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23177 *) # Relative name.
23178 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23181 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23182 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23183 # The eval makes quoting arguments work.
23184 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23185 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23186 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23187 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23188 { (exit 1); exit 1; }; }