2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
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.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
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
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
696 ENABLE_EXPENSIVE_CHECKS
715 LLVM_ENUM_ASM_PRINTERS
716 LLVM_ENUM_ASM_PARSERS
717 LLVM_ENUM_DISASSEMBLERS
763 HAVE_LINK_VERSION_SCRIPT
766 CONVENIENCE_LTDL_TRUE
767 CONVENIENCE_LTDL_FALSE
770 NO_MISSING_FIELD_INITIALIZERS
771 COVERED_SWITCH_DEFAULT
772 NO_MAYBE_UNINITIALIZED
800 ENABLE_VISIBILITY_INLINES_HIDDEN
807 ac_precious_vars='build_alias
819 ac_subdirs_all='projects/llvm-gcc
823 projects/llvm-poolalloc
826 projects/llvm-stacker
834 # Initialize some variables set by options.
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
846 program_transform_name=s,x,x,
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 -enable-* | --enable-*)
954 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958 { (exit 1); exit 1; }; }
959 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960 eval enable_$ac_feature=\$ac_optarg ;;
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
975 -help | --help | --hel | --he | -h)
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 htmldir=$ac_optarg ;;
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1005 -libdir | --libdir | --libdi | --libd)
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1096 -psdir | --psdir | --psdi | --psd | --ps)
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 sbindir=$ac_optarg ;;
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 sharedstatedir=$ac_optarg ;;
1122 -site | --site | --sit)
1124 -site=* | --site=* | --sit=*)
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1151 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package| sed 's/-/_/g'`
1157 eval with_$ac_package=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163 { echo "$as_me: error: invalid package name: $ac_package" >&2
1164 { (exit 1); exit 1; }; }
1165 ac_package=`echo $ac_package | sed 's/-/_/g'`
1166 eval with_$ac_package=no ;;
1169 # Obsolete; use --with-x.
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188 { (exit 1); exit 1; }; }
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196 { (exit 1); exit 1; }; }
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 { echo "$as_me: error: missing argument to $ac_option" >&2
1214 { (exit 1); exit 1; }; }
1217 # Be sure to have absolute directory names.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229 { (exit 1); exit 1; }; }
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 { echo "$as_me: error: Working directory cannot be determined" >&2
1260 { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 { echo "$as_me: error: pwd does not report name of working directory" >&2
1263 { (exit 1); exit 1; }; }
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$0" : 'X\(//\)[^/]' \| \
1273 X"$0" : 'X\(//\)$' \| \
1274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303 { (exit 1); exit 1; }; }
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308 { (exit 1); exit 1; }; }
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-polly Use polly if available (default is YES)
1408 --enable-libcpp Use libc++ if available (default is NO)
1409 --enable-cxx11 Use c++11 if available (default is NO)
1410 --enable-split-dwarf Use split-dwarf if available (default is NO)
1411 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1412 --enable-clang-static-analyzer
1413 Enable building of clang Static Analyzer (default is
1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416 --enable-optimized Compile with optimizations enabled (default is NO)
1417 --enable-profiling Compile with profiling enabled (default is NO)
1418 --enable-assertions Compile with assertion checks enabled (default is
1420 --enable-werror Compile with -Werror enabled (default is NO)
1421 --enable-expensive-checks
1422 Compile with expensive debug checks enabled (default
1424 --enable-debug-runtime Build runtime libs with debug symbols (default is
1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1427 optimization is on and YES if it's off)
1428 --enable-keep-symbols Do not strip installed executables)
1429 --enable-jit Enable Just In Time Compiling (default is YES)
1430 --enable-docs Build documents (default is YES)
1431 --enable-doxygen Build doxygen documentation (default is NO)
1432 --enable-threads Use threads if available (default is YES)
1433 --enable-pthreads Use pthreads if available (default is YES)
1434 --enable-zlib Use zlib for compression/decompression if available
1436 --enable-pic Build LLVM with Position Independent Code (default
1438 --enable-shared Build a shared library and link tools against it
1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1441 Win32 DLL (default is NO)
1442 --enable-timestamps Enable embedding timestamp information in build
1444 --enable-backtraces Enable embedding backtraces on crash (default is
1446 --enable-targets Build specific host targets: all or
1447 target1,target2,... Valid targets are: host, x86,
1448 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449 xcore, msp430, nvptx, systemz, r600, and cpp
1451 --enable-experimental-targets
1452 Build experimental host targets: disable or
1453 target1,target2,... (default=disable)
1454 --enable-bindings Build specific language bindings:
1455 all,auto,none,{binding-name} (default=auto)
1456 --enable-libffi Check for the presence of libffi (default is NO)
1457 --enable-ltdl-install install libltdl
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-optimize-option Select the compiler options to use for optimized
1464 --with-extra-options Specify additional options to compile LLVM with
1465 --with-extra-ld-options Specify additional options to link LLVM with
1466 --with-ocaml-libdir Specify install location for ocaml bindings (default
1468 --with-clang-srcdir Directory to the out-of-tree Clang source
1469 --with-clang-resource-dir
1470 Relative directory from the Clang binary for
1472 --with-c-include-dirs Colon separated list of directories clang will
1474 --with-gcc-toolchain Directory where gcc is installed.
1475 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1476 --with-binutils-include Specify path to binutils/include/ containing
1477 plugin-api.h file for gold plugin.
1478 --with-bug-report-url Specify the URL where bug reports should be
1479 submitted (default=http://llvm.org/bugs/)
1480 --with-internal-prefix Installation directory for internal files
1481 --with-python path to python
1482 --with-udis86=<path> Use udis86 external x86 disassembler library
1483 --with-oprofile=<prefix>
1484 Tell OProfile >= 0.9.4 how to symbolize JIT output
1485 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1498 CXXCPP C++ preprocessor
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1503 Report bugs to <http://llvm.org/bugs/>.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1564 LLVM configure 3.4svn
1565 generated by GNU Autoconf 2.60
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1572 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by LLVM $as_me 3.4svn, which was
1581 generated by GNU Autoconf 2.60. Invocation command line was
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_must_keep_next=false
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 -* ) ac_must_keep_next=true ;;
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 echo "$ac_var='\''$ac_val'\''"
1744 if test -n "$ac_subst_files"; then
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1762 if test -s confdefs.h; then
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1853 # Check that the precious variables saved in the cache have kept the same
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858 eval ac_new_set=\$ac_env_${ac_var}_set
1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860 eval ac_new_val=\$ac_env_${ac_var}_value
1861 case $ac_old_set,$ac_new_set in
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1872 if test "x$ac_old_val" != "x$ac_new_val"; then
1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1876 echo "$as_me: former value: $ac_old_val" >&2;}
1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1878 echo "$as_me: current value: $ac_new_val" >&2;}
1879 ac_cache_corrupted=:
1882 # Pass precious variables to config.status.
1883 if test "$ac_new_set" = set; then
1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 *) ac_arg=$ac_var=$ac_new_val ;;
1888 case " $ac_configure_args " in
1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 if $ac_cache_corrupted; then
1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MAJOR 3
1939 cat >>confdefs.h <<\_ACEOF
1940 #define LLVM_VERSION_MINOR 4
1944 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1953 for ac_dir in autoconf "$srcdir"/autoconf; do
1954 if test -f "$ac_dir/install-sh"; then
1956 ac_install_sh="$ac_aux_dir/install-sh -c"
1958 elif test -f "$ac_dir/install.sh"; then
1960 ac_install_sh="$ac_aux_dir/install.sh -c"
1962 elif test -f "$ac_dir/shtool"; then
1964 ac_install_sh="$ac_aux_dir/shtool install -c"
1968 if test -z "$ac_aux_dir"; then
1969 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1970 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1971 { (exit 1); exit 1; }; }
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1984 if test ${srcdir} != "." ; then
1985 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1986 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1987 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1988 { (exit 1); exit 1; }; }
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 if test -n "$ac_tool_prefix"; then
2001 for ac_prog in clang llvm-gcc gcc
2003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$CC"; then
2011 ac_cv_prog_CC="$CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 if test -n "$CC"; then
2032 { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2040 test -n "$CC" && break
2043 if test -z "$CC"; then
2045 for ac_prog in clang llvm-gcc gcc
2047 # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy $ac_prog; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064 ac_cv_prog_ac_ct_CC="$ac_prog"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6; }
2079 { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2084 test -n "$ac_ct_CC" && break
2087 if test "x$ac_ct_CC" = x; then
2090 case $cross_compiling:$ac_tool_warned in
2092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet. If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&5
2095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet. If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2098 ac_tool_warned=yes ;;
2105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO: checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (ac_try="$ac_compiler --version >&5"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120 (eval "$ac_compiler --version >&5") 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (ac_try="$ac_compiler -v >&5"
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler -v >&5") 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (ac_try="$ac_compiler -V >&5"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler -V >&5") 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2145 cat >conftest.$ac_ext <<_ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2165 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169 # List of possible output files, starting from the most likely.
2170 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2171 # only as a last resort. b.out is created by i960 compilers.
2172 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2174 # The IRIX 6 linker writes into existing files which may not be
2175 # executable, retaining their permissions. Remove them first so a
2176 # subsequent execution test works.
2178 for ac_file in $ac_files
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2182 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2187 if { (ac_try="$ac_link_default"
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2193 (eval "$ac_link_default") 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; then
2197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2199 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2200 # so that the user can short-circuit this test for compilers unknown to
2202 for ac_file in $ac_files
2204 test -f "$ac_file" || continue
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2209 # We found the default executable, but exeext='' is most
2213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217 # We set ac_cv_exeext here because the later test for it is not
2218 # safe: cross compilers may not add the suffix if given an `-o'
2219 # argument, so we may need to know it at that point already.
2220 # Even if this section looks crufty: it has the advantage of
2227 test "$ac_cv_exeext" = no && ac_cv_exeext=
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237 { (exit 77); exit 77; }; }
2240 ac_exeext=$ac_cv_exeext
2241 { echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6; }
2244 # Check that the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251 if { ac_try='./$ac_file'
2252 { (case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_try") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2263 if test "$cross_compiling" = maybe; then
2266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check that the compiler produces executables we can run. If not, either
2282 # the compiler is broken, or we cross compile.
2283 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2285 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6; }
2288 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2290 if { (ac_try="$ac_link"
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296 (eval "$ac_link") 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2301 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2302 # work properly (i.e., refer to `conftest.exe'), while it won't with
2304 for ac_file in conftest.exe conftest conftest.*; do
2305 test -f "$ac_file" || continue
2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2321 rm -f conftest$ac_cv_exeext
2322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2325 rm -f conftest.$ac_ext
2326 EXEEXT=$ac_cv_exeext
2328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2330 if test "${ac_cv_objext+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 cat >conftest.$ac_ext <<_ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2348 rm -f conftest.o conftest.obj
2349 if { (ac_try="$ac_compile"
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compile") 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 for ac_file in conftest.o conftest.obj conftest.*; do
2360 test -f "$ac_file" || continue;
2362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381 echo "${ECHO_T}$ac_cv_objext" >&6; }
2382 OBJEXT=$ac_cv_objext
2384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2407 rm -f conftest.$ac_objext
2408 if { (ac_try="$ac_compile"
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_compile") 2>conftest.er1
2416 grep -v '^ *+' conftest.er1 >conftest.err
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2422 { (case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_try") 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_try") 2>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2455 GCC=`test $ac_compiler_gnu = yes && echo yes`
2456 ac_test_CFLAGS=${CFLAGS+set}
2457 ac_save_CFLAGS=$CFLAGS
2458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_cc_g+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 ac_save_c_werror_flag=$ac_c_werror_flag
2464 ac_c_werror_flag=yes
2467 cat >conftest.$ac_ext <<_ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2482 rm -f conftest.$ac_objext
2483 if { (ac_try="$ac_compile"
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_compile") 2>conftest.er1
2491 grep -v '^ *+' conftest.er1 >conftest.err
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2497 { (case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502 (eval "$ac_try") 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compile") 2>conftest.er1
2546 grep -v '^ *+' conftest.er1 >conftest.err
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2552 { (case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_try") 2>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2576 ac_c_werror_flag=$ac_save_c_werror_flag
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_compile") 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2608 { (case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_try") 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_try") 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_c_werror_flag=$ac_save_c_werror_flag
2644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2646 if test "$ac_test_CFLAGS" = set; then
2647 CFLAGS=$ac_save_CFLAGS
2648 elif test $ac_cv_prog_cc_g = yes; then
2649 if test "$GCC" = yes; then
2655 if test "$GCC" = yes; then
2661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_cc_c89+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 ac_cv_prog_cc_c89=no
2668 cat >conftest.$ac_ext <<_ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2692 s = g (p, va_arg (v,int));
2697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2698 function prototypes and stuff, but not '\xHH' hex character constants.
2699 These don't provoke an error unfortunately, instead are silently treated
2700 as 'x'. The following induces an error, until -std is added to get
2701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2702 array size at least. It's necessary to write '\x00'==0 to get something
2703 that's true only with -std. */
2704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2707 inside strings and character constants. */
2709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 CC="$ac_save_CC $ac_arg"
2729 rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2738 grep -v '^ *+' conftest.er1 >conftest.err
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2744 { (case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_try") 2>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_try") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 ac_cv_prog_cc_c89=$ac_arg
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f core conftest.err conftest.$ac_objext
2772 test "x$ac_cv_prog_cc_c89" != "xno" && break
2774 rm -f conftest.$ac_ext
2779 case "x$ac_cv_prog_cc_c89" in
2781 { echo "$as_me:$LINENO: result: none needed" >&5
2782 echo "${ECHO_T}none needed" >&6; } ;;
2784 { echo "$as_me:$LINENO: result: unsupported" >&5
2785 echo "${ECHO_T}unsupported" >&6; } ;;
2787 CC="$CC $ac_cv_prog_cc_c89"
2788 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 ac_cpp='$CXXCPP $CPPFLAGS'
2801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2804 if test -z "$CXX"; then
2805 if test -n "$CCC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in clang++ llvm-g++ g++
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -n "$CXX"; then
2819 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$CXX"; then
2840 { echo "$as_me:$LINENO: result: $CXX" >&5
2841 echo "${ECHO_T}$CXX" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2848 test -n "$CXX" && break
2851 if test -z "$CXX"; then
2853 for ac_prog in clang++ llvm-g++ g++
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 if test -n "$ac_ct_CXX"; then
2863 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_ac_ct_CXX="$ac_prog"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2883 if test -n "$ac_ct_CXX"; then
2884 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2885 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2887 { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2892 test -n "$ac_ct_CXX" && break
2895 if test "x$ac_ct_CXX" = x; then
2898 case $cross_compiling:$ac_tool_warned in
2900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2901 whose name does not start with the host triplet. If you think this
2902 configuration is useful to you, please write to autoconf@gnu.org." >&5
2903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2904 whose name does not start with the host triplet. If you think this
2905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2906 ac_tool_warned=yes ;;
2914 # Provide some information about the compiler.
2915 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2916 ac_compiler=`set X $ac_compile; echo $2`
2917 { (ac_try="$ac_compiler --version >&5"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_compiler --version >&5") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2927 { (ac_try="$ac_compiler -v >&5"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compiler -v >&5") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -V >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler -V >&5") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2948 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 cat >conftest.$ac_ext <<_ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2986 { (case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_try") 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3017 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3019 GXX=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3022 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3023 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3028 ac_cxx_werror_flag=yes
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compile") 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_prog_cxx_g=yes
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3116 { (case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_try") 2>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3172 { (case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_try") 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try='test -s conftest.$ac_objext'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_prog_cxx_g=yes
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211 CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213 if test "$GXX" = yes; then
3219 if test "$GXX" = yes; then
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3242 if test -z "$CPP"; then
3243 if test "${ac_cv_prog_CPP+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 # Double quotes because CPP needs to be expanded
3247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250 for ac_c_preproc_warn_flag in '' yes
3252 # Use a header file that comes with gcc, so configuring glibc
3253 # with a fresh cross-compiler works.
3254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255 # <limits.h> exists even on freestanding compilers.
3256 # On the NeXT, cc -E runs the code through the compiler's parser,
3257 # not just through cpp. "Syntax error" is here to catch this case.
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3265 # include <limits.h>
3267 # include <assert.h>
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293 if test -z "$ac_cpp_err"; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Broken: fails on valid input.
3303 rm -f conftest.err conftest.$ac_ext
3305 # OK, works on sane cases. Now check whether nonexistent headers
3306 # can be detected and how.
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include <ac_nonexistent.h>
3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3323 grep -v '^ *+' conftest.er1 >conftest.err
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } >/dev/null; then
3328 if test -s conftest.err; then
3329 ac_cpp_err=$ac_c_preproc_warn_flag
3330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3337 if test -z "$ac_cpp_err"; then
3338 # Broken: success on invalid input.
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 # Passes both tests.
3349 rm -f conftest.err conftest.$ac_ext
3352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3353 rm -f conftest.err conftest.$ac_ext
3354 if $ac_preproc_ok; then
3366 { echo "$as_me:$LINENO: result: $CPP" >&5
3367 echo "${ECHO_T}$CPP" >&6; }
3369 for ac_c_preproc_warn_flag in '' yes
3371 # Use a header file that comes with gcc, so configuring glibc
3372 # with a fresh cross-compiler works.
3373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374 # <limits.h> exists even on freestanding compilers.
3375 # On the NeXT, cc -E runs the code through the compiler's parser,
3376 # not just through cpp. "Syntax error" is here to catch this case.
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3384 # include <limits.h>
3386 # include <assert.h>
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412 if test -z "$ac_cpp_err"; then
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Broken: fails on valid input.
3422 rm -f conftest.err conftest.$ac_ext
3424 # OK, works on sane cases. Now check whether nonexistent headers
3425 # can be detected and how.
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <ac_nonexistent.h>
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_c_preproc_warn_flag
3449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456 if test -z "$ac_cpp_err"; then
3457 # Broken: success on invalid input.
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 # Passes both tests.
3468 rm -f conftest.err conftest.$ac_ext
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then
3476 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&5
3478 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&2;}
3480 { (exit 1); exit 1; }; }
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test "$CXX" = "clang++" ; then
3491 { echo "$as_me:$LINENO: checking whether clang works" >&5
3492 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3494 ac_cpp='$CXXCPP $CPPFLAGS'
3495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3507 #if __has_include (<cxxabi.h>)
3510 #if __has_include (<unwind.h>)
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_compile") 2>conftest.er1
3531 grep -v '^ *+' conftest.er1 >conftest.err
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3537 { (case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_try") 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3557 { echo "$as_me:$LINENO: result: yes" >&5
3558 echo "${ECHO_T}yes" >&6; }
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3565 { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3567 { { 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
3568 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;}
3569 { (exit 1); exit 1; }; }
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 if test -d ${srcdir}/projects/llvm-gcc ; then
3585 subdirs="$subdirs projects/llvm-gcc"
3589 if test -d ${srcdir}/projects/test-suite ; then
3590 subdirs="$subdirs projects/test-suite"
3594 if test -d ${srcdir}/projects/llvm-test ; then
3595 subdirs="$subdirs projects/llvm-test"
3599 if test -d ${srcdir}/projects/poolalloc ; then
3600 subdirs="$subdirs projects/poolalloc"
3604 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3605 subdirs="$subdirs projects/llvm-poolalloc"
3609 for i in `ls ${srcdir}/projects`
3611 if test -d ${srcdir}/projects/${i} ; then
3613 sample) subdirs="$subdirs projects/sample"
3615 privbracket) subdirs="$subdirs projects/privbracket"
3617 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3619 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3621 llvm-java) subdirs="$subdirs projects/llvm-java"
3623 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3625 safecode) subdirs="$subdirs projects/safecode"
3627 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3636 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3637 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3643 # Check whether --enable-polly was given.
3644 if test "${enable_polly+set}" = set; then
3645 enableval=$enable_polly;
3650 case "$enableval" in
3655 default) ENABLE_POLLY=1
3657 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3658 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3659 { (exit 1); exit 1; }; } ;;
3663 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3666 subdirs="$subdirs tools/polly"
3671 # Make sure we can run config.sub.
3672 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3673 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3674 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3675 { (exit 1); exit 1; }; }
3677 { echo "$as_me:$LINENO: checking build system type" >&5
3678 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3679 if test "${ac_cv_build+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 ac_build_alias=$build_alias
3683 test "x$ac_build_alias" = x &&
3684 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3685 test "x$ac_build_alias" = x &&
3686 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3687 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3688 { (exit 1); exit 1; }; }
3689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3690 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3691 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3692 { (exit 1); exit 1; }; }
3695 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3696 echo "${ECHO_T}$ac_cv_build" >&6; }
3697 case $ac_cv_build in
3699 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3700 echo "$as_me: error: invalid value of canonical build" >&2;}
3701 { (exit 1); exit 1; }; };;
3704 ac_save_IFS=$IFS; IFS='-'
3710 # Remember, the first character of IFS is used to create $*,
3711 # except with old shells:
3714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3717 { echo "$as_me:$LINENO: checking host system type" >&5
3718 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_host+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 if test "x$host_alias" = x; then
3723 ac_cv_host=$ac_cv_build
3725 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3726 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3727 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3728 { (exit 1); exit 1; }; }
3732 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3733 echo "${ECHO_T}$ac_cv_host" >&6; }
3736 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3737 echo "$as_me: error: invalid value of canonical host" >&2;}
3738 { (exit 1); exit 1; }; };;
3741 ac_save_IFS=$IFS; IFS='-'
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754 { echo "$as_me:$LINENO: checking target system type" >&5
3755 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3756 if test "${ac_cv_target+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 if test "x$target_alias" = x; then
3760 ac_cv_target=$ac_cv_host
3762 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3763 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3764 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3765 { (exit 1); exit 1; }; }
3769 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3770 echo "${ECHO_T}$ac_cv_target" >&6; }
3771 case $ac_cv_target in
3773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3774 echo "$as_me: error: invalid value of canonical target" >&2;}
3775 { (exit 1); exit 1; }; };;
3777 target=$ac_cv_target
3778 ac_save_IFS=$IFS; IFS='-'
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3791 # The aliases save the names the user supplied, while $host etc.
3792 # will get canonicalized.
3793 test -n "$target_alias" &&
3794 test "$program_prefix$program_suffix$program_transform_name" = \
3796 program_prefix=${target_alias}-
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3799 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3800 if test "${llvm_cv_os_type+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 llvm_cv_link_all_option="-Wl,--whole-archive"
3806 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3807 llvm_cv_os_type="AIX"
3808 llvm_cv_platform_type="Unix" ;;
3810 llvm_cv_link_all_option="-Wl,--whole-archive"
3811 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812 llvm_cv_os_type="IRIX"
3813 llvm_cv_platform_type="Unix" ;;
3815 llvm_cv_link_all_option="-Wl,--whole-archive"
3816 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817 llvm_cv_os_type="Cygwin"
3818 llvm_cv_platform_type="Unix" ;;
3820 llvm_cv_link_all_option="-Wl,-all_load"
3821 llvm_cv_no_link_all_option="-Wl,-noall_load"
3822 llvm_cv_os_type="Darwin"
3823 llvm_cv_platform_type="Unix" ;;
3825 llvm_cv_link_all_option="-Wl,-all_load"
3826 llvm_cv_no_link_all_option="-Wl,-noall_load"
3827 llvm_cv_os_type="Minix"
3828 llvm_cv_platform_type="Unix" ;;
3830 llvm_cv_link_all_option="-Wl,--whole-archive"
3831 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832 llvm_cv_os_type="FreeBSD"
3833 llvm_cv_platform_type="Unix" ;;
3835 llvm_cv_link_all_option="-Wl,--whole-archive"
3836 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837 llvm_cv_os_type="GNU/kFreeBSD"
3838 llvm_cv_platform_type="Unix" ;;
3840 llvm_cv_link_all_option="-Wl,--whole-archive"
3841 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842 llvm_cv_os_type="OpenBSD"
3843 llvm_cv_platform_type="Unix" ;;
3845 llvm_cv_link_all_option="-Wl,--whole-archive"
3846 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847 llvm_cv_os_type="NetBSD"
3848 llvm_cv_platform_type="Unix" ;;
3850 llvm_cv_link_all_option="-Wl,--whole-archive"
3851 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852 llvm_cv_os_type="DragonFly"
3853 llvm_cv_platform_type="Unix" ;;
3855 llvm_cv_link_all_option="-Wl,--whole-archive"
3856 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3857 llvm_cv_os_type="HP-UX"
3858 llvm_cv_platform_type="Unix" ;;
3860 llvm_cv_link_all_option="-Wl,--whole-archive"
3861 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3862 llvm_cv_os_type="Interix"
3863 llvm_cv_platform_type="Unix" ;;
3865 llvm_cv_link_all_option="-Wl,--whole-archive"
3866 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867 llvm_cv_os_type="Linux"
3868 llvm_cv_platform_type="Unix" ;;
3870 llvm_cv_link_all_option="-Wl,--whole-archive"
3871 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3872 llvm_cv_os_type="GNU"
3873 llvm_cv_platform_type="Unix" ;;
3875 llvm_cv_link_all_option="-Wl,-z,allextract"
3876 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3877 llvm_cv_os_type="SunOS"
3878 llvm_cv_platform_type="Unix" ;;
3880 llvm_cv_link_all_option="-Wl,-z,allextract"
3881 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3882 llvm_cv_os_type="AuroraUX"
3883 llvm_cv_platform_type="Unix" ;;
3885 llvm_cv_link_all_option="-Wl,--whole-archive"
3886 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887 llvm_cv_os_type="Win32"
3888 llvm_cv_platform_type="Win32" ;;
3890 llvm_cv_link_all_option="-Wl,--whole-archive"
3891 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3892 llvm_cv_os_type="MingW"
3893 llvm_cv_platform_type="Win32" ;;
3895 llvm_cv_link_all_option="-Wl,--whole-archive"
3896 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3897 llvm_cv_os_type="Haiku"
3898 llvm_cv_platform_type="Unix" ;;
3900 llvm_cv_link_all_option="-Wl,--whole-archive"
3901 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3902 llvm_cv_os_type="Freestanding"
3903 llvm_cv_platform_type="Unix" ;;
3905 llvm_cv_link_all_option="-Wl,--whole-archive"
3906 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3907 llvm_cv_os_type="Freestanding"
3908 llvm_cv_platform_type="Unix" ;;
3910 llvm_cv_link_all_option=""
3911 llvm_cv_no_link_all_option=""
3912 llvm_cv_os_type="Unknown"
3913 llvm_cv_platform_type="Unknown" ;;
3916 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3917 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3920 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3921 if test "${llvm_cv_target_os_type+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 llvm_cv_target_os_type="AIX" ;;
3928 llvm_cv_target_os_type="IRIX" ;;
3930 llvm_cv_target_os_type="Cygwin" ;;
3932 llvm_cv_target_os_type="Darwin" ;;
3934 llvm_cv_target_os_type="Minix" ;;
3936 llvm_cv_target_os_type="FreeBSD" ;;
3938 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3940 llvm_cv_target_os_type="OpenBSD" ;;
3942 llvm_cv_target_os_type="NetBSD" ;;
3944 llvm_cv_target_os_type="DragonFly" ;;
3946 llvm_cv_target_os_type="HP-UX" ;;
3948 llvm_cv_target_os_type="Interix" ;;
3950 llvm_cv_target_os_type="Linux" ;;
3952 llvm_cv_target_os_type="GNU" ;;
3954 llvm_cv_target_os_type="SunOS" ;;
3956 llvm_cv_target_os_type="AuroraUX" ;;
3958 llvm_cv_target_os_type="Win32" ;;
3960 llvm_cv_target_os_type="MingW" ;;
3962 llvm_cv_target_os_type="Haiku" ;;
3964 llvm_cv_target_os_type="RTEMS" ;;
3966 llvm_cv_target_os_type="NativeClient" ;;
3968 llvm_cv_target_os_type="Freestanding" ;;
3970 llvm_cv_target_os_type="Unknown" ;;
3973 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3974 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3976 if test "$llvm_cv_os_type" = "Unknown" ; then
3977 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3978 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3979 { (exit 1); exit 1; }; }
3984 HOST_OS=$llvm_cv_os_type
3986 TARGET_OS=$llvm_cv_target_os_type
3989 LINKALL=$llvm_cv_link_all_option
3991 NOLINKALL=$llvm_cv_no_link_all_option
3994 case $llvm_cv_platform_type in
3997 cat >>confdefs.h <<\_ACEOF
3998 #define LLVM_ON_UNIX 1
4008 cat >>confdefs.h <<\_ACEOF
4009 #define LLVM_ON_WIN32 1
4019 { echo "$as_me:$LINENO: checking target architecture" >&5
4020 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4021 if test "${llvm_cv_target_arch+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 i?86-*) llvm_cv_target_arch="x86" ;;
4026 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4027 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4028 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4029 arm*-*) llvm_cv_target_arch="ARM" ;;
4030 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4031 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4032 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4033 xcore-*) llvm_cv_target_arch="XCore" ;;
4034 msp430-*) llvm_cv_target_arch="MSP430" ;;
4035 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4036 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4037 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4038 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4039 *) llvm_cv_target_arch="Unknown" ;;
4042 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4043 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4045 if test "$llvm_cv_target_arch" = "Unknown" ; then
4046 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4047 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4050 case "$llvm_cv_target_arch" in
4051 x86) LLVM_NATIVE_ARCH="X86" ;;
4052 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4053 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4056 ARCH=$llvm_cv_target_arch
4060 i?86-*) host_arch="x86" ;;
4061 amd64-* | x86_64-*) host_arch="x86_64" ;;
4062 sparc*-*) host_arch="Sparc" ;;
4063 powerpc*-*) host_arch="PowerPC" ;;
4064 arm*-*) host_arch="ARM" ;;
4065 aarch64*-*) host_arch="AArch64" ;;
4066 mips-* | mips64-*) host_arch="Mips" ;;
4067 mipsel-* | mips64el-*) host_arch="Mips" ;;
4068 xcore-*) host_arch="XCore" ;;
4069 msp430-*) host_arch="MSP430" ;;
4070 hexagon-*) host_arch="Hexagon" ;;
4071 mblaze-*) host_arch="MBlaze" ;;
4072 s390x-*) host_arch="SystemZ" ;;
4073 *) host_arch="Unknown" ;;
4076 if test "$host_arch" = "Unknown" ; then
4077 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4078 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4081 HOST_ARCH=$host_arch
4086 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4087 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4088 if test "${ac_cv_path_GREP+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 # Extract the first word of "grep ggrep" to use in msg output
4092 if test -z "$GREP"; then
4093 set dummy grep ggrep; ac_prog_name=$2
4094 if test "${ac_cv_path_GREP+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 ac_path_GREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103 test -z "$as_dir" && as_dir=.
4104 for ac_prog in grep ggrep; do
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4108 # Check for GNU ac_path_GREP and select it if it is found.
4109 # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4115 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 echo 'GREP' >> "conftest.nl"
4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124 ac_count=`expr $ac_count + 1`
4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_GREP="$ac_path_GREP"
4128 ac_path_GREP_max=$ac_count
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4137 $ac_path_GREP_found && break 3
4147 GREP="$ac_cv_path_GREP"
4148 if test -z "$GREP"; then
4149 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4150 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4151 { (exit 1); exit 1; }; }
4155 ac_cv_path_GREP=$GREP
4160 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4161 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4162 GREP="$ac_cv_path_GREP"
4165 { echo "$as_me:$LINENO: checking for egrep" >&5
4166 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4171 then ac_cv_path_EGREP="$GREP -E"
4173 # Extract the first word of "egrep" to use in msg output
4174 if test -z "$EGREP"; then
4175 set dummy egrep; ac_prog_name=$2
4176 if test "${ac_cv_path_EGREP+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 ac_path_EGREP_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 test -z "$as_dir" && as_dir=.
4186 for ac_prog in egrep; do
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4190 # Check for GNU ac_path_EGREP and select it if it is found.
4191 # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4197 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4200 cat "conftest.in" "conftest.in" >"conftest.tmp"
4201 mv "conftest.tmp" "conftest.in"
4202 cp "conftest.in" "conftest.nl"
4203 echo 'EGREP' >> "conftest.nl"
4204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206 ac_count=`expr $ac_count + 1`
4207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208 # Best one so far, save it but keep looking for a better one
4209 ac_cv_path_EGREP="$ac_path_EGREP"
4210 ac_path_EGREP_max=$ac_count
4212 # 10*(2^10) chars as input seems more than enough
4213 test $ac_count -gt 10 && break
4215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219 $ac_path_EGREP_found && break 3
4229 EGREP="$ac_cv_path_EGREP"
4230 if test -z "$EGREP"; then
4231 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4232 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4233 { (exit 1); exit 1; }; }
4237 ac_cv_path_EGREP=$EGREP
4243 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4244 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4245 EGREP="$ac_cv_path_EGREP"
4248 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4250 if test "${ac_cv_header_stdc+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_compile") 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287 { (case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_try") 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_try") 2>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_header_stdc=yes
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 ac_cv_header_stdc=no
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 if test $ac_cv_header_stdc = yes; then
4317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "memchr" >/dev/null 2>&1; then
4331 ac_cv_header_stdc=no
4337 if test $ac_cv_header_stdc = yes; then
4338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349 $EGREP "free" >/dev/null 2>&1; then
4352 ac_cv_header_stdc=no
4358 if test $ac_cv_header_stdc = yes; then
4359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360 if test "$cross_compiling" = yes; then
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4371 #if ((' ' & 0x0FF) == 0x020)
4372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375 # define ISLOWER(c) \
4376 (('a' <= (c) && (c) <= 'i') \
4377 || ('j' <= (c) && (c) <= 'r') \
4378 || ('s' <= (c) && (c) <= 'z'))
4379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4387 for (i = 0; i < 256; i++)
4388 if (XOR (islower (i), ISLOWER (i))
4389 || toupper (i) != TOUPPER (i))
4394 rm -f conftest$ac_exeext
4395 if { (ac_try="$ac_link"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_link") 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405 { (case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_try") 2>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4416 echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_cv_header_stdc=no
4423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4429 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4430 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4431 if test $ac_cv_header_stdc = yes; then
4433 cat >>confdefs.h <<\_ACEOF
4434 #define STDC_HEADERS 1
4439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4450 inttypes.h stdint.h unistd.h
4452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 cat >conftest.$ac_ext <<_ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 $ac_includes_default
4466 #include <$ac_header>
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 eval "$as_ac_Header=yes"
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 eval "$as_ac_Header=no"
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 ac_res=`eval echo '${'$as_ac_Header'}'`
4513 { echo "$as_me:$LINENO: result: $ac_res" >&5
4514 echo "${ECHO_T}$ac_res" >&6; }
4515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516 cat >>confdefs.h <<_ACEOF
4517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4525 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4526 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4527 if test "${ac_cv_c_bigendian+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 # See if sys/param.h defines the BYTE_ORDER macro.
4531 cat >conftest.$ac_ext <<_ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 #include <sys/types.h>
4538 #include <sys/param.h>
4543 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4551 rm -f conftest.$ac_objext
4552 if { (ac_try="$ac_compile"
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_compile") 2>conftest.er1
4560 grep -v '^ *+' conftest.er1 >conftest.err
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566 { (case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_try") 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_try") 2>&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 # It does; now see whether it defined to BIG_ENDIAN or not.
4586 cat >conftest.$ac_ext <<_ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 #include <sys/types.h>
4593 #include <sys/param.h>
4598 #if BYTE_ORDER != BIG_ENDIAN
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_compile") 2>conftest.er1
4615 grep -v '^ *+' conftest.er1 >conftest.err
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4621 { (case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626 (eval "$ac_try") 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636 (eval "$ac_try") 2>&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_cv_c_bigendian=yes
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 ac_cv_c_bigendian=no
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 # It does not; compile a test program.
4654 if test "$cross_compiling" = yes; then
4655 # try to guess the endianness by grepping values into an object file
4656 ac_cv_c_bigendian=unknown
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4664 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4665 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4666 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4667 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4668 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4672 _ascii (); _ebcdic ();
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_compile") 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692 { (case "(($ac_try" in
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697 (eval "$ac_try") 2>&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; } &&
4701 { ac_try='test -s conftest.$ac_objext'
4702 { (case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_try") 2>&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4712 ac_cv_c_bigendian=yes
4714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4715 if test "$ac_cv_c_bigendian" = unknown; then
4716 ac_cv_c_bigendian=no
4718 # finding both strings is unlikely to happen, but who knows?
4719 ac_cv_c_bigendian=unknown
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4742 /* Are we little or big endian? From Harbison&Steele. */
4746 char c[sizeof (long int)];
4749 return u.c[sizeof (long int) - 1] == 1;
4755 rm -f conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_link") 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766 { (case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_try") 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 ac_cv_c_bigendian=no
4777 echo "$as_me: program exited with status $ac_status" >&5
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4782 ac_cv_c_bigendian=yes
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4793 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4794 case $ac_cv_c_bigendian in
4802 { { echo "$as_me:$LINENO: error: unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4804 echo "$as_me: error: unknown endianness
4805 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4806 { (exit 1); exit 1; }; } ;;
4810 if test "$cross_compiling" = yes; then
4811 LLVM_CROSS_COMPILING=1
4814 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4815 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4816 if test "${ac_cv_build_exeext+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4820 ac_cv_build_exeext=.exe
4822 ac_build_prefix=${build_alias}-
4824 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4825 set dummy ${ac_build_prefix}gcc; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 if test -n "$BUILD_CC"; then
4832 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 BUILD_CC=$ac_cv_prog_BUILD_CC
4852 if test -n "$BUILD_CC"; then
4853 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4854 echo "${ECHO_T}$BUILD_CC" >&6; }
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4861 if test -z "$BUILD_CC"; then
4862 # Extract the first word of "gcc", so it can be a program name with args.
4863 set dummy gcc; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 if test -n "$BUILD_CC"; then
4870 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_BUILD_CC="gcc"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 BUILD_CC=$ac_cv_prog_BUILD_CC
4890 if test -n "$BUILD_CC"; then
4891 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4892 echo "${ECHO_T}$BUILD_CC" >&6; }
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 if test -z "$BUILD_CC"; then
4900 # Extract the first word of "cc", so it can be a program name with args.
4901 set dummy cc; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 if test -n "$BUILD_CC"; then
4908 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4919 ac_prog_rejected=yes
4922 ac_cv_prog_BUILD_CC="cc"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 if test $ac_prog_rejected = yes; then
4931 # We found a bogon in the path, so make sure we never use it.
4932 set dummy $ac_cv_prog_BUILD_CC
4934 if test $# != 0; then
4935 # We chose a different compiler from the bogus one.
4936 # However, it has the same basename, so the bogon will be chosen
4937 # first if we set BUILD_CC to just the basename; use the full file name.
4939 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4944 BUILD_CC=$ac_cv_prog_BUILD_CC
4945 if test -n "$BUILD_CC"; then
4946 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4947 echo "${ECHO_T}$BUILD_CC" >&6; }
4949 { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4956 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4957 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4958 { (exit 1); exit 1; }; }
4959 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4961 echo 'int main () { return 0; }' > conftest.$ac_ext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4964 (eval $ac_build_link) 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; then
4968 for file in conftest.*; do
4970 *.c | *.o | *.obj | *.dSYM) ;;
4971 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4975 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4976 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4977 { (exit 1); exit 1; }; }
4980 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4985 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4986 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4987 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4988 ac_build_exeext=$BUILD_EXEEXT
4990 ac_build_prefix=${build_alias}-
4991 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4992 set dummy ${ac_build_prefix}g++; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 if test -n "$BUILD_CXX"; then
4999 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5019 if test -n "$BUILD_CXX"; then
5020 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5021 echo "${ECHO_T}$BUILD_CXX" >&6; }
5023 { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5028 if test -z "$BUILD_CXX"; then
5029 # Extract the first word of "g++", so it can be a program name with args.
5030 set dummy g++; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 if test -n "$BUILD_CXX"; then
5037 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_BUILD_CXX="g++"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5057 if test -n "$BUILD_CXX"; then
5058 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5059 echo "${ECHO_T}$BUILD_CXX" >&6; }
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5066 if test -z "$BUILD_CXX"; then
5067 # Extract the first word of "c++", so it can be a program name with args.
5068 set dummy c++; ac_word=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 if test -n "$BUILD_CXX"; then
5075 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5086 ac_prog_rejected=yes
5089 ac_cv_prog_BUILD_CXX="c++"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 if test $ac_prog_rejected = yes; then
5098 # We found a bogon in the path, so make sure we never use it.
5099 set dummy $ac_cv_prog_BUILD_CXX
5101 if test $# != 0; then
5102 # We chose a different compiler from the bogus one.
5103 # However, it has the same basename, so the bogon will be chosen
5104 # first if we set BUILD_CXX to just the basename; use the full file name.
5106 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5111 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5112 if test -n "$BUILD_CXX"; then
5113 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5114 echo "${ECHO_T}$BUILD_CXX" >&6; }
5116 { echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6; }
5124 LLVM_CROSS_COMPILING=0
5128 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5139 # Check whether --enable-libcpp was given.
5140 if test "${enable_libcpp+set}" = set; then
5141 enableval=$enable_libcpp;
5146 case "$enableval" in
5147 yes) ENABLE_LIBCPP=1
5151 default) ENABLE_LIBCPP=0
5153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5158 # Check whether --enable-cxx11 was given.
5159 if test "${enable_cxx11+set}" = set; then
5160 enableval=$enable_cxx11;
5165 case "$enableval" in
5170 default) ENABLE_CXX11=0
5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5174 { (exit 1); exit 1; }; } ;;
5177 # Check whether --enable-split-dwarf was given.
5178 if test "${enable_split_dwarf+set}" = set; then
5179 enableval=$enable_split_dwarf;
5184 case "$enableval" in
5185 yes) ENABLE_SPLIT_DWARF=1
5187 no) ENABLE_SPLIT_DWARF=0
5189 default) ENABLE_SPLIT_DWARF=0
5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5197 # Check whether --enable-clang-arcmt was given.
5198 if test "${enable_clang_arcmt+set}" = set; then
5199 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5204 case "$enableval" in
5205 yes) ENABLE_CLANG_ARCMT=1
5207 no) ENABLE_CLANG_ARCMT=0
5209 default) ENABLE_CLANG_ARCMT=1
5211 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5216 clang_static_analyzer="yes"
5217 # Check whether --enable-clang-static-analyzer was given.
5218 if test "${enable_clang_static_analyzer+set}" = set; then
5219 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5224 case "$enableval" in
5225 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5227 no) ENABLE_CLANG_STATIC_ANALYZER=0
5229 default) ENABLE_CLANG_STATIC_ANALYZER=1
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5236 # Check whether --enable-clang-rewriter was given.
5237 if test "${enable_clang_rewriter+set}" = set; then
5238 enableval=$enable_clang_rewriter;
5243 case "$enableval" in
5244 yes) ENABLE_CLANG_REWRITER=1
5247 if test ${clang_arcmt} != "no" ; then
5248 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5249 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5250 { (exit 1); exit 1; }; }
5252 if test ${clang_static_analyzer} != "no" ; then
5253 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5254 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5255 { (exit 1); exit 1; }; }
5257 ENABLE_CLANG_REWRITER=0
5260 default) ENABLE_CLANG_REWRITER=1
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 # Check whether --enable-optimized was given.
5268 if test "${enable_optimized+set}" = set; then
5269 enableval=$enable_optimized;
5274 if test ${enableval} = "no" ; then
5278 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5282 # Check whether --enable-profiling was given.
5283 if test "${enable_profiling+set}" = set; then
5284 enableval=$enable_profiling;
5289 if test ${enableval} = "no" ; then
5293 ENABLE_PROFILING=ENABLE_PROFILING=1
5297 # Check whether --enable-assertions was given.
5298 if test "${enable_assertions+set}" = set; then
5299 enableval=$enable_assertions;
5304 if test ${enableval} = "yes" ; then
5308 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5312 # Check whether --enable-werror was given.
5313 if test "${enable_werror+set}" = set; then
5314 enableval=$enable_werror;
5319 case "$enableval" in
5320 yes) ENABLE_WERROR=1
5324 default) ENABLE_WERROR=0
5326 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5327 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5328 { (exit 1); exit 1; }; } ;;
5331 # Check whether --enable-expensive-checks was given.
5332 if test "${enable_expensive_checks+set}" = set; then
5333 enableval=$enable_expensive_checks;
5338 if test ${enableval} = "yes" ; then
5339 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5341 EXPENSIVE_CHECKS=yes
5344 ENABLE_EXPENSIVE_CHECKS=
5350 # Check whether --enable-debug-runtime was given.
5351 if test "${enable_debug_runtime+set}" = set; then
5352 enableval=$enable_debug_runtime;
5357 if test ${enableval} = "no" ; then
5361 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5365 # Check whether --enable-debug-symbols was given.
5366 if test "${enable_debug_symbols+set}" = set; then
5367 enableval=$enable_debug_symbols;
5372 if test ${enableval} = "no" ; then
5376 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5380 # Check whether --enable-keep-symbols was given.
5381 if test "${enable_keep_symbols+set}" = set; then
5382 enableval=$enable_keep_symbols;
5387 if test ${enableval} = "no" ; then
5391 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5395 # Check whether --enable-jit was given.
5396 if test "${enable_jit+set}" = set; then
5397 enableval=$enable_jit;
5402 if test ${enableval} = "no"
5407 case "$llvm_cv_target_arch" in
5408 x86) TARGET_HAS_JIT=1
5410 Sparc) TARGET_HAS_JIT=0
5412 PowerPC) TARGET_HAS_JIT=1
5414 x86_64) TARGET_HAS_JIT=1
5416 ARM) TARGET_HAS_JIT=1
5418 AArch64) TARGET_HAS_JIT=0
5420 Mips) TARGET_HAS_JIT=1
5422 XCore) TARGET_HAS_JIT=0
5424 MSP430) TARGET_HAS_JIT=0
5426 Hexagon) TARGET_HAS_JIT=0
5428 MBlaze) TARGET_HAS_JIT=0
5430 NVPTX) TARGET_HAS_JIT=0
5432 SystemZ) TARGET_HAS_JIT=1
5439 # Check whether --enable-docs was given.
5440 if test "${enable_docs+set}" = set; then
5441 enableval=$enable_docs;
5446 case "$enableval" in
5451 default) ENABLE_DOCS=1
5453 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5454 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5455 { (exit 1); exit 1; }; } ;;
5458 # Check whether --enable-doxygen was given.
5459 if test "${enable_doxygen+set}" = set; then
5460 enableval=$enable_doxygen;
5465 case "$enableval" in
5466 yes) ENABLE_DOXYGEN=1
5468 no) ENABLE_DOXYGEN=0
5470 default) ENABLE_DOXYGEN=0
5472 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5473 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5474 { (exit 1); exit 1; }; } ;;
5477 # Check whether --enable-threads was given.
5478 if test "${enable_threads+set}" = set; then
5479 enableval=$enable_threads;
5484 case "$enableval" in
5485 yes) LLVM_ENABLE_THREADS=1
5487 no) LLVM_ENABLE_THREADS=0
5489 default) LLVM_ENABLE_THREADS=1
5491 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5492 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5493 { (exit 1); exit 1; }; } ;;
5496 cat >>confdefs.h <<_ACEOF
5497 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5501 # Check whether --enable-pthreads was given.
5502 if test "${enable_pthreads+set}" = set; then
5503 enableval=$enable_pthreads;
5508 case "$enableval" in
5509 yes) ENABLE_PTHREADS=1
5511 no) ENABLE_PTHREADS=0
5513 default) ENABLE_PTHREADS=1
5515 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5516 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5517 { (exit 1); exit 1; }; } ;;
5520 # Check whether --enable-zlib was given.
5521 if test "${enable_zlib+set}" = set; then
5522 enableval=$enable_zlib;
5527 case "$enableval" in
5528 yes) LLVM_ENABLE_ZLIB=1
5530 no) LLVM_ENABLE_ZLIB=0
5532 default) LLVM_ENABLE_ZLIB=1
5534 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5535 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5536 { (exit 1); exit 1; }; } ;;
5539 cat >>confdefs.h <<_ACEOF
5540 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5544 # Check whether --enable-pic was given.
5545 if test "${enable_pic+set}" = set; then
5546 enableval=$enable_pic;
5551 case "$enableval" in
5556 default) ENABLE_PIC=1
5558 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5559 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5560 { (exit 1); exit 1; }; } ;;
5563 cat >>confdefs.h <<_ACEOF
5564 #define ENABLE_PIC $ENABLE_PIC
5568 # Check whether --enable-shared was given.
5569 if test "${enable_shared+set}" = set; then
5570 enableval=$enable_shared;
5575 case "$enableval" in
5576 yes) ENABLE_SHARED=1
5580 default) ENABLE_SHARED=0
5582 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5583 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5584 { (exit 1); exit 1; }; } ;;
5587 # Check whether --enable-embed-stdcxx was given.
5588 if test "${enable_embed_stdcxx+set}" = set; then
5589 enableval=$enable_embed_stdcxx;
5594 case "$enableval" in
5595 yes) ENABLE_EMBED_STDCXX=1
5597 no) ENABLE_EMBED_STDCXX=0
5599 default) ENABLE_EMBED_STDCXX=0
5601 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5602 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5603 { (exit 1); exit 1; }; } ;;
5606 # Check whether --enable-timestamps was given.
5607 if test "${enable_timestamps+set}" = set; then
5608 enableval=$enable_timestamps;
5613 case "$enableval" in
5614 yes) ENABLE_TIMESTAMPS=1
5616 no) ENABLE_TIMESTAMPS=0
5618 default) ENABLE_TIMESTAMPS=1
5620 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5621 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5622 { (exit 1); exit 1; }; } ;;
5625 cat >>confdefs.h <<_ACEOF
5626 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5631 # Check whether --enable-backtraces was given.
5632 if test "${enable_backtraces+set}" = set; then
5633 enableval=$enable_backtraces;
5638 case "$enableval" in
5639 yes) ENABLE_BACKTRACES=1
5641 no) ENABLE_BACKTRACES=0
5643 default) ENABLE_BACKTRACES=1
5645 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5646 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5647 { (exit 1); exit 1; }; } ;;
5650 cat >>confdefs.h <<_ACEOF
5651 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5656 # Check whether --enable-targets was given.
5657 if test "${enable_targets+set}" = set; then
5658 enableval=$enable_targets;
5663 if test "$enableval" = host-only ; then
5666 case "$enableval" in
5667 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5668 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5670 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5671 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5672 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5673 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5674 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5675 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5676 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5677 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5679 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5680 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5681 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5682 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5683 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5684 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5685 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5686 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5687 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5688 host) case "$llvm_cv_target_arch" in
5689 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5690 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5691 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5692 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5693 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5694 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5695 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5696 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5697 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5698 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5699 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5700 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5701 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5702 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5703 echo "$as_me: error: Can not set target to build" >&2;}
5704 { (exit 1); exit 1; }; } ;;
5706 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5707 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5708 { (exit 1); exit 1; }; } ;;
5714 # Check whether --enable-experimental-targets was given.
5715 if test "${enable_experimental_targets+set}" = set; then
5716 enableval=$enable_experimental_targets;
5722 if test ${enableval} != "disable"
5724 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5727 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5730 for a_target in $TARGETS_TO_BUILD; do
5731 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5733 cat >>confdefs.h <<_ACEOF
5734 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5737 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5738 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5739 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5740 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5741 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5742 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5744 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5745 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5753 cat >>confdefs.h <<_ACEOF
5754 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5758 cat >>confdefs.h <<_ACEOF
5759 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5763 cat >>confdefs.h <<_ACEOF
5764 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5767 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5769 cat >>confdefs.h <<_ACEOF
5770 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5774 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5776 cat >>confdefs.h <<_ACEOF
5777 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5784 LLVM_ENUM_TARGETS=""
5785 LLVM_ENUM_ASM_PRINTERS=""
5786 LLVM_ENUM_ASM_PARSERS=""
5787 LLVM_ENUM_DISASSEMBLERS=""
5788 for target_to_build in $TARGETS_TO_BUILD; do
5789 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5790 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5791 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5793 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5794 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5796 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5797 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5806 # Check whether --with-optimize-option was given.
5807 if test "${with_optimize_option+set}" = set; then
5808 withval=$with_optimize_option;
5813 { echo "$as_me:$LINENO: checking optimization flags" >&5
5814 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5817 case "$llvm_cv_os_type" in
5818 FreeBSD) optimize_option=-O2 ;;
5819 MingW) optimize_option=-O2 ;;
5820 *) optimize_option=-O3 ;;
5822 *) optimize_option="$withval" ;;
5824 OPTIMIZE_OPTION=$optimize_option
5826 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5827 echo "${ECHO_T}$optimize_option" >&6; }
5830 # Check whether --with-extra-options was given.
5831 if test "${with_extra_options+set}" = set; then
5832 withval=$with_extra_options;
5838 default) EXTRA_OPTIONS= ;;
5839 *) EXTRA_OPTIONS=$withval ;;
5841 EXTRA_OPTIONS=$EXTRA_OPTIONS
5845 # Check whether --with-extra-ld-options was given.
5846 if test "${with_extra_ld_options+set}" = set; then
5847 withval=$with_extra_ld_options;
5853 default) EXTRA_LD_OPTIONS= ;;
5854 *) EXTRA_LD_OPTIONS=$withval ;;
5856 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5859 # Check whether --enable-bindings was given.
5860 if test "${enable_bindings+set}" = set; then
5861 enableval=$enable_bindings;
5866 BINDINGS_TO_BUILD=""
5867 case "$enableval" in
5868 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5869 all ) BINDINGS_TO_BUILD="ocaml" ;;
5870 none | no) BINDINGS_TO_BUILD="" ;;
5871 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5872 case "$a_binding" in
5873 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5874 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5875 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5876 { (exit 1); exit 1; }; } ;;
5883 # Check whether --with-ocaml-libdir was given.
5884 if test "${with_ocaml_libdir+set}" = set; then
5885 withval=$with_ocaml_libdir;
5891 auto) with_ocaml_libdir="$withval" ;;
5892 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5893 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5894 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5895 { (exit 1); exit 1; }; } ;;
5899 # Check whether --with-clang-srcdir was given.
5900 if test "${with_clang_srcdir+set}" = set; then
5901 withval=$with_clang_srcdir;
5907 -) clang_src_root="" ;;
5908 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5909 *) clang_src_root="$ac_pwd/$withval" ;;
5911 CLANG_SRC_ROOT=$clang_src_root
5915 # Check whether --with-clang-resource-dir was given.
5916 if test "${with_clang_resource_dir+set}" = set; then
5917 withval=$with_clang_resource_dir;
5923 cat >>confdefs.h <<_ACEOF
5924 #define CLANG_RESOURCE_DIR "$withval"
5929 # Check whether --with-c-include-dirs was given.
5930 if test "${with_c_include_dirs+set}" = set; then
5931 withval=$with_c_include_dirs;
5937 cat >>confdefs.h <<_ACEOF
5938 #define C_INCLUDE_DIRS "$withval"
5942 # Clang normally uses the system c++ headers and libraries. With this option,
5943 # clang will use the ones provided by a gcc installation instead. This option should
5944 # be passed the same value that was used with --prefix when configuring gcc.
5946 # Check whether --with-gcc-toolchain was given.
5947 if test "${with_gcc_toolchain+set}" = set; then
5948 withval=$with_gcc_toolchain;
5954 cat >>confdefs.h <<_ACEOF
5955 #define GCC_INSTALL_PREFIX "$withval"
5960 # Check whether --with-default-sysroot was given.
5961 if test "${with_default_sysroot+set}" = set; then
5962 withval=$with_default_sysroot;
5968 cat >>confdefs.h <<_ACEOF
5969 #define DEFAULT_SYSROOT "$withval"
5974 # Check whether --with-binutils-include was given.
5975 if test "${with_binutils_include+set}" = set; then
5976 withval=$with_binutils_include;
5982 default) WITH_BINUTILS_INCDIR=default ;;
5983 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5984 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5985 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5986 { (exit 1); exit 1; }; } ;;
5988 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5989 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5991 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5992 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5993 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5994 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5995 { (exit 1); exit 1; }; };
6000 # Check whether --with-bug-report-url was given.
6001 if test "${with_bug_report_url+set}" = set; then
6002 withval=$with_bug_report_url;
6004 withval="http://llvm.org/bugs/"
6008 cat >>confdefs.h <<_ACEOF
6009 #define BUG_REPORT_URL "$withval"
6013 # Check whether --enable-libffi was given.
6014 if test "${enable_libffi+set}" = set; then
6015 enableval=$enable_libffi; case "$enableval" in
6016 yes) llvm_cv_enable_libffi="yes" ;;
6017 no) llvm_cv_enable_libffi="no" ;;
6018 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6019 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6020 { (exit 1); exit 1; }; } ;;
6023 llvm_cv_enable_libffi=no
6028 # Check whether --with-internal-prefix was given.
6029 if test "${with_internal_prefix+set}" = set; then
6030 withval=$with_internal_prefix;
6035 INTERNAL_PREFIX=$withval
6039 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6040 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6041 if test "${lt_cv_path_NM+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 if test -n "$NM"; then
6045 # Let the user override the test.
6048 lt_nm_to_check="${ac_tool_prefix}nm"
6049 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6050 lt_nm_to_check="$lt_nm_to_check nm"
6052 for lt_tmp_nm in $lt_nm_to_check; do
6053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6054 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6056 test -z "$ac_dir" && ac_dir=.
6057 tmp_nm="$ac_dir/$lt_tmp_nm"
6058 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6059 # Check to see if the nm accepts a BSD-compat flag.
6060 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6061 # nm: unknown option "B" ignored
6062 # Tru64's nm complains that /dev/null is an invalid object file
6063 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6064 */dev/null* | *'Invalid file or object type'*)
6065 lt_cv_path_NM="$tmp_nm -B"
6069 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6071 lt_cv_path_NM="$tmp_nm -p"
6075 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6076 continue # so that we can try to find one that supports BSD flags
6085 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6088 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6089 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6094 { echo "$as_me:$LINENO: checking for GNU make" >&5
6095 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6096 if test "${llvm_cv_gnu_make_command+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 llvm_cv_gnu_make_command=''
6100 for a in "$MAKE" make gmake gnumake ; do
6101 if test -z "$a" ; then continue ; fi ;
6102 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6104 llvm_cv_gnu_make_command=$a ;
6109 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6110 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6111 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6115 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6116 echo "${ECHO_T}\"Not found\"" >&6; };
6120 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6121 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6123 if test "$LN_S" = "ln -s"; then
6124 { echo "$as_me:$LINENO: result: yes" >&5
6125 echo "${ECHO_T}yes" >&6; }
6127 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6128 echo "${ECHO_T}no, using $LN_S" >&6; }
6131 # Extract the first word of "cmp", so it can be a program name with args.
6132 set dummy cmp; ac_word=$2
6133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135 if test "${ac_cv_path_CMP+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6163 if test -n "$CMP"; then
6164 { echo "$as_me:$LINENO: result: $CMP" >&5
6165 echo "${ECHO_T}$CMP" >&6; }
6167 { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6172 # Extract the first word of "cp", so it can be a program name with args.
6173 set dummy cp; ac_word=$2
6174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176 if test "${ac_cv_path_CP+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6204 if test -n "$CP"; then
6205 { echo "$as_me:$LINENO: result: $CP" >&5
6206 echo "${ECHO_T}$CP" >&6; }
6208 { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6213 # Extract the first word of "date", so it can be a program name with args.
6214 set dummy date; ac_word=$2
6215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6217 if test "${ac_cv_path_DATE+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6232 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6244 DATE=$ac_cv_path_DATE
6245 if test -n "$DATE"; then
6246 { echo "$as_me:$LINENO: result: $DATE" >&5
6247 echo "${ECHO_T}$DATE" >&6; }
6249 { echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6; }
6254 # Extract the first word of "find", so it can be a program name with args.
6255 set dummy find; ac_word=$2
6256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6258 if test "${ac_cv_path_FIND+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6285 FIND=$ac_cv_path_FIND
6286 if test -n "$FIND"; then
6287 { echo "$as_me:$LINENO: result: $FIND" >&5
6288 echo "${ECHO_T}$FIND" >&6; }
6290 { echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6; }
6295 # Extract the first word of "grep", so it can be a program name with args.
6296 set dummy grep; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_path_GREP+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6326 GREP=$ac_cv_path_GREP
6327 if test -n "$GREP"; then
6328 { echo "$as_me:$LINENO: result: $GREP" >&5
6329 echo "${ECHO_T}$GREP" >&6; }
6331 { echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6; }
6336 # Extract the first word of "mkdir", so it can be a program name with args.
6337 set dummy mkdir; ac_word=$2
6338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340 if test "${ac_cv_path_MKDIR+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6367 MKDIR=$ac_cv_path_MKDIR
6368 if test -n "$MKDIR"; then
6369 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6370 echo "${ECHO_T}$MKDIR" >&6; }
6372 { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6377 # Extract the first word of "mv", so it can be a program name with args.
6378 set dummy mv; ac_word=$2
6379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381 if test "${ac_cv_path_MV+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6409 if test -n "$MV"; then
6410 { echo "$as_me:$LINENO: result: $MV" >&5
6411 echo "${ECHO_T}$MV" >&6; }
6413 { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_prog_RANLIB+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 if test -n "$RANLIB"; then
6427 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 RANLIB=$ac_cv_prog_RANLIB
6447 if test -n "$RANLIB"; then
6448 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6449 echo "${ECHO_T}$RANLIB" >&6; }
6451 { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6457 if test -z "$ac_cv_prog_RANLIB"; then
6458 ac_ct_RANLIB=$RANLIB
6459 # Extract the first word of "ranlib", so it can be a program name with args.
6460 set dummy ranlib; ac_word=$2
6461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 if test -n "$ac_ct_RANLIB"; then
6467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_ac_ct_RANLIB="ranlib"
6477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6487 if test -n "$ac_ct_RANLIB"; then
6488 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6489 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6491 { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6495 if test "x$ac_ct_RANLIB" = x; then
6498 case $cross_compiling:$ac_tool_warned in
6500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6501 whose name does not start with the host triplet. If you think this
6502 configuration is useful to you, please write to autoconf@gnu.org." >&5
6503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6504 whose name does not start with the host triplet. If you think this
6505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6506 ac_tool_warned=yes ;;
6508 RANLIB=$ac_ct_RANLIB
6511 RANLIB="$ac_cv_prog_RANLIB"
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ar; ac_word=$2
6517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519 if test "${ac_cv_prog_AR+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 if test -n "$AR"; then
6523 ac_cv_prog_AR="$AR" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_AR="${ac_tool_prefix}ar"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 if test -n "$AR"; then
6544 { echo "$as_me:$LINENO: result: $AR" >&5
6545 echo "${ECHO_T}$AR" >&6; }
6547 { echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6; }
6553 if test -z "$ac_cv_prog_AR"; then
6555 # Extract the first word of "ar", so it can be a program name with args.
6556 set dummy ar; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 if test -n "$ac_ct_AR"; then
6563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_ac_ct_AR="ar"
6573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6583 if test -n "$ac_ct_AR"; then
6584 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6585 echo "${ECHO_T}$ac_ct_AR" >&6; }
6587 { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6591 if test "x$ac_ct_AR" = x; then
6594 case $cross_compiling:$ac_tool_warned in
6596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6597 whose name does not start with the host triplet. If you think this
6598 configuration is useful to you, please write to autoconf@gnu.org." >&5
6599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6600 whose name does not start with the host triplet. If you think this
6601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6602 ac_tool_warned=yes ;;
6610 # Extract the first word of "rm", so it can be a program name with args.
6611 set dummy rm; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_path_RM+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6629 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6642 if test -n "$RM"; then
6643 { echo "$as_me:$LINENO: result: $RM" >&5
6644 echo "${ECHO_T}$RM" >&6; }
6646 { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6651 # Extract the first word of "sed", so it can be a program name with args.
6652 set dummy sed; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_path_SED+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6683 if test -n "$SED"; then
6684 { echo "$as_me:$LINENO: result: $SED" >&5
6685 echo "${ECHO_T}$SED" >&6; }
6687 { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6692 # Extract the first word of "tar", so it can be a program name with args.
6693 set dummy tar; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_TAR+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6724 if test -n "$TAR"; then
6725 { echo "$as_me:$LINENO: result: $TAR" >&5
6726 echo "${ECHO_T}$TAR" >&6; }
6728 { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6733 # Extract the first word of "pwd", so it can be a program name with args.
6734 set dummy pwd; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_BINPWD+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6764 BINPWD=$ac_cv_path_BINPWD
6765 if test -n "$BINPWD"; then
6766 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6767 echo "${ECHO_T}$BINPWD" >&6; }
6769 { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6775 # Extract the first word of "Graphviz", so it can be a program name with args.
6776 set dummy Graphviz; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6806 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6807 if test -n "$GRAPHVIZ"; then
6808 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6809 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6816 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_GRAPHVIZ 1
6822 if test "$llvm_cv_os_type" = "MingW" ; then
6823 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6826 cat >>confdefs.h <<_ACEOF
6827 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6831 # Extract the first word of "dot", so it can be a program name with args.
6832 set dummy dot; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_DOT+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6863 if test -n "$DOT"; then
6864 { echo "$as_me:$LINENO: result: $DOT" >&5
6865 echo "${ECHO_T}$DOT" >&6; }
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 if test "$DOT" != "echo dot" ; then
6874 cat >>confdefs.h <<\_ACEOF
6878 if test "$llvm_cv_os_type" = "MingW" ; then
6879 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6882 cat >>confdefs.h <<_ACEOF
6883 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6887 # Extract the first word of "fdp", so it can be a program name with args.
6888 set dummy fdp; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_path_FDP+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6919 if test -n "$FDP"; then
6920 { echo "$as_me:$LINENO: result: $FDP" >&5
6921 echo "${ECHO_T}$FDP" >&6; }
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6928 if test "$FDP" != "echo fdp" ; then
6930 cat >>confdefs.h <<\_ACEOF
6934 if test "$llvm_cv_os_type" = "MingW" ; then
6935 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6938 cat >>confdefs.h <<_ACEOF
6939 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6943 # Extract the first word of "neato", so it can be a program name with args.
6944 set dummy neato; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_NEATO+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6974 NEATO=$ac_cv_path_NEATO
6975 if test -n "$NEATO"; then
6976 { echo "$as_me:$LINENO: result: $NEATO" >&5
6977 echo "${ECHO_T}$NEATO" >&6; }
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 if test "$NEATO" != "echo neato" ; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_NEATO 1
6990 if test "$llvm_cv_os_type" = "MingW" ; then
6991 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6994 cat >>confdefs.h <<_ACEOF
6995 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6999 # Extract the first word of "twopi", so it can be a program name with args.
7000 set dummy twopi; ac_word=$2
7001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7003 if test "${ac_cv_path_TWOPI+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7030 TWOPI=$ac_cv_path_TWOPI
7031 if test -n "$TWOPI"; then
7032 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7033 echo "${ECHO_T}$TWOPI" >&6; }
7035 { echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6; }
7040 if test "$TWOPI" != "echo twopi" ; then
7042 cat >>confdefs.h <<\_ACEOF
7043 #define HAVE_TWOPI 1
7046 if test "$llvm_cv_os_type" = "MingW" ; then
7047 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7050 cat >>confdefs.h <<_ACEOF
7051 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7055 # Extract the first word of "circo", so it can be a program name with args.
7056 set dummy circo; ac_word=$2
7057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_CIRCO+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7086 CIRCO=$ac_cv_path_CIRCO
7087 if test -n "$CIRCO"; then
7088 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7089 echo "${ECHO_T}$CIRCO" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7096 if test "$CIRCO" != "echo circo" ; then
7098 cat >>confdefs.h <<\_ACEOF
7099 #define HAVE_CIRCO 1
7102 if test "$llvm_cv_os_type" = "MingW" ; then
7103 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7106 cat >>confdefs.h <<_ACEOF
7107 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7111 for ac_prog in gv gsview32
7113 # Extract the first word of "$ac_prog", so it can be a program name with args.
7114 set dummy $ac_prog; ac_word=$2
7115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7117 if test "${ac_cv_path_GV+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 if test -n "$GV"; then
7145 { echo "$as_me:$LINENO: result: $GV" >&5
7146 echo "${ECHO_T}$GV" >&6; }
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7153 test -n "$GV" && break
7155 test -n "$GV" || GV="echo gv"
7157 if test "$GV" != "echo gv" ; then
7159 cat >>confdefs.h <<\_ACEOF
7163 if test "$llvm_cv_os_type" = "MingW" ; then
7164 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7167 cat >>confdefs.h <<_ACEOF
7168 #define LLVM_PATH_GV "$GV${EXEEXT}"
7172 # Extract the first word of "dotty", so it can be a program name with args.
7173 set dummy dotty; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_DOTTY+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7203 DOTTY=$ac_cv_path_DOTTY
7204 if test -n "$DOTTY"; then
7205 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7206 echo "${ECHO_T}$DOTTY" >&6; }
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7213 if test "$DOTTY" != "echo dotty" ; then
7215 cat >>confdefs.h <<\_ACEOF
7216 #define HAVE_DOTTY 1
7219 if test "$llvm_cv_os_type" = "MingW" ; then
7220 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7223 cat >>confdefs.h <<_ACEOF
7224 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7228 # Extract the first word of "xdot.py", so it can be a program name with args.
7229 set dummy xdot.py; ac_word=$2
7230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7259 XDOT_PY=$ac_cv_path_XDOT_PY
7260 if test -n "$XDOT_PY"; then
7261 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7262 echo "${ECHO_T}$XDOT_PY" >&6; }
7264 { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7269 if test "$XDOT_PY" != "echo xdot.py" ; then
7271 cat >>confdefs.h <<\_ACEOF
7272 #define HAVE_XDOT_PY 1
7275 if test "$llvm_cv_os_type" = "MingW" ; then
7276 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7279 cat >>confdefs.h <<_ACEOF
7280 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7285 # Find a good install program. We prefer a C program (faster),
7286 # so one script is as good as another. But avoid the broken or
7287 # incompatible versions:
7288 # SysV /etc/install, /usr/sbin/install
7289 # SunOS /usr/etc/install
7290 # IRIX /sbin/install
7292 # AmigaOS /C/install, which installs bootblocks on floppy discs
7293 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7294 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7295 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7296 # OS/2's system install, which has a completely different semantic
7297 # ./install, which can be erroneously created by make from ./install.sh.
7298 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7299 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7300 if test -z "$INSTALL"; then
7301 if test "${ac_cv_path_install+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 # Account for people who put trailing slashes in PATH elements.
7311 ./ | .// | /cC/* | \
7312 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7313 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7316 # OSF1 and SCO ODT 3.0 have their own names for install.
7317 # Don't use installbsd from OSF since it installs stuff as root
7319 for ac_prog in ginstall scoinst install; do
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7322 if test $ac_prog = install &&
7323 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7324 # AIX install. It has an incompatible calling convention.
7326 elif test $ac_prog = install &&
7327 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7328 # program-specific install script used by HP pwplus--don't use.
7331 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7344 if test "${ac_cv_path_install+set}" = set; then
7345 INSTALL=$ac_cv_path_install
7347 # As a last resort, use the slow shell script. Don't cache a
7348 # value for INSTALL within a source directory, because that will
7349 # break other packages using the cache if that directory is
7350 # removed, or if the value is a relative name.
7351 INSTALL=$ac_install_sh
7354 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7355 echo "${ECHO_T}$INSTALL" >&6; }
7357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7358 # It thinks the first close brace ends the variable substitution.
7359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7363 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7366 [\\/$]* | ?:[\\/]* ) ;;
7367 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7370 # Extract the first word of "bzip2", so it can be a program name with args.
7371 set dummy bzip2; ac_word=$2
7372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7374 if test "${ac_cv_path_BZIP2+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 BZIP2=$ac_cv_path_BZIP2
7401 if test -n "$BZIP2"; then
7402 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7403 echo "${ECHO_T}$BZIP2" >&6; }
7405 { echo "$as_me:$LINENO: result: no" >&5
7406 echo "${ECHO_T}no" >&6; }
7410 # Extract the first word of "cat", so it can be a program name with args.
7411 set dummy cat; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_path_CAT+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 if test -n "$CAT"; then
7442 { echo "$as_me:$LINENO: result: $CAT" >&5
7443 echo "${ECHO_T}$CAT" >&6; }
7445 { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7450 # Extract the first word of "doxygen", so it can be a program name with args.
7451 set dummy doxygen; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 DOXYGEN=$ac_cv_path_DOXYGEN
7481 if test -n "$DOXYGEN"; then
7482 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7483 echo "${ECHO_T}$DOXYGEN" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7490 # Extract the first word of "groff", so it can be a program name with args.
7491 set dummy groff; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_GROFF+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 GROFF=$ac_cv_path_GROFF
7521 if test -n "$GROFF"; then
7522 { echo "$as_me:$LINENO: result: $GROFF" >&5
7523 echo "${ECHO_T}$GROFF" >&6; }
7525 { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7530 # Extract the first word of "gzip", so it can be a program name with args.
7531 set dummy gzip; ac_word=$2
7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 GZIPBIN=$ac_cv_path_GZIPBIN
7561 if test -n "$GZIPBIN"; then
7562 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7563 echo "${ECHO_T}$GZIPBIN" >&6; }
7565 { echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6; }
7570 # Extract the first word of "pdfroff", so it can be a program name with args.
7571 set dummy pdfroff; ac_word=$2
7572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7574 if test "${ac_cv_path_PDFROFF+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7589 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 PDFROFF=$ac_cv_path_PDFROFF
7601 if test -n "$PDFROFF"; then
7602 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7603 echo "${ECHO_T}$PDFROFF" >&6; }
7605 { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7610 # Extract the first word of "zip", so it can be a program name with args.
7611 set dummy zip; ac_word=$2
7612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7614 if test "${ac_cv_path_ZIP+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 if test -n "$ZIP"; then
7642 { echo "$as_me:$LINENO: result: $ZIP" >&5
7643 echo "${ECHO_T}$ZIP" >&6; }
7645 { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7650 for ac_prog in ocamlc
7652 # Extract the first word of "$ac_prog", so it can be a program name with args.
7653 set dummy $ac_prog; ac_word=$2
7654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7656 if test "${ac_cv_path_OCAMLC+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 OCAMLC=$ac_cv_path_OCAMLC
7683 if test -n "$OCAMLC"; then
7684 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7685 echo "${ECHO_T}$OCAMLC" >&6; }
7687 { echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6; }
7692 test -n "$OCAMLC" && break
7695 for ac_prog in ocamlopt
7697 # Extract the first word of "$ac_prog", so it can be a program name with args.
7698 set dummy $ac_prog; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7716 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 OCAMLOPT=$ac_cv_path_OCAMLOPT
7728 if test -n "$OCAMLOPT"; then
7729 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7730 echo "${ECHO_T}$OCAMLOPT" >&6; }
7732 { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7737 test -n "$OCAMLOPT" && break
7740 for ac_prog in ocamldep
7742 # Extract the first word of "$ac_prog", so it can be a program name with args.
7743 set dummy $ac_prog; ac_word=$2
7744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 OCAMLDEP=$ac_cv_path_OCAMLDEP
7773 if test -n "$OCAMLDEP"; then
7774 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7775 echo "${ECHO_T}$OCAMLDEP" >&6; }
7777 { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7782 test -n "$OCAMLDEP" && break
7785 for ac_prog in ocamldoc
7787 # Extract the first word of "$ac_prog", so it can be a program name with args.
7788 set dummy $ac_prog; ac_word=$2
7789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7806 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 OCAMLDOC=$ac_cv_path_OCAMLDOC
7818 if test -n "$OCAMLDOC"; then
7819 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7820 echo "${ECHO_T}$OCAMLDOC" >&6; }
7822 { echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6; }
7827 test -n "$OCAMLDOC" && break
7830 for ac_prog in gas as
7832 # Extract the first word of "$ac_prog", so it can be a program name with args.
7833 set dummy $ac_prog; ac_word=$2
7834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836 if test "${ac_cv_path_GAS+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 if test -n "$GAS"; then
7864 { echo "$as_me:$LINENO: result: $GAS" >&5
7865 echo "${ECHO_T}$GAS" >&6; }
7867 { echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6; }
7872 test -n "$GAS" && break
7876 { echo "$as_me:$LINENO: checking for linker version" >&5
7877 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7878 if test "${llvm_cv_link_version+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 version_string="$(ld -v 2>&1 | head -1)"
7885 if (echo "$version_string" | grep -q "ld64"); then
7886 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7888 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7892 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7893 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7895 cat >>confdefs.h <<_ACEOF
7896 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7901 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7902 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7903 if test "${llvm_cv_link_use_r+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 ac_cpp='$CPP $CPPFLAGS'
7908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913 CFLAGS="$CFLAGS -Wl,-R."
7914 cat >conftest.$ac_ext <<_ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (ac_try="$ac_link"
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_link") 2>conftest.er1
7938 grep -v '^ *+' conftest.er1 >conftest.err
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } &&
7943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7944 { (case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_try") 2>&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest$ac_exeext'
7954 { (case "(($ac_try" in
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_try") 2>&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7963 llvm_cv_link_use_r=yes
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 llvm_cv_link_use_r=no
7971 rm -f core conftest.err conftest.$ac_objext \
7972 conftest$ac_exeext conftest.$ac_ext
7975 ac_cpp='$CPP $CPPFLAGS'
7976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7982 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7983 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7984 if test "$llvm_cv_link_use_r" = yes ; then
7986 cat >>confdefs.h <<\_ACEOF
7987 #define HAVE_LINK_R 1
7993 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7994 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7995 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 ac_cpp='$CPP $CPPFLAGS'
8000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8021 rm -f conftest.$ac_objext conftest$ac_exeext
8022 if { (ac_try="$ac_link"
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_link") 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_try") 2>&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 llvm_cv_link_use_export_dynamic=yes
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 llvm_cv_link_use_export_dynamic=no
8063 rm -f core conftest.err conftest.$ac_objext \
8064 conftest$ac_exeext conftest.$ac_ext
8067 ac_cpp='$CPP $CPPFLAGS'
8068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8074 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8075 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8076 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_LINK_EXPORT_DYNAMIC 1
8085 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8086 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8087 if test "${llvm_cv_link_use_version_script+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 ac_cpp='$CPP $CPPFLAGS'
8092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098 # The following code is from the autoconf manual,
8099 # "11.13: Limitations of Usual Tools".
8100 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8101 # Use mktemp if possible; otherwise fall back on mkdir,
8102 # with $RANDOM to make collisions less likely.
8106 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8108 test -n "$tmp" && test -d "$tmp"
8110 tmp=$TMPDIR/foo$$-$RANDOM
8111 (umask 077 && mkdir "$tmp")
8114 echo "{" > "$tmp/export.map"
8115 echo " global: main;" >> "$tmp/export.map"
8116 echo " local: *;" >> "$tmp/export.map"
8117 echo "};" >> "$tmp/export.map"
8119 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8120 cat >conftest.$ac_ext <<_ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (ac_try="$ac_link"
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_link") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8150 { (case "(($ac_try" in
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155 (eval "$ac_try") 2>&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; } &&
8159 { ac_try='test -s conftest$ac_exeext'
8160 { (case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_try") 2>&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; }; then
8169 llvm_cv_link_use_version_script=yes
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 llvm_cv_link_use_version_script=no
8177 rm -f core conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
8179 rm "$tmp/export.map"
8183 ac_cpp='$CPP $CPPFLAGS'
8184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8190 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8191 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8192 if test "$llvm_cv_link_use_version_script" = yes ; then
8193 HAVE_LINK_VERSION_SCRIPT=1
8200 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8201 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8202 if test "${ac_cv_c_const+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 cat >conftest.$ac_ext <<_ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h. */
8215 /* FIXME: Include the comments suggested by Paul. */
8217 /* Ultrix mips cc rejects this. */
8218 typedef int charset[2];
8220 /* SunOS 4.1.1 cc rejects this. */
8221 char const *const *ccp;
8223 /* NEC SVR4.0.2 mips cc rejects this. */
8224 struct point {int x, y;};
8225 static struct point const zero = {0,0};
8226 /* AIX XL C 1.02.0.0 rejects this.
8227 It does not let you subtract one const X* pointer from another in
8228 an arm of an if-expression whose if-part is not a constant
8230 const char *g = "string";
8231 ccp = &g + (g ? g-g : 0);
8232 /* HPUX 7.0 cc rejects these. */
8235 ccp = (char const *const *) p;
8236 { /* SCO 3.2v4 cc rejects this. */
8238 char const *s = 0 ? (char *) 0 : (char const *) 0;
8243 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8245 const int *foo = &x[0];
8248 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8249 typedef const int *iptr;
8253 { /* AIX XL C 1.02.0.0 rejects this saying
8254 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8255 struct s { int j; const int *ap[3]; };
8256 struct s *b; b->j = 5;
8258 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8262 return !x[0] && !zero.x;
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_compile") 2>conftest.er1
8278 grep -v '^ *+' conftest.er1 >conftest.err
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8284 { (case "(($ac_try" in
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289 (eval "$ac_try") 2>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest.$ac_objext'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8313 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8314 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8315 if test $ac_cv_c_const = no; then
8317 cat >>confdefs.h <<\_ACEOF
8329 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8330 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8331 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8332 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 cat >conftest.$ac_ext <<_ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 #include <sys/types.h>
8354 rm -f conftest.$ac_objext
8355 if { (ac_try="$ac_compile"
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8363 grep -v '^ *+' conftest.er1 >conftest.err
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } &&
8368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (case "(($ac_try" in
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_try") 2>&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 eval "$as_ac_Header=yes"
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 eval "$as_ac_Header=no"
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398 ac_res=`eval echo '${'$as_ac_Header'}'`
8399 { echo "$as_me:$LINENO: result: $ac_res" >&5
8400 echo "${ECHO_T}$ac_res" >&6; }
8401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8402 cat >>confdefs.h <<_ACEOF
8403 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8406 ac_header_dirent=$ac_hdr; break
8410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8411 if test $ac_header_dirent = dirent.h; then
8412 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8413 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8414 if test "${ac_cv_search_opendir+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 ac_func_search_save_LIBS=$LIBS
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8425 /* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
8440 for ac_lib in '' dir; do
8441 if test -z "$ac_lib"; then
8442 ac_res="none required"
8445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (ac_try="$ac_link"
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_link") 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462 { (case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_try") 2>&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest$ac_exeext'
8472 { (case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_try") 2>&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 ac_cv_search_opendir=$ac_res
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8489 rm -f core conftest.err conftest.$ac_objext \
8491 if test "${ac_cv_search_opendir+set}" = set; then
8495 if test "${ac_cv_search_opendir+set}" = set; then
8498 ac_cv_search_opendir=no
8501 LIBS=$ac_func_search_save_LIBS
8503 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8504 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8505 ac_res=$ac_cv_search_opendir
8506 if test "$ac_res" != no; then
8507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8512 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8513 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8514 if test "${ac_cv_search_opendir+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 ac_func_search_save_LIBS=$LIBS
8518 cat >conftest.$ac_ext <<_ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8525 /* Override any GCC internal prototype to avoid an error.
8526 Use char because int might match the return type of a GCC
8527 builtin and then its argument prototype would still apply. */
8540 for ac_lib in '' x; do
8541 if test -z "$ac_lib"; then
8542 ac_res="none required"
8545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (ac_try="$ac_link"
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554 (eval "$ac_link") 2>conftest.er1
8556 grep -v '^ *+' conftest.er1 >conftest.err
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8562 { (case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_try") 2>&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; } &&
8571 { ac_try='test -s conftest$ac_exeext'
8572 { (case "(($ac_try" in
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_try") 2>&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_search_opendir=$ac_res
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8589 rm -f core conftest.err conftest.$ac_objext \
8591 if test "${ac_cv_search_opendir+set}" = set; then
8595 if test "${ac_cv_search_opendir+set}" = set; then
8598 ac_cv_search_opendir=no
8601 LIBS=$ac_func_search_save_LIBS
8603 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8604 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8605 ac_res=$ac_cv_search_opendir
8606 if test "$ac_res" != no; then
8607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8614 for ac_header in dlfcn.h
8616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 ac_res=`eval echo '${'$as_ac_Header'}'`
8624 { echo "$as_me:$LINENO: result: $ac_res" >&5
8625 echo "${ECHO_T}$ac_res" >&6; }
8627 # Is the header compilable?
8628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8630 cat >conftest.$ac_ext <<_ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 $ac_includes_default
8637 #include <$ac_header>
8639 rm -f conftest.$ac_objext
8640 if { (ac_try="$ac_compile"
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_compile") 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654 { (case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_try") 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest.$ac_objext'
8664 { (case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8669 (eval "$ac_try") 2>&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8673 ac_header_compiler=yes
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 ac_header_compiler=no
8681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8683 echo "${ECHO_T}$ac_header_compiler" >&6; }
8685 # Is the header present?
8686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8688 cat >conftest.$ac_ext <<_ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 #include <$ac_header>
8696 if { (ac_try="$ac_cpp conftest.$ac_ext"
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8704 grep -v '^ *+' conftest.er1 >conftest.err
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } >/dev/null; then
8709 if test -s conftest.err; then
8710 ac_cpp_err=$ac_c_preproc_warn_flag
8711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8718 if test -z "$ac_cpp_err"; then
8719 ac_header_preproc=yes
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 ac_header_preproc=no
8727 rm -f conftest.err conftest.$ac_ext
8728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8729 echo "${ECHO_T}$ac_header_preproc" >&6; }
8731 # So? What about this header?
8732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8738 ac_header_preproc=yes
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8754 ## ------------------------------------ ##
8755 ## Report this to http://llvm.org/bugs/ ##
8756 ## ------------------------------------ ##
8758 ) | sed "s/^/$as_me: WARNING: /" >&2
8761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 eval "$as_ac_Header=\$ac_header_preproc"
8768 ac_res=`eval echo '${'$as_ac_Header'}'`
8769 { echo "$as_me:$LINENO: result: $ac_res" >&5
8770 echo "${ECHO_T}$ac_res" >&6; }
8773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8774 cat >>confdefs.h <<_ACEOF
8775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8782 # Check whether --enable-ltdl-install was given.
8783 if test "${enable_ltdl_install+set}" = set; then
8784 enableval=$enable_ltdl_install;
8790 if test x"${enable_ltdl_install-no}" != xno; then
8792 INSTALL_LTDL_FALSE='#'
8794 INSTALL_LTDL_TRUE='#'
8800 if test x"${enable_ltdl_convenience-no}" != xno; then
8801 CONVENIENCE_LTDL_TRUE=
8802 CONVENIENCE_LTDL_FALSE='#'
8804 CONVENIENCE_LTDL_TRUE='#'
8805 CONVENIENCE_LTDL_FALSE=
8809 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8810 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8812 libname_spec='lib$name'
8820 shlibpath_overrides_runpath=unknown
8822 dynamic_linker="$host_os ld.so"
8823 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8824 if test "$GCC" = yes; then
8825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8826 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8827 # if the path contains ";" then we assume it to be the separator
8828 # otherwise default to the standard path separator (i.e. ":") - it is
8829 # assumed that no part of a normal pathname contains ";" but that should
8830 # okay in the real world where ";" in dirpaths is itself problematic.
8831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8836 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8838 need_lib_prefix=unknown
8839 hardcode_into_libs=no
8841 # when you set need_version to no, make sure it does not cause -set_version
8842 # flags to be left without arguments
8843 need_version=unknown
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8849 shlibpath_var=LIBPATH
8851 # AIX 3 has no versioning support, so we append a major version to the name.
8852 soname_spec='${libname}${release}${shared_ext}$major'
8859 hardcode_into_libs=yes
8860 if test "$host_cpu" = ia64; then
8861 # AIX 5 supports IA64
8862 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8863 shlibpath_var=LD_LIBRARY_PATH
8865 # With GCC up to 2.95.x, collect2 would create an import file
8866 # for dependence libraries. The import file would start with
8867 # the line `#! .'. This would cause the generated library to
8868 # depend on `.', always an invalid library. This was fixed in
8869 # development snapshots of GCC prior to 3.0.
8871 aix4 | aix4.[01] | aix4.[01].*)
8872 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8874 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8881 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8882 # soname into executable. Probably we can add versioning support to
8883 # collect2, so additional links can be useful in future.
8884 if test "$aix_use_runtimelinking" = yes; then
8885 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8886 # instead of lib<name>.a to let people know that these are not
8887 # typical AIX shared libraries.
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 # We preserve .a as extension for shared libraries through AIX4.2
8891 # and later when we are not doing run time linking.
8892 library_names_spec='${libname}${release}.a $libname.a'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8895 shlibpath_var=LIBPATH
8900 library_names_spec='$libname.ixlibrary $libname.a'
8901 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8902 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'
8906 library_names_spec='${libname}${shared_ext}'
8907 dynamic_linker="$host_os ld.so"
8908 shlibpath_var=LIBRARY_PATH
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8917 shlibpath_var=LD_LIBRARY_PATH
8918 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8919 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8920 # the default ld.so.conf also contains /usr/contrib/lib and
8921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8922 # libtool to hard-code these into programs
8925 cygwin* | mingw* | pw32*)
8926 version_type=windows
8931 case $GCC,$host_os in
8932 yes,cygwin* | yes,mingw* | yes,pw32*)
8933 library_names_spec='$libname.dll.a'
8934 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8935 postinstall_cmds='base_file=`basename \${file}`~
8936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8937 dldir=$destdir/`dirname \$dlpath`~
8938 test -d \$dldir || mkdir -p \$dldir~
8939 $install_prog $dir/$dlname \$dldir/$dlname~
8940 chmod a+x \$dldir/$dlname'
8941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8942 dlpath=$dir/\$dldll~
8944 shlibpath_overrides_runpath=yes
8948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8950 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8953 # MinGW DLLs use traditional 'lib' prefix
8954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8956 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8957 # It is most probably a Windows format PATH printed by
8958 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8959 # path with ; separators, and with drive letters. We can handle the
8960 # drive letters (cygwin fileutils understands them), so leave them,
8961 # especially as we might pass files found there to a mingw objdump,
8962 # which wouldn't understand a cygwinified path. Ahh.
8963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8969 # pw32 DLLs use 'pw' prefix rather than 'lib'
8970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8979 dynamic_linker='Win32 ld.exe'
8980 # FIXME: first we should search . and the directory the executable is in
8984 darwin* | rhapsody*)
8985 dynamic_linker="$host_os dyld"
8989 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8990 soname_spec='${libname}${release}${major}$shared_ext'
8991 shlibpath_overrides_runpath=yes
8992 shlibpath_var=DYLD_LIBRARY_PATH
8993 shrext_cmds='.dylib'
8994 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8995 if test "$GCC" = yes; then
8996 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"`
8998 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 shlibpath_var=LD_LIBRARY_PATH
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 shlibpath_overrides_runpath=no
9024 hardcode_into_libs=yes
9025 dynamic_linker='GNU ld.so'
9028 freebsd* | dragonfly*)
9029 # DragonFly does not have aout. When/if they implement a new
9030 # versioning mechanism, adjust this.
9031 if test -x /usr/bin/objformat; then
9032 objformat=`/usr/bin/objformat`
9035 freebsd[123].*) objformat=aout ;;
9039 version_type=freebsd-$objformat
9040 case $version_type in
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9051 shlibpath_var=LD_LIBRARY_PATH
9054 shlibpath_overrides_runpath=yes
9056 freebsd3.[01]* | freebsdelf3.[01]*)
9057 shlibpath_overrides_runpath=yes
9058 hardcode_into_libs=yes
9060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9062 shlibpath_overrides_runpath=no
9063 hardcode_into_libs=yes
9065 freebsd*) # from 4.6 on
9066 shlibpath_overrides_runpath=yes
9067 hardcode_into_libs=yes
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 hardcode_into_libs=yes
9082 hpux9* | hpux10* | hpux11*)
9083 # Give a soname corresponding to the major version so that dld.sl refuses to
9084 # link against other versions.
9091 hardcode_into_libs=yes
9092 dynamic_linker="$host_os dld.so"
9093 shlibpath_var=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 if test "X$HPUX_IA64_MODE" = X32; then
9098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9106 hardcode_into_libs=yes
9107 dynamic_linker="$host_os dld.sl"
9108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9117 dynamic_linker="$host_os dld.sl"
9118 shlibpath_var=SHLIB_PATH
9119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9124 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9125 postinstall_cmds='chmod 555 $lib'
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 shlibpath_overrides_runpath=no
9137 hardcode_into_libs=yes
9140 irix5* | irix6* | nonstopux*)
9142 nonstopux*) version_type=nonstopux ;;
9144 if test "$lt_cv_prog_gnu_ld" = yes; then
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9155 irix5* | nonstopux*)
9159 case $LD in # libtool.m4 will add one of these switches to LD
9160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9161 libsuff= shlibsuff= libmagic=32-bit;;
9162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9163 libsuff=32 shlibsuff=N32 libmagic=N32;;
9164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9166 *) libsuff= shlibsuff= libmagic=never-match;;
9170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9171 shlibpath_overrides_runpath=no
9172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9174 hardcode_into_libs=yes
9177 # No shared lib support for Linux oldld, aout, or coff.
9178 linux*oldld* | linux*aout* | linux*coff*)
9182 # This must be Linux ELF.
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 shlibpath_overrides_runpath=no
9192 # This implies no fast_install, which is unacceptable.
9193 # Some rework will be needed to allow for fast_install
9194 # before this can be enabled.
9195 hardcode_into_libs=yes
9197 # Append ld.so.conf contents to the search path
9198 if test -f /etc/ld.so.conf; then
9199 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' ' '`
9200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9203 # We used to test for /lib/ld.so.1 and disable shared libraries on
9204 # powerpc, because MkLinux only supported shared libraries with the
9205 # GNU dynamic linker. Since this was broken with cross compilers,
9206 # most powerpc-linux boxes support dynamic linking these days and
9207 # people can always --disable-shared, the test was removed, and we
9208 # assume the GNU/Linux dynamic linker is in use.
9209 dynamic_linker='GNU/Linux ld.so'
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=no
9220 hardcode_into_libs=yes
9221 dynamic_linker='GNU ld.so'
9228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9231 dynamic_linker='NetBSD (a.out) ld.so'
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 dynamic_linker='NetBSD ld.elf_so'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 shlibpath_overrides_runpath=yes
9239 hardcode_into_libs=yes
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 shlibpath_overrides_runpath=yes
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=yes
9261 sys_lib_dlsearch_path_spec="/usr/lib"
9263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9265 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9266 *) need_version=no ;;
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9273 openbsd2.[89] | openbsd2.[89].*)
9274 shlibpath_overrides_runpath=no
9277 shlibpath_overrides_runpath=yes
9281 shlibpath_overrides_runpath=yes
9286 libname_spec='$name'
9289 library_names_spec='$libname${shared_ext} $libname.a'
9290 dynamic_linker='OS/2 ld.exe'
9291 shlibpath_var=LIBPATH
9294 osf3* | osf4* | osf5*)
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 shlibpath_overrides_runpath=yes
9313 hardcode_into_libs=yes
9314 # ldd complains unless libraries are executable
9315 postinstall_cmds='chmod +x $lib'
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9321 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=yes
9324 if test "$with_gnu_ld" = yes; then
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333 soname_spec='${libname}${release}${shared_ext}$major'
9334 shlibpath_var=LD_LIBRARY_PATH
9335 case $host_vendor in
9337 shlibpath_overrides_runpath=no
9339 export_dynamic_flag_spec='${wl}-Blargedynsym'
9340 runpath_var=LD_RUN_PATH
9348 shlibpath_overrides_runpath=no
9349 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9355 if test -d /usr/nec ;then
9357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9358 soname_spec='$libname${shared_ext}.$major'
9359 shlibpath_var=LD_LIBRARY_PATH
9363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9364 version_type=freebsd-elf
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 hardcode_into_libs=yes
9371 if test "$with_gnu_ld" = yes; then
9372 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9373 shlibpath_overrides_runpath=no
9375 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9376 shlibpath_overrides_runpath=yes
9379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9383 sys_lib_dlsearch_path_spec='/usr/lib'
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9397 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9398 echo "${ECHO_T}$dynamic_linker" >&6; }
9399 test "$dynamic_linker" = no && can_build_shared=no
9401 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9402 if test "$GCC" = yes; then
9403 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9407 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9408 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9409 if test "${libltdl_cv_shlibext+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 eval libltdl_cv_shlibext=$shrext_cmds
9417 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9418 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9419 if test -n "$libltdl_cv_shlibext"; then
9421 cat >>confdefs.h <<_ACEOF
9422 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9428 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9429 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9430 if test "${libltdl_cv_sys_search_path+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9435 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9436 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9437 if test -n "$libltdl_cv_sys_search_path"; then
9439 for dir in $libltdl_cv_sys_search_path; do
9440 if test -z "$sys_search_path"; then
9441 sys_search_path="$dir"
9443 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9447 cat >>confdefs.h <<_ACEOF
9448 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9453 { echo "$as_me:$LINENO: checking for objdir" >&5
9454 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9455 if test "${libltdl_cv_objdir+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 libltdl_cv_objdir="$objdir"
9459 if test -n "$objdir"; then
9462 rm -f .libs 2>/dev/null
9463 mkdir .libs 2>/dev/null
9464 if test -d .libs; then
9465 libltdl_cv_objdir=.libs
9467 # MS-DOS does not allow filenames that begin with a dot.
9468 libltdl_cv_objdir=_libs
9470 rmdir .libs 2>/dev/null
9474 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9475 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9477 cat >>confdefs.h <<_ACEOF
9478 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9486 # Check for command to grab the raw symbol name followed by C symbol from nm.
9487 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9488 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9489 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 # These are sane defaults that work on at least a few old systems.
9494 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9496 # Character class describing NM global symbol codes.
9497 symcode='[BCDEGRST]'
9499 # Regexp to match symbols that can be accessed directly from C.
9500 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9502 # Transform an extracted symbol line into a proper C declaration
9503 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9505 # Transform an extracted symbol line into symbol name and symbol address
9506 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'"
9508 # Define system-specific variables.
9513 cygwin* | mingw* | pw32*)
9514 symcode='[ABCDGISTW]'
9516 hpux*) # Its linker distinguishes data from code symbols
9517 if test "$host_cpu" = ia64; then
9518 symcode='[ABCDEGRST]'
9520 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9521 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'"
9524 if test "$host_cpu" = ia64; then
9525 symcode='[ABCDGIRSTW]'
9526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9527 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'"
9531 symcode='[BCDEGRST]'
9534 symcode='[BCDEGQRST]'
9545 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9553 # Handle CRLF in mingw tool chain
9557 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9561 # If we're using GNU nm, then use its standard symbol codes.
9562 case `$NM -V 2>&1` in
9563 *GNU* | *'with BFD'*)
9564 symcode='[ABCDGIRSTW]' ;;
9567 # Try without a prefix undercore, then with it.
9568 for ac_symprfx in "" "_"; do
9570 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9571 symxfrm="\\1 $ac_symprfx\\2 \\2"
9573 # Write the raw and C identifiers.
9574 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9576 # Check to see that the pipe works correctly.
9580 cat > conftest.$ac_ext <<EOF
9585 void nm_test_func(){}
9589 int main(){nm_test_var='a';nm_test_func();return(0);}
9592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9593 (eval $ac_compile) 2>&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; then
9597 # Now try to grab the symbols.
9599 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9600 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } && test -s "$nlist"; then
9604 # Try sorting and uniquifying the output.
9605 if sort "$nlist" | uniq > "$nlist"T; then
9606 mv -f "$nlist"T "$nlist"
9611 # Make sure that we snagged all the symbols we need.
9612 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9613 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9614 cat <<EOF > conftest.$ac_ext
9620 # Now generate the symbol file.
9621 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9623 cat <<EOF >> conftest.$ac_ext
9624 #if defined (__STDC__) && __STDC__
9625 # define lt_ptr_t void *
9627 # define lt_ptr_t char *
9631 /* The mapping between symbol names and symbols. */
9636 lt_preloaded_symbols[] =
9639 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9640 cat <<\EOF >> conftest.$ac_ext
9648 # Now try linking the two files.
9649 mv conftest.$ac_objext conftstm.$ac_objext
9650 lt_save_LIBS="$LIBS"
9651 lt_save_CFLAGS="$CFLAGS"
9652 LIBS="conftstm.$ac_objext"
9653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9655 (eval $ac_link) 2>&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9661 LIBS="$lt_save_LIBS"
9662 CFLAGS="$lt_save_CFLAGS"
9664 echo "cannot find nm_test_func in $nlist" >&5
9667 echo "cannot find nm_test_var in $nlist" >&5
9670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9673 echo "$progname: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9676 rm -f conftest* conftst*
9678 # Do not use the global_symbol_pipe unless it works.
9679 if test "$pipe_works" = yes; then
9682 lt_cv_sys_global_symbol_pipe=
9688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9689 lt_cv_sys_global_symbol_to_cdecl=
9691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9692 { echo "$as_me:$LINENO: result: failed" >&5
9693 echo "${ECHO_T}failed" >&6; }
9695 { echo "$as_me:$LINENO: result: ok" >&5
9696 echo "${ECHO_T}ok" >&6; }
9700 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9701 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9702 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9706 libltdl_cv_preloaded_symbols=yes
9708 libltdl_cv_preloaded_symbols=no
9712 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9713 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9714 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_PRELOADED_SYMBOLS 1
9725 ac_cpp='$CPP $CPPFLAGS'
9726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9731 { echo "$as_me:$LINENO: checking for shl_load" >&5
9732 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9733 if test "${ac_cv_func_shl_load+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9744 #define shl_load innocuous_shl_load
9746 /* System header to define __stub macros and hopefully few prototypes,
9747 which can conflict with char shl_load (); below.
9748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749 <limits.h> exists even on freestanding compilers. */
9752 # include <limits.h>
9754 # include <assert.h>
9759 /* Override any GCC internal prototype to avoid an error.
9760 Use char because int might match the return type of a GCC
9761 builtin and then its argument prototype would still apply. */
9766 /* The GNU C library defines this for functions which it implements
9767 to always fail with ENOSYS. Some functions are actually named
9768 something starting with __ and the normal name is an alias. */
9769 #if defined __stub_shl_load || defined __stub___shl_load
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_link") 2>conftest.er1
9790 grep -v '^ *+' conftest.er1 >conftest.err
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } &&
9795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9796 { (case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_try") 2>&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); }; } &&
9805 { ac_try='test -s conftest$ac_exeext'
9806 { (case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_try") 2>&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_func_shl_load=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_cv_func_shl_load=no
9823 rm -f core conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
9826 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9827 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9828 if test $ac_cv_func_shl_load = yes; then
9830 cat >>confdefs.h <<\_ACEOF
9831 #define HAVE_SHL_LOAD 1
9835 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9836 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9837 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 ac_check_lib_save_LIBS=$LIBS
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9849 /* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (ac_try="$ac_link"
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_link") 2>conftest.er1
9873 grep -v '^ *+' conftest.er1 >conftest.err
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_lib_dld_shl_load=yes
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 ac_cv_lib_dld_shl_load=no
9906 rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9910 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9911 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9912 if test $ac_cv_lib_dld_shl_load = yes; then
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_SHL_LOAD 1
9918 LIBADD_DL="$LIBADD_DL -ldld"
9920 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9921 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9922 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 ac_check_lib_save_LIBS=$LIBS
9927 cat >conftest.$ac_ext <<_ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9934 /* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9964 { (case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_try") 2>&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; } &&
9973 { ac_try='test -s conftest$ac_exeext'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_lib_dl_dlopen=yes
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_cv_lib_dl_dlopen=no
9991 rm -f core conftest.err conftest.$ac_objext \
9992 conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9997 if test $ac_cv_lib_dl_dlopen = yes; then
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_LIBDL 1
10003 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10012 # include <dlfcn.h>
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (ac_try="$ac_link"
10025 case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_link") 2>conftest.er1
10032 grep -v '^ *+' conftest.er1 >conftest.err
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10038 { (case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_try") 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; } &&
10047 { ac_try='test -s conftest$ac_exeext'
10048 { (case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_try") 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10058 cat >>confdefs.h <<\_ACEOF
10059 #define HAVE_LIBDL 1
10061 libltdl_cv_func_dlopen="yes"
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10067 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-lsvld $LIBS"
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
10104 grep -v '^ *+' conftest.er1 >conftest.err
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; } &&
10119 { ac_try='test -s conftest$ac_exeext'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_lib_svld_dlopen=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_lib_svld_dlopen=no
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10141 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10142 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10143 if test $ac_cv_lib_svld_dlopen = yes; then
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_LIBDL 1
10149 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10151 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10152 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_check_lib_save_LIBS=$LIBS
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10175 return dld_link ();
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 ac_cv_lib_dld_dld_link=yes
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_cv_lib_dld_dld_link=no
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10227 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10228 if test $ac_cv_lib_dld_dld_link = yes; then
10230 cat >>confdefs.h <<\_ACEOF
10234 LIBADD_DL="$LIBADD_DL -ldld"
10236 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10237 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10238 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 cat >conftest.$ac_ext <<_ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10247 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10249 #define _dyld_func_lookup innocuous__dyld_func_lookup
10251 /* System header to define __stub macros and hopefully few prototypes,
10252 which can conflict with char _dyld_func_lookup (); below.
10253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10254 <limits.h> exists even on freestanding compilers. */
10257 # include <limits.h>
10259 # include <assert.h>
10262 #undef _dyld_func_lookup
10264 /* Override any GCC internal prototype to avoid an error.
10265 Use char because int might match the return type of a GCC
10266 builtin and then its argument prototype would still apply. */
10270 char _dyld_func_lookup ();
10271 /* The GNU C library defines this for functions which it implements
10272 to always fail with ENOSYS. Some functions are actually named
10273 something starting with __ and the normal name is an alias. */
10274 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10281 return _dyld_func_lookup ();
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_link") 2>conftest.er1
10295 grep -v '^ *+' conftest.er1 >conftest.err
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } &&
10300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10301 { (case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_try") 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; } &&
10310 { ac_try='test -s conftest$ac_exeext'
10311 { (case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_try") 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_cv_func__dyld_func_lookup=yes
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_cv_func__dyld_func_lookup=no
10328 rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10331 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10332 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10333 if test $ac_cv_func__dyld_func_lookup = yes; then
10335 cat >>confdefs.h <<\_ACEOF
10336 #define HAVE_DYLD 1
10350 rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
10362 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10364 lt_save_LIBS="$LIBS"
10365 LIBS="$LIBS $LIBADD_DL"
10367 for ac_func in dlerror
10369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 cat >conftest.$ac_ext <<_ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10383 #define $ac_func innocuous_$ac_func
10385 /* System header to define __stub macros and hopefully few prototypes,
10386 which can conflict with char $ac_func (); below.
10387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388 <limits.h> exists even on freestanding compilers. */
10391 # include <limits.h>
10393 # include <assert.h>
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10405 /* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
10408 #if defined __stub_$ac_func || defined __stub___$ac_func
10415 return $ac_func ();
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_link") 2>conftest.er1
10429 grep -v '^ *+' conftest.er1 >conftest.err
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10435 { (case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_try") 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest$ac_exeext'
10445 { (case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_try") 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; }; then
10454 eval "$as_ac_var=yes"
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 eval "$as_ac_var=no"
10462 rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10465 ac_res=`eval echo '${'$as_ac_var'}'`
10466 { echo "$as_me:$LINENO: result: $ac_res" >&5
10467 echo "${ECHO_T}$ac_res" >&6; }
10468 if test `eval echo '${'$as_ac_var'}'` = yes; then
10469 cat >>confdefs.h <<_ACEOF
10470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10476 LIBS="$lt_save_LIBS"
10479 ac_cpp='$CPP $CPPFLAGS'
10480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10486 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10487 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10488 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 ac_cv_sys_symbol_underscore=no
10492 cat > conftest.$ac_ext <<EOF
10493 void nm_test_func(){}
10494 int main(){nm_test_func;return 0;}
10496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10497 (eval $ac_compile) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; then
10501 # Now try to grab the symbols.
10502 ac_nlist=conftest.nm
10503 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10504 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && test -s "$ac_nlist"; then
10508 # See whether the symbols have a leading underscore.
10509 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10510 ac_cv_sys_symbol_underscore=yes
10512 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10515 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10519 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10522 echo "configure: failed program was:" >&5
10528 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10529 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10532 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10533 if test x"$libltdl_cv_func_dlopen" = xyes ||
10534 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10535 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10536 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10537 if test "${libltdl_cv_need_uscore+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 libltdl_cv_need_uscore=unknown
10542 LIBS="$LIBS $LIBADD_DL"
10543 if test "$cross_compiling" = yes; then :
10544 libltdl_cv_need_uscore=cross
10546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10547 lt_status=$lt_dlunknown
10548 cat > conftest.$ac_ext <<EOF
10549 #line 10549 "configure"
10550 #include "confdefs.h"
10559 # define LT_DLGLOBAL RTLD_GLOBAL
10562 # define LT_DLGLOBAL DL_GLOBAL
10564 # define LT_DLGLOBAL 0
10568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10569 find out it does not work in some platform. */
10570 #ifndef LT_DLLAZY_OR_NOW
10572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10575 # define LT_DLLAZY_OR_NOW DL_LAZY
10578 # define LT_DLLAZY_OR_NOW RTLD_NOW
10581 # define LT_DLLAZY_OR_NOW DL_NOW
10583 # define LT_DLLAZY_OR_NOW 0
10591 extern "C" void exit (int);
10594 void fnord() { int i=42;}
10597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10598 int status = $lt_dlunknown;
10602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10603 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10604 /* dlclose (self); */
10612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613 (eval $ac_link) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10617 (./conftest; exit; ) >&5 2>/dev/null
10619 case x$lt_status in
10620 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10621 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10622 x$lt_dlunknown|x*) ;;
10625 # compilation failed
10634 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10635 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10639 if test x"$libltdl_cv_need_uscore" = xyes; then
10641 cat >>confdefs.h <<\_ACEOF
10642 #define NEED_USCORE 1
10648 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10649 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10650 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 # PORTME does your system automatically load deplibs for dlopen?
10654 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10655 # For now, we just catch OSes we know something about -- in the
10656 # future, we'll try test this programmatically.
10657 libltdl_cv_sys_dlopen_deplibs=unknown
10659 aix3*|aix4.1.*|aix4.2.*)
10660 # Unknown whether this is true for these versions of AIX, but
10661 # we want this `case' here to explicitly catch those versions.
10662 libltdl_cv_sys_dlopen_deplibs=unknown
10665 libltdl_cv_sys_dlopen_deplibs=yes
10668 # Assuming the user has installed a libdl from somewhere, this is true
10669 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10670 libltdl_cv_sys_dlopen_deplibs=yes
10672 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10673 # GNU and its variants, using gnu ld.so (Glibc)
10674 libltdl_cv_sys_dlopen_deplibs=yes
10677 libltdl_cv_sys_dlopen_deplibs=yes
10680 libltdl_cv_sys_dlopen_deplibs=yes
10682 irix[12345]*|irix6.[01]*)
10683 # Catch all versions of IRIX before 6.2, and indicate that we don't
10684 # know how it worked for any of those versions.
10685 libltdl_cv_sys_dlopen_deplibs=unknown
10688 # The case above catches anything before 6.2, and it's known that
10689 # at 6.2 and later dlopen does load deplibs.
10690 libltdl_cv_sys_dlopen_deplibs=yes
10693 libltdl_cv_sys_dlopen_deplibs=yes
10696 libltdl_cv_sys_dlopen_deplibs=yes
10699 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10700 # it did *not* use an RPATH in a shared library to find objects the
10701 # library depends on, so we explicitly say `no'.
10702 libltdl_cv_sys_dlopen_deplibs=no
10704 osf5.0|osf5.0a|osf5.1)
10705 # dlopen *does* load deplibs and with the right loader patch applied
10706 # it even uses RPATH in a shared library to search for shared objects
10707 # that the library depends on, but there's no easy way to know if that
10708 # patch is installed. Since this is the case, all we can really
10709 # say is unknown -- it depends on the patch being installed. If
10710 # it is, this changes to `yes'. Without it, it would be `no'.
10711 libltdl_cv_sys_dlopen_deplibs=unknown
10714 # the two cases above should catch all versions of osf <= 5.1. Read
10715 # the comments above for what we know about them.
10716 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10717 # is used to find them so we can finally say `yes'.
10718 libltdl_cv_sys_dlopen_deplibs=yes
10721 libltdl_cv_sys_dlopen_deplibs=yes
10723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10724 libltdl_cv_sys_dlopen_deplibs=yes
10729 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10730 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10731 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10733 cat >>confdefs.h <<\_ACEOF
10734 #define LTDL_DLOPEN_DEPLIBS 1
10740 for ac_header in argz.h
10742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 ac_res=`eval echo '${'$as_ac_Header'}'`
10750 { echo "$as_me:$LINENO: result: $ac_res" >&5
10751 echo "${ECHO_T}$ac_res" >&6; }
10753 # Is the header compilable?
10754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10756 cat >conftest.$ac_ext <<_ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 $ac_includes_default
10763 #include <$ac_header>
10765 rm -f conftest.$ac_objext
10766 if { (ac_try="$ac_compile"
10767 case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_compile") 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10780 { (case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_try") 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try='test -s conftest.$ac_objext'
10790 { (case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_try") 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 ac_header_compiler=yes
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 ac_header_compiler=no
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10809 echo "${ECHO_T}$ac_header_compiler" >&6; }
10811 # Is the header present?
10812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10814 cat >conftest.$ac_ext <<_ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10820 #include <$ac_header>
10822 if { (ac_try="$ac_cpp conftest.$ac_ext"
10823 case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10830 grep -v '^ *+' conftest.er1 >conftest.err
10832 cat conftest.err >&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } >/dev/null; then
10835 if test -s conftest.err; then
10836 ac_cpp_err=$ac_c_preproc_warn_flag
10837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10844 if test -z "$ac_cpp_err"; then
10845 ac_header_preproc=yes
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10850 ac_header_preproc=no
10853 rm -f conftest.err conftest.$ac_ext
10854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10855 echo "${ECHO_T}$ac_header_preproc" >&6; }
10857 # So? What about this header?
10858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10864 ac_header_preproc=yes
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10880 ## ------------------------------------ ##
10881 ## Report this to http://llvm.org/bugs/ ##
10882 ## ------------------------------------ ##
10884 ) | sed "s/^/$as_me: WARNING: /" >&2
10887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 eval "$as_ac_Header=\$ac_header_preproc"
10894 ac_res=`eval echo '${'$as_ac_Header'}'`
10895 { echo "$as_me:$LINENO: result: $ac_res" >&5
10896 echo "${ECHO_T}$ac_res" >&6; }
10899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10900 cat >>confdefs.h <<_ACEOF
10901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10909 { echo "$as_me:$LINENO: checking for error_t" >&5
10910 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10911 if test "${ac_cv_type_error_t+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 cat >conftest.$ac_ext <<_ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10924 typedef error_t ac__type_new_;
10928 if ((ac__type_new_ *) 0)
10930 if (sizeof (ac__type_new_))
10936 rm -f conftest.$ac_objext
10937 if { (ac_try="$ac_compile"
10938 case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_compile") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 ac_cv_type_error_t=yes
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 ac_cv_type_error_t=no
10978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10981 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10982 if test $ac_cv_type_error_t = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985 #define HAVE_ERROR_T 1
10991 cat >>confdefs.h <<\_ACEOF
10992 #define error_t int
11003 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 cat >conftest.$ac_ext <<_ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11019 #define $ac_func innocuous_$ac_func
11021 /* System header to define __stub macros and hopefully few prototypes,
11022 which can conflict with char $ac_func (); below.
11023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11024 <limits.h> exists even on freestanding compilers. */
11027 # include <limits.h>
11029 # include <assert.h>
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11041 /* The GNU C library defines this for functions which it implements
11042 to always fail with ENOSYS. Some functions are actually named
11043 something starting with __ and the normal name is an alias. */
11044 #if defined __stub_$ac_func || defined __stub___$ac_func
11051 return $ac_func ();
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (ac_try="$ac_link"
11058 case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_link") 2>conftest.er1
11065 grep -v '^ *+' conftest.er1 >conftest.err
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; } &&
11080 { ac_try='test -s conftest$ac_exeext'
11081 { (case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_try") 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 eval "$as_ac_var=yes"
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11095 eval "$as_ac_var=no"
11098 rm -f core conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11101 ac_res=`eval echo '${'$as_ac_var'}'`
11102 { echo "$as_me:$LINENO: result: $ac_res" >&5
11103 echo "${ECHO_T}$ac_res" >&6; }
11104 if test `eval echo '${'$as_ac_var'}'` = yes; then
11105 cat >>confdefs.h <<_ACEOF
11106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11138 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 ac_res=`eval echo '${'$as_ac_Header'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150 echo "${ECHO_T}$ac_res" >&6; }
11152 # Is the header compilable?
11153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 $ac_includes_default
11162 #include <$ac_header>
11164 rm -f conftest.$ac_objext
11165 if { (ac_try="$ac_compile"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_compile") 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11179 { (case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_try") 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_try") 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; }; then
11198 ac_header_compiler=yes
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_compiler=no
11206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11208 echo "${ECHO_T}$ac_header_compiler" >&6; }
11210 # Is the header present?
11211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11213 cat >conftest.$ac_ext <<_ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 #include <$ac_header>
11221 if { (ac_try="$ac_cpp conftest.$ac_ext"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11229 grep -v '^ *+' conftest.er1 >conftest.err
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } >/dev/null; then
11234 if test -s conftest.err; then
11235 ac_cpp_err=$ac_c_preproc_warn_flag
11236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11243 if test -z "$ac_cpp_err"; then
11244 ac_header_preproc=yes
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11249 ac_header_preproc=no
11252 rm -f conftest.err conftest.$ac_ext
11253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11254 echo "${ECHO_T}$ac_header_preproc" >&6; }
11256 # So? What about this header?
11257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11263 ac_header_preproc=yes
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11279 ## ------------------------------------ ##
11280 ## Report this to http://llvm.org/bugs/ ##
11281 ## ------------------------------------ ##
11283 ) | sed "s/^/$as_me: WARNING: /" >&2
11286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 eval "$as_ac_Header=\$ac_header_preproc"
11293 ac_res=`eval echo '${'$as_ac_Header'}'`
11294 { echo "$as_me:$LINENO: result: $ac_res" >&5
11295 echo "${ECHO_T}$ac_res" >&6; }
11298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11311 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 ac_res=`eval echo '${'$as_ac_Header'}'`
11321 { echo "$as_me:$LINENO: result: $ac_res" >&5
11322 echo "${ECHO_T}$ac_res" >&6; }
11324 # Is the header compilable?
11325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 $ac_includes_default
11334 #include <$ac_header>
11336 rm -f conftest.$ac_objext
11337 if { (ac_try="$ac_compile"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_compile") 2>conftest.er1
11345 grep -v '^ *+' conftest.er1 >conftest.err
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest.$ac_objext'
11361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_try") 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_header_compiler=yes
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_header_compiler=no
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11380 echo "${ECHO_T}$ac_header_compiler" >&6; }
11382 # Is the header present?
11383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11385 cat >conftest.$ac_ext <<_ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 #include <$ac_header>
11393 if { (ac_try="$ac_cpp conftest.$ac_ext"
11394 case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11401 grep -v '^ *+' conftest.er1 >conftest.err
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } >/dev/null; then
11406 if test -s conftest.err; then
11407 ac_cpp_err=$ac_c_preproc_warn_flag
11408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11415 if test -z "$ac_cpp_err"; then
11416 ac_header_preproc=yes
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_header_preproc=no
11424 rm -f conftest.err conftest.$ac_ext
11425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11426 echo "${ECHO_T}$ac_header_preproc" >&6; }
11428 # So? What about this header?
11429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11435 ac_header_preproc=yes
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11451 ## ------------------------------------ ##
11452 ## Report this to http://llvm.org/bugs/ ##
11453 ## ------------------------------------ ##
11455 ) | sed "s/^/$as_me: WARNING: /" >&2
11458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 eval "$as_ac_Header=\$ac_header_preproc"
11465 ac_res=`eval echo '${'$as_ac_Header'}'`
11466 { echo "$as_me:$LINENO: result: $ac_res" >&5
11467 echo "${ECHO_T}$ac_res" >&6; }
11470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11471 cat >>confdefs.h <<_ACEOF
11472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11481 for ac_header in string.h strings.h
11483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 ac_res=`eval echo '${'$as_ac_Header'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11494 # Is the header compilable?
11495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_includes_default
11504 #include <$ac_header>
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_compile") 2>conftest.er1
11515 grep -v '^ *+' conftest.er1 >conftest.err
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11521 { (case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_try") 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_try") 2>&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_header_compiler=yes
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_header_compiler=no
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11550 echo "${ECHO_T}$ac_header_compiler" >&6; }
11552 # Is the header present?
11553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 #include <$ac_header>
11563 if { (ac_try="$ac_cpp conftest.$ac_ext"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11571 grep -v '^ *+' conftest.er1 >conftest.err
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } >/dev/null; then
11576 if test -s conftest.err; then
11577 ac_cpp_err=$ac_c_preproc_warn_flag
11578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11585 if test -z "$ac_cpp_err"; then
11586 ac_header_preproc=yes
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 ac_header_preproc=no
11594 rm -f conftest.err conftest.$ac_ext
11595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11596 echo "${ECHO_T}$ac_header_preproc" >&6; }
11598 # So? What about this header?
11599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11605 ac_header_preproc=yes
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11621 ## ------------------------------------ ##
11622 ## Report this to http://llvm.org/bugs/ ##
11623 ## ------------------------------------ ##
11625 ) | sed "s/^/$as_me: WARNING: /" >&2
11628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 eval "$as_ac_Header=\$ac_header_preproc"
11635 ac_res=`eval echo '${'$as_ac_Header'}'`
11636 { echo "$as_me:$LINENO: result: $ac_res" >&5
11637 echo "${ECHO_T}$ac_res" >&6; }
11640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11641 cat >>confdefs.h <<_ACEOF
11642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11652 for ac_func in strchr index
11654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 cat >conftest.$ac_ext <<_ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11668 #define $ac_func innocuous_$ac_func
11670 /* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func (); below.
11672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11673 <limits.h> exists even on freestanding compilers. */
11676 # include <limits.h>
11678 # include <assert.h>
11683 /* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
11690 /* The GNU C library defines this for functions which it implements
11691 to always fail with ENOSYS. Some functions are actually named
11692 something starting with __ and the normal name is an alias. */
11693 #if defined __stub_$ac_func || defined __stub___$ac_func
11700 return $ac_func ();
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (ac_try="$ac_link"
11707 case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_link") 2>conftest.er1
11714 grep -v '^ *+' conftest.er1 >conftest.err
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720 { (case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_try") 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest$ac_exeext'
11730 { (case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735 (eval "$ac_try") 2>&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 eval "$as_ac_var=yes"
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11744 eval "$as_ac_var=no"
11747 rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11750 ac_res=`eval echo '${'$as_ac_var'}'`
11751 { echo "$as_me:$LINENO: result: $ac_res" >&5
11752 echo "${ECHO_T}$ac_res" >&6; }
11753 if test `eval echo '${'$as_ac_var'}'` = yes; then
11754 cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11763 for ac_func in strrchr rindex
11765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779 #define $ac_func innocuous_$ac_func
11781 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11787 # include <limits.h>
11789 # include <assert.h>
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11801 /* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11811 return $ac_func ();
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_link") 2>conftest.er1
11825 grep -v '^ *+' conftest.er1 >conftest.err
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 eval "$as_ac_var=yes"
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 eval "$as_ac_var=no"
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11861 ac_res=`eval echo '${'$as_ac_var'}'`
11862 { echo "$as_me:$LINENO: result: $ac_res" >&5
11863 echo "${ECHO_T}$ac_res" >&6; }
11864 if test `eval echo '${'$as_ac_var'}'` = yes; then
11865 cat >>confdefs.h <<_ACEOF
11866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11874 for ac_func in memcpy bcopy
11876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11890 #define $ac_func innocuous_$ac_func
11892 /* System header to define __stub macros and hopefully few prototypes,
11893 which can conflict with char $ac_func (); below.
11894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11895 <limits.h> exists even on freestanding compilers. */
11898 # include <limits.h>
11900 # include <assert.h>
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11912 /* The GNU C library defines this for functions which it implements
11913 to always fail with ENOSYS. Some functions are actually named
11914 something starting with __ and the normal name is an alias. */
11915 #if defined __stub_$ac_func || defined __stub___$ac_func
11922 return $ac_func ();
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (ac_try="$ac_link"
11929 case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_link") 2>conftest.er1
11936 grep -v '^ *+' conftest.er1 >conftest.err
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest$ac_exeext'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 eval "$as_ac_var=yes"
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 eval "$as_ac_var=no"
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11972 ac_res=`eval echo '${'$as_ac_var'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974 echo "${ECHO_T}$ac_res" >&6; }
11975 if test `eval echo '${'$as_ac_var'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985 for ac_func in memmove strcmp
11987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 cat >conftest.$ac_ext <<_ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
11999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12001 #define $ac_func innocuous_$ac_func
12003 /* System header to define __stub macros and hopefully few prototypes,
12004 which can conflict with char $ac_func (); below.
12005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12006 <limits.h> exists even on freestanding compilers. */
12009 # include <limits.h>
12011 # include <assert.h>
12016 /* Override any GCC internal prototype to avoid an error.
12017 Use char because int might match the return type of a GCC
12018 builtin and then its argument prototype would still apply. */
12023 /* The GNU C library defines this for functions which it implements
12024 to always fail with ENOSYS. Some functions are actually named
12025 something starting with __ and the normal name is an alias. */
12026 #if defined __stub_$ac_func || defined __stub___$ac_func
12033 return $ac_func ();
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (ac_try="$ac_link"
12040 case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
12047 grep -v '^ *+' conftest.er1 >conftest.err
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
12052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12053 { (case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_try") 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; } &&
12062 { ac_try='test -s conftest$ac_exeext'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 eval "$as_ac_var=yes"
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12077 eval "$as_ac_var=no"
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12083 ac_res=`eval echo '${'$as_ac_var'}'`
12084 { echo "$as_me:$LINENO: result: $ac_res" >&5
12085 echo "${ECHO_T}$ac_res" >&6; }
12086 if test `eval echo '${'$as_ac_var'}'` = yes; then
12087 cat >>confdefs.h <<_ACEOF
12088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12097 for ac_func in closedir opendir readdir
12099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 cat >conftest.$ac_ext <<_ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12113 #define $ac_func innocuous_$ac_func
12115 /* System header to define __stub macros and hopefully few prototypes,
12116 which can conflict with char $ac_func (); below.
12117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 <limits.h> exists even on freestanding compilers. */
12121 # include <limits.h>
12123 # include <assert.h>
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12135 /* The GNU C library defines this for functions which it implements
12136 to always fail with ENOSYS. Some functions are actually named
12137 something starting with __ and the normal name is an alias. */
12138 #if defined __stub_$ac_func || defined __stub___$ac_func
12145 return $ac_func ();
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (ac_try="$ac_link"
12152 case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_link") 2>conftest.er1
12159 grep -v '^ *+' conftest.er1 >conftest.err
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
12164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12165 { (case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_try") 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest$ac_exeext'
12175 { (case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_try") 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 eval "$as_ac_var=yes"
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 eval "$as_ac_var=no"
12192 rm -f core conftest.err conftest.$ac_objext \
12193 conftest$ac_exeext conftest.$ac_ext
12195 ac_res=`eval echo '${'$as_ac_var'}'`
12196 { echo "$as_me:$LINENO: result: $ac_res" >&5
12197 echo "${ECHO_T}$ac_res" >&6; }
12198 if test `eval echo '${'$as_ac_var'}'` = yes; then
12199 cat >>confdefs.h <<_ACEOF
12200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12208 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12209 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12222 if test "$GCC" != "yes" && test "$ICC" != "yes"
12224 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12225 echo "$as_me: error: gcc|icc required but not found" >&2;}
12226 { (exit 1); exit 1; }; }
12229 if test "$GXX" != "yes" && test "$IXX" != "yes"
12231 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12232 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12233 { (exit 1); exit 1; }; }
12236 if test "$GCC" = "yes"
12238 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 #if !defined(__GNUC__) || __GNUC__ < 3
12247 #error Unsupported GCC version
12252 rm -f conftest.$ac_objext
12253 if { (ac_try="$ac_compile"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_compile") 2>conftest.er1
12261 grep -v '^ *+' conftest.er1 >conftest.err
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12267 { (case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_try") 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
12276 { ac_try='test -s conftest.$ac_objext'
12277 { (case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_try") 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; }; then
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12292 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12293 { (exit 1); exit 1; }; }
12296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299 if test -z "$llvm_cv_gnu_make_command"
12301 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12302 echo "$as_me: error: GNU Make required but not found" >&2;}
12303 { (exit 1); exit 1; }; }
12306 { echo "$as_me:$LINENO: result: ok" >&5
12307 echo "${ECHO_T}ok" >&6; }
12309 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12310 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12311 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12313 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12315 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12319 NO_MAYBE_UNINITIALIZED=
12320 if test "$GXX" = "yes"
12322 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12324 if test -z "$NO_MAYBE_UNINITIALIZED"
12326 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12330 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12331 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12334 # Check whether --with-python was given.
12335 if test "${with_python+set}" = set; then
12336 withval=$with_python; PYTHON="$withval"
12340 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12341 { echo "$as_me:$LINENO: checking for python" >&5
12342 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12343 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12344 echo "${ECHO_T}user defined: $with_python" >&6; }
12346 if test -n "$PYTHON" ; then
12347 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12348 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12351 # Extract the first word of "python python2 python26", so it can be a program name with args.
12352 set dummy python python2 python26; ac_word=$2
12353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12355 if test "${ac_cv_path_PYTHON+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in $PATH
12367 test -z "$as_dir" && as_dir=.
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12370 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12379 echo "${ECHO_T}not found" >&6; }
12380 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12381 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12382 { (exit 1); exit 1; }; }"
12386 PYTHON=$ac_cv_path_PYTHON
12387 if test -n "$PYTHON"; then
12388 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12389 echo "${ECHO_T}$PYTHON" >&6; }
12391 { echo "$as_me:$LINENO: result: no" >&5
12392 echo "${ECHO_T}no" >&6; }
12398 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12399 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12400 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12401 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12402 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12403 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12404 if test "$ac_python_version_major" -eq "2" \
12405 && test "$ac_python_version_minor" -ge "5" ; then
12406 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12407 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12409 { echo "$as_me:$LINENO: result: not found" >&5
12410 echo "${ECHO_T}not found" >&6; }
12411 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12412 See \`config.log' for more details." >&5
12413 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12414 See \`config.log' for more details." >&2;}
12415 { (exit 1); exit 1; }; }
12420 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12421 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12422 if test "${ac_cv_lib_m_sin+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 ac_check_lib_save_LIBS=$LIBS
12427 cat >conftest.$ac_ext <<_ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12434 /* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
12449 rm -f conftest.$ac_objext conftest$ac_exeext
12450 if { (ac_try="$ac_link"
12451 case "(($ac_try" in
12452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453 *) ac_try_echo=$ac_try;;
12455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456 (eval "$ac_link") 2>conftest.er1
12458 grep -v '^ *+' conftest.er1 >conftest.err
12460 cat conftest.err >&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12464 { (case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_try") 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest$ac_exeext'
12474 { (case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_try") 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_cv_lib_m_sin=yes
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12491 rm -f core conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12493 LIBS=$ac_check_lib_save_LIBS
12495 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12496 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12497 if test $ac_cv_lib_m_sin = yes; then
12498 cat >>confdefs.h <<_ACEOF
12499 #define HAVE_LIBM 1
12506 if test "$llvm_cv_os_type" = "MingW" ; then
12508 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12509 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12510 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 ac_check_lib_save_LIBS=$LIBS
12514 LIBS="-limagehlp $LIBS"
12515 cat >conftest.$ac_ext <<_ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12531 rm -f conftest.$ac_objext conftest$ac_exeext
12532 if { (ac_try="$ac_link"
12533 case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_link") 2>conftest.er1
12540 grep -v '^ *+' conftest.er1 >conftest.err
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } &&
12545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12546 { (case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_try") 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest$ac_exeext'
12556 { (case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_try") 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 ac_cv_lib_imagehlp_main=yes
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12570 ac_cv_lib_imagehlp_main=no
12573 rm -f core conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12575 LIBS=$ac_check_lib_save_LIBS
12577 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12578 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12579 if test $ac_cv_lib_imagehlp_main = yes; then
12580 cat >>confdefs.h <<_ACEOF
12581 #define HAVE_LIBIMAGEHLP 1
12584 LIBS="-limagehlp $LIBS"
12589 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12590 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12591 if test "${ac_cv_lib_psapi_main+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 ac_check_lib_save_LIBS=$LIBS
12595 LIBS="-lpsapi $LIBS"
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_link") 2>conftest.er1
12621 grep -v '^ *+' conftest.er1 >conftest.err
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } &&
12626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12627 { (case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_try") 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; } &&
12636 { ac_try='test -s conftest$ac_exeext'
12637 { (case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_try") 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_lib_psapi_main=yes
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 ac_cv_lib_psapi_main=no
12654 rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12656 LIBS=$ac_check_lib_save_LIBS
12658 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12659 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12660 if test $ac_cv_lib_psapi_main = yes; then
12661 cat >>confdefs.h <<_ACEOF
12662 #define HAVE_LIBPSAPI 1
12665 LIBS="-lpsapi $LIBS"
12671 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12672 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12673 if test "${ac_cv_search_dlopen+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 ac_func_search_save_LIBS=$LIBS
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12699 for ac_lib in '' dl; do
12700 if test -z "$ac_lib"; then
12701 ac_res="none required"
12704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12706 rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (ac_try="$ac_link"
12708 case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_link") 2>conftest.er1
12715 grep -v '^ *+' conftest.er1 >conftest.err
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12721 { (case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_try") 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; } &&
12730 { ac_try='test -s conftest$ac_exeext'
12731 { (case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_try") 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_cv_search_dlopen=$ac_res
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12748 rm -f core conftest.err conftest.$ac_objext \
12750 if test "${ac_cv_search_dlopen+set}" = set; then
12754 if test "${ac_cv_search_dlopen+set}" = set; then
12757 ac_cv_search_dlopen=no
12759 rm conftest.$ac_ext
12760 LIBS=$ac_func_search_save_LIBS
12762 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12763 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12764 ac_res=$ac_cv_search_dlopen
12765 if test "$ac_res" != no; then
12766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12768 cat >>confdefs.h <<\_ACEOF
12769 #define HAVE_DLOPEN 1
12773 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12774 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12778 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12779 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12780 if test "${ac_cv_search_clock_gettime+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 ac_func_search_save_LIBS=$LIBS
12784 cat >conftest.$ac_ext <<_ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12797 char clock_gettime ();
12801 return clock_gettime ();
12806 for ac_lib in '' rt; do
12807 if test -z "$ac_lib"; then
12808 ac_res="none required"
12811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12813 rm -f conftest.$ac_objext conftest$ac_exeext
12814 if { (ac_try="$ac_link"
12815 case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820 (eval "$ac_link") 2>conftest.er1
12822 grep -v '^ *+' conftest.er1 >conftest.err
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest$ac_exeext'
12838 { (case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_try") 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 ac_cv_search_clock_gettime=$ac_res
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12855 rm -f core conftest.err conftest.$ac_objext \
12857 if test "${ac_cv_search_clock_gettime+set}" = set; then
12861 if test "${ac_cv_search_clock_gettime+set}" = set; then
12864 ac_cv_search_clock_gettime=no
12866 rm conftest.$ac_ext
12867 LIBS=$ac_func_search_save_LIBS
12869 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12870 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12871 ac_res=$ac_cv_search_clock_gettime
12872 if test "$ac_res" != no; then
12873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12878 if test "$llvm_cv_enable_libffi" = "yes" ; then
12879 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12880 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12881 if test "${ac_cv_search_ffi_call+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 ac_func_search_save_LIBS=$LIBS
12885 cat >conftest.$ac_ext <<_ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12892 /* Override any GCC internal prototype to avoid an error.
12893 Use char because int might match the return type of a GCC
12894 builtin and then its argument prototype would still apply. */
12902 return ffi_call ();
12907 for ac_lib in '' ffi; do
12908 if test -z "$ac_lib"; then
12909 ac_res="none required"
12912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (ac_try="$ac_link"
12916 case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_link") 2>conftest.er1
12923 grep -v '^ *+' conftest.er1 >conftest.err
12925 cat conftest.err >&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } &&
12928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_try") 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest$ac_exeext'
12939 { (case "(($ac_try" in
12940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941 *) ac_try_echo=$ac_try;;
12943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944 (eval "$ac_try") 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 ac_cv_search_ffi_call=$ac_res
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12956 rm -f core conftest.err conftest.$ac_objext \
12958 if test "${ac_cv_search_ffi_call+set}" = set; then
12962 if test "${ac_cv_search_ffi_call+set}" = set; then
12965 ac_cv_search_ffi_call=no
12967 rm conftest.$ac_ext
12968 LIBS=$ac_func_search_save_LIBS
12970 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12971 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12972 ac_res=$ac_cv_search_ffi_call
12973 if test "$ac_res" != no; then
12974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12976 cat >>confdefs.h <<\_ACEOF
12977 #define HAVE_FFI_CALL 1
12981 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12982 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12983 { (exit 1); exit 1; }; }
12988 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12989 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12990 if test "${ac_cv_search_mallinfo+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12993 ac_func_search_save_LIBS=$LIBS
12994 cat >conftest.$ac_ext <<_ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13011 return mallinfo ();
13016 for ac_lib in '' malloc; do
13017 if test -z "$ac_lib"; then
13018 ac_res="none required"
13021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (ac_try="$ac_link"
13025 case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_link") 2>conftest.er1
13032 grep -v '^ *+' conftest.er1 >conftest.err
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest$ac_exeext'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
13057 ac_cv_search_mallinfo=$ac_res
13059 echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13065 rm -f core conftest.err conftest.$ac_objext \
13067 if test "${ac_cv_search_mallinfo+set}" = set; then
13071 if test "${ac_cv_search_mallinfo+set}" = set; then
13074 ac_cv_search_mallinfo=no
13076 rm conftest.$ac_ext
13077 LIBS=$ac_func_search_save_LIBS
13079 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13080 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13081 ac_res=$ac_cv_search_mallinfo
13082 if test "$ac_res" != no; then
13083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_MALLINFO 1
13092 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13094 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13095 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13096 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-lpthread $LIBS"
13101 cat >conftest.$ac_ext <<_ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13108 /* Override any GCC internal prototype to avoid an error.
13109 Use char because int might match the return type of a GCC
13110 builtin and then its argument prototype would still apply. */
13114 char pthread_mutex_init ();
13118 return pthread_mutex_init ();
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13132 grep -v '^ *+' conftest.er1 >conftest.err
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_cv_lib_pthread_pthread_mutex_init=yes
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ac_cv_lib_pthread_pthread_mutex_init=no
13165 rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13169 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13170 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13171 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13172 cat >>confdefs.h <<_ACEOF
13173 #define HAVE_LIBPTHREAD 1
13176 LIBS="-lpthread $LIBS"
13180 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13181 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13182 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 ac_func_search_save_LIBS=$LIBS
13186 cat >conftest.$ac_ext <<_ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13193 /* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13199 char pthread_mutex_lock ();
13203 return pthread_mutex_lock ();
13208 for ac_lib in '' pthread; do
13209 if test -z "$ac_lib"; then
13210 ac_res="none required"
13213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13215 rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (ac_try="$ac_link"
13217 case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_link") 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest$ac_exeext'
13240 { (case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_try") 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 ac_cv_search_pthread_mutex_lock=$ac_res
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13257 rm -f core conftest.err conftest.$ac_objext \
13259 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13263 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13266 ac_cv_search_pthread_mutex_lock=no
13268 rm conftest.$ac_ext
13269 LIBS=$ac_func_search_save_LIBS
13271 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13272 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13273 ac_res=$ac_cv_search_pthread_mutex_lock
13274 if test "$ac_res" != no; then
13275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_PTHREAD_MUTEX_LOCK 1
13283 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13284 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13285 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 ac_func_search_save_LIBS=$LIBS
13289 cat >conftest.$ac_ext <<_ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13302 char pthread_rwlock_init ();
13306 return pthread_rwlock_init ();
13311 for ac_lib in '' pthread; do
13312 if test -z "$ac_lib"; then
13313 ac_res="none required"
13316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (ac_try="$ac_link"
13320 case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_link") 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest$ac_exeext'
13343 { (case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_try") 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_search_pthread_rwlock_init=$ac_res
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13360 rm -f core conftest.err conftest.$ac_objext \
13362 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13366 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13369 ac_cv_search_pthread_rwlock_init=no
13371 rm conftest.$ac_ext
13372 LIBS=$ac_func_search_save_LIBS
13374 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13375 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13376 ac_res=$ac_cv_search_pthread_rwlock_init
13377 if test "$ac_res" != no; then
13378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13380 cat >>confdefs.h <<\_ACEOF
13381 #define HAVE_PTHREAD_RWLOCK_INIT 1
13386 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13387 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13388 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 ac_func_search_save_LIBS=$LIBS
13392 cat >conftest.$ac_ext <<_ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13399 /* Override any GCC internal prototype to avoid an error.
13400 Use char because int might match the return type of a GCC
13401 builtin and then its argument prototype would still apply. */
13405 char pthread_getspecific ();
13409 return pthread_getspecific ();
13414 for ac_lib in '' pthread; do
13415 if test -z "$ac_lib"; then
13416 ac_res="none required"
13419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13421 rm -f conftest.$ac_objext conftest$ac_exeext
13422 if { (ac_try="$ac_link"
13423 case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_link") 2>conftest.er1
13430 grep -v '^ *+' conftest.er1 >conftest.err
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; } &&
13445 { ac_try='test -s conftest$ac_exeext'
13446 { (case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451 (eval "$ac_try") 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 ac_cv_search_pthread_getspecific=$ac_res
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13463 rm -f core conftest.err conftest.$ac_objext \
13465 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13469 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13472 ac_cv_search_pthread_getspecific=no
13474 rm conftest.$ac_ext
13475 LIBS=$ac_func_search_save_LIBS
13477 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13478 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13479 ac_res=$ac_cv_search_pthread_getspecific
13480 if test "$ac_res" != no; then
13481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13483 cat >>confdefs.h <<\_ACEOF
13484 #define HAVE_PTHREAD_GETSPECIFIC 1
13491 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13493 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13494 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13495 if test "${ac_cv_lib_z_compress2+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 ac_check_lib_save_LIBS=$LIBS
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13507 /* Override any GCC internal prototype to avoid an error.
13508 Use char because int might match the return type of a GCC
13509 builtin and then its argument prototype would still apply. */
13517 return compress2 ();
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (ac_try="$ac_link"
13524 case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_link") 2>conftest.er1
13531 grep -v '^ *+' conftest.er1 >conftest.err
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest$ac_exeext'
13547 { (case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_try") 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_cv_lib_z_compress2=yes
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13561 ac_cv_lib_z_compress2=no
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13568 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13569 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13570 if test $ac_cv_lib_z_compress2 = yes; then
13571 cat >>confdefs.h <<_ACEOF
13572 #define HAVE_LIBZ 1
13582 # Check whether --with-udis86 was given.
13583 if test "${with_udis86+set}" = set; then
13584 withval=$with_udis86;
13589 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13592 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13593 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13594 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 ac_check_lib_save_LIBS=$LIBS
13598 LIBS="-ludis86 $LIBS"
13599 cat >conftest.$ac_ext <<_ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13606 /* Override any GCC internal prototype to avoid an error.
13607 Use char because int might match the return type of a GCC
13608 builtin and then its argument prototype would still apply. */
13621 rm -f conftest.$ac_objext conftest$ac_exeext
13622 if { (ac_try="$ac_link"
13623 case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_link") 2>conftest.er1
13630 grep -v '^ *+' conftest.er1 >conftest.err
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13636 { (case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_try") 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest$ac_exeext'
13646 { (case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_try") 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_cv_lib_udis86_ud_init=yes
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 ac_cv_lib_udis86_ud_init=no
13663 rm -f core conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
13665 LIBS=$ac_check_lib_save_LIBS
13667 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13668 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13669 if test $ac_cv_lib_udis86_ud_init = yes; then
13670 cat >>confdefs.h <<_ACEOF
13671 #define HAVE_LIBUDIS86 1
13674 LIBS="-ludis86 $LIBS"
13678 echo "Error! You need to have libudis86 around."
13690 cat >>confdefs.h <<_ACEOF
13691 #define USE_UDIS86 $USE_UDIS86
13696 # Check whether --with-oprofile was given.
13697 if test "${with_oprofile+set}" = set; then
13698 withval=$with_oprofile;
13702 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13703 no) llvm_cv_oppath=
13706 *) llvm_cv_oppath="${withval}/lib/oprofile"
13707 CPPFLAGS="-I${withval}/include";;
13709 case $llvm_cv_os_type in
13711 if test -n "$llvm_cv_oppath" ; then
13712 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13713 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13714 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13715 if test "${ac_cv_search_bfd_init+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 ac_func_search_save_LIBS=$LIBS
13719 cat >conftest.$ac_ext <<_ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13726 /* Override any GCC internal prototype to avoid an error.
13727 Use char because int might match the return type of a GCC
13728 builtin and then its argument prototype would still apply. */
13736 return bfd_init ();
13741 for ac_lib in '' bfd; do
13742 if test -z "$ac_lib"; then
13743 ac_res="none required"
13746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13748 rm -f conftest.$ac_objext conftest$ac_exeext
13749 if { (ac_try="$ac_link"
13750 case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_link") 2>conftest.er1
13757 grep -v '^ *+' conftest.er1 >conftest.err
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; } &&
13772 { ac_try='test -s conftest$ac_exeext'
13773 { (case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_try") 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 ac_cv_search_bfd_init=$ac_res
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13790 rm -f core conftest.err conftest.$ac_objext \
13792 if test "${ac_cv_search_bfd_init+set}" = set; then
13796 if test "${ac_cv_search_bfd_init+set}" = set; then
13799 ac_cv_search_bfd_init=no
13801 rm conftest.$ac_ext
13802 LIBS=$ac_func_search_save_LIBS
13804 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13805 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13806 ac_res=$ac_cv_search_bfd_init
13807 if test "$ac_res" != no; then
13808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13812 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13813 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13814 if test "${ac_cv_search_op_open_agent+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 ac_func_search_save_LIBS=$LIBS
13818 cat >conftest.$ac_ext <<_ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13825 /* Override any GCC internal prototype to avoid an error.
13826 Use char because int might match the return type of a GCC
13827 builtin and then its argument prototype would still apply. */
13831 char op_open_agent ();
13835 return op_open_agent ();
13840 for ac_lib in '' opagent; do
13841 if test -z "$ac_lib"; then
13842 ac_res="none required"
13845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13847 rm -f conftest.$ac_objext conftest$ac_exeext
13848 if { (ac_try="$ac_link"
13849 case "(($ac_try" in
13850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13854 (eval "$ac_link") 2>conftest.er1
13856 grep -v '^ *+' conftest.er1 >conftest.err
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13862 { (case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_try") 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; } &&
13871 { ac_try='test -s conftest$ac_exeext'
13872 { (case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_try") 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13881 ac_cv_search_op_open_agent=$ac_res
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13889 rm -f core conftest.err conftest.$ac_objext \
13891 if test "${ac_cv_search_op_open_agent+set}" = set; then
13895 if test "${ac_cv_search_op_open_agent+set}" = set; then
13898 ac_cv_search_op_open_agent=no
13900 rm conftest.$ac_ext
13901 LIBS=$ac_func_search_save_LIBS
13903 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13904 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13905 ac_res=$ac_cv_search_op_open_agent
13906 if test "$ac_res" != no; then
13907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13911 echo "Error! You need to have libopagent around."
13916 if test "${ac_cv_header_opagent_h+set}" = set; then
13917 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13918 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13919 if test "${ac_cv_header_opagent_h+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13923 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13925 # Is the header compilable?
13926 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13927 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13928 cat >conftest.$ac_ext <<_ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 $ac_includes_default
13935 #include <opagent.h>
13937 rm -f conftest.$ac_objext
13938 if { (ac_try="$ac_compile"
13939 case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_compile") 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13952 { (case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957 (eval "$ac_try") 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; } &&
13961 { ac_try='test -s conftest.$ac_objext'
13962 { (case "(($ac_try" in
13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964 *) ac_try_echo=$ac_try;;
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967 (eval "$ac_try") 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_header_compiler=yes
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ac_header_compiler=no
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13981 echo "${ECHO_T}$ac_header_compiler" >&6; }
13983 # Is the header present?
13984 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13985 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13986 cat >conftest.$ac_ext <<_ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13992 #include <opagent.h>
13994 if { (ac_try="$ac_cpp conftest.$ac_ext"
13995 case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14002 grep -v '^ *+' conftest.er1 >conftest.err
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } >/dev/null; then
14007 if test -s conftest.err; then
14008 ac_cpp_err=$ac_c_preproc_warn_flag
14009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14016 if test -z "$ac_cpp_err"; then
14017 ac_header_preproc=yes
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 ac_header_preproc=no
14025 rm -f conftest.err conftest.$ac_ext
14026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14027 echo "${ECHO_T}$ac_header_preproc" >&6; }
14029 # So? What about this header?
14030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14032 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14033 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14035 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14036 ac_header_preproc=yes
14039 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14040 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14042 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14044 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14046 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14048 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14050 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14052 ## ------------------------------------ ##
14053 ## Report this to http://llvm.org/bugs/ ##
14054 ## ------------------------------------ ##
14056 ) | sed "s/^/$as_me: WARNING: /" >&2
14059 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14060 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14061 if test "${ac_cv_header_opagent_h+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 ac_cv_header_opagent_h=$ac_header_preproc
14066 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14067 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14070 if test $ac_cv_header_opagent_h = yes; then
14074 echo "Error! You need to have opagent.h around."
14082 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14083 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14084 { (exit 1); exit 1; }; } ;;
14095 cat >>confdefs.h <<_ACEOF
14096 #define LLVM_USE_OPROFILE $USE_OPROFILE
14101 # Check whether --with-intel-jitevents was given.
14102 if test "${with_intel_jitevents+set}" = set; then
14103 withval=$with_intel_jitevents;
14105 yes) USE_INTEL_JITEVENTS=1
14107 no) USE_INTEL_JITEVENTS=0
14109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14110 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14111 { (exit 1); exit 1; }; };;
14114 case $llvm_cv_os_type in
14115 Linux|Win32|Cygwin|MingW) ;;
14116 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14117 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14118 { (exit 1); exit 1; }; };;
14121 case "$llvm_cv_target_arch" in
14123 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14124 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14125 { (exit 1); exit 1; }; };;
14130 USE_INTEL_JITEVENTS=0
14136 cat >>confdefs.h <<_ACEOF
14137 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14141 for ac_prog in xml2-config
14143 # Extract the first word of "$ac_prog", so it can be a program name with args.
14144 set dummy $ac_prog; ac_word=$2
14145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14147 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14150 if test -n "$XML2CONFIG"; then
14151 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 for as_dir in $PATH
14157 test -z "$as_dir" && as_dir=.
14158 for ac_exec_ext in '' $ac_executable_extensions; do
14159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14160 ac_cv_prog_XML2CONFIG="$ac_prog"
14161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14170 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14171 if test -n "$XML2CONFIG"; then
14172 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14173 echo "${ECHO_T}$XML2CONFIG" >&6; }
14175 { echo "$as_me:$LINENO: result: no" >&5
14176 echo "${ECHO_T}no" >&6; }
14180 test -n "$XML2CONFIG" && break
14184 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14185 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14186 if test "x$XML2CONFIG" = "x"; then
14187 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14188 echo "${ECHO_T}xml2-config not found" >&6; }
14190 LIBXML2_INC=`$XML2CONFIG --cflags`
14191 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14192 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14193 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14194 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14195 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 ac_check_lib_save_LIBS=$LIBS
14199 LIBS="-lxml2 $LIBS"
14200 cat >conftest.$ac_ext <<_ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14207 /* Override any GCC internal prototype to avoid an error.
14208 Use char because int might match the return type of a GCC
14209 builtin and then its argument prototype would still apply. */
14213 char xmlReadFile ();
14217 return xmlReadFile ();
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (ac_try="$ac_link"
14224 case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_link") 2>conftest.er1
14231 grep -v '^ *+' conftest.er1 >conftest.err
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14237 { (case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_try") 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest$ac_exeext'
14247 { (case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_try") 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_cv_lib_xml2_xmlReadFile=yes
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_cv_lib_xml2_xmlReadFile=no
14264 rm -f core conftest.err conftest.$ac_objext \
14265 conftest$ac_exeext conftest.$ac_ext
14266 LIBS=$ac_check_lib_save_LIBS
14268 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14269 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14270 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14272 cat >>confdefs.h <<\_ACEOF
14273 #define CLANG_HAVE_LIBXML 1
14276 LIBXML2_LIBS="-lxml2"
14289 ac_header_dirent=no
14290 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14291 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14292 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14293 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 cat >conftest.$ac_ext <<_ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 #include <sys/types.h>
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_compile") 2>conftest.er1
14324 grep -v '^ *+' conftest.er1 >conftest.err
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14330 { (case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_try") 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; } &&
14339 { ac_try='test -s conftest.$ac_objext'
14340 { (case "(($ac_try" in
14341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14342 *) ac_try_echo=$ac_try;;
14344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14345 (eval "$ac_try") 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; }; then
14349 eval "$as_ac_Header=yes"
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 eval "$as_ac_Header=no"
14357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14359 ac_res=`eval echo '${'$as_ac_Header'}'`
14360 { echo "$as_me:$LINENO: result: $ac_res" >&5
14361 echo "${ECHO_T}$ac_res" >&6; }
14362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14363 cat >>confdefs.h <<_ACEOF
14364 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14367 ac_header_dirent=$ac_hdr; break
14371 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14372 if test $ac_header_dirent = dirent.h; then
14373 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14374 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14375 if test "${ac_cv_search_opendir+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 ac_func_search_save_LIBS=$LIBS
14379 cat >conftest.$ac_ext <<_ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14386 /* Override any GCC internal prototype to avoid an error.
14387 Use char because int might match the return type of a GCC
14388 builtin and then its argument prototype would still apply. */
14401 for ac_lib in '' dir; do
14402 if test -z "$ac_lib"; then
14403 ac_res="none required"
14406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (ac_try="$ac_link"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_link") 2>conftest.er1
14417 grep -v '^ *+' conftest.er1 >conftest.err
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14423 { (case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_try") 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest$ac_exeext'
14433 { (case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_try") 2>&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 ac_cv_search_opendir=$ac_res
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14450 rm -f core conftest.err conftest.$ac_objext \
14452 if test "${ac_cv_search_opendir+set}" = set; then
14456 if test "${ac_cv_search_opendir+set}" = set; then
14459 ac_cv_search_opendir=no
14461 rm conftest.$ac_ext
14462 LIBS=$ac_func_search_save_LIBS
14464 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14465 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14466 ac_res=$ac_cv_search_opendir
14467 if test "$ac_res" != no; then
14468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14473 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14474 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14475 if test "${ac_cv_search_opendir+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 ac_func_search_save_LIBS=$LIBS
14479 cat >conftest.$ac_ext <<_ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14486 /* Override any GCC internal prototype to avoid an error.
14487 Use char because int might match the return type of a GCC
14488 builtin and then its argument prototype would still apply. */
14501 for ac_lib in '' x; do
14502 if test -z "$ac_lib"; then
14503 ac_res="none required"
14506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (ac_try="$ac_link"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_link") 2>conftest.er1
14517 grep -v '^ *+' conftest.er1 >conftest.err
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14523 { (case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_try") 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest$ac_exeext'
14533 { (case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_try") 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_search_opendir=$ac_res
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14550 rm -f core conftest.err conftest.$ac_objext \
14552 if test "${ac_cv_search_opendir+set}" = set; then
14556 if test "${ac_cv_search_opendir+set}" = set; then
14559 ac_cv_search_opendir=no
14561 rm conftest.$ac_ext
14562 LIBS=$ac_func_search_save_LIBS
14564 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14565 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14566 ac_res=$ac_cv_search_opendir
14567 if test "$ac_res" != no; then
14568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14574 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14575 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14576 if test "${ac_cv_header_mmap_anon+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 ac_cpp='$CPP $CPPFLAGS'
14581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14585 cat >conftest.$ac_ext <<_ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 #include <sys/mman.h>
14592 #include <unistd.h>
14597 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14602 rm -f conftest.$ac_objext
14603 if { (ac_try="$ac_compile"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_compile") 2>conftest.er1
14611 grep -v '^ *+' conftest.er1 >conftest.err
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } &&
14616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14617 { (case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_try") 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try='test -s conftest.$ac_objext'
14627 { (case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_try") 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_cv_header_mmap_anon=yes
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_cv_header_mmap_anon=no
14644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14646 ac_cpp='$CPP $CPPFLAGS'
14647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14653 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14654 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14655 if test "$ac_cv_header_mmap_anon" = yes; then
14657 cat >>confdefs.h <<\_ACEOF
14658 #define HAVE_MMAP_ANONYMOUS 1
14663 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14664 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14665 if test "${ac_cv_header_stat_broken+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 cat >conftest.$ac_ext <<_ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 #include <sys/types.h>
14675 #include <sys/stat.h>
14677 #if defined S_ISBLK && defined S_IFDIR
14678 # if S_ISBLK (S_IFDIR)
14683 #if defined S_ISBLK && defined S_IFCHR
14684 # if S_ISBLK (S_IFCHR)
14689 #if defined S_ISLNK && defined S_IFREG
14690 # if S_ISLNK (S_IFREG)
14695 #if defined S_ISSOCK && defined S_IFREG
14696 # if S_ISSOCK (S_IFREG)
14702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14703 $EGREP "You lose" >/dev/null 2>&1; then
14704 ac_cv_header_stat_broken=yes
14706 ac_cv_header_stat_broken=no
14711 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14712 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14713 if test $ac_cv_header_stat_broken = yes; then
14715 cat >>confdefs.h <<\_ACEOF
14716 #define STAT_MACROS_BROKEN 1
14721 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14722 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14723 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 #include <sys/types.h>
14733 #include <sys/wait.h>
14734 #ifndef WEXITSTATUS
14735 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14738 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14746 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14751 rm -f conftest.$ac_objext
14752 if { (ac_try="$ac_compile"
14753 case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_compile") 2>conftest.er1
14760 grep -v '^ *+' conftest.er1 >conftest.err
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14766 { (case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_try") 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest.$ac_objext'
14776 { (case "(($ac_try" in
14777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778 *) ac_try_echo=$ac_try;;
14780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781 (eval "$ac_try") 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14785 ac_cv_header_sys_wait_h=yes
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14790 ac_cv_header_sys_wait_h=no
14793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14796 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14797 if test $ac_cv_header_sys_wait_h = yes; then
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_SYS_WAIT_H 1
14805 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14806 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14807 if test "${ac_cv_header_time+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 cat >conftest.$ac_ext <<_ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 #include <sys/types.h>
14817 #include <sys/time.h>
14823 if ((struct tm *) 0)
14829 rm -f conftest.$ac_objext
14830 if { (ac_try="$ac_compile"
14831 case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_compile") 2>conftest.er1
14838 grep -v '^ *+' conftest.er1 >conftest.err
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14844 { (case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_try") 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_try") 2>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 ac_cv_header_time=yes
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 ac_cv_header_time=no
14871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14873 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14874 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14875 if test $ac_cv_header_time = yes; then
14877 cat >>confdefs.h <<\_ACEOF
14878 #define TIME_WITH_SYS_TIME 1
14885 ac_cpp='$CXXCPP $CPPFLAGS'
14886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14891 ac_cpp='$CXXCPP $CPPFLAGS'
14892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14895 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14896 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14897 if test -z "$CXXCPP"; then
14898 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 # Double quotes because CXXCPP needs to be expanded
14902 for CXXCPP in "$CXX -E" "/lib/cpp"
14904 ac_preproc_ok=false
14905 for ac_cxx_preproc_warn_flag in '' yes
14907 # Use a header file that comes with gcc, so configuring glibc
14908 # with a fresh cross-compiler works.
14909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14910 # <limits.h> exists even on freestanding compilers.
14911 # On the NeXT, cc -E runs the code through the compiler's parser,
14912 # not just through cpp. "Syntax error" is here to catch this case.
14913 cat >conftest.$ac_ext <<_ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14920 # include <limits.h>
14922 # include <assert.h>
14926 if { (ac_try="$ac_cpp conftest.$ac_ext"
14927 case "(($ac_try" in
14928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14929 *) ac_try_echo=$ac_try;;
14931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14934 grep -v '^ *+' conftest.er1 >conftest.err
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } >/dev/null; then
14939 if test -s conftest.err; then
14940 ac_cpp_err=$ac_cxx_preproc_warn_flag
14941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14948 if test -z "$ac_cpp_err"; then
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 # Broken: fails on valid input.
14958 rm -f conftest.err conftest.$ac_ext
14960 # OK, works on sane cases. Now check whether nonexistent headers
14961 # can be detected and how.
14962 cat >conftest.$ac_ext <<_ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 #include <ac_nonexistent.h>
14970 if { (ac_try="$ac_cpp conftest.$ac_ext"
14971 case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14978 grep -v '^ *+' conftest.er1 >conftest.err
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } >/dev/null; then
14983 if test -s conftest.err; then
14984 ac_cpp_err=$ac_cxx_preproc_warn_flag
14985 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14992 if test -z "$ac_cpp_err"; then
14993 # Broken: success on invalid input.
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14999 # Passes both tests.
15004 rm -f conftest.err conftest.$ac_ext
15007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15008 rm -f conftest.err conftest.$ac_ext
15009 if $ac_preproc_ok; then
15014 ac_cv_prog_CXXCPP=$CXXCPP
15017 CXXCPP=$ac_cv_prog_CXXCPP
15019 ac_cv_prog_CXXCPP=$CXXCPP
15021 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15022 echo "${ECHO_T}$CXXCPP" >&6; }
15023 ac_preproc_ok=false
15024 for ac_cxx_preproc_warn_flag in '' yes
15026 # Use a header file that comes with gcc, so configuring glibc
15027 # with a fresh cross-compiler works.
15028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15029 # <limits.h> exists even on freestanding compilers.
15030 # On the NeXT, cc -E runs the code through the compiler's parser,
15031 # not just through cpp. "Syntax error" is here to catch this case.
15032 cat >conftest.$ac_ext <<_ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15039 # include <limits.h>
15041 # include <assert.h>
15045 if { (ac_try="$ac_cpp conftest.$ac_ext"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15053 grep -v '^ *+' conftest.er1 >conftest.err
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } >/dev/null; then
15058 if test -s conftest.err; then
15059 ac_cpp_err=$ac_cxx_preproc_warn_flag
15060 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15067 if test -z "$ac_cpp_err"; then
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 # Broken: fails on valid input.
15077 rm -f conftest.err conftest.$ac_ext
15079 # OK, works on sane cases. Now check whether nonexistent headers
15080 # can be detected and how.
15081 cat >conftest.$ac_ext <<_ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 #include <ac_nonexistent.h>
15089 if { (ac_try="$ac_cpp conftest.$ac_ext"
15090 case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15097 grep -v '^ *+' conftest.er1 >conftest.err
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } >/dev/null; then
15102 if test -s conftest.err; then
15103 ac_cpp_err=$ac_cxx_preproc_warn_flag
15104 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15111 if test -z "$ac_cpp_err"; then
15112 # Broken: success on invalid input.
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 # Passes both tests.
15123 rm -f conftest.err conftest.$ac_ext
15126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15127 rm -f conftest.err conftest.$ac_ext
15128 if $ac_preproc_ok; then
15131 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15132 See \`config.log' for more details." >&5
15133 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15134 See \`config.log' for more details." >&2;}
15135 { (exit 1); exit 1; }; }
15139 ac_cpp='$CXXCPP $CPPFLAGS'
15140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15146 for ac_header in cxxabi.h
15148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 ac_res=`eval echo '${'$as_ac_Header'}'`
15156 { echo "$as_me:$LINENO: result: $ac_res" >&5
15157 echo "${ECHO_T}$ac_res" >&6; }
15159 # Is the header compilable?
15160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15162 cat >conftest.$ac_ext <<_ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168 $ac_includes_default
15169 #include <$ac_header>
15171 rm -f conftest.$ac_objext
15172 if { (ac_try="$ac_compile"
15173 case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15178 (eval "$ac_compile") 2>conftest.er1
15180 grep -v '^ *+' conftest.er1 >conftest.err
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15186 { (case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_try") 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest.$ac_objext'
15196 { (case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_try") 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 ac_header_compiler=yes
15207 echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15210 ac_header_compiler=no
15213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15215 echo "${ECHO_T}$ac_header_compiler" >&6; }
15217 # Is the header present?
15218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15220 cat >conftest.$ac_ext <<_ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 #include <$ac_header>
15228 if { (ac_try="$ac_cpp conftest.$ac_ext"
15229 case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15236 grep -v '^ *+' conftest.er1 >conftest.err
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } >/dev/null; then
15241 if test -s conftest.err; then
15242 ac_cpp_err=$ac_cxx_preproc_warn_flag
15243 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15250 if test -z "$ac_cpp_err"; then
15251 ac_header_preproc=yes
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ac_header_preproc=no
15259 rm -f conftest.err conftest.$ac_ext
15260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15261 echo "${ECHO_T}$ac_header_preproc" >&6; }
15263 # So? What about this header?
15264 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15270 ac_header_preproc=yes
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15286 ## ------------------------------------ ##
15287 ## Report this to http://llvm.org/bugs/ ##
15288 ## ------------------------------------ ##
15290 ) | sed "s/^/$as_me: WARNING: /" >&2
15293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 eval "$as_ac_Header=\$ac_header_preproc"
15300 ac_res=`eval echo '${'$as_ac_Header'}'`
15301 { echo "$as_me:$LINENO: result: $ac_res" >&5
15302 echo "${ECHO_T}$ac_res" >&6; }
15305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15306 cat >>confdefs.h <<_ACEOF
15307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15315 ac_cpp='$CPP $CPPFLAGS'
15316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15326 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 ac_res=`eval echo '${'$as_ac_Header'}'`
15336 { echo "$as_me:$LINENO: result: $ac_res" >&5
15337 echo "${ECHO_T}$ac_res" >&6; }
15339 # Is the header compilable?
15340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15342 cat >conftest.$ac_ext <<_ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 $ac_includes_default
15349 #include <$ac_header>
15351 rm -f conftest.$ac_objext
15352 if { (ac_try="$ac_compile"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_compile") 2>conftest.er1
15360 grep -v '^ *+' conftest.er1 >conftest.err
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15366 { (case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_try") 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest.$ac_objext'
15376 { (case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_try") 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_header_compiler=yes
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ac_header_compiler=no
15393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15395 echo "${ECHO_T}$ac_header_compiler" >&6; }
15397 # Is the header present?
15398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15400 cat >conftest.$ac_ext <<_ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 #include <$ac_header>
15408 if { (ac_try="$ac_cpp conftest.$ac_ext"
15409 case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15416 grep -v '^ *+' conftest.er1 >conftest.err
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } >/dev/null; then
15421 if test -s conftest.err; then
15422 ac_cpp_err=$ac_c_preproc_warn_flag
15423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15430 if test -z "$ac_cpp_err"; then
15431 ac_header_preproc=yes
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15436 ac_header_preproc=no
15439 rm -f conftest.err conftest.$ac_ext
15440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15441 echo "${ECHO_T}$ac_header_preproc" >&6; }
15443 # So? What about this header?
15444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15450 ac_header_preproc=yes
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15466 ## ------------------------------------ ##
15467 ## Report this to http://llvm.org/bugs/ ##
15468 ## ------------------------------------ ##
15470 ) | sed "s/^/$as_me: WARNING: /" >&2
15473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15478 eval "$as_ac_Header=\$ac_header_preproc"
15480 ac_res=`eval echo '${'$as_ac_Header'}'`
15481 { echo "$as_me:$LINENO: result: $ac_res" >&5
15482 echo "${ECHO_T}$ac_res" >&6; }
15485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15486 cat >>confdefs.h <<_ACEOF
15487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15500 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15509 ac_res=`eval echo '${'$as_ac_Header'}'`
15510 { echo "$as_me:$LINENO: result: $ac_res" >&5
15511 echo "${ECHO_T}$ac_res" >&6; }
15513 # Is the header compilable?
15514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15516 cat >conftest.$ac_ext <<_ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h. */
15522 $ac_includes_default
15523 #include <$ac_header>
15525 rm -f conftest.$ac_objext
15526 if { (ac_try="$ac_compile"
15527 case "(($ac_try" in
15528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529 *) ac_try_echo=$ac_try;;
15531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532 (eval "$ac_compile") 2>conftest.er1
15534 grep -v '^ *+' conftest.er1 >conftest.err
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15540 { (case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_try") 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; } &&
15549 { ac_try='test -s conftest.$ac_objext'
15550 { (case "(($ac_try" in
15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552 *) ac_try_echo=$ac_try;;
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555 (eval "$ac_try") 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_header_compiler=yes
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ac_header_compiler=no
15567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15569 echo "${ECHO_T}$ac_header_compiler" >&6; }
15571 # Is the header present?
15572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 #include <$ac_header>
15582 if { (ac_try="$ac_cpp conftest.$ac_ext"
15583 case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15590 grep -v '^ *+' conftest.er1 >conftest.err
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } >/dev/null; then
15595 if test -s conftest.err; then
15596 ac_cpp_err=$ac_c_preproc_warn_flag
15597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15604 if test -z "$ac_cpp_err"; then
15605 ac_header_preproc=yes
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_header_preproc=no
15613 rm -f conftest.err conftest.$ac_ext
15614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15615 echo "${ECHO_T}$ac_header_preproc" >&6; }
15617 # So? What about this header?
15618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15624 ac_header_preproc=yes
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15640 ## ------------------------------------ ##
15641 ## Report this to http://llvm.org/bugs/ ##
15642 ## ------------------------------------ ##
15644 ) | sed "s/^/$as_me: WARNING: /" >&2
15647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 eval "$as_ac_Header=\$ac_header_preproc"
15654 ac_res=`eval echo '${'$as_ac_Header'}'`
15655 { echo "$as_me:$LINENO: result: $ac_res" >&5
15656 echo "${ECHO_T}$ac_res" >&6; }
15659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15660 cat >>confdefs.h <<_ACEOF
15661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15670 for ac_header in utime.h windows.h
15672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 ac_res=`eval echo '${'$as_ac_Header'}'`
15680 { echo "$as_me:$LINENO: result: $ac_res" >&5
15681 echo "${ECHO_T}$ac_res" >&6; }
15683 # Is the header compilable?
15684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15686 cat >conftest.$ac_ext <<_ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h. */
15692 $ac_includes_default
15693 #include <$ac_header>
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_compile") 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15710 { (case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_try") 2>&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; } &&
15719 { ac_try='test -s conftest.$ac_objext'
15720 { (case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_try") 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_header_compiler=yes
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15734 ac_header_compiler=no
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15739 echo "${ECHO_T}$ac_header_compiler" >&6; }
15741 # Is the header present?
15742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15744 cat >conftest.$ac_ext <<_ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15750 #include <$ac_header>
15752 if { (ac_try="$ac_cpp conftest.$ac_ext"
15753 case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15760 grep -v '^ *+' conftest.er1 >conftest.err
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } >/dev/null; then
15765 if test -s conftest.err; then
15766 ac_cpp_err=$ac_c_preproc_warn_flag
15767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15774 if test -z "$ac_cpp_err"; then
15775 ac_header_preproc=yes
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_header_preproc=no
15783 rm -f conftest.err conftest.$ac_ext
15784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785 echo "${ECHO_T}$ac_header_preproc" >&6; }
15787 # So? What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15794 ac_header_preproc=yes
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15810 ## ------------------------------------ ##
15811 ## Report this to http://llvm.org/bugs/ ##
15812 ## ------------------------------------ ##
15814 ) | sed "s/^/$as_me: WARNING: /" >&2
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 eval "$as_ac_Header=\$ac_header_preproc"
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825 { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830 cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15843 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 ac_res=`eval echo '${'$as_ac_Header'}'`
15853 { echo "$as_me:$LINENO: result: $ac_res" >&5
15854 echo "${ECHO_T}$ac_res" >&6; }
15856 # Is the header compilable?
15857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15859 cat >conftest.$ac_ext <<_ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15865 $ac_includes_default
15866 #include <$ac_header>
15868 rm -f conftest.$ac_objext
15869 if { (ac_try="$ac_compile"
15870 case "(($ac_try" in
15871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872 *) ac_try_echo=$ac_try;;
15874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875 (eval "$ac_compile") 2>conftest.er1
15877 grep -v '^ *+' conftest.er1 >conftest.err
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
15882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15883 { (case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_try") 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } &&
15892 { ac_try='test -s conftest.$ac_objext'
15893 { (case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_try") 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 ac_header_compiler=yes
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15907 ac_header_compiler=no
15910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15912 echo "${ECHO_T}$ac_header_compiler" >&6; }
15914 # Is the header present?
15915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15917 cat >conftest.$ac_ext <<_ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 #include <$ac_header>
15925 if { (ac_try="$ac_cpp conftest.$ac_ext"
15926 case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15933 grep -v '^ *+' conftest.er1 >conftest.err
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } >/dev/null; then
15938 if test -s conftest.err; then
15939 ac_cpp_err=$ac_c_preproc_warn_flag
15940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15947 if test -z "$ac_cpp_err"; then
15948 ac_header_preproc=yes
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15953 ac_header_preproc=no
15956 rm -f conftest.err conftest.$ac_ext
15957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15958 echo "${ECHO_T}$ac_header_preproc" >&6; }
15960 # So? What about this header?
15961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15967 ac_header_preproc=yes
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15983 ## ------------------------------------ ##
15984 ## Report this to http://llvm.org/bugs/ ##
15985 ## ------------------------------------ ##
15987 ) | sed "s/^/$as_me: WARNING: /" >&2
15990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 eval "$as_ac_Header=\$ac_header_preproc"
15997 ac_res=`eval echo '${'$as_ac_Header'}'`
15998 { echo "$as_me:$LINENO: result: $ac_res" >&5
15999 echo "${ECHO_T}$ac_res" >&6; }
16002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16003 cat >>confdefs.h <<_ACEOF
16004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16015 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 ac_res=`eval echo '${'$as_ac_Header'}'`
16025 { echo "$as_me:$LINENO: result: $ac_res" >&5
16026 echo "${ECHO_T}$ac_res" >&6; }
16028 # Is the header compilable?
16029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16031 cat >conftest.$ac_ext <<_ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 $ac_includes_default
16038 #include <$ac_header>
16040 rm -f conftest.$ac_objext
16041 if { (ac_try="$ac_compile"
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_compile") 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); } &&
16054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16055 { (case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060 (eval "$ac_try") 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; } &&
16064 { ac_try='test -s conftest.$ac_objext'
16065 { (case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_try") 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }; then
16074 ac_header_compiler=yes
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 ac_header_compiler=no
16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16084 echo "${ECHO_T}$ac_header_compiler" >&6; }
16086 # Is the header present?
16087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 #include <$ac_header>
16097 if { (ac_try="$ac_cpp conftest.$ac_ext"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16105 grep -v '^ *+' conftest.er1 >conftest.err
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } >/dev/null; then
16110 if test -s conftest.err; then
16111 ac_cpp_err=$ac_c_preproc_warn_flag
16112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16119 if test -z "$ac_cpp_err"; then
16120 ac_header_preproc=yes
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_header_preproc=no
16128 rm -f conftest.err conftest.$ac_ext
16129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16130 echo "${ECHO_T}$ac_header_preproc" >&6; }
16132 # So? What about this header?
16133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16139 ac_header_preproc=yes
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16155 ## ------------------------------------ ##
16156 ## Report this to http://llvm.org/bugs/ ##
16157 ## ------------------------------------ ##
16159 ) | sed "s/^/$as_me: WARNING: /" >&2
16162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 eval "$as_ac_Header=\$ac_header_preproc"
16169 ac_res=`eval echo '${'$as_ac_Header'}'`
16170 { echo "$as_me:$LINENO: result: $ac_res" >&5
16171 echo "${ECHO_T}$ac_res" >&6; }
16174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16175 cat >>confdefs.h <<_ACEOF
16176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16184 for ac_header in valgrind/valgrind.h
16186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 ac_res=`eval echo '${'$as_ac_Header'}'`
16194 { echo "$as_me:$LINENO: result: $ac_res" >&5
16195 echo "${ECHO_T}$ac_res" >&6; }
16197 # Is the header compilable?
16198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16200 cat >conftest.$ac_ext <<_ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h. */
16206 $ac_includes_default
16207 #include <$ac_header>
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_compile") 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
16223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16224 { (case "(($ac_try" in
16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226 *) ac_try_echo=$ac_try;;
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229 (eval "$ac_try") 2>&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; } &&
16233 { ac_try='test -s conftest.$ac_objext'
16234 { (case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_try") 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_header_compiler=yes
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16248 ac_header_compiler=no
16251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16253 echo "${ECHO_T}$ac_header_compiler" >&6; }
16255 # Is the header present?
16256 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16258 cat >conftest.$ac_ext <<_ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 #include <$ac_header>
16266 if { (ac_try="$ac_cpp conftest.$ac_ext"
16267 case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16274 grep -v '^ *+' conftest.er1 >conftest.err
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } >/dev/null; then
16279 if test -s conftest.err; then
16280 ac_cpp_err=$ac_c_preproc_warn_flag
16281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16288 if test -z "$ac_cpp_err"; then
16289 ac_header_preproc=yes
16291 echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16294 ac_header_preproc=no
16297 rm -f conftest.err conftest.$ac_ext
16298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16299 echo "${ECHO_T}$ac_header_preproc" >&6; }
16301 # So? What about this header?
16302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16308 ac_header_preproc=yes
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16324 ## ------------------------------------ ##
16325 ## Report this to http://llvm.org/bugs/ ##
16326 ## ------------------------------------ ##
16328 ) | sed "s/^/$as_me: WARNING: /" >&2
16331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 eval "$as_ac_Header=\$ac_header_preproc"
16338 ac_res=`eval echo '${'$as_ac_Header'}'`
16339 { echo "$as_me:$LINENO: result: $ac_res" >&5
16340 echo "${ECHO_T}$ac_res" >&6; }
16343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16344 cat >>confdefs.h <<_ACEOF
16345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16353 for ac_header in fenv.h
16355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16366 # Is the header compilable?
16367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16369 cat >conftest.$ac_ext <<_ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 $ac_includes_default
16376 #include <$ac_header>
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_compile") 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
16403 { (case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_try") 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_header_compiler=yes
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_header_compiler=no
16420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16422 echo "${ECHO_T}$ac_header_compiler" >&6; }
16424 # Is the header present?
16425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 #include <$ac_header>
16435 if { (ac_try="$ac_cpp conftest.$ac_ext"
16436 case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16443 grep -v '^ *+' conftest.er1 >conftest.err
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } >/dev/null; then
16448 if test -s conftest.err; then
16449 ac_cpp_err=$ac_c_preproc_warn_flag
16450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16457 if test -z "$ac_cpp_err"; then
16458 ac_header_preproc=yes
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16463 ac_header_preproc=no
16466 rm -f conftest.err conftest.$ac_ext
16467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16468 echo "${ECHO_T}$ac_header_preproc" >&6; }
16470 # So? What about this header?
16471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16477 ac_header_preproc=yes
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16493 ## ------------------------------------ ##
16494 ## Report this to http://llvm.org/bugs/ ##
16495 ## ------------------------------------ ##
16497 ) | sed "s/^/$as_me: WARNING: /" >&2
16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 eval "$as_ac_Header=\$ac_header_preproc"
16507 ac_res=`eval echo '${'$as_ac_Header'}'`
16508 { echo "$as_me:$LINENO: result: $ac_res" >&5
16509 echo "${ECHO_T}$ac_res" >&6; }
16512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16513 cat >>confdefs.h <<_ACEOF
16514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16521 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16522 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16523 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 cat >conftest.$ac_ext <<_ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16537 #ifndef FE_ALL_EXCEPT
16538 char *p = (char *) FE_ALL_EXCEPT;
16546 rm -f conftest.$ac_objext
16547 if { (ac_try="$ac_compile"
16548 case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_compile") 2>conftest.er1
16555 grep -v '^ *+' conftest.er1 >conftest.err
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16561 { (case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_try") 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest.$ac_objext'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_cv_have_decl_FE_ALL_EXCEPT=no
16588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16591 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16592 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16594 cat >>confdefs.h <<_ACEOF
16595 #define HAVE_DECL_FE_ALL_EXCEPT 1
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_DECL_FE_ALL_EXCEPT 0
16606 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16607 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16608 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 cat >conftest.$ac_ext <<_ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16623 char *p = (char *) FE_INEXACT;
16631 rm -f conftest.$ac_objext
16632 if { (ac_try="$ac_compile"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_compile") 2>conftest.er1
16640 grep -v '^ *+' conftest.er1 >conftest.err
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_cv_have_decl_FE_INEXACT=yes
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_cv_have_decl_FE_INEXACT=no
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16676 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16677 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16679 cat >>confdefs.h <<_ACEOF
16680 #define HAVE_DECL_FE_INEXACT 1
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_DECL_FE_INEXACT 0
16693 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16695 for ac_header in pthread.h
16697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 ac_res=`eval echo '${'$as_ac_Header'}'`
16705 { echo "$as_me:$LINENO: result: $ac_res" >&5
16706 echo "${ECHO_T}$ac_res" >&6; }
16708 # Is the header compilable?
16709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16711 cat >conftest.$ac_ext <<_ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 $ac_includes_default
16718 #include <$ac_header>
16720 rm -f conftest.$ac_objext
16721 if { (ac_try="$ac_compile"
16722 case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_compile") 2>conftest.er1
16729 grep -v '^ *+' conftest.er1 >conftest.err
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16735 { (case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_try") 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_header_compiler=yes
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_header_compiler=no
16762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16764 echo "${ECHO_T}$ac_header_compiler" >&6; }
16766 # Is the header present?
16767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16769 cat >conftest.$ac_ext <<_ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775 #include <$ac_header>
16777 if { (ac_try="$ac_cpp conftest.$ac_ext"
16778 case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16785 grep -v '^ *+' conftest.er1 >conftest.err
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } >/dev/null; then
16790 if test -s conftest.err; then
16791 ac_cpp_err=$ac_c_preproc_warn_flag
16792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16799 if test -z "$ac_cpp_err"; then
16800 ac_header_preproc=yes
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ac_header_preproc=no
16808 rm -f conftest.err conftest.$ac_ext
16809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16810 echo "${ECHO_T}$ac_header_preproc" >&6; }
16812 # So? What about this header?
16813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16819 ac_header_preproc=yes
16822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16835 ## ------------------------------------ ##
16836 ## Report this to http://llvm.org/bugs/ ##
16837 ## ------------------------------------ ##
16839 ) | sed "s/^/$as_me: WARNING: /" >&2
16842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 eval "$as_ac_Header=\$ac_header_preproc"
16849 ac_res=`eval echo '${'$as_ac_Header'}'`
16850 { echo "$as_me:$LINENO: result: $ac_res" >&5
16851 echo "${ECHO_T}$ac_res" >&6; }
16854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16855 cat >>confdefs.h <<_ACEOF
16856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16871 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16873 for ac_header in zlib.h
16875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 ac_res=`eval echo '${'$as_ac_Header'}'`
16883 { echo "$as_me:$LINENO: result: $ac_res" >&5
16884 echo "${ECHO_T}$ac_res" >&6; }
16886 # Is the header compilable?
16887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16889 cat >conftest.$ac_ext <<_ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16895 $ac_includes_default
16896 #include <$ac_header>
16898 rm -f conftest.$ac_objext
16899 if { (ac_try="$ac_compile"
16900 case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_compile") 2>conftest.er1
16907 grep -v '^ *+' conftest.er1 >conftest.err
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
16912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try='test -s conftest.$ac_objext'
16923 { (case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_try") 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_header_compiler=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_header_compiler=no
16940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16942 echo "${ECHO_T}$ac_header_compiler" >&6; }
16944 # Is the header present?
16945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16947 cat >conftest.$ac_ext <<_ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <$ac_header>
16955 if { (ac_try="$ac_cpp conftest.$ac_ext"
16956 case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16963 grep -v '^ *+' conftest.er1 >conftest.err
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } >/dev/null; then
16968 if test -s conftest.err; then
16969 ac_cpp_err=$ac_c_preproc_warn_flag
16970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16977 if test -z "$ac_cpp_err"; then
16978 ac_header_preproc=yes
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_header_preproc=no
16986 rm -f conftest.err conftest.$ac_ext
16987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16988 echo "${ECHO_T}$ac_header_preproc" >&6; }
16990 # So? What about this header?
16991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16997 ac_header_preproc=yes
17000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17013 ## ------------------------------------ ##
17014 ## Report this to http://llvm.org/bugs/ ##
17015 ## ------------------------------------ ##
17017 ) | sed "s/^/$as_me: WARNING: /" >&2
17020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 eval "$as_ac_Header=\$ac_header_preproc"
17027 ac_res=`eval echo '${'$as_ac_Header'}'`
17028 { echo "$as_me:$LINENO: result: $ac_res" >&5
17029 echo "${ECHO_T}$ac_res" >&6; }
17032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17033 cat >>confdefs.h <<_ACEOF
17034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17050 if test "$llvm_cv_enable_libffi" = "yes" ; then
17053 for ac_header in ffi.h ffi/ffi.h
17055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 ac_res=`eval echo '${'$as_ac_Header'}'`
17063 { echo "$as_me:$LINENO: result: $ac_res" >&5
17064 echo "${ECHO_T}$ac_res" >&6; }
17066 # Is the header compilable?
17067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17069 cat >conftest.$ac_ext <<_ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 $ac_includes_default
17076 #include <$ac_header>
17078 rm -f conftest.$ac_objext
17079 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17087 grep -v '^ *+' conftest.er1 >conftest.err
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } &&
17092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; } &&
17102 { ac_try='test -s conftest.$ac_objext'
17103 { (case "(($ac_try" in
17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_try") 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 ac_header_compiler=yes
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17117 ac_header_compiler=no
17120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17122 echo "${ECHO_T}$ac_header_compiler" >&6; }
17124 # Is the header present?
17125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17127 cat >conftest.$ac_ext <<_ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 #include <$ac_header>
17135 if { (ac_try="$ac_cpp conftest.$ac_ext"
17136 case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17143 grep -v '^ *+' conftest.er1 >conftest.err
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } >/dev/null; then
17148 if test -s conftest.err; then
17149 ac_cpp_err=$ac_c_preproc_warn_flag
17150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17157 if test -z "$ac_cpp_err"; then
17158 ac_header_preproc=yes
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 ac_header_preproc=no
17166 rm -f conftest.err conftest.$ac_ext
17167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17168 echo "${ECHO_T}$ac_header_preproc" >&6; }
17170 # So? What about this header?
17171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17177 ac_header_preproc=yes
17180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17193 ## ------------------------------------ ##
17194 ## Report this to http://llvm.org/bugs/ ##
17195 ## ------------------------------------ ##
17197 ) | sed "s/^/$as_me: WARNING: /" >&2
17200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 eval "$as_ac_Header=\$ac_header_preproc"
17207 ac_res=`eval echo '${'$as_ac_Header'}'`
17208 { echo "$as_me:$LINENO: result: $ac_res" >&5
17209 echo "${ECHO_T}$ac_res" >&6; }
17212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17213 cat >>confdefs.h <<_ACEOF
17214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17224 for ac_header in CrashReporterClient.h
17226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 ac_res=`eval echo '${'$as_ac_Header'}'`
17234 { echo "$as_me:$LINENO: result: $ac_res" >&5
17235 echo "${ECHO_T}$ac_res" >&6; }
17237 # Is the header compilable?
17238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17240 cat >conftest.$ac_ext <<_ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246 $ac_includes_default
17247 #include <$ac_header>
17249 rm -f conftest.$ac_objext
17250 if { (ac_try="$ac_compile"
17251 case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_compile") 2>conftest.er1
17258 grep -v '^ *+' conftest.er1 >conftest.err
17260 cat conftest.err >&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } &&
17263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17264 { (case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_try") 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try='test -s conftest.$ac_objext'
17274 { (case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_try") 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_header_compiler=yes
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17288 ac_header_compiler=no
17291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17293 echo "${ECHO_T}$ac_header_compiler" >&6; }
17295 # Is the header present?
17296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17298 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 #include <$ac_header>
17306 if { (ac_try="$ac_cpp conftest.$ac_ext"
17307 case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17314 grep -v '^ *+' conftest.er1 >conftest.err
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } >/dev/null; then
17319 if test -s conftest.err; then
17320 ac_cpp_err=$ac_c_preproc_warn_flag
17321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17328 if test -z "$ac_cpp_err"; then
17329 ac_header_preproc=yes
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17334 ac_header_preproc=no
17337 rm -f conftest.err conftest.$ac_ext
17338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17339 echo "${ECHO_T}$ac_header_preproc" >&6; }
17341 # So? What about this header?
17342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17348 ac_header_preproc=yes
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17364 ## ------------------------------------ ##
17365 ## Report this to http://llvm.org/bugs/ ##
17366 ## ------------------------------------ ##
17368 ) | sed "s/^/$as_me: WARNING: /" >&2
17371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 eval "$as_ac_Header=\$ac_header_preproc"
17378 ac_res=`eval echo '${'$as_ac_Header'}'`
17379 { echo "$as_me:$LINENO: result: $ac_res" >&5
17380 echo "${ECHO_T}$ac_res" >&6; }
17383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17384 cat >>confdefs.h <<_ACEOF
17385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17393 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17394 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17395 cat >conftest.$ac_ext <<_ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17403 extern const char *__crashreporter_info__;
17405 __crashreporter_info__ = "test";
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_link") 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17426 { (case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431 (eval "$ac_try") 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest$ac_exeext'
17436 { (case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_try") 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17446 { echo "$as_me:$LINENO: result: yes" >&5
17447 echo "${ECHO_T}yes" >&6; }
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_CRASHREPORTER_INFO 1
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17459 { echo "$as_me:$LINENO: result: no" >&5
17460 echo "${ECHO_T}no" >&6; }
17462 cat >>confdefs.h <<\_ACEOF
17463 #define HAVE_CRASHREPORTER_INFO 0
17469 rm -f core conftest.err conftest.$ac_objext \
17470 conftest$ac_exeext conftest.$ac_ext
17474 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17475 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17476 if test "${ac_cv_huge_val_sanity+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 ac_cpp='$CXXCPP $CPPFLAGS'
17482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17486 ac_save_CXXFLAGS=$CXXFLAGS
17487 CXXFLAGS="$CXXFLAGS -pedantic"
17488 if test "$cross_compiling" = yes; then
17489 ac_cv_huge_val_sanity=yes
17491 cat >conftest.$ac_ext <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17501 double x = HUGE_VAL; return x != x;
17506 rm -f conftest$ac_exeext
17507 if { (ac_try="$ac_link"
17508 case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_link") 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17517 { (case "(($ac_try" in
17518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519 *) ac_try_echo=$ac_try;;
17521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17522 (eval "$ac_try") 2>&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; }; then
17526 ac_cv_huge_val_sanity=yes
17528 echo "$as_me: program exited with status $ac_status" >&5
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17532 ( exit $ac_status )
17533 ac_cv_huge_val_sanity=no
17535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17539 CXXFLAGS=$ac_save_CXXFLAGS
17541 ac_cpp='$CPP $CPPFLAGS'
17542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17548 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17549 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17550 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17553 { echo "$as_me:$LINENO: checking for pid_t" >&5
17554 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17555 if test "${ac_cv_type_pid_t+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 cat >conftest.$ac_ext <<_ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 $ac_includes_default
17565 typedef pid_t ac__type_new_;
17569 if ((ac__type_new_ *) 0)
17571 if (sizeof (ac__type_new_))
17577 rm -f conftest.$ac_objext
17578 if { (ac_try="$ac_compile"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_compile") 2>conftest.er1
17586 grep -v '^ *+' conftest.er1 >conftest.err
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17592 { (case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_try") 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; } &&
17601 { ac_try='test -s conftest.$ac_objext'
17602 { (case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_try") 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; }; then
17611 ac_cv_type_pid_t=yes
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17616 ac_cv_type_pid_t=no
17619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17622 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17623 if test $ac_cv_type_pid_t = yes; then
17627 cat >>confdefs.h <<_ACEOF
17633 { echo "$as_me:$LINENO: checking for size_t" >&5
17634 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17635 if test "${ac_cv_type_size_t+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 $ac_includes_default
17645 typedef size_t ac__type_new_;
17649 if ((ac__type_new_ *) 0)
17651 if (sizeof (ac__type_new_))
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_compile") 2>conftest.er1
17666 grep -v '^ *+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest.$ac_objext'
17682 { (case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_try") 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 ac_cv_type_size_t=yes
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 ac_cv_type_size_t=no
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17702 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17703 if test $ac_cv_type_size_t = yes; then
17707 cat >>confdefs.h <<_ACEOF
17708 #define size_t unsigned int
17714 cat >>confdefs.h <<_ACEOF
17715 #define RETSIGTYPE void
17718 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17719 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17720 if test "${ac_cv_struct_tm+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 #include <sys/types.h>
17735 struct tm *tp; tp->tm_sec;
17740 rm -f conftest.$ac_objext
17741 if { (ac_try="$ac_compile"
17742 case "(($ac_try" in
17743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744 *) ac_try_echo=$ac_try;;
17746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747 (eval "$ac_compile") 2>conftest.er1
17749 grep -v '^ *+' conftest.er1 >conftest.err
17751 cat conftest.err >&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
17754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17755 { (case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_try") 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest.$ac_objext'
17765 { (case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_try") 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774 ac_cv_struct_tm=time.h
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17779 ac_cv_struct_tm=sys/time.h
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17785 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17786 if test $ac_cv_struct_tm = sys/time.h; then
17788 cat >>confdefs.h <<\_ACEOF
17789 #define TM_IN_SYS_TIME 1
17794 { echo "$as_me:$LINENO: checking for int64_t" >&5
17795 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17796 if test "${ac_cv_type_int64_t+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 $ac_includes_default
17806 typedef int64_t ac__type_new_;
17810 if ((ac__type_new_ *) 0)
17812 if (sizeof (ac__type_new_))
17818 rm -f conftest.$ac_objext
17819 if { (ac_try="$ac_compile"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_compile") 2>conftest.er1
17827 grep -v '^ *+' conftest.er1 >conftest.err
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } &&
17832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17833 { (case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_try") 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; } &&
17842 { ac_try='test -s conftest.$ac_objext'
17843 { (case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_try") 2>&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17852 ac_cv_type_int64_t=yes
17854 echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17857 ac_cv_type_int64_t=no
17860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17862 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17863 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17864 if test $ac_cv_type_int64_t = yes; then
17866 cat >>confdefs.h <<_ACEOF
17867 #define HAVE_INT64_T 1
17872 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17873 echo "$as_me: error: Type int64_t required but not found" >&2;}
17874 { (exit 1); exit 1; }; }
17877 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17878 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17879 if test "${ac_cv_type_uint64_t+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 cat >conftest.$ac_ext <<_ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 $ac_includes_default
17889 typedef uint64_t ac__type_new_;
17893 if ((ac__type_new_ *) 0)
17895 if (sizeof (ac__type_new_))
17901 rm -f conftest.$ac_objext
17902 if { (ac_try="$ac_compile"
17903 case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_compile") 2>conftest.er1
17910 grep -v '^ *+' conftest.er1 >conftest.err
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
17915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_try") 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try='test -s conftest.$ac_objext'
17926 { (case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_try") 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 ac_cv_type_uint64_t=yes
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ac_cv_type_uint64_t=no
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17945 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17946 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17947 if test $ac_cv_type_uint64_t = yes; then
17949 cat >>confdefs.h <<_ACEOF
17950 #define HAVE_UINT64_T 1
17955 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17956 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17957 if test "${ac_cv_type_u_int64_t+set}" = set; then
17958 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 cat >conftest.$ac_ext <<_ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17966 $ac_includes_default
17967 typedef u_int64_t ac__type_new_;
17971 if ((ac__type_new_ *) 0)
17973 if (sizeof (ac__type_new_))
17979 rm -f conftest.$ac_objext
17980 if { (ac_try="$ac_compile"
17981 case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_compile") 2>conftest.er1
17988 grep -v '^ *+' conftest.er1 >conftest.err
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17994 { (case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_try") 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; } &&
18003 { ac_try='test -s conftest.$ac_objext'
18004 { (case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_try") 2>&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 ac_cv_type_u_int64_t=yes
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18018 ac_cv_type_u_int64_t=no
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18024 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18025 if test $ac_cv_type_u_int64_t = yes; then
18027 cat >>confdefs.h <<_ACEOF
18028 #define HAVE_U_INT64_T 1
18033 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18034 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18035 { (exit 1); exit 1; }; }
18049 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18055 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 cat >conftest.$ac_ext <<_ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18065 #define $ac_func innocuous_$ac_func
18067 /* System header to define __stub macros and hopefully few prototypes,
18068 which can conflict with char $ac_func (); below.
18069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18070 <limits.h> exists even on freestanding compilers. */
18073 # include <limits.h>
18075 # include <assert.h>
18080 /* Override any GCC internal prototype to avoid an error.
18081 Use char because int might match the return type of a GCC
18082 builtin and then its argument prototype would still apply. */
18087 /* The GNU C library defines this for functions which it implements
18088 to always fail with ENOSYS. Some functions are actually named
18089 something starting with __ and the normal name is an alias. */
18090 #if defined __stub_$ac_func || defined __stub___$ac_func
18097 return $ac_func ();
18102 rm -f conftest.$ac_objext conftest$ac_exeext
18103 if { (ac_try="$ac_link"
18104 case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_link") 2>conftest.er1
18111 grep -v '^ *+' conftest.er1 >conftest.err
18113 cat conftest.err >&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
18116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18117 { (case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_try") 2>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; } &&
18126 { ac_try='test -s conftest$ac_exeext'
18127 { (case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_try") 2>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 eval "$as_ac_var=yes"
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 eval "$as_ac_var=no"
18144 rm -f core conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18147 ac_res=`eval echo '${'$as_ac_var'}'`
18148 { echo "$as_me:$LINENO: result: $ac_res" >&5
18149 echo "${ECHO_T}$ac_res" >&6; }
18150 if test `eval echo '${'$as_ac_var'}'` = yes; then
18151 cat >>confdefs.h <<_ACEOF
18152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18162 for ac_func in powf fmodf strtof round
18164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18168 echo $ECHO_N "(cached) $ECHO_C" >&6
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18178 #define $ac_func innocuous_$ac_func
18180 /* System header to define __stub macros and hopefully few prototypes,
18181 which can conflict with char $ac_func (); below.
18182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183 <limits.h> exists even on freestanding compilers. */
18186 # include <limits.h>
18188 # include <assert.h>
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18200 /* The GNU C library defines this for functions which it implements
18201 to always fail with ENOSYS. Some functions are actually named
18202 something starting with __ and the normal name is an alias. */
18203 #if defined __stub_$ac_func || defined __stub___$ac_func
18210 return $ac_func ();
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_link") 2>conftest.er1
18224 grep -v '^ *+' conftest.er1 >conftest.err
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18230 { (case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_try") 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest$ac_exeext'
18240 { (case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_try") 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 eval "$as_ac_var=yes"
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 eval "$as_ac_var=no"
18257 rm -f core conftest.err conftest.$ac_objext \
18258 conftest$ac_exeext conftest.$ac_ext
18260 ac_res=`eval echo '${'$as_ac_var'}'`
18261 { echo "$as_me:$LINENO: result: $ac_res" >&5
18262 echo "${ECHO_T}$ac_res" >&6; }
18263 if test `eval echo '${'$as_ac_var'}'` = yes; then
18264 cat >>confdefs.h <<_ACEOF
18265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18276 for ac_func in log log2 log10 exp exp2
18278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 cat >conftest.$ac_ext <<_ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18292 #define $ac_func innocuous_$ac_func
18294 /* System header to define __stub macros and hopefully few prototypes,
18295 which can conflict with char $ac_func (); below.
18296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18297 <limits.h> exists even on freestanding compilers. */
18300 # include <limits.h>
18302 # include <assert.h>
18307 /* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
18314 /* The GNU C library defines this for functions which it implements
18315 to always fail with ENOSYS. Some functions are actually named
18316 something starting with __ and the normal name is an alias. */
18317 #if defined __stub_$ac_func || defined __stub___$ac_func
18324 return $ac_func ();
18329 rm -f conftest.$ac_objext conftest$ac_exeext
18330 if { (ac_try="$ac_link"
18331 case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_link") 2>conftest.er1
18338 grep -v '^ *+' conftest.er1 >conftest.err
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
18343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } &&
18353 { ac_try='test -s conftest$ac_exeext'
18354 { (case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_try") 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 eval "$as_ac_var=yes"
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 eval "$as_ac_var=no"
18371 rm -f core conftest.err conftest.$ac_objext \
18372 conftest$ac_exeext conftest.$ac_ext
18374 ac_res=`eval echo '${'$as_ac_var'}'`
18375 { echo "$as_me:$LINENO: result: $ac_res" >&5
18376 echo "${ECHO_T}$ac_res" >&6; }
18377 if test `eval echo '${'$as_ac_var'}'` = yes; then
18378 cat >>confdefs.h <<_ACEOF
18379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18390 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18398 cat >conftest.$ac_ext <<_ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18406 #define $ac_func innocuous_$ac_func
18408 /* System header to define __stub macros and hopefully few prototypes,
18409 which can conflict with char $ac_func (); below.
18410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18411 <limits.h> exists even on freestanding compilers. */
18414 # include <limits.h>
18416 # include <assert.h>
18421 /* Override any GCC internal prototype to avoid an error.
18422 Use char because int might match the return type of a GCC
18423 builtin and then its argument prototype would still apply. */
18428 /* The GNU C library defines this for functions which it implements
18429 to always fail with ENOSYS. Some functions are actually named
18430 something starting with __ and the normal name is an alias. */
18431 #if defined __stub_$ac_func || defined __stub___$ac_func
18438 return $ac_func ();
18443 rm -f conftest.$ac_objext conftest$ac_exeext
18444 if { (ac_try="$ac_link"
18445 case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_link") 2>conftest.er1
18452 grep -v '^ *+' conftest.er1 >conftest.err
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest$ac_exeext'
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 eval "$as_ac_var=yes"
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18482 eval "$as_ac_var=no"
18485 rm -f core conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
18488 ac_res=`eval echo '${'$as_ac_var'}'`
18489 { echo "$as_me:$LINENO: result: $ac_res" >&5
18490 echo "${ECHO_T}$ac_res" >&6; }
18491 if test `eval echo '${'$as_ac_var'}'` = yes; then
18492 cat >>confdefs.h <<_ACEOF
18493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18502 for ac_func in isatty mkdtemp mkstemp
18504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 cat >conftest.$ac_ext <<_ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18518 #define $ac_func innocuous_$ac_func
18520 /* System header to define __stub macros and hopefully few prototypes,
18521 which can conflict with char $ac_func (); below.
18522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18523 <limits.h> exists even on freestanding compilers. */
18526 # include <limits.h>
18528 # include <assert.h>
18533 /* Override any GCC internal prototype to avoid an error.
18534 Use char because int might match the return type of a GCC
18535 builtin and then its argument prototype would still apply. */
18540 /* The GNU C library defines this for functions which it implements
18541 to always fail with ENOSYS. Some functions are actually named
18542 something starting with __ and the normal name is an alias. */
18543 #if defined __stub_$ac_func || defined __stub___$ac_func
18550 return $ac_func ();
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (ac_try="$ac_link"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_link") 2>conftest.er1
18564 grep -v '^ *+' conftest.er1 >conftest.err
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18570 { (case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_try") 2>&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; } &&
18579 { ac_try='test -s conftest$ac_exeext'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 eval "$as_ac_var=yes"
18591 echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 eval "$as_ac_var=no"
18597 rm -f core conftest.err conftest.$ac_objext \
18598 conftest$ac_exeext conftest.$ac_ext
18600 ac_res=`eval echo '${'$as_ac_var'}'`
18601 { echo "$as_me:$LINENO: result: $ac_res" >&5
18602 echo "${ECHO_T}$ac_res" >&6; }
18603 if test `eval echo '${'$as_ac_var'}'` = yes; then
18604 cat >>confdefs.h <<_ACEOF
18605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18618 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 cat >conftest.$ac_ext <<_ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18634 #define $ac_func innocuous_$ac_func
18636 /* System header to define __stub macros and hopefully few prototypes,
18637 which can conflict with char $ac_func (); below.
18638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18639 <limits.h> exists even on freestanding compilers. */
18642 # include <limits.h>
18644 # include <assert.h>
18649 /* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18656 /* The GNU C library defines this for functions which it implements
18657 to always fail with ENOSYS. Some functions are actually named
18658 something starting with __ and the normal name is an alias. */
18659 #if defined __stub_$ac_func || defined __stub___$ac_func
18666 return $ac_func ();
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (ac_try="$ac_link"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_link") 2>conftest.er1
18680 grep -v '^ *+' conftest.er1 >conftest.err
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18686 { (case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_try") 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; } &&
18695 { ac_try='test -s conftest$ac_exeext'
18696 { (case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_try") 2>&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 eval "$as_ac_var=yes"
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 eval "$as_ac_var=no"
18713 rm -f core conftest.err conftest.$ac_objext \
18714 conftest$ac_exeext conftest.$ac_ext
18716 ac_res=`eval echo '${'$as_ac_var'}'`
18717 { echo "$as_me:$LINENO: result: $ac_res" >&5
18718 echo "${ECHO_T}$ac_res" >&6; }
18719 if test `eval echo '${'$as_ac_var'}'` = yes; then
18720 cat >>confdefs.h <<_ACEOF
18721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18731 for ac_func in strerror strerror_r setenv arc4random
18733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 cat >conftest.$ac_ext <<_ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18747 #define $ac_func innocuous_$ac_func
18749 /* System header to define __stub macros and hopefully few prototypes,
18750 which can conflict with char $ac_func (); below.
18751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752 <limits.h> exists even on freestanding compilers. */
18755 # include <limits.h>
18757 # include <assert.h>
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18769 /* The GNU C library defines this for functions which it implements
18770 to always fail with ENOSYS. Some functions are actually named
18771 something starting with __ and the normal name is an alias. */
18772 #if defined __stub_$ac_func || defined __stub___$ac_func
18779 return $ac_func ();
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (ac_try="$ac_link"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_link") 2>conftest.er1
18793 grep -v '^ *+' conftest.er1 >conftest.err
18795 cat conftest.err >&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } &&
18798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18799 { (case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_try") 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; } &&
18808 { ac_try='test -s conftest$ac_exeext'
18809 { (case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_try") 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 eval "$as_ac_var=yes"
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 eval "$as_ac_var=no"
18826 rm -f core conftest.err conftest.$ac_objext \
18827 conftest$ac_exeext conftest.$ac_ext
18829 ac_res=`eval echo '${'$as_ac_var'}'`
18830 { echo "$as_me:$LINENO: result: $ac_res" >&5
18831 echo "${ECHO_T}$ac_res" >&6; }
18832 if test `eval echo '${'$as_ac_var'}'` = yes; then
18833 cat >>confdefs.h <<_ACEOF
18834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18844 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18852 cat >conftest.$ac_ext <<_ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18860 #define $ac_func innocuous_$ac_func
18862 /* System header to define __stub macros and hopefully few prototypes,
18863 which can conflict with char $ac_func (); below.
18864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18865 <limits.h> exists even on freestanding compilers. */
18868 # include <limits.h>
18870 # include <assert.h>
18875 /* Override any GCC internal prototype to avoid an error.
18876 Use char because int might match the return type of a GCC
18877 builtin and then its argument prototype would still apply. */
18882 /* The GNU C library defines this for functions which it implements
18883 to always fail with ENOSYS. Some functions are actually named
18884 something starting with __ and the normal name is an alias. */
18885 #if defined __stub_$ac_func || defined __stub___$ac_func
18892 return $ac_func ();
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (ac_try="$ac_link"
18899 case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_link") 2>conftest.er1
18906 grep -v '^ *+' conftest.er1 >conftest.err
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18912 { (case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_try") 2>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest$ac_exeext'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 eval "$as_ac_var=yes"
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 eval "$as_ac_var=no"
18939 rm -f core conftest.err conftest.$ac_objext \
18940 conftest$ac_exeext conftest.$ac_ext
18942 ac_res=`eval echo '${'$as_ac_var'}'`
18943 { echo "$as_me:$LINENO: result: $ac_res" >&5
18944 echo "${ECHO_T}$ac_res" >&6; }
18945 if test `eval echo '${'$as_ac_var'}'` = yes; then
18946 cat >>confdefs.h <<_ACEOF
18947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18958 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 cat >conftest.$ac_ext <<_ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18974 #define $ac_func innocuous_$ac_func
18976 /* System header to define __stub macros and hopefully few prototypes,
18977 which can conflict with char $ac_func (); below.
18978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18979 <limits.h> exists even on freestanding compilers. */
18982 # include <limits.h>
18984 # include <assert.h>
18989 /* Override any GCC internal prototype to avoid an error.
18990 Use char because int might match the return type of a GCC
18991 builtin and then its argument prototype would still apply. */
18996 /* The GNU C library defines this for functions which it implements
18997 to always fail with ENOSYS. Some functions are actually named
18998 something starting with __ and the normal name is an alias. */
18999 #if defined __stub_$ac_func || defined __stub___$ac_func
19006 return $ac_func ();
19011 rm -f conftest.$ac_objext conftest$ac_exeext
19012 if { (ac_try="$ac_link"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_link") 2>conftest.er1
19020 grep -v '^ *+' conftest.er1 >conftest.err
19022 cat conftest.err >&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); } &&
19025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19026 { (case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_try") 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest$ac_exeext'
19036 { (case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_try") 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 eval "$as_ac_var=yes"
19047 echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19050 eval "$as_ac_var=no"
19053 rm -f core conftest.err conftest.$ac_objext \
19054 conftest$ac_exeext conftest.$ac_ext
19056 ac_res=`eval echo '${'$as_ac_var'}'`
19057 { echo "$as_me:$LINENO: result: $ac_res" >&5
19058 echo "${ECHO_T}$ac_res" >&6; }
19059 if test `eval echo '${'$as_ac_var'}'` = yes; then
19060 cat >>confdefs.h <<_ACEOF
19061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19069 for ac_func in futimes futimens
19071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 cat >conftest.$ac_ext <<_ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19085 #define $ac_func innocuous_$ac_func
19087 /* System header to define __stub macros and hopefully few prototypes,
19088 which can conflict with char $ac_func (); below.
19089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19090 <limits.h> exists even on freestanding compilers. */
19093 # include <limits.h>
19095 # include <assert.h>
19100 /* Override any GCC internal prototype to avoid an error.
19101 Use char because int might match the return type of a GCC
19102 builtin and then its argument prototype would still apply. */
19107 /* The GNU C library defines this for functions which it implements
19108 to always fail with ENOSYS. Some functions are actually named
19109 something starting with __ and the normal name is an alias. */
19110 #if defined __stub_$ac_func || defined __stub___$ac_func
19117 return $ac_func ();
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (ac_try="$ac_link"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_link") 2>conftest.er1
19131 grep -v '^ *+' conftest.er1 >conftest.err
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19137 { (case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142 (eval "$ac_try") 2>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; } &&
19146 { ac_try='test -s conftest$ac_exeext'
19147 { (case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_try") 2>&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156 eval "$as_ac_var=yes"
19158 echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19161 eval "$as_ac_var=no"
19164 rm -f core conftest.err conftest.$ac_objext \
19165 conftest$ac_exeext conftest.$ac_ext
19167 ac_res=`eval echo '${'$as_ac_var'}'`
19168 { echo "$as_me:$LINENO: result: $ac_res" >&5
19169 echo "${ECHO_T}$ac_res" >&6; }
19170 if test `eval echo '${'$as_ac_var'}'` = yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19178 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19179 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19180 if test "${llvm_cv_c_printf_a+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 ac_cpp='$CPP $CPPFLAGS'
19185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19189 if test "$cross_compiling" = yes; then
19190 llvmac_cv_c_printf_a=no
19192 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19201 #include <stdlib.h>
19207 volatile double A, B;
19211 sprintf(Buffer, "%a", A);
19215 if (A != 0x1.999999999999ap-4)
19222 rm -f conftest$ac_exeext
19223 if { (ac_try="$ac_link"
19224 case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_link") 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19233 { (case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_try") 2>&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 llvm_cv_c_printf_a=yes
19244 echo "$as_me: program exited with status $ac_status" >&5
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19248 ( exit $ac_status )
19249 llvmac_cv_c_printf_a=no
19251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19256 ac_cpp='$CPP $CPPFLAGS'
19257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19262 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19263 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19264 if test "$llvm_cv_c_printf_a" = "yes"; then
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE_PRINTF_A 1
19274 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19275 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19276 if test "${ac_cv_func_rand48+set}" = set; then
19277 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 ac_cpp='$CXXCPP $CPPFLAGS'
19282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19286 cat >conftest.$ac_ext <<_ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 #include <stdlib.h>
19296 srand48(0);lrand48();drand48();
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
19315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19316 { (case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_try") 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_try") 2>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_cv_func_rand48=yes
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_func_rand48=no
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345 ac_cpp='$CPP $CPPFLAGS'
19346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19352 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19353 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19355 if test "$ac_cv_func_rand48" = "yes" ; then
19357 cat >>confdefs.h <<\_ACEOF
19358 #define HAVE_RAND48 1
19364 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19365 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19366 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 cat >conftest.$ac_ext <<_ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h. */
19375 $ac_includes_default
19380 char *p = (char *) strerror_s;
19388 rm -f conftest.$ac_objext
19389 if { (ac_try="$ac_compile"
19390 case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_compile") 2>conftest.er1
19397 grep -v '^ *+' conftest.er1 >conftest.err
19399 cat conftest.err >&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } &&
19402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19403 { (case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_try") 2>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try='test -s conftest.$ac_objext'
19413 { (case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_try") 2>&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; }; then
19422 ac_cv_have_decl_strerror_s=yes
19424 echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19427 ac_cv_have_decl_strerror_s=no
19430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19432 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19433 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19434 if test $ac_cv_have_decl_strerror_s = yes; then
19436 cat >>confdefs.h <<_ACEOF
19437 #define HAVE_DECL_STRERROR_S 1
19442 cat >>confdefs.h <<_ACEOF
19443 #define HAVE_DECL_STRERROR_S 0
19451 if test "$llvm_cv_os_type" = "MingW" ; then
19452 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19453 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19454 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 ac_check_lib_save_LIBS=$LIBS
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19466 /* Override any GCC internal prototype to avoid an error.
19467 Use char because int might match the return type of a GCC
19468 builtin and then its argument prototype would still apply. */
19481 rm -f conftest.$ac_objext conftest$ac_exeext
19482 if { (ac_try="$ac_link"
19483 case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_link") 2>conftest.er1
19490 grep -v '^ *+' conftest.er1 >conftest.err
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19496 { (case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_try") 2>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try='test -s conftest$ac_exeext'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 ac_cv_lib_gcc__alloca=yes
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 ac_cv_lib_gcc__alloca=no
19523 rm -f core conftest.err conftest.$ac_objext \
19524 conftest$ac_exeext conftest.$ac_ext
19525 LIBS=$ac_check_lib_save_LIBS
19527 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19528 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19529 if test $ac_cv_lib_gcc__alloca = yes; then
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE__ALLOCA 1
19537 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19538 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19539 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 ac_check_lib_save_LIBS=$LIBS
19544 cat >conftest.$ac_ext <<_ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19551 /* Override any GCC internal prototype to avoid an error.
19552 Use char because int might match the return type of a GCC
19553 builtin and then its argument prototype would still apply. */
19561 return __alloca ();
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_link") 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19581 { (case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_try") 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest$ac_exeext'
19591 { (case "(($ac_try" in
19592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19593 *) ac_try_echo=$ac_try;;
19595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19596 (eval "$ac_try") 2>&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
19600 ac_cv_lib_gcc___alloca=yes
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19605 ac_cv_lib_gcc___alloca=no
19608 rm -f core conftest.err conftest.$ac_objext \
19609 conftest$ac_exeext conftest.$ac_ext
19610 LIBS=$ac_check_lib_save_LIBS
19612 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19613 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19614 if test $ac_cv_lib_gcc___alloca = yes; then
19616 cat >>confdefs.h <<\_ACEOF
19617 #define HAVE___ALLOCA 1
19622 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19623 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19624 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 ac_check_lib_save_LIBS=$LIBS
19629 cat >conftest.$ac_ext <<_ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19636 /* Override any GCC internal prototype to avoid an error.
19637 Use char because int might match the return type of a GCC
19638 builtin and then its argument prototype would still apply. */
19646 return __chkstk ();
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (ac_try="$ac_link"
19653 case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_link") 2>conftest.er1
19660 grep -v '^ *+' conftest.er1 >conftest.err
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } &&
19665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19666 { (case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_try") 2>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; } &&
19675 { ac_try='test -s conftest$ac_exeext'
19676 { (case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_try") 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; }; then
19685 ac_cv_lib_gcc___chkstk=yes
19687 echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19690 ac_cv_lib_gcc___chkstk=no
19693 rm -f core conftest.err conftest.$ac_objext \
19694 conftest$ac_exeext conftest.$ac_ext
19695 LIBS=$ac_check_lib_save_LIBS
19697 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19698 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19699 if test $ac_cv_lib_gcc___chkstk = yes; then
19701 cat >>confdefs.h <<\_ACEOF
19702 #define HAVE___CHKSTK 1
19707 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19708 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19709 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 ac_check_lib_save_LIBS=$LIBS
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19721 /* Override any GCC internal prototype to avoid an error.
19722 Use char because int might match the return type of a GCC
19723 builtin and then its argument prototype would still apply. */
19731 return ___chkstk ();
19736 rm -f conftest.$ac_objext conftest$ac_exeext
19737 if { (ac_try="$ac_link"
19738 case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_link") 2>conftest.er1
19745 grep -v '^ *+' conftest.er1 >conftest.err
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } &&
19750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19751 { (case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_try") 2>&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; } &&
19760 { ac_try='test -s conftest$ac_exeext'
19761 { (case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_try") 2>&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
19770 ac_cv_lib_gcc____chkstk=yes
19772 echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19775 ac_cv_lib_gcc____chkstk=no
19778 rm -f core conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
19780 LIBS=$ac_check_lib_save_LIBS
19782 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19783 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19784 if test $ac_cv_lib_gcc____chkstk = yes; then
19786 cat >>confdefs.h <<\_ACEOF
19787 #define HAVE____CHKSTK 1
19793 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19794 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19795 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19798 ac_check_lib_save_LIBS=$LIBS
19800 cat >conftest.$ac_ext <<_ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19807 /* Override any GCC internal prototype to avoid an error.
19808 Use char because int might match the return type of a GCC
19809 builtin and then its argument prototype would still apply. */
19817 return __ashldi3 ();
19822 rm -f conftest.$ac_objext conftest$ac_exeext
19823 if { (ac_try="$ac_link"
19824 case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_link") 2>conftest.er1
19831 grep -v '^ *+' conftest.er1 >conftest.err
19833 cat conftest.err >&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
19836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19837 { (case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_try") 2>&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; } &&
19846 { ac_try='test -s conftest$ac_exeext'
19847 { (case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_try") 2>&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 ac_cv_lib_gcc___ashldi3=yes
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 ac_cv_lib_gcc___ashldi3=no
19864 rm -f core conftest.err conftest.$ac_objext \
19865 conftest$ac_exeext conftest.$ac_ext
19866 LIBS=$ac_check_lib_save_LIBS
19868 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19869 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19870 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19872 cat >>confdefs.h <<\_ACEOF
19873 #define HAVE___ASHLDI3 1
19878 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19879 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19880 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 ac_check_lib_save_LIBS=$LIBS
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19892 /* Override any GCC internal prototype to avoid an error.
19893 Use char because int might match the return type of a GCC
19894 builtin and then its argument prototype would still apply. */
19902 return __ashrdi3 ();
19907 rm -f conftest.$ac_objext conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_link") 2>conftest.er1
19916 grep -v '^ *+' conftest.er1 >conftest.err
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
19921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19922 { (case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_try") 2>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest$ac_exeext'
19932 { (case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_try") 2>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 ac_cv_lib_gcc___ashrdi3=yes
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 ac_cv_lib_gcc___ashrdi3=no
19949 rm -f core conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19953 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19954 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19955 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19957 cat >>confdefs.h <<\_ACEOF
19958 #define HAVE___ASHRDI3 1
19963 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19964 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19965 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 ac_check_lib_save_LIBS=$LIBS
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19977 /* Override any GCC internal prototype to avoid an error.
19978 Use char because int might match the return type of a GCC
19979 builtin and then its argument prototype would still apply. */
19987 return __divdi3 ();
19992 rm -f conftest.$ac_objext conftest$ac_exeext
19993 if { (ac_try="$ac_link"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_link") 2>conftest.er1
20001 grep -v '^ *+' conftest.er1 >conftest.err
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } &&
20006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20007 { (case "(($ac_try" in
20008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009 *) ac_try_echo=$ac_try;;
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012 (eval "$ac_try") 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; } &&
20016 { ac_try='test -s conftest$ac_exeext'
20017 { (case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_try") 2>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; }; then
20026 ac_cv_lib_gcc___divdi3=yes
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_cv_lib_gcc___divdi3=no
20034 rm -f core conftest.err conftest.$ac_objext \
20035 conftest$ac_exeext conftest.$ac_ext
20036 LIBS=$ac_check_lib_save_LIBS
20038 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
20039 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
20040 if test $ac_cv_lib_gcc___divdi3 = yes; then
20042 cat >>confdefs.h <<\_ACEOF
20043 #define HAVE___DIVDI3 1
20048 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
20049 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
20050 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 ac_check_lib_save_LIBS=$LIBS
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20062 /* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20072 return __fixdfdi ();
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (ac_try="$ac_link"
20079 case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_link") 2>conftest.er1
20086 grep -v '^ *+' conftest.er1 >conftest.err
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } &&
20091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20092 { (case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_try") 2>&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest$ac_exeext'
20102 { (case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_try") 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_cv_lib_gcc___fixdfdi=yes
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ac_cv_lib_gcc___fixdfdi=no
20119 rm -f core conftest.err conftest.$ac_objext \
20120 conftest$ac_exeext conftest.$ac_ext
20121 LIBS=$ac_check_lib_save_LIBS
20123 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20124 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20125 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20127 cat >>confdefs.h <<\_ACEOF
20128 #define HAVE___FIXDFDI 1
20133 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20134 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20135 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 ac_check_lib_save_LIBS=$LIBS
20140 cat >conftest.$ac_ext <<_ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20147 /* Override any GCC internal prototype to avoid an error.
20148 Use char because int might match the return type of a GCC
20149 builtin and then its argument prototype would still apply. */
20157 return __fixsfdi ();
20162 rm -f conftest.$ac_objext conftest$ac_exeext
20163 if { (ac_try="$ac_link"
20164 case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_link") 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
20176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20177 { (case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_try") 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest$ac_exeext'
20187 { (case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_try") 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20196 ac_cv_lib_gcc___fixsfdi=yes
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_cv_lib_gcc___fixsfdi=no
20204 rm -f core conftest.err conftest.$ac_objext \
20205 conftest$ac_exeext conftest.$ac_ext
20206 LIBS=$ac_check_lib_save_LIBS
20208 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20209 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20210 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE___FIXSFDI 1
20218 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20219 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20220 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 ac_check_lib_save_LIBS=$LIBS
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20238 char __floatdidf ();
20242 return __floatdidf ();
20247 rm -f conftest.$ac_objext conftest$ac_exeext
20248 if { (ac_try="$ac_link"
20249 case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_link") 2>conftest.er1
20256 grep -v '^ *+' conftest.er1 >conftest.err
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } &&
20261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20262 { (case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_try") 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest$ac_exeext'
20272 { (case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277 (eval "$ac_try") 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; }; then
20281 ac_cv_lib_gcc___floatdidf=yes
20283 echo "$as_me: failed program was:" >&5
20284 sed 's/^/| /' conftest.$ac_ext >&5
20286 ac_cv_lib_gcc___floatdidf=no
20289 rm -f core conftest.err conftest.$ac_objext \
20290 conftest$ac_exeext conftest.$ac_ext
20291 LIBS=$ac_check_lib_save_LIBS
20293 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20294 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20295 if test $ac_cv_lib_gcc___floatdidf = yes; then
20297 cat >>confdefs.h <<\_ACEOF
20298 #define HAVE___FLOATDIDF 1
20303 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20304 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20305 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 ac_check_lib_save_LIBS=$LIBS
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20317 /* Override any GCC internal prototype to avoid an error.
20318 Use char because int might match the return type of a GCC
20319 builtin and then its argument prototype would still apply. */
20327 return __lshrdi3 ();
20332 rm -f conftest.$ac_objext conftest$ac_exeext
20333 if { (ac_try="$ac_link"
20334 case "(($ac_try" in
20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336 *) ac_try_echo=$ac_try;;
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339 (eval "$ac_link") 2>conftest.er1
20341 grep -v '^ *+' conftest.er1 >conftest.err
20343 cat conftest.err >&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
20346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20347 { (case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_try") 2>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; } &&
20356 { ac_try='test -s conftest$ac_exeext'
20357 { (case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_try") 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_cv_lib_gcc___lshrdi3=yes
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 ac_cv_lib_gcc___lshrdi3=no
20374 rm -f core conftest.err conftest.$ac_objext \
20375 conftest$ac_exeext conftest.$ac_ext
20376 LIBS=$ac_check_lib_save_LIBS
20378 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20379 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20380 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20382 cat >>confdefs.h <<\_ACEOF
20383 #define HAVE___LSHRDI3 1
20388 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20389 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20390 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20393 ac_check_lib_save_LIBS=$LIBS
20395 cat >conftest.$ac_ext <<_ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20402 /* Override any GCC internal prototype to avoid an error.
20403 Use char because int might match the return type of a GCC
20404 builtin and then its argument prototype would still apply. */
20412 return __moddi3 ();
20417 rm -f conftest.$ac_objext conftest$ac_exeext
20418 if { (ac_try="$ac_link"
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_link") 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_exeext'
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_cv_lib_gcc___moddi3=yes
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20456 ac_cv_lib_gcc___moddi3=no
20459 rm -f core conftest.err conftest.$ac_objext \
20460 conftest$ac_exeext conftest.$ac_ext
20461 LIBS=$ac_check_lib_save_LIBS
20463 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20464 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20465 if test $ac_cv_lib_gcc___moddi3 = yes; then
20467 cat >>confdefs.h <<\_ACEOF
20468 #define HAVE___MODDI3 1
20473 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20474 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20475 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 ac_check_lib_save_LIBS=$LIBS
20480 cat >conftest.$ac_ext <<_ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20487 /* Override any GCC internal prototype to avoid an error.
20488 Use char because int might match the return type of a GCC
20489 builtin and then its argument prototype would still apply. */
20497 return __udivdi3 ();
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (ac_try="$ac_link"
20504 case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_link") 2>conftest.er1
20511 grep -v '^ *+' conftest.er1 >conftest.err
20513 cat conftest.err >&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } &&
20516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20517 { (case "(($ac_try" in
20518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519 *) ac_try_echo=$ac_try;;
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522 (eval "$ac_try") 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest$ac_exeext'
20527 { (case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_try") 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }; then
20536 ac_cv_lib_gcc___udivdi3=yes
20538 echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20541 ac_cv_lib_gcc___udivdi3=no
20544 rm -f core conftest.err conftest.$ac_objext \
20545 conftest$ac_exeext conftest.$ac_ext
20546 LIBS=$ac_check_lib_save_LIBS
20548 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20549 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20550 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20552 cat >>confdefs.h <<\_ACEOF
20553 #define HAVE___UDIVDI3 1
20558 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20559 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20560 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 ac_check_lib_save_LIBS=$LIBS
20565 cat >conftest.$ac_ext <<_ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20572 /* Override any GCC internal prototype to avoid an error.
20573 Use char because int might match the return type of a GCC
20574 builtin and then its argument prototype would still apply. */
20582 return __umoddi3 ();
20587 rm -f conftest.$ac_objext conftest$ac_exeext
20588 if { (ac_try="$ac_link"
20589 case "(($ac_try" in
20590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591 *) ac_try_echo=$ac_try;;
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594 (eval "$ac_link") 2>conftest.er1
20596 grep -v '^ *+' conftest.er1 >conftest.err
20598 cat conftest.err >&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } &&
20601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20602 { (case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_try") 2>&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; } &&
20611 { ac_try='test -s conftest$ac_exeext'
20612 { (case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_try") 2>&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; }; then
20621 ac_cv_lib_gcc___umoddi3=yes
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20626 ac_cv_lib_gcc___umoddi3=no
20629 rm -f core conftest.err conftest.$ac_objext \
20630 conftest$ac_exeext conftest.$ac_ext
20631 LIBS=$ac_check_lib_save_LIBS
20633 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20634 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20635 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE___UMODDI3 1
20644 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20645 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20646 if test "${ac_cv_lib_gcc___main+set}" = set; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 ac_check_lib_save_LIBS=$LIBS
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 /* Override any GCC internal prototype to avoid an error.
20659 Use char because int might match the return type of a GCC
20660 builtin and then its argument prototype would still apply. */
20673 rm -f conftest.$ac_objext conftest$ac_exeext
20674 if { (ac_try="$ac_link"
20675 case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20680 (eval "$ac_link") 2>conftest.er1
20682 grep -v '^ *+' conftest.er1 >conftest.err
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } &&
20687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20688 { (case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693 (eval "$ac_try") 2>&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; } &&
20697 { ac_try='test -s conftest$ac_exeext'
20698 { (case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_try") 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; }; then
20707 ac_cv_lib_gcc___main=yes
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 ac_cv_lib_gcc___main=no
20715 rm -f core conftest.err conftest.$ac_objext \
20716 conftest$ac_exeext conftest.$ac_ext
20717 LIBS=$ac_check_lib_save_LIBS
20719 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20720 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20721 if test $ac_cv_lib_gcc___main = yes; then
20723 cat >>confdefs.h <<\_ACEOF
20724 #define HAVE___MAIN 1
20729 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20730 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20731 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20734 ac_check_lib_save_LIBS=$LIBS
20736 cat >conftest.$ac_ext <<_ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20743 /* Override any GCC internal prototype to avoid an error.
20744 Use char because int might match the return type of a GCC
20745 builtin and then its argument prototype would still apply. */
20753 return __cmpdi2 ();
20758 rm -f conftest.$ac_objext conftest$ac_exeext
20759 if { (ac_try="$ac_link"
20760 case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765 (eval "$ac_link") 2>conftest.er1
20767 grep -v '^ *+' conftest.er1 >conftest.err
20769 cat conftest.err >&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } &&
20772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20773 { (case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_try") 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; } &&
20782 { ac_try='test -s conftest$ac_exeext'
20783 { (case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788 (eval "$ac_try") 2>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_cv_lib_gcc___cmpdi2=yes
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ac_cv_lib_gcc___cmpdi2=no
20800 rm -f core conftest.err conftest.$ac_objext \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20804 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20805 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20806 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20808 cat >>confdefs.h <<\_ACEOF
20809 #define HAVE___CMPDI2 1
20816 if test "$llvm_cv_os_type" = "MingW" ; then
20817 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20818 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20819 cat >conftest.$ac_ext <<_ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20827 #include <windows.h>
20828 #include <imagehlp.h>
20829 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20830 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20834 rm -f conftest.$ac_objext
20835 if { (ac_try="$ac_compile"
20836 case "(($ac_try" in
20837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838 *) ac_try_echo=$ac_try;;
20840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841 (eval "$ac_compile") 2>conftest.er1
20843 grep -v '^ *+' conftest.er1 >conftest.err
20845 cat conftest.err >&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } &&
20848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20849 { (case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_try") 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; } &&
20858 { ac_try='test -s conftest.$ac_objext'
20859 { (case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864 (eval "$ac_try") 2>&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20869 { echo "$as_me:$LINENO: result: yes" >&5
20870 echo "${ECHO_T}yes" >&6; }
20871 llvm_cv_win32_elmcb_pcstr="PCSTR"
20874 echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20878 { echo "$as_me:$LINENO: result: no" >&5
20879 echo "${ECHO_T}no" >&6; }
20880 llvm_cv_win32_elmcb_pcstr="PSTR"
20884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 cat >>confdefs.h <<_ACEOF
20887 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20894 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20895 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20896 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20897 echo $ECHO_N "(cached) $ECHO_C" >&6
20901 ac_cpp='$CXXCPP $CPPFLAGS'
20902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20906 cat >conftest.$ac_ext <<_ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20921 rm -f conftest.$ac_objext
20922 if { (ac_try="$ac_compile"
20923 case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_compile") 2>conftest.er1
20930 grep -v '^ *+' conftest.er1 >conftest.err
20932 cat conftest.err >&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } &&
20935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20936 { (case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_try") 2>&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; } &&
20945 { ac_try='test -s conftest.$ac_objext'
20946 { (case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_try") 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 ac_cv_func_isnan_in_math_h=yes
20957 echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20960 ac_cv_func_isnan_in_math_h=no
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 ac_cpp='$CPP $CPPFLAGS'
20966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20972 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20973 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20976 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20978 cat >>confdefs.h <<\_ACEOF
20979 #define HAVE_ISNAN_IN_MATH_H 1
20985 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20986 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20987 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 ac_cpp='$CXXCPP $CPPFLAGS'
20993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20997 cat >conftest.$ac_ext <<_ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_compile") 2>conftest.er1
21021 grep -v '^ *+' conftest.er1 >conftest.err
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } &&
21026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21027 { (case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21032 (eval "$ac_try") 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (case "(($ac_try" in
21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039 *) ac_try_echo=$ac_try;;
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042 (eval "$ac_try") 2>&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21046 ac_cv_func_isnan_in_cmath=yes
21048 echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21051 ac_cv_func_isnan_in_cmath=no
21054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056 ac_cpp='$CPP $CPPFLAGS'
21057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21063 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21064 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
21066 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
21068 cat >>confdefs.h <<\_ACEOF
21069 #define HAVE_ISNAN_IN_CMATH 1
21075 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21076 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
21077 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 ac_cpp='$CXXCPP $CPPFLAGS'
21083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21097 float f; std::isnan(f);
21102 rm -f conftest.$ac_objext
21103 if { (ac_try="$ac_compile"
21104 case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_compile") 2>conftest.er1
21111 grep -v '^ *+' conftest.er1 >conftest.err
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } &&
21116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21117 { (case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_try") 2>&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; } &&
21126 { ac_try='test -s conftest.$ac_objext'
21127 { (case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_try") 2>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; }; then
21136 ac_cv_func_std_isnan_in_cmath=yes
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21141 ac_cv_func_std_isnan_in_cmath=no
21144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21146 ac_cpp='$CPP $CPPFLAGS'
21147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21153 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21154 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21156 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21158 cat >>confdefs.h <<\_ACEOF
21159 #define HAVE_STD_ISNAN_IN_CMATH 1
21167 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21168 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21169 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 ac_cpp='$CXXCPP $CPPFLAGS'
21175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21194 rm -f conftest.$ac_objext
21195 if { (ac_try="$ac_compile"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_compile") 2>conftest.er1
21203 grep -v '^ *+' conftest.er1 >conftest.err
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21209 { (case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214 (eval "$ac_try") 2>&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; } &&
21218 { ac_try='test -s conftest.$ac_objext'
21219 { (case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_try") 2>&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
21228 ac_cv_func_isinf_in_math_h=yes
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21233 ac_cv_func_isinf_in_math_h=no
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21238 ac_cpp='$CPP $CPPFLAGS'
21239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21245 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21246 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21248 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21250 cat >>confdefs.h <<\_ACEOF
21251 #define HAVE_ISINF_IN_MATH_H 1
21257 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21258 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21259 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 ac_cpp='$CXXCPP $CPPFLAGS'
21265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21269 cat >conftest.$ac_ext <<_ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21284 rm -f conftest.$ac_objext
21285 if { (ac_try="$ac_compile"
21286 case "(($ac_try" in
21287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288 *) ac_try_echo=$ac_try;;
21290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291 (eval "$ac_compile") 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } &&
21298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21299 { (case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_try") 2>&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; } &&
21308 { ac_try='test -s conftest.$ac_objext'
21309 { (case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314 (eval "$ac_try") 2>&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; }; then
21318 ac_cv_func_isinf_in_cmath=yes
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 ac_cv_func_isinf_in_cmath=no
21326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 ac_cpp='$CPP $CPPFLAGS'
21329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21335 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21336 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21338 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21340 cat >>confdefs.h <<\_ACEOF
21341 #define HAVE_ISINF_IN_CMATH 1
21347 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21348 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21349 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 ac_cpp='$CXXCPP $CPPFLAGS'
21355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21359 cat >conftest.$ac_ext <<_ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21369 float f; std::isinf(f);
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_compile") 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } &&
21388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21389 { (case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_try") 2>&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; } &&
21398 { ac_try='test -s conftest.$ac_objext'
21399 { (case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_try") 2>&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; }; then
21408 ac_cv_func_std_isinf_in_cmath=yes
21410 echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 ac_cv_func_std_isinf_in_cmath=no
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 ac_cpp='$CPP $CPPFLAGS'
21419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21425 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21426 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21428 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21430 cat >>confdefs.h <<\_ACEOF
21431 #define HAVE_STD_ISINF_IN_CMATH 1
21437 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21438 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21439 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 ac_cpp='$CXXCPP $CPPFLAGS'
21445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21449 cat >conftest.$ac_ext <<_ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h. */
21455 #include <ieeefp.h>
21459 float f; finite(f);
21464 rm -f conftest.$ac_objext
21465 if { (ac_try="$ac_compile"
21466 case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_compile") 2>conftest.er1
21473 grep -v '^ *+' conftest.er1 >conftest.err
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
21478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21479 { (case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484 (eval "$ac_try") 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; } &&
21488 { ac_try='test -s conftest.$ac_objext'
21489 { (case "(($ac_try" in
21490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491 *) ac_try_echo=$ac_try;;
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494 (eval "$ac_try") 2>&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; }; then
21498 ac_cv_func_finite_in_ieeefp_h=yes
21500 echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21503 ac_cv_func_finite_in_ieeefp_h=no
21506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21508 ac_cpp='$CPP $CPPFLAGS'
21509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21515 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21516 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21518 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21520 cat >>confdefs.h <<\_ACEOF
21521 #define HAVE_FINITE_IN_IEEEFP_H 1
21528 if test "$llvm_cv_platform_type" = "Unix" ; then
21531 for ac_header in stdlib.h unistd.h
21533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 ac_res=`eval echo '${'$as_ac_Header'}'`
21541 { echo "$as_me:$LINENO: result: $ac_res" >&5
21542 echo "${ECHO_T}$ac_res" >&6; }
21544 # Is the header compilable?
21545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21554 #include <$ac_header>
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_compile") 2>conftest.er1
21565 grep -v '^ *+' conftest.er1 >conftest.err
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } &&
21570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21571 { (case "(($ac_try" in
21572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573 *) ac_try_echo=$ac_try;;
21575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576 (eval "$ac_try") 2>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; } &&
21580 { ac_try='test -s conftest.$ac_objext'
21581 { (case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_try") 2>&5
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; }; then
21590 ac_header_compiler=yes
21592 echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21595 ac_header_compiler=no
21598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21600 echo "${ECHO_T}$ac_header_compiler" >&6; }
21602 # Is the header present?
21603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21605 cat >conftest.$ac_ext <<_ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611 #include <$ac_header>
21613 if { (ac_try="$ac_cpp conftest.$ac_ext"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21621 grep -v '^ *+' conftest.er1 >conftest.err
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } >/dev/null; then
21626 if test -s conftest.err; then
21627 ac_cpp_err=$ac_c_preproc_warn_flag
21628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21635 if test -z "$ac_cpp_err"; then
21636 ac_header_preproc=yes
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 ac_header_preproc=no
21644 rm -f conftest.err conftest.$ac_ext
21645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21646 echo "${ECHO_T}$ac_header_preproc" >&6; }
21648 # So? What about this header?
21649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21655 ac_header_preproc=yes
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21671 ## ------------------------------------ ##
21672 ## Report this to http://llvm.org/bugs/ ##
21673 ## ------------------------------------ ##
21675 ) | sed "s/^/$as_me: WARNING: /" >&2
21678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 eval "$as_ac_Header=\$ac_header_preproc"
21685 ac_res=`eval echo '${'$as_ac_Header'}'`
21686 { echo "$as_me:$LINENO: result: $ac_res" >&5
21687 echo "${ECHO_T}$ac_res" >&6; }
21690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21691 cat >>confdefs.h <<_ACEOF
21692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21700 for ac_func in getpagesize
21702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21708 cat >conftest.$ac_ext <<_ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21716 #define $ac_func innocuous_$ac_func
21718 /* System header to define __stub macros and hopefully few prototypes,
21719 which can conflict with char $ac_func (); below.
21720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21721 <limits.h> exists even on freestanding compilers. */
21724 # include <limits.h>
21726 # include <assert.h>
21731 /* Override any GCC internal prototype to avoid an error.
21732 Use char because int might match the return type of a GCC
21733 builtin and then its argument prototype would still apply. */
21738 /* The GNU C library defines this for functions which it implements
21739 to always fail with ENOSYS. Some functions are actually named
21740 something starting with __ and the normal name is an alias. */
21741 #if defined __stub_$ac_func || defined __stub___$ac_func
21748 return $ac_func ();
21753 rm -f conftest.$ac_objext conftest$ac_exeext
21754 if { (ac_try="$ac_link"
21755 case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_link") 2>conftest.er1
21762 grep -v '^ *+' conftest.er1 >conftest.err
21764 cat conftest.err >&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } &&
21767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21768 { (case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773 (eval "$ac_try") 2>&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; } &&
21777 { ac_try='test -s conftest$ac_exeext'
21778 { (case "(($ac_try" in
21779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_try") 2>&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
21787 eval "$as_ac_var=yes"
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 eval "$as_ac_var=no"
21795 rm -f core conftest.err conftest.$ac_objext \
21796 conftest$ac_exeext conftest.$ac_ext
21798 ac_res=`eval echo '${'$as_ac_var'}'`
21799 { echo "$as_me:$LINENO: result: $ac_res" >&5
21800 echo "${ECHO_T}$ac_res" >&6; }
21801 if test `eval echo '${'$as_ac_var'}'` = yes; then
21802 cat >>confdefs.h <<_ACEOF
21803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21809 { echo "$as_me:$LINENO: checking for working mmap" >&5
21810 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21811 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21814 if test "$cross_compiling" = yes; then
21815 ac_cv_func_mmap_fixed_mapped=no
21817 cat >conftest.$ac_ext <<_ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 $ac_includes_default
21824 /* malloc might have been renamed as rpl_malloc. */
21827 /* Thanks to Mike Haertel and Jim Avera for this test.
21828 Here is a matrix of mmap possibilities:
21829 mmap private not fixed
21830 mmap private fixed at somewhere currently unmapped
21831 mmap private fixed at somewhere already mapped
21832 mmap shared not fixed
21833 mmap shared fixed at somewhere currently unmapped
21834 mmap shared fixed at somewhere already mapped
21835 For private mappings, we should verify that changes cannot be read()
21836 back from the file, nor mmap's back from the file at a different
21837 address. (There have been systems where private was not correctly
21838 implemented like the infamous i386 svr4.0, and systems where the
21839 VM page cache was not coherent with the file system buffer cache
21840 like early versions of FreeBSD and possibly contemporary NetBSD.)
21841 For shared mappings, we should conversely verify that changes get
21842 propagated back to all the places they're supposed to be.
21844 Grep wants private fixed already mapped.
21845 The main things grep needs to know about mmap are:
21846 * does it exist and is it safe to write into the mmap'd area
21847 * how to use it (BSD variants) */
21850 #include <sys/mman.h>
21852 #if !STDC_HEADERS && !HAVE_STDLIB_H
21856 /* This mess was copied from the GNU getpagesize.h. */
21857 #if !HAVE_GETPAGESIZE
21858 /* Assume that all systems that can run configure have sys/param.h. */
21859 # if !HAVE_SYS_PARAM_H
21860 # define HAVE_SYS_PARAM_H 1
21863 # ifdef _SC_PAGESIZE
21864 # define getpagesize() sysconf(_SC_PAGESIZE)
21865 # else /* no _SC_PAGESIZE */
21866 # if HAVE_SYS_PARAM_H
21867 # include <sys/param.h>
21868 # ifdef EXEC_PAGESIZE
21869 # define getpagesize() EXEC_PAGESIZE
21870 # else /* no EXEC_PAGESIZE */
21872 # define getpagesize() NBPG * CLSIZE
21875 # endif /* no CLSIZE */
21876 # else /* no NBPG */
21878 # define getpagesize() NBPC
21879 # else /* no NBPC */
21881 # define getpagesize() PAGESIZE
21882 # endif /* PAGESIZE */
21883 # endif /* no NBPC */
21884 # endif /* no NBPG */
21885 # endif /* no EXEC_PAGESIZE */
21886 # else /* no HAVE_SYS_PARAM_H */
21887 # define getpagesize() 8192 /* punt totally */
21888 # endif /* no HAVE_SYS_PARAM_H */
21889 # endif /* no _SC_PAGESIZE */
21891 #endif /* no HAVE_GETPAGESIZE */
21896 char *data, *data2, *data3;
21900 pagesize = getpagesize ();
21902 /* First, make a file with some known garbage in it. */
21903 data = (char *) malloc (pagesize);
21906 for (i = 0; i < pagesize; ++i)
21907 *(data + i) = rand ();
21909 fd = creat ("conftest.mmap", 0600);
21912 if (write (fd, data, pagesize) != pagesize)
21916 /* Next, try to mmap the file at a fixed address which already has
21917 something else allocated at it. If we can, also make sure that
21918 we see the same garbage. */
21919 fd = open ("conftest.mmap", O_RDWR);
21922 data2 = (char *) malloc (2 * pagesize);
21925 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21926 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21927 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21929 for (i = 0; i < pagesize; ++i)
21930 if (*(data + i) != *(data2 + i))
21933 /* Finally, make sure that changes to the mapped area do not
21934 percolate back to the file as seen by read(). (This is a bug on
21935 some variants of i386 svr4.0.) */
21936 for (i = 0; i < pagesize; ++i)
21937 *(data2 + i) = *(data2 + i) + 1;
21938 data3 = (char *) malloc (pagesize);
21941 if (read (fd, data3, pagesize) != pagesize)
21943 for (i = 0; i < pagesize; ++i)
21944 if (*(data + i) != *(data3 + i))
21950 rm -f conftest$ac_exeext
21951 if { (ac_try="$ac_link"
21952 case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_link") 2>&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21961 { (case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_try") 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 ac_cv_func_mmap_fixed_mapped=yes
21972 echo "$as_me: program exited with status $ac_status" >&5
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ( exit $ac_status )
21977 ac_cv_func_mmap_fixed_mapped=no
21979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21984 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21985 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21986 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21988 cat >>confdefs.h <<\_ACEOF
21989 #define HAVE_MMAP 1
21993 rm -f conftest.mmap
21995 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21996 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21997 if test "${ac_cv_func_mmap_file+set}" = set; then
21998 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 ac_cpp='$CPP $CPPFLAGS'
22002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22006 if test "$cross_compiling" = yes; then
22007 ac_cv_func_mmap_file=no
22009 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22017 #include <sys/types.h>
22018 #include <sys/mman.h>
22026 fd = creat ("foo",0777);
22027 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
22029 return (fd != (int) MAP_FAILED);
22034 rm -f conftest$ac_exeext
22035 if { (ac_try="$ac_link"
22036 case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_link") 2>&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22045 { (case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_try") 2>&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
22054 ac_cv_func_mmap_file=yes
22056 echo "$as_me: program exited with status $ac_status" >&5
22057 echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22060 ( exit $ac_status )
22061 ac_cv_func_mmap_file=no
22063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22068 ac_cpp='$CPP $CPPFLAGS'
22069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22075 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22076 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
22077 if test "$ac_cv_func_mmap_file" = yes; then
22079 cat >>confdefs.h <<\_ACEOF
22080 #define HAVE_MMAP_FILE
22087 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
22088 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
22089 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22092 if test "$llvm_cv_os_type" = "Interix" ; then
22093 ac_cv_need_dev_zero_for_mmap=yes
22095 ac_cv_need_dev_zero_for_mmap=no
22099 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
22100 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
22101 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
22103 cat >>confdefs.h <<\_ACEOF
22104 #define NEED_DEV_ZERO_FOR_MMAP 1
22109 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22111 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
22112 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22114 if test "$ac_cv_func_mmap_file" = "no"
22116 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22117 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22121 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22122 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22124 ac_cpp='$CXXCPP $CPPFLAGS'
22125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22129 cat >conftest.$ac_ext <<_ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22138 volatile unsigned long val = 1;
22139 __sync_synchronize();
22140 __sync_val_compare_and_swap(&val, 1, 0);
22141 __sync_add_and_fetch(&val, 1);
22142 __sync_sub_and_fetch(&val, 1);
22148 rm -f conftest.$ac_objext conftest$ac_exeext
22149 if { (ac_try="$ac_link"
22150 case "(($ac_try" in
22151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152 *) ac_try_echo=$ac_try;;
22154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22155 (eval "$ac_link") 2>conftest.er1
22157 grep -v '^ *+' conftest.er1 >conftest.err
22159 cat conftest.err >&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); } &&
22162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22163 { (case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168 (eval "$ac_try") 2>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; } &&
22172 { ac_try='test -s conftest$ac_exeext'
22173 { (case "(($ac_try" in
22174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175 *) ac_try_echo=$ac_try;;
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178 (eval "$ac_try") 2>&5
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); }; }; then
22183 { echo "$as_me:$LINENO: result: yes" >&5
22184 echo "${ECHO_T}yes" >&6; }
22186 cat >>confdefs.h <<\_ACEOF
22187 #define LLVM_HAS_ATOMICS 1
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22196 { echo "$as_me:$LINENO: result: no" >&5
22197 echo "${ECHO_T}no" >&6; }
22199 cat >>confdefs.h <<\_ACEOF
22200 #define LLVM_HAS_ATOMICS 0
22203 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22204 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22208 rm -f core conftest.err conftest.$ac_objext \
22209 conftest$ac_exeext conftest.$ac_ext
22211 ac_cpp='$CPP $CPPFLAGS'
22212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22218 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22219 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22220 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22221 if test "${llvm_cv_linux_mixed+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 ac_cpp='$CPP $CPPFLAGS'
22226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22230 cat >conftest.$ac_ext <<_ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22237 error: Not x86-64 even if uname says so!
22248 rm -f conftest.$ac_objext
22249 if { (ac_try="$ac_compile"
22250 case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_compile") 2>conftest.er1
22257 grep -v '^ *+' conftest.er1 >conftest.err
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } &&
22262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22263 { (case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 (eval "$ac_try") 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; } &&
22272 { ac_try='test -s conftest.$ac_objext'
22273 { (case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_try") 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 llvm_cv_linux_mixed=no
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 llvm_cv_linux_mixed=yes
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 ac_cpp='$CPP $CPPFLAGS'
22293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22299 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22300 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22302 if test "$llvm_cv_linux_mixed" = "yes"; then
22303 llvm_cv_target_arch="x86"
22309 for ac_func in __dso_handle
22311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22325 #define $ac_func innocuous_$ac_func
22327 /* System header to define __stub macros and hopefully few prototypes,
22328 which can conflict with char $ac_func (); below.
22329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22330 <limits.h> exists even on freestanding compilers. */
22333 # include <limits.h>
22335 # include <assert.h>
22340 /* Override any GCC internal prototype to avoid an error.
22341 Use char because int might match the return type of a GCC
22342 builtin and then its argument prototype would still apply. */
22347 /* The GNU C library defines this for functions which it implements
22348 to always fail with ENOSYS. Some functions are actually named
22349 something starting with __ and the normal name is an alias. */
22350 #if defined __stub_$ac_func || defined __stub___$ac_func
22357 return $ac_func ();
22362 rm -f conftest.$ac_objext conftest$ac_exeext
22363 if { (ac_try="$ac_link"
22364 case "(($ac_try" in
22365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366 *) ac_try_echo=$ac_try;;
22368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22369 (eval "$ac_link") 2>conftest.er1
22371 grep -v '^ *+' conftest.er1 >conftest.err
22373 cat conftest.err >&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } &&
22376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22377 { (case "(($ac_try" in
22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_try") 2>&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; } &&
22386 { ac_try='test -s conftest$ac_exeext'
22387 { (case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22392 (eval "$ac_try") 2>&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; }; then
22396 eval "$as_ac_var=yes"
22398 echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22401 eval "$as_ac_var=no"
22404 rm -f core conftest.err conftest.$ac_objext \
22405 conftest$ac_exeext conftest.$ac_ext
22407 ac_res=`eval echo '${'$as_ac_var'}'`
22408 { echo "$as_me:$LINENO: result: $ac_res" >&5
22409 echo "${ECHO_T}$ac_res" >&6; }
22410 if test `eval echo '${'$as_ac_var'}'` = yes; then
22411 cat >>confdefs.h <<_ACEOF
22412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22419 SHLIBEXT=$libltdl_cv_shlibext
22422 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22425 if test "${prefix}" = "NONE" ; then
22426 prefix="/usr/local"
22428 eval LLVM_PREFIX="${prefix}";
22429 eval LLVM_BINDIR="${prefix}/bin";
22430 eval LLVM_DATADIR="${prefix}/share/llvm";
22431 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22432 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22433 eval LLVM_INCLUDEDIR="${prefix}/include";
22434 eval LLVM_INFODIR="${prefix}/info";
22435 eval LLVM_MANDIR="${prefix}/man";
22436 LLVM_CONFIGTIME=`date`
22447 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22448 LLVM_CONFIGTIME="(timestamp not enabled)"
22452 cat >>confdefs.h <<_ACEOF
22453 #define LLVM_PREFIX "$LLVM_PREFIX"
22457 cat >>confdefs.h <<_ACEOF
22458 #define LLVM_BINDIR "$LLVM_BINDIR"
22462 cat >>confdefs.h <<_ACEOF
22463 #define LLVM_DATADIR "$LLVM_DATADIR"
22467 cat >>confdefs.h <<_ACEOF
22468 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22472 cat >>confdefs.h <<_ACEOF
22473 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22477 cat >>confdefs.h <<_ACEOF
22478 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22482 cat >>confdefs.h <<_ACEOF
22483 #define LLVM_INFODIR "$LLVM_INFODIR"
22487 cat >>confdefs.h <<_ACEOF
22488 #define LLVM_MANDIR "$LLVM_MANDIR"
22492 cat >>confdefs.h <<_ACEOF
22493 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22497 cat >>confdefs.h <<_ACEOF
22498 #define LLVM_HOST_TRIPLE "$host"
22502 cat >>confdefs.h <<_ACEOF
22503 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22507 if test "$BINDINGS_TO_BUILD" = auto ; then
22508 BINDINGS_TO_BUILD=""
22509 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22510 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22513 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22519 binding_prereqs_failed=0
22520 for a_binding in $BINDINGS_TO_BUILD ; do
22521 case "$a_binding" in
22523 if test "x$OCAMLC" = x ; then
22524 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22525 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22526 binding_prereqs_failed=1
22528 if test "x$OCAMLDEP" = x ; then
22529 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22530 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22531 binding_prereqs_failed=1
22533 if test "x$OCAMLOPT" = x ; then
22534 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22535 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22537 if test "x$with_ocaml_libdir" != xauto ; then
22538 OCAML_LIBDIR=$with_ocaml_libdir
22541 ocaml_stdlib="`"$OCAMLC" -where`"
22542 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22544 # ocaml stdlib is beneath our prefix; use stdlib
22545 OCAML_LIBDIR=$ocaml_stdlib
22548 # ocaml stdlib is outside our prefix; use libdir/ocaml
22549 OCAML_LIBDIR=${prefix}/lib/ocaml
22556 if test "$binding_prereqs_failed" = 1 ; then
22557 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22558 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22559 { (exit 1); exit 1; }; }
22562 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22563 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22564 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22568 ac_cpp='$CXXCPP $CPPFLAGS'
22569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22573 oldcxxflags="$CXXFLAGS"
22574 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22575 cat >conftest.$ac_ext <<_ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22590 rm -f conftest.$ac_objext
22591 if { (ac_try="$ac_compile"
22592 case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22597 (eval "$ac_compile") 2>conftest.er1
22599 grep -v '^ *+' conftest.er1 >conftest.err
22601 cat conftest.err >&5
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } &&
22604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22605 { (case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_try") 2>&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; } &&
22614 { ac_try='test -s conftest.$ac_objext'
22615 { (case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620 (eval "$ac_try") 2>&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; }; then
22624 llvm_cv_cxx_visibility_inlines_hidden=yes
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22629 llvm_cv_cxx_visibility_inlines_hidden=no
22632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633 CXXFLAGS="$oldcxxflags"
22635 ac_cpp='$CPP $CPPFLAGS'
22636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22642 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22643 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22644 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22645 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22648 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22653 if test "$llvm_cv_link_use_r" = "yes" ; then
22660 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22661 RDYNAMIC="-Wl,-export-dynamic"
22668 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22675 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22677 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22679 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22681 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22683 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22686 ac_config_files="$ac_config_files Makefile.config"
22689 ac_config_files="$ac_config_files llvm.spec"
22692 ac_config_files="$ac_config_files docs/doxygen.cfg"
22695 if test "${clang_src_root}" = ""; then
22696 clang_src_root="$srcdir/tools/clang"
22698 if test -f ${clang_src_root}/README.txt; then
22699 configh="include/clang/Config/config.h"
22700 doxy="docs/doxygen.cfg"
22701 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22703 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22707 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22710 test "x$program_prefix" = "xNONE" && program_prefix=""
22714 ac_config_commands="$ac_config_commands setup"
22716 ac_config_commands="$ac_config_commands Makefile"
22719 ac_config_commands="$ac_config_commands Makefile.common"
22722 ac_config_commands="$ac_config_commands examples/Makefile"
22725 ac_config_commands="$ac_config_commands lib/Makefile"
22728 ac_config_commands="$ac_config_commands runtime/Makefile"
22731 ac_config_commands="$ac_config_commands test/Makefile"
22734 ac_config_commands="$ac_config_commands test/Makefile.tests"
22737 ac_config_commands="$ac_config_commands unittests/Makefile"
22740 ac_config_commands="$ac_config_commands tools/Makefile"
22743 ac_config_commands="$ac_config_commands utils/Makefile"
22746 ac_config_commands="$ac_config_commands projects/Makefile"
22749 ac_config_commands="$ac_config_commands bindings/Makefile"
22752 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22756 cat >confcache <<\_ACEOF
22757 # This file is a shell script that caches the results of configure
22758 # tests run on this system so they can be shared between configure
22759 # scripts and configure runs, see configure's option --config-cache.
22760 # It is not useful on other systems. If it contains results you don't
22761 # want to keep, you may remove or edit it.
22763 # config.status only pays attention to the cache file if you give it
22764 # the --recheck option to rerun configure.
22766 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22767 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22768 # following values.
22772 # The following way of writing the cache mishandles newlines in values,
22773 # but we know of no workaround that is simple, portable, and efficient.
22774 # So, we kill variables containing newlines.
22775 # Ultrix sh set writes to stderr and can't be redirected directly,
22776 # and sets the high bit in the cache file unless we assign to the vars.
22778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22779 eval ac_val=\$$ac_var
22783 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22784 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22787 _ | IFS | as_nl) ;; #(
22788 *) $as_unset $ac_var ;;
22794 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22795 *${as_nl}ac_space=\ *)
22796 # `set' does not quote correctly, so add quotes (double-quote
22797 # substitution turns \\\\ into \\, and sed turns \\ into \).
22800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22803 # `set' quotes correctly as required by POSIX, so do not add quotes.
22804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22817 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22818 if test -w "$cache_file"; then
22819 test "x$cache_file" != "x/dev/null" &&
22820 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22821 echo "$as_me: updating cache $cache_file" >&6;}
22822 cat confcache >$cache_file
22824 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22825 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22831 # Let make expand exec_prefix.
22832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22834 DEFS=-DHAVE_CONFIG_H
22838 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22839 # 1. Remove the extension, and $U if already installed.
22840 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22841 ac_i=`echo "$ac_i" | sed "$ac_script"`
22842 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22843 # will be set to the directory where LIBOBJS objects are built.
22844 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22845 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22847 LIBOBJS=$ac_libobjs
22849 LTLIBOBJS=$ac_ltlibobjs
22852 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22853 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22854 Usually this means the macro was only invoked conditionally." >&5
22855 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22856 Usually this means the macro was only invoked conditionally." >&2;}
22857 { (exit 1); exit 1; }; }
22859 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22860 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22861 Usually this means the macro was only invoked conditionally." >&5
22862 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22863 Usually this means the macro was only invoked conditionally." >&2;}
22864 { (exit 1); exit 1; }; }
22867 : ${CONFIG_STATUS=./config.status}
22868 ac_clean_files_save=$ac_clean_files
22869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22870 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22871 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22872 cat >$CONFIG_STATUS <<_ACEOF
22874 # Generated by $as_me.
22875 # Run this file to recreate the current configuration.
22876 # Compiler output produced by configure, useful for debugging
22877 # configure, is in config.log if it exists.
22880 ac_cs_recheck=false
22882 SHELL=\${CONFIG_SHELL-$SHELL}
22885 cat >>$CONFIG_STATUS <<\_ACEOF
22886 ## --------------------- ##
22887 ## M4sh Initialization. ##
22888 ## --------------------- ##
22890 # Be Bourne compatible
22891 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22894 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22895 # is contrary to our usage. Disable this feature.
22896 alias -g '${1+"$@"}'='"$@"'
22897 setopt NO_GLOB_SUBST
22899 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22901 BIN_SH=xpg4; export BIN_SH # for Tru64
22902 DUALCASE=1; export DUALCASE # for MKS sh
22906 # Avoid depending upon Character Ranges.
22907 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22908 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22909 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22910 as_cr_digits='0123456789'
22911 as_cr_alnum=$as_cr_Letters$as_cr_digits
22913 # The user is always right.
22914 if test "${PATH_SEPARATOR+set}" != set; then
22915 echo "#! /bin/sh" >conf$$.sh
22916 echo "exit 0" >>conf$$.sh
22918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22926 # Support unset when possible.
22927 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22935 # We need space, tab and new line, in precisely that order. Quoting is
22936 # there to prevent editors from complaining about space-tab.
22937 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22938 # splitting by setting IFS to empty value.)
22943 # Find who we are. Look in the path if we contain no directory separator.
22945 *[\\/]* ) as_myself=$0 ;;
22946 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22947 for as_dir in $PATH
22950 test -z "$as_dir" && as_dir=.
22951 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22957 # We did not find ourselves, most probably we were run as `sh COMMAND'
22958 # in which case we are not to be found in the path.
22959 if test "x$as_myself" = x; then
22962 if test ! -f "$as_myself"; then
22963 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22964 { (exit 1); exit 1; }
22967 # Work around bugs in pre-3.0 UWIN ksh.
22968 for as_var in ENV MAIL MAILPATH
22969 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22977 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22978 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22979 LC_TELEPHONE LC_TIME
22981 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22982 eval $as_var=C; export $as_var
22984 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22988 # Required to use basename.
22989 if expr a : '\(a\)' >/dev/null 2>&1 &&
22990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22996 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22997 as_basename=basename
23003 # Name of the executable.
23004 as_me=`$as_basename -- "$0" ||
23005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23006 X"$0" : 'X\(//\)$' \| \
23007 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23009 sed '/^.*\/\([^/][^/]*\)\/*$/{
23028 as_lineno_1=$LINENO
23029 as_lineno_2=$LINENO
23030 test "x$as_lineno_1" != "x$as_lineno_2" &&
23031 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23033 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23034 # uniformly replaced by the line number. The first 'sed' inserts a
23035 # line-number line after each line using $LINENO; the second 'sed'
23036 # does the real work. The second script uses 'N' to pair each
23037 # line-number line with the line containing $LINENO, and appends
23038 # trailing '-' during substitution so that $LINENO is not a special
23039 # case at line end.
23040 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23041 # scripts with optimization help from Paolo Bonzini. Blame Lee
23042 # E. McMahon (1931-1989) for sed's syntax. :-)
23054 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23057 ' >$as_me.lineno &&
23058 chmod +x "$as_me.lineno" ||
23059 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23060 { (exit 1); exit 1; }; }
23062 # Don't try to exec as it changes $[0], causing all sort of problems
23063 # (the dirname of $[0] is not the place where we might find the
23064 # original and so on. Autoconf is especially sensitive to this).
23065 . "./$as_me.lineno"
23066 # Exit status is that of the last command.
23071 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23077 ECHO_C= ECHO_N= ECHO_T=
23078 case `echo -n x` in
23080 case `echo 'x\c'` in
23081 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23088 if expr a : '\(a\)' >/dev/null 2>&1 &&
23089 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23095 rm -f conf$$ conf$$.exe conf$$.file
23096 if test -d conf$$.dir; then
23097 rm -f conf$$.dir/conf$$.file
23103 if ln -s conf$$.file conf$$ 2>/dev/null; then
23105 # ... but there are two gotchas:
23106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23108 # In both cases, we have to default to `cp -p'.
23109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23111 elif ln conf$$.file conf$$ 2>/dev/null; then
23116 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23117 rmdir conf$$.dir 2>/dev/null
23119 if mkdir -p . 2>/dev/null; then
23122 test -d ./-p && rmdir ./-p
23126 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23127 # systems may use methods other than mode bits to determine executability.
23128 cat >conf$$.file <<_ASEOF
23132 chmod +x conf$$.file
23133 if test -x conf$$.file >/dev/null 2>&1; then
23134 as_executable_p="test -x"
23140 # Sed expression to map a string onto a valid CPP name.
23141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23143 # Sed expression to map a string onto a valid variable name.
23144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23149 # Save the log message, to keep $[0] and so on meaningful, and to
23150 # report actual input values of CONFIG_FILES etc. instead of their
23151 # values after options handling.
23153 This file was extended by LLVM $as_me 3.4svn, which was
23154 generated by GNU Autoconf 2.60. Invocation command line was
23156 CONFIG_FILES = $CONFIG_FILES
23157 CONFIG_HEADERS = $CONFIG_HEADERS
23158 CONFIG_LINKS = $CONFIG_LINKS
23159 CONFIG_COMMANDS = $CONFIG_COMMANDS
23162 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23167 cat >>$CONFIG_STATUS <<_ACEOF
23168 # Files that config.status was made for.
23169 config_files="$ac_config_files"
23170 config_headers="$ac_config_headers"
23171 config_commands="$ac_config_commands"
23175 cat >>$CONFIG_STATUS <<\_ACEOF
23177 \`$as_me' instantiates files from templates according to the
23178 current configuration.
23180 Usage: $0 [OPTIONS] [FILE]...
23182 -h, --help print this help, then exit
23183 -V, --version print version number, then exit
23184 -q, --quiet do not print progress messages
23185 -d, --debug don't remove temporary files
23186 --recheck update $as_me by reconfiguring in the same conditions
23187 --file=FILE[:TEMPLATE]
23188 instantiate the configuration file FILE
23189 --header=FILE[:TEMPLATE]
23190 instantiate the configuration header FILE
23192 Configuration files:
23195 Configuration headers:
23198 Configuration commands:
23201 Report bugs to <bug-autoconf@gnu.org>."
23204 cat >>$CONFIG_STATUS <<_ACEOF
23206 LLVM config.status 3.4svn
23207 configured by $0, generated by GNU Autoconf 2.60,
23208 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23210 Copyright (C) 2006 Free Software Foundation, Inc.
23211 This config.status script is free software; the Free Software Foundation
23212 gives unlimited permission to copy, distribute and modify it."
23219 cat >>$CONFIG_STATUS <<\_ACEOF
23220 # If no file are specified by the user, then we need to provide default
23221 # value. By we need to know if files were specified by the user.
23227 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23228 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23239 # Handling of the options.
23240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23242 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23243 echo "$ac_cs_version"; exit ;;
23244 --debug | --debu | --deb | --de | --d | -d )
23246 --file | --fil | --fi | --f )
23248 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23249 ac_need_defaults=false;;
23250 --header | --heade | --head | --hea )
23252 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23253 ac_need_defaults=false;;
23255 # Conflict between --help and --header
23256 { echo "$as_me: error: ambiguous option: $1
23257 Try \`$0 --help' for more information." >&2
23258 { (exit 1); exit 1; }; };;
23259 --help | --hel | -h )
23260 echo "$ac_cs_usage"; exit ;;
23261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23262 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23265 # This is an error.
23266 -*) { echo "$as_me: error: unrecognized option: $1
23267 Try \`$0 --help' for more information." >&2
23268 { (exit 1); exit 1; }; } ;;
23270 *) ac_config_targets="$ac_config_targets $1"
23271 ac_need_defaults=false ;;
23277 ac_configure_extra_args=
23279 if $ac_cs_silent; then
23281 ac_configure_extra_args="$ac_configure_extra_args --silent"
23285 cat >>$CONFIG_STATUS <<_ACEOF
23286 if \$ac_cs_recheck; then
23287 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23288 CONFIG_SHELL=$SHELL
23289 export CONFIG_SHELL
23290 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23294 cat >>$CONFIG_STATUS <<\_ACEOF
23298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23299 ## Running $as_me. ##
23305 cat >>$CONFIG_STATUS <<_ACEOF
23309 llvm_src="${srcdir}"
23313 cat >>$CONFIG_STATUS <<\_ACEOF
23315 # Handling of arguments.
23316 for ac_config_target in $ac_config_targets
23318 case $ac_config_target in
23319 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23320 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23321 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23322 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23323 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23324 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23325 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23326 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23327 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23328 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23329 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23330 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23331 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23332 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23333 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23334 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23335 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23336 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23337 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23338 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23339 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23340 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23341 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23342 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23343 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23344 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23345 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23347 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23348 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23349 { (exit 1); exit 1; }; };;
23354 # If the user did not use the arguments to specify the items to instantiate,
23355 # then the envvar interface is used. Set only those that are not.
23356 # We use the long form for the default assignment because of an extremely
23357 # bizarre bug on SunOS 4.1.3.
23358 if $ac_need_defaults; then
23359 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23360 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23361 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23364 # Have a temporary directory for convenience. Make it in the build tree
23365 # simply because there is no reason against having it here, and in addition,
23366 # creating and moving files from /tmp can sometimes cause problems.
23367 # Hook for its removal unless debugging.
23368 # Note that there is a small window in which the directory will not be cleaned:
23369 # after its creation but before its name has been assigned to `$tmp'.
23373 trap 'exit_status=$?
23374 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23376 trap '{ (exit 1); exit 1; }' 1 2 13 15
23378 # Create a (secure) tmp directory for tmp files.
23381 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23382 test -n "$tmp" && test -d "$tmp"
23385 tmp=./conf$$-$RANDOM
23386 (umask 077 && mkdir "$tmp")
23389 echo "$me: cannot create a temporary directory in ." >&2
23390 { (exit 1); exit 1; }
23394 # Set up the sed scripts for CONFIG_FILES section.
23397 # No need to generate the scripts if there are no CONFIG_FILES.
23398 # This happens for instance when ./config.status config.h
23399 if test -n "$CONFIG_FILES"; then
23406 for ac_last_try in false false false false false :; do
23407 cat >conf$$subs.sed <<_ACEOF
23408 SHELL!$SHELL$ac_delim
23409 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23410 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23411 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23412 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23413 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23414 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23415 exec_prefix!$exec_prefix$ac_delim
23416 prefix!$prefix$ac_delim
23417 program_transform_name!$program_transform_name$ac_delim
23418 bindir!$bindir$ac_delim
23419 sbindir!$sbindir$ac_delim
23420 libexecdir!$libexecdir$ac_delim
23421 datarootdir!$datarootdir$ac_delim
23422 datadir!$datadir$ac_delim
23423 sysconfdir!$sysconfdir$ac_delim
23424 sharedstatedir!$sharedstatedir$ac_delim
23425 localstatedir!$localstatedir$ac_delim
23426 includedir!$includedir$ac_delim
23427 oldincludedir!$oldincludedir$ac_delim
23428 docdir!$docdir$ac_delim
23429 infodir!$infodir$ac_delim
23430 htmldir!$htmldir$ac_delim
23431 dvidir!$dvidir$ac_delim
23432 pdfdir!$pdfdir$ac_delim
23433 psdir!$psdir$ac_delim
23434 libdir!$libdir$ac_delim
23435 localedir!$localedir$ac_delim
23436 mandir!$mandir$ac_delim
23437 DEFS!$DEFS$ac_delim
23438 ECHO_C!$ECHO_C$ac_delim
23439 ECHO_N!$ECHO_N$ac_delim
23440 ECHO_T!$ECHO_T$ac_delim
23441 LIBS!$LIBS$ac_delim
23442 build_alias!$build_alias$ac_delim
23443 host_alias!$host_alias$ac_delim
23444 target_alias!$target_alias$ac_delim
23445 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23447 CFLAGS!$CFLAGS$ac_delim
23448 LDFLAGS!$LDFLAGS$ac_delim
23449 CPPFLAGS!$CPPFLAGS$ac_delim
23450 ac_ct_CC!$ac_ct_CC$ac_delim
23451 EXEEXT!$EXEEXT$ac_delim
23452 OBJEXT!$OBJEXT$ac_delim
23454 CXXFLAGS!$CXXFLAGS$ac_delim
23455 ac_ct_CXX!$ac_ct_CXX$ac_delim
23457 subdirs!$subdirs$ac_delim
23458 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23459 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23460 build!$build$ac_delim
23461 build_cpu!$build_cpu$ac_delim
23462 build_vendor!$build_vendor$ac_delim
23463 build_os!$build_os$ac_delim
23464 host!$host$ac_delim
23465 host_cpu!$host_cpu$ac_delim
23466 host_vendor!$host_vendor$ac_delim
23467 host_os!$host_os$ac_delim
23468 target!$target$ac_delim
23469 target_cpu!$target_cpu$ac_delim
23470 target_vendor!$target_vendor$ac_delim
23471 target_os!$target_os$ac_delim
23473 HOST_OS!$HOST_OS$ac_delim
23474 TARGET_OS!$TARGET_OS$ac_delim
23475 LINKALL!$LINKALL$ac_delim
23476 NOLINKALL!$NOLINKALL$ac_delim
23477 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23478 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23479 ARCH!$ARCH$ac_delim
23480 HOST_ARCH!$HOST_ARCH$ac_delim
23481 ENDIAN!$ENDIAN$ac_delim
23482 GREP!$GREP$ac_delim
23483 EGREP!$EGREP$ac_delim
23484 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23485 BUILD_CC!$BUILD_CC$ac_delim
23486 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23487 BUILD_CXX!$BUILD_CXX$ac_delim
23488 CVSBUILD!$CVSBUILD$ac_delim
23489 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23490 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23491 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23492 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23493 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23494 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23495 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23496 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23497 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23498 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23499 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23500 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23501 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23502 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23503 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23507 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23509 elif $ac_last_try; then
23510 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23511 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23512 { (exit 1); exit 1; }; }
23514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23518 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23519 if test -n "$ac_eof"; then
23520 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23521 ac_eof=`expr $ac_eof + 1`
23524 cat >>$CONFIG_STATUS <<_ACEOF
23525 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23529 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23530 s/^/s,@/; s/!/@,|#_!!_#|/
23533 s/'"$ac_delim"'$/,g/; t
23535 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23536 ' >>$CONFIG_STATUS <conf$$subs.sed
23537 rm -f conf$$subs.sed
23538 cat >>$CONFIG_STATUS <<_ACEOF
23544 for ac_last_try in false false false false false :; do
23545 cat >conf$$subs.sed <<_ACEOF
23546 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23547 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23548 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23549 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23550 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23551 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23552 ENABLE_PIC!$ENABLE_PIC$ac_delim
23553 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23554 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23555 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23556 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23557 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23558 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23559 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23560 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23561 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23562 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23563 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23564 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23565 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23566 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23567 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23569 ifGNUmake!$ifGNUmake$ac_delim
23570 LN_S!$LN_S$ac_delim
23573 DATE!$DATE$ac_delim
23574 FIND!$FIND$ac_delim
23575 MKDIR!$MKDIR$ac_delim
23577 RANLIB!$RANLIB$ac_delim
23582 BINPWD!$BINPWD$ac_delim
23583 GRAPHVIZ!$GRAPHVIZ$ac_delim
23586 NEATO!$NEATO$ac_delim
23587 TWOPI!$TWOPI$ac_delim
23588 CIRCO!$CIRCO$ac_delim
23590 DOTTY!$DOTTY$ac_delim
23591 XDOT_PY!$XDOT_PY$ac_delim
23592 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23593 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23594 INSTALL_DATA!$INSTALL_DATA$ac_delim
23595 BZIP2!$BZIP2$ac_delim
23597 DOXYGEN!$DOXYGEN$ac_delim
23598 GROFF!$GROFF$ac_delim
23599 GZIPBIN!$GZIPBIN$ac_delim
23600 PDFROFF!$PDFROFF$ac_delim
23602 OCAMLC!$OCAMLC$ac_delim
23603 OCAMLOPT!$OCAMLOPT$ac_delim
23604 OCAMLDEP!$OCAMLDEP$ac_delim
23605 OCAMLDOC!$OCAMLDOC$ac_delim
23607 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23608 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23609 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23610 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23611 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23612 LIBADD_DL!$LIBADD_DL$ac_delim
23613 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23614 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23615 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23616 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23617 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23618 PYTHON!$PYTHON$ac_delim
23619 USE_UDIS86!$USE_UDIS86$ac_delim
23620 USE_OPROFILE!$USE_OPROFILE$ac_delim
23621 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23622 XML2CONFIG!$XML2CONFIG$ac_delim
23623 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23624 LIBXML2_INC!$LIBXML2_INC$ac_delim
23625 CXXCPP!$CXXCPP$ac_delim
23626 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23627 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23628 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23629 MMAP_FILE!$MMAP_FILE$ac_delim
23630 SHLIBEXT!$SHLIBEXT$ac_delim
23631 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23632 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23633 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23634 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23635 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23636 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23637 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23638 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23639 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23640 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23641 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23642 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23645 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23647 elif $ac_last_try; then
23648 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23649 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23650 { (exit 1); exit 1; }; }
23652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23656 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23657 if test -n "$ac_eof"; then
23658 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23659 ac_eof=`expr $ac_eof + 1`
23662 cat >>$CONFIG_STATUS <<_ACEOF
23663 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23664 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23667 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23668 s/^/s,@/; s/!/@,|#_!!_#|/
23671 s/'"$ac_delim"'$/,g/; t
23673 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23674 ' >>$CONFIG_STATUS <conf$$subs.sed
23675 rm -f conf$$subs.sed
23676 cat >>$CONFIG_STATUS <<_ACEOF
23682 for ac_last_try in false false false false false :; do
23683 cat >conf$$subs.sed <<_ACEOF
23684 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23685 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23686 RPATH!$RPATH$ac_delim
23687 RDYNAMIC!$RDYNAMIC$ac_delim
23688 program_prefix!$program_prefix$ac_delim
23689 LIBOBJS!$LIBOBJS$ac_delim
23690 LTLIBOBJS!$LTLIBOBJS$ac_delim
23693 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23695 elif $ac_last_try; then
23696 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23697 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23698 { (exit 1); exit 1; }; }
23700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23704 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23705 if test -n "$ac_eof"; then
23706 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23707 ac_eof=`expr $ac_eof + 1`
23710 cat >>$CONFIG_STATUS <<_ACEOF
23711 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23715 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23716 s/^/s,@/; s/!/@,|#_!!_#|/
23719 s/'"$ac_delim"'$/,g/; t
23721 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23722 ' >>$CONFIG_STATUS <conf$$subs.sed
23723 rm -f conf$$subs.sed
23724 cat >>$CONFIG_STATUS <<_ACEOF
23731 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23732 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23733 # trailing colons and then remove the whole line if VPATH becomes empty
23734 # (actually we leave an empty line to preserve line numbers).
23735 if test "x$srcdir" = x.; then
23736 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23737 s/:*\$(srcdir):*/:/
23738 s/:*\${srcdir}:*/:/
23740 s/^\([^=]*=[ ]*\):*/\1/
23746 cat >>$CONFIG_STATUS <<\_ACEOF
23747 fi # test -n "$CONFIG_FILES"
23750 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23753 :[FHLC]) ac_mode=$ac_tag; continue;;
23755 case $ac_mode$ac_tag in
23757 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23758 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23759 { (exit 1); exit 1; }; };;
23760 :[FH]-) ac_tag=-:-;;
23761 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23778 -) ac_f="$tmp/stdin";;
23779 *) # Look for the file first in the build tree, then in the source tree
23780 # (if the path is not absolute). The absolute path cannot be DOS-style,
23781 # because $ac_f cannot contain `:'.
23785 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23787 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23788 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23789 { (exit 1); exit 1; }; };;
23791 ac_file_inputs="$ac_file_inputs $ac_f"
23794 # Let's still pretend it is `configure' which instantiates (i.e., don't
23795 # use $as_me), people would be surprised to read:
23796 # /* config.h. Generated by config.status. */
23797 configure_input="Generated from "`IFS=:
23798 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23799 if test x"$ac_file" != x-; then
23800 configure_input="$ac_file. $configure_input"
23801 { echo "$as_me:$LINENO: creating $ac_file" >&5
23802 echo "$as_me: creating $ac_file" >&6;}
23806 *:-:* | *:-) cat >"$tmp/stdin";;
23811 ac_dir=`$as_dirname -- "$ac_file" ||
23812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23813 X"$ac_file" : 'X\(//\)[^/]' \| \
23814 X"$ac_file" : 'X\(//\)$' \| \
23815 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23821 /^X\(\/\/\)[^/].*/{
23836 -*) as_dir=./$as_dir;;
23838 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23842 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23843 *) as_qdir=$as_dir;;
23845 as_dirs="'$as_qdir' $as_dirs"
23846 as_dir=`$as_dirname -- "$as_dir" ||
23847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23848 X"$as_dir" : 'X\(//\)[^/]' \| \
23849 X"$as_dir" : 'X\(//\)$' \| \
23850 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23856 /^X\(\/\/\)[^/].*/{
23869 test -d "$as_dir" && break
23871 test -z "$as_dirs" || eval "mkdir $as_dirs"
23872 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23873 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23874 { (exit 1); exit 1; }; }; }
23878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23881 # A ".." for each directory in $ac_dir_suffix.
23882 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23883 case $ac_top_builddir_sub in
23884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23888 ac_abs_top_builddir=$ac_pwd
23889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23890 # for backward compatibility:
23891 ac_top_builddir=$ac_top_build_prefix
23894 .) # We are building in place.
23896 ac_top_srcdir=$ac_top_builddir_sub
23897 ac_abs_top_srcdir=$ac_pwd ;;
23898 [\\/]* | ?:[\\/]* ) # Absolute name.
23899 ac_srcdir=$srcdir$ac_dir_suffix;
23900 ac_top_srcdir=$srcdir
23901 ac_abs_top_srcdir=$srcdir ;;
23902 *) # Relative name.
23903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23904 ac_top_srcdir=$ac_top_build_prefix$srcdir
23905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23922 cat >>$CONFIG_STATUS <<\_ACEOF
23923 # If the template does not know about datarootdir, expand it.
23924 # FIXME: This hack should be removed a few years after 2.60.
23925 ac_datarootdir_hack=; ac_datarootdir_seen=
23927 case `sed -n '/datarootdir/ {
23936 ' $ac_file_inputs` in
23937 *datarootdir*) ac_datarootdir_seen=yes;;
23938 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23939 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23940 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23942 cat >>$CONFIG_STATUS <<_ACEOF
23943 ac_datarootdir_hack='
23944 s&@datadir@&$datadir&g
23945 s&@docdir@&$docdir&g
23946 s&@infodir@&$infodir&g
23947 s&@localedir@&$localedir&g
23948 s&@mandir@&$mandir&g
23949 s&\\\${datarootdir}&$datarootdir&g' ;;
23953 # Neutralize VPATH when `$srcdir' = `.'.
23954 # Shell code in configure.ac might set extrasub.
23955 # FIXME: do we really want to maintain this feature?
23956 cat >>$CONFIG_STATUS <<_ACEOF
23960 cat >>$CONFIG_STATUS <<\_ACEOF
23962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23963 s&@configure_input@&$configure_input&;t t
23964 s&@top_builddir@&$ac_top_builddir_sub&;t t
23965 s&@srcdir@&$ac_srcdir&;t t
23966 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23967 s&@top_srcdir@&$ac_top_srcdir&;t t
23968 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23969 s&@builddir@&$ac_builddir&;t t
23970 s&@abs_builddir@&$ac_abs_builddir&;t t
23971 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23972 s&@INSTALL@&$ac_INSTALL&;t t
23973 $ac_datarootdir_hack
23974 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23977 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23979 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23980 which seems to be undefined. Please make sure it is defined." >&5
23981 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23982 which seems to be undefined. Please make sure it is defined." >&2;}
23986 -) cat "$tmp/out"; rm -f "$tmp/out";;
23987 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23996 # Transform confdefs.h into a sed script `conftest.defines', that
23997 # substitutes the proper values into config.h.in to produce config.h.
23998 rm -f conftest.defines conftest.tail
23999 # First, append a space to every undef/define line, to ease matching.
24000 echo 's/$/ /' >conftest.defines
24001 # Then, protect against being on the right side of a sed subst, or in
24002 # an unquoted here document, in config.status. If some macros were
24003 # called several times there might be several #defines for the same
24004 # symbol, which is useless. But do not sort them, since the last
24005 # AC_DEFINE must be honored.
24006 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24007 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24008 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24009 # PARAMS is the parameter list in the macro definition--in most cases, it's
24010 # just an empty string.
24011 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24012 ac_dB='\\)[ (].*,\\1define\\2'
24020 s/^[ ]*#[ ]*define[ ][ ]*//
24025 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24026 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24027 ' >>conftest.defines
24029 # Remove the space that was appended to ease matching.
24030 # Then replace #undef with comments. This is necessary, for
24031 # example, in the case of _POSIX_SOURCE, which is predefined and required
24032 # on some systems where configure will not decide to define it.
24033 # (The regexp can be short, since the line contains either #define or #undef.)
24035 s,^[ #]*u.*,/* & */,' >>conftest.defines
24037 # Break up conftest.defines:
24038 ac_max_sed_lines=50
24040 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24041 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24042 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24044 ac_in='$ac_file_inputs'
24045 ac_out='"$tmp/out1"'
24046 ac_nxt='"$tmp/out2"'
24050 # Write a here document:
24051 cat >>$CONFIG_STATUS <<_ACEOF
24052 # First, check the format of the line:
24053 cat >"\$tmp/defines.sed" <<\\CEOF
24054 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24055 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24059 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24061 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24062 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24063 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24064 grep . conftest.tail >/dev/null || break
24065 rm -f conftest.defines
24066 mv conftest.tail conftest.defines
24068 rm -f conftest.defines conftest.tail
24070 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24071 cat >>$CONFIG_STATUS <<\_ACEOF
24072 if test x"$ac_file" != x-; then
24073 echo "/* $configure_input */" >"$tmp/config.h"
24074 cat "$ac_result" >>"$tmp/config.h"
24075 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24076 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24077 echo "$as_me: $ac_file is unchanged" >&6;}
24080 mv "$tmp/config.h" $ac_file
24083 echo "/* $configure_input */"
24089 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24090 echo "$as_me: executing $ac_file commands" >&6;}
24095 case $ac_file$ac_mode in
24096 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24097 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24098 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24099 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24100 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24101 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24102 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24103 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24104 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24105 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24106 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24107 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24108 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24109 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24110 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24111 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24112 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24113 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24114 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24115 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24116 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24117 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24118 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24119 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24120 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24121 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24127 { (exit 0); exit 0; }
24129 chmod +x $CONFIG_STATUS
24130 ac_clean_files=$ac_clean_files_save
24133 # configure is writing to config.log, and then calls config.status.
24134 # config.status does its own redirection, appending to config.log.
24135 # Unfortunately, on DOS this fails, as config.log is still kept open
24136 # by configure, so config.status won't be able to write to it; its
24137 # output is simply discarded. So we exec the FD to /dev/null,
24138 # effectively closing config.log, so it can be properly (re)opened and
24139 # appended to by config.status. When coming back to configure, we
24140 # need to make the FD available again.
24141 if test "$no_create" != yes; then
24143 ac_config_status_args=
24144 test "$silent" = yes &&
24145 ac_config_status_args="$ac_config_status_args --quiet"
24147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24150 # would make configure fail if this is the last instruction.
24151 $ac_cs_success || { (exit 1); exit 1; }
24155 # CONFIG_SUBDIRS section.
24157 if test "$no_recursion" != yes; then
24159 # Remove --cache-file and --srcdir arguments so they do not pile up.
24160 ac_sub_configure_args=
24162 eval "set x $ac_configure_args"
24166 if test -n "$ac_prev"; then
24171 -cache-file | --cache-file | --cache-fil | --cache-fi \
24172 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24173 ac_prev=cache_file ;;
24174 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24175 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24178 --config-cache | -C)
24180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24190 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24192 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24196 # Always prepend --prefix to ensure using the same prefix
24197 # in subdir configurations.
24198 ac_arg="--prefix=$prefix"
24200 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24202 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24205 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24207 # Do not complain, so a configure script can configure whichever
24208 # parts of a large source tree are present.
24209 test -d "$srcdir/$ac_dir" || continue
24211 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24212 echo "$as_me:$LINENO: $ac_msg" >&5
24216 -*) as_dir=./$as_dir;;
24218 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24222 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24223 *) as_qdir=$as_dir;;
24225 as_dirs="'$as_qdir' $as_dirs"
24226 as_dir=`$as_dirname -- "$as_dir" ||
24227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24228 X"$as_dir" : 'X\(//\)[^/]' \| \
24229 X"$as_dir" : 'X\(//\)$' \| \
24230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24236 /^X\(\/\/\)[^/].*/{
24249 test -d "$as_dir" && break
24251 test -z "$as_dirs" || eval "mkdir $as_dirs"
24252 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24253 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24254 { (exit 1); exit 1; }; }; }
24258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24260 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24261 # A ".." for each directory in $ac_dir_suffix.
24262 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24263 case $ac_top_builddir_sub in
24264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24268 ac_abs_top_builddir=$ac_pwd
24269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24270 # for backward compatibility:
24271 ac_top_builddir=$ac_top_build_prefix
24274 .) # We are building in place.
24276 ac_top_srcdir=$ac_top_builddir_sub
24277 ac_abs_top_srcdir=$ac_pwd ;;
24278 [\\/]* | ?:[\\/]* ) # Absolute name.
24279 ac_srcdir=$srcdir$ac_dir_suffix;
24280 ac_top_srcdir=$srcdir
24281 ac_abs_top_srcdir=$srcdir ;;
24282 *) # Relative name.
24283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24284 ac_top_srcdir=$ac_top_build_prefix$srcdir
24285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24292 # Check for guested configure; otherwise get Cygnus style configure.
24293 if test -f "$ac_srcdir/configure.gnu"; then
24294 ac_sub_configure=$ac_srcdir/configure.gnu
24295 elif test -f "$ac_srcdir/configure"; then
24296 ac_sub_configure=$ac_srcdir/configure
24297 elif test -f "$ac_srcdir/configure.in"; then
24298 # This should be Cygnus configure.
24299 ac_sub_configure=$ac_aux_dir/configure
24301 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24302 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24306 # The recursion is here.
24307 if test -n "$ac_sub_configure"; then
24308 # Make the cache file name correct relative to the subdirectory.
24309 case $cache_file in
24310 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24311 *) # Relative name.
24312 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24315 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24316 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24317 # The eval makes quoting arguments work.
24318 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24319 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24320 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24321 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24322 { (exit 1); exit 1; }; }