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" ;;
3829 *-*-freebsd* | *-*-kfreebsd-gnu)
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="OpenBSD"
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="NetBSD"
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="DragonFly"
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="HP-UX"
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="Interix"
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="Linux"
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="GNU"
3868 llvm_cv_platform_type="Unix" ;;
3870 llvm_cv_link_all_option="-Wl,-z,allextract"
3871 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3872 llvm_cv_os_type="SunOS"
3873 llvm_cv_platform_type="Unix" ;;
3875 llvm_cv_link_all_option="-Wl,-z,allextract"
3876 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3877 llvm_cv_os_type="AuroraUX"
3878 llvm_cv_platform_type="Unix" ;;
3880 llvm_cv_link_all_option="-Wl,--whole-archive"
3881 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3882 llvm_cv_os_type="Win32"
3883 llvm_cv_platform_type="Win32" ;;
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="MingW"
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="Haiku"
3893 llvm_cv_platform_type="Unix" ;;
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="Freestanding"
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=""
3906 llvm_cv_no_link_all_option=""
3907 llvm_cv_os_type="Unknown"
3908 llvm_cv_platform_type="Unknown" ;;
3911 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3912 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3914 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3915 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3916 if test "${llvm_cv_target_os_type+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 llvm_cv_target_os_type="AIX" ;;
3923 llvm_cv_target_os_type="IRIX" ;;
3925 llvm_cv_target_os_type="Cygwin" ;;
3927 llvm_cv_target_os_type="Darwin" ;;
3929 llvm_cv_target_os_type="Minix" ;;
3930 *-*-freebsd* | *-*-kfreebsd-gnu)
3931 llvm_cv_target_os_type="FreeBSD" ;;
3933 llvm_cv_target_os_type="OpenBSD" ;;
3935 llvm_cv_target_os_type="NetBSD" ;;
3937 llvm_cv_target_os_type="DragonFly" ;;
3939 llvm_cv_target_os_type="HP-UX" ;;
3941 llvm_cv_target_os_type="Interix" ;;
3943 llvm_cv_target_os_type="Linux" ;;
3945 llvm_cv_target_os_type="GNU" ;;
3947 llvm_cv_target_os_type="SunOS" ;;
3949 llvm_cv_target_os_type="AuroraUX" ;;
3951 llvm_cv_target_os_type="Win32" ;;
3953 llvm_cv_target_os_type="MingW" ;;
3955 llvm_cv_target_os_type="Haiku" ;;
3957 llvm_cv_target_os_type="RTEMS" ;;
3959 llvm_cv_target_os_type="NativeClient" ;;
3961 llvm_cv_target_os_type="Freestanding" ;;
3963 llvm_cv_target_os_type="Unknown" ;;
3966 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3967 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3969 if test "$llvm_cv_os_type" = "Unknown" ; then
3970 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3971 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3972 { (exit 1); exit 1; }; }
3977 HOST_OS=$llvm_cv_os_type
3979 TARGET_OS=$llvm_cv_target_os_type
3982 LINKALL=$llvm_cv_link_all_option
3984 NOLINKALL=$llvm_cv_no_link_all_option
3987 case $llvm_cv_platform_type in
3990 cat >>confdefs.h <<\_ACEOF
3991 #define LLVM_ON_UNIX 1
4001 cat >>confdefs.h <<\_ACEOF
4002 #define LLVM_ON_WIN32 1
4012 { echo "$as_me:$LINENO: checking target architecture" >&5
4013 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4014 if test "${llvm_cv_target_arch+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 i?86-*) llvm_cv_target_arch="x86" ;;
4019 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4020 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4021 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4022 arm*-*) llvm_cv_target_arch="ARM" ;;
4023 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4024 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4025 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4026 xcore-*) llvm_cv_target_arch="XCore" ;;
4027 msp430-*) llvm_cv_target_arch="MSP430" ;;
4028 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4029 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4030 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4031 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4032 *) llvm_cv_target_arch="Unknown" ;;
4035 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4036 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4038 if test "$llvm_cv_target_arch" = "Unknown" ; then
4039 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4040 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4043 case "$llvm_cv_target_arch" in
4044 x86) LLVM_NATIVE_ARCH="X86" ;;
4045 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4046 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4049 ARCH=$llvm_cv_target_arch
4053 i?86-*) host_arch="x86" ;;
4054 amd64-* | x86_64-*) host_arch="x86_64" ;;
4055 sparc*-*) host_arch="Sparc" ;;
4056 powerpc*-*) host_arch="PowerPC" ;;
4057 arm*-*) host_arch="ARM" ;;
4058 aarch64*-*) host_arch="AArch64" ;;
4059 mips-* | mips64-*) host_arch="Mips" ;;
4060 mipsel-* | mips64el-*) host_arch="Mips" ;;
4061 xcore-*) host_arch="XCore" ;;
4062 msp430-*) host_arch="MSP430" ;;
4063 hexagon-*) host_arch="Hexagon" ;;
4064 mblaze-*) host_arch="MBlaze" ;;
4065 s390x-*) host_arch="SystemZ" ;;
4066 *) host_arch="Unknown" ;;
4069 if test "$host_arch" = "Unknown" ; then
4070 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4071 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4074 HOST_ARCH=$host_arch
4079 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4080 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4081 if test "${ac_cv_path_GREP+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 # Extract the first word of "grep ggrep" to use in msg output
4085 if test -z "$GREP"; then
4086 set dummy grep ggrep; ac_prog_name=$2
4087 if test "${ac_cv_path_GREP+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 ac_path_GREP_found=false
4091 # Loop through the user's path and test for each of PROGNAME-LIST
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4096 test -z "$as_dir" && as_dir=.
4097 for ac_prog in grep ggrep; do
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4100 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4101 # Check for GNU ac_path_GREP and select it if it is found.
4102 # Check for GNU $ac_path_GREP
4103 case `"$ac_path_GREP" --version 2>&1` in
4105 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4108 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4111 cat "conftest.in" "conftest.in" >"conftest.tmp"
4112 mv "conftest.tmp" "conftest.in"
4113 cp "conftest.in" "conftest.nl"
4114 echo 'GREP' >> "conftest.nl"
4115 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117 ac_count=`expr $ac_count + 1`
4118 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4119 # Best one so far, save it but keep looking for a better one
4120 ac_cv_path_GREP="$ac_path_GREP"
4121 ac_path_GREP_max=$ac_count
4123 # 10*(2^10) chars as input seems more than enough
4124 test $ac_count -gt 10 && break
4126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4130 $ac_path_GREP_found && break 3
4140 GREP="$ac_cv_path_GREP"
4141 if test -z "$GREP"; then
4142 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4143 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4144 { (exit 1); exit 1; }; }
4148 ac_cv_path_GREP=$GREP
4153 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4154 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4155 GREP="$ac_cv_path_GREP"
4158 { echo "$as_me:$LINENO: checking for egrep" >&5
4159 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4160 if test "${ac_cv_path_EGREP+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4164 then ac_cv_path_EGREP="$GREP -E"
4166 # Extract the first word of "egrep" to use in msg output
4167 if test -z "$EGREP"; then
4168 set dummy egrep; ac_prog_name=$2
4169 if test "${ac_cv_path_EGREP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 ac_path_EGREP_found=false
4173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4178 test -z "$as_dir" && as_dir=.
4179 for ac_prog in egrep; do
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4182 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4183 # Check for GNU ac_path_EGREP and select it if it is found.
4184 # Check for GNU $ac_path_EGREP
4185 case `"$ac_path_EGREP" --version 2>&1` in
4187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4190 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 echo 'EGREP' >> "conftest.nl"
4197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199 ac_count=`expr $ac_count + 1`
4200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_EGREP="$ac_path_EGREP"
4203 ac_path_EGREP_max=$ac_count
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4212 $ac_path_EGREP_found && break 3
4222 EGREP="$ac_cv_path_EGREP"
4223 if test -z "$EGREP"; then
4224 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4225 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4226 { (exit 1); exit 1; }; }
4230 ac_cv_path_EGREP=$EGREP
4236 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4237 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4238 EGREP="$ac_cv_path_EGREP"
4241 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4242 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4243 if test "${ac_cv_header_stdc+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4265 rm -f conftest.$ac_objext
4266 if { (ac_try="$ac_compile"
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_compile") 2>conftest.er1
4274 grep -v '^ *+' conftest.er1 >conftest.err
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try='test -s conftest.$ac_objext'
4290 { (case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_try") 2>&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 ac_cv_header_stdc=yes
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 ac_cv_header_stdc=no
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 if test $ac_cv_header_stdc = yes; then
4310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "memchr" >/dev/null 2>&1; then
4324 ac_cv_header_stdc=no
4330 if test $ac_cv_header_stdc = yes; then
4331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342 $EGREP "free" >/dev/null 2>&1; then
4345 ac_cv_header_stdc=no
4351 if test $ac_cv_header_stdc = yes; then
4352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4353 if test "$cross_compiling" = yes; then
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4364 #if ((' ' & 0x0FF) == 0x020)
4365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4368 # define ISLOWER(c) \
4369 (('a' <= (c) && (c) <= 'i') \
4370 || ('j' <= (c) && (c) <= 'r') \
4371 || ('s' <= (c) && (c) <= 'z'))
4372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380 for (i = 0; i < 256; i++)
4381 if (XOR (islower (i), ISLOWER (i))
4382 || toupper (i) != TOUPPER (i))
4387 rm -f conftest$ac_exeext
4388 if { (ac_try="$ac_link"
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_link") 2>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4409 echo "$as_me: program exited with status $ac_status" >&5
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4414 ac_cv_header_stdc=no
4416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4422 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4423 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4424 if test $ac_cv_header_stdc = yes; then
4426 cat >>confdefs.h <<\_ACEOF
4427 #define STDC_HEADERS 1
4432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4443 inttypes.h stdint.h unistd.h
4445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 $ac_includes_default
4459 #include <$ac_header>
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_compile") 2>conftest.er1
4470 grep -v '^ *+' conftest.er1 >conftest.err
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4476 { (case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_try") 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_try") 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 eval "$as_ac_Header=yes"
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 eval "$as_ac_Header=no"
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 ac_res=`eval echo '${'$as_ac_Header'}'`
4506 { echo "$as_me:$LINENO: result: $ac_res" >&5
4507 echo "${ECHO_T}$ac_res" >&6; }
4508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4509 cat >>confdefs.h <<_ACEOF
4510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4519 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4520 if test "${ac_cv_c_bigendian+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 # See if sys/param.h defines the BYTE_ORDER macro.
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 #include <sys/types.h>
4531 #include <sys/param.h>
4536 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4544 rm -f conftest.$ac_objext
4545 if { (ac_try="$ac_compile"
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_compile") 2>conftest.er1
4553 grep -v '^ *+' conftest.er1 >conftest.err
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4559 { (case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_try") 2>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; } &&
4568 { ac_try='test -s conftest.$ac_objext'
4569 { (case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_try") 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 # It does; now see whether it defined to BIG_ENDIAN or not.
4579 cat >conftest.$ac_ext <<_ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 #include <sys/types.h>
4586 #include <sys/param.h>
4591 #if BYTE_ORDER != BIG_ENDIAN
4599 rm -f conftest.$ac_objext
4600 if { (ac_try="$ac_compile"
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_compile") 2>conftest.er1
4608 grep -v '^ *+' conftest.er1 >conftest.err
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; } &&
4623 { ac_try='test -s conftest.$ac_objext'
4624 { (case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4629 (eval "$ac_try") 2>&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_cv_c_bigendian=yes
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 ac_cv_c_bigendian=no
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 # It does not; compile a test program.
4647 if test "$cross_compiling" = yes; then
4648 # try to guess the endianness by grepping values into an object file
4649 ac_cv_c_bigendian=unknown
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4657 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4658 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4659 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4660 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4661 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4665 _ascii (); _ebcdic ();
4670 rm -f conftest.$ac_objext
4671 if { (ac_try="$ac_compile"
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677 (eval "$ac_compile") 2>conftest.er1
4679 grep -v '^ *+' conftest.er1 >conftest.err
4681 cat conftest.err >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4685 { (case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_try") 2>&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_try") 2>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4705 ac_cv_c_bigendian=yes
4707 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4708 if test "$ac_cv_c_bigendian" = unknown; then
4709 ac_cv_c_bigendian=no
4711 # finding both strings is unlikely to happen, but who knows?
4712 ac_cv_c_bigendian=unknown
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 $ac_includes_default
4735 /* Are we little or big endian? From Harbison&Steele. */
4739 char c[sizeof (long int)];
4742 return u.c[sizeof (long int) - 1] == 1;
4748 rm -f conftest$ac_exeext
4749 if { (ac_try="$ac_link"
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755 (eval "$ac_link") 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4759 { (case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_try") 2>&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 ac_cv_c_bigendian=no
4770 echo "$as_me: program exited with status $ac_status" >&5
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4775 ac_cv_c_bigendian=yes
4777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4786 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4787 case $ac_cv_c_bigendian in
4795 { { echo "$as_me:$LINENO: error: unknown endianness
4796 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4797 echo "$as_me: error: unknown endianness
4798 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4799 { (exit 1); exit 1; }; } ;;
4803 if test "$cross_compiling" = yes; then
4804 LLVM_CROSS_COMPILING=1
4807 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4808 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4809 if test "${ac_cv_build_exeext+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4813 ac_cv_build_exeext=.exe
4815 ac_build_prefix=${build_alias}-
4817 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4818 set dummy ${ac_build_prefix}gcc; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 if test -n "$BUILD_CC"; then
4825 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 BUILD_CC=$ac_cv_prog_BUILD_CC
4845 if test -n "$BUILD_CC"; then
4846 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4847 echo "${ECHO_T}$BUILD_CC" >&6; }
4849 { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4854 if test -z "$BUILD_CC"; then
4855 # Extract the first word of "gcc", so it can be a program name with args.
4856 set dummy gcc; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 if test -n "$BUILD_CC"; then
4863 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_BUILD_CC="gcc"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 BUILD_CC=$ac_cv_prog_BUILD_CC
4883 if test -n "$BUILD_CC"; then
4884 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4885 echo "${ECHO_T}$BUILD_CC" >&6; }
4887 { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4892 if test -z "$BUILD_CC"; then
4893 # Extract the first word of "cc", so it can be a program name with args.
4894 set dummy cc; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 if test -n "$BUILD_CC"; then
4901 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4912 ac_prog_rejected=yes
4915 ac_cv_prog_BUILD_CC="cc"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 if test $ac_prog_rejected = yes; then
4924 # We found a bogon in the path, so make sure we never use it.
4925 set dummy $ac_cv_prog_BUILD_CC
4927 if test $# != 0; then
4928 # We chose a different compiler from the bogus one.
4929 # However, it has the same basename, so the bogon will be chosen
4930 # first if we set BUILD_CC to just the basename; use the full file name.
4932 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4937 BUILD_CC=$ac_cv_prog_BUILD_CC
4938 if test -n "$BUILD_CC"; then
4939 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4940 echo "${ECHO_T}$BUILD_CC" >&6; }
4942 { echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6; }
4949 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4950 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4951 { (exit 1); exit 1; }; }
4952 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4954 echo 'int main () { return 0; }' > conftest.$ac_ext
4956 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4957 (eval $ac_build_link) 2>&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; then
4961 for file in conftest.*; do
4963 *.c | *.o | *.obj | *.dSYM) ;;
4964 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4968 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4969 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4970 { (exit 1); exit 1; }; }
4973 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4978 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4979 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4980 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4981 ac_build_exeext=$BUILD_EXEEXT
4983 ac_build_prefix=${build_alias}-
4984 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4985 set dummy ${ac_build_prefix}g++; ac_word=$2
4986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4988 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 if test -n "$BUILD_CXX"; then
4992 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5012 if test -n "$BUILD_CXX"; then
5013 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5014 echo "${ECHO_T}$BUILD_CXX" >&6; }
5016 { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5021 if test -z "$BUILD_CXX"; then
5022 # Extract the first word of "g++", so it can be a program name with args.
5023 set dummy g++; ac_word=$2
5024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5026 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 if test -n "$BUILD_CXX"; then
5030 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_BUILD_CXX="g++"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5050 if test -n "$BUILD_CXX"; then
5051 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5052 echo "${ECHO_T}$BUILD_CXX" >&6; }
5054 { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5059 if test -z "$BUILD_CXX"; then
5060 # Extract the first word of "c++", so it can be a program name with args.
5061 set dummy c++; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 if test -n "$BUILD_CXX"; then
5068 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5079 ac_prog_rejected=yes
5082 ac_cv_prog_BUILD_CXX="c++"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 if test $ac_prog_rejected = yes; then
5091 # We found a bogon in the path, so make sure we never use it.
5092 set dummy $ac_cv_prog_BUILD_CXX
5094 if test $# != 0; then
5095 # We chose a different compiler from the bogus one.
5096 # However, it has the same basename, so the bogon will be chosen
5097 # first if we set BUILD_CXX to just the basename; use the full file name.
5099 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5104 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5105 if test -n "$BUILD_CXX"; then
5106 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5107 echo "${ECHO_T}$BUILD_CXX" >&6; }
5109 { echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6; }
5117 LLVM_CROSS_COMPILING=0
5121 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5132 # Check whether --enable-libcpp was given.
5133 if test "${enable_libcpp+set}" = set; then
5134 enableval=$enable_libcpp;
5139 case "$enableval" in
5140 yes) ENABLE_LIBCPP=1
5144 default) ENABLE_LIBCPP=0
5146 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5147 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5151 # Check whether --enable-cxx11 was given.
5152 if test "${enable_cxx11+set}" = set; then
5153 enableval=$enable_cxx11;
5158 case "$enableval" in
5163 default) ENABLE_CXX11=0
5165 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5166 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5167 { (exit 1); exit 1; }; } ;;
5170 # Check whether --enable-split-dwarf was given.
5171 if test "${enable_split_dwarf+set}" = set; then
5172 enableval=$enable_split_dwarf;
5177 case "$enableval" in
5178 yes) ENABLE_SPLIT_DWARF=1
5180 no) ENABLE_SPLIT_DWARF=0
5182 default) ENABLE_SPLIT_DWARF=0
5184 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5185 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5186 { (exit 1); exit 1; }; } ;;
5190 # Check whether --enable-clang-arcmt was given.
5191 if test "${enable_clang_arcmt+set}" = set; then
5192 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5197 case "$enableval" in
5198 yes) ENABLE_CLANG_ARCMT=1
5200 no) ENABLE_CLANG_ARCMT=0
5202 default) ENABLE_CLANG_ARCMT=1
5204 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5205 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5206 { (exit 1); exit 1; }; } ;;
5209 clang_static_analyzer="yes"
5210 # Check whether --enable-clang-static-analyzer was given.
5211 if test "${enable_clang_static_analyzer+set}" = set; then
5212 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5217 case "$enableval" in
5218 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5220 no) ENABLE_CLANG_STATIC_ANALYZER=0
5222 default) ENABLE_CLANG_STATIC_ANALYZER=1
5224 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5229 # Check whether --enable-clang-rewriter was given.
5230 if test "${enable_clang_rewriter+set}" = set; then
5231 enableval=$enable_clang_rewriter;
5236 case "$enableval" in
5237 yes) ENABLE_CLANG_REWRITER=1
5240 if test ${clang_arcmt} != "no" ; then
5241 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5242 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5243 { (exit 1); exit 1; }; }
5245 if test ${clang_static_analyzer} != "no" ; then
5246 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5247 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5248 { (exit 1); exit 1; }; }
5250 ENABLE_CLANG_REWRITER=0
5253 default) ENABLE_CLANG_REWRITER=1
5255 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5256 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5257 { (exit 1); exit 1; }; } ;;
5260 # Check whether --enable-optimized was given.
5261 if test "${enable_optimized+set}" = set; then
5262 enableval=$enable_optimized;
5267 if test ${enableval} = "no" ; then
5271 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5275 # Check whether --enable-profiling was given.
5276 if test "${enable_profiling+set}" = set; then
5277 enableval=$enable_profiling;
5282 if test ${enableval} = "no" ; then
5286 ENABLE_PROFILING=ENABLE_PROFILING=1
5290 # Check whether --enable-assertions was given.
5291 if test "${enable_assertions+set}" = set; then
5292 enableval=$enable_assertions;
5297 if test ${enableval} = "yes" ; then
5301 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5305 # Check whether --enable-werror was given.
5306 if test "${enable_werror+set}" = set; then
5307 enableval=$enable_werror;
5312 case "$enableval" in
5313 yes) ENABLE_WERROR=1
5317 default) ENABLE_WERROR=0
5319 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5320 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5321 { (exit 1); exit 1; }; } ;;
5324 # Check whether --enable-expensive-checks was given.
5325 if test "${enable_expensive_checks+set}" = set; then
5326 enableval=$enable_expensive_checks;
5331 if test ${enableval} = "yes" ; then
5332 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5334 EXPENSIVE_CHECKS=yes
5337 ENABLE_EXPENSIVE_CHECKS=
5343 # Check whether --enable-debug-runtime was given.
5344 if test "${enable_debug_runtime+set}" = set; then
5345 enableval=$enable_debug_runtime;
5350 if test ${enableval} = "no" ; then
5354 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5358 # Check whether --enable-debug-symbols was given.
5359 if test "${enable_debug_symbols+set}" = set; then
5360 enableval=$enable_debug_symbols;
5365 if test ${enableval} = "no" ; then
5369 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5373 # Check whether --enable-keep-symbols was given.
5374 if test "${enable_keep_symbols+set}" = set; then
5375 enableval=$enable_keep_symbols;
5380 if test ${enableval} = "no" ; then
5384 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5388 # Check whether --enable-jit was given.
5389 if test "${enable_jit+set}" = set; then
5390 enableval=$enable_jit;
5395 if test ${enableval} = "no"
5400 case "$llvm_cv_target_arch" in
5401 x86) TARGET_HAS_JIT=1
5403 Sparc) TARGET_HAS_JIT=0
5405 PowerPC) TARGET_HAS_JIT=1
5407 x86_64) TARGET_HAS_JIT=1
5409 ARM) TARGET_HAS_JIT=1
5411 AArch64) TARGET_HAS_JIT=0
5413 Mips) TARGET_HAS_JIT=1
5415 XCore) TARGET_HAS_JIT=0
5417 MSP430) TARGET_HAS_JIT=0
5419 Hexagon) TARGET_HAS_JIT=0
5421 MBlaze) TARGET_HAS_JIT=0
5423 NVPTX) TARGET_HAS_JIT=0
5425 SystemZ) TARGET_HAS_JIT=1
5432 # Check whether --enable-docs was given.
5433 if test "${enable_docs+set}" = set; then
5434 enableval=$enable_docs;
5439 case "$enableval" in
5444 default) ENABLE_DOCS=1
5446 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5447 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5448 { (exit 1); exit 1; }; } ;;
5451 # Check whether --enable-doxygen was given.
5452 if test "${enable_doxygen+set}" = set; then
5453 enableval=$enable_doxygen;
5458 case "$enableval" in
5459 yes) ENABLE_DOXYGEN=1
5461 no) ENABLE_DOXYGEN=0
5463 default) ENABLE_DOXYGEN=0
5465 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5466 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5467 { (exit 1); exit 1; }; } ;;
5470 # Check whether --enable-threads was given.
5471 if test "${enable_threads+set}" = set; then
5472 enableval=$enable_threads;
5477 case "$enableval" in
5478 yes) LLVM_ENABLE_THREADS=1
5480 no) LLVM_ENABLE_THREADS=0
5482 default) LLVM_ENABLE_THREADS=1
5484 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5485 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5486 { (exit 1); exit 1; }; } ;;
5489 cat >>confdefs.h <<_ACEOF
5490 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5494 # Check whether --enable-pthreads was given.
5495 if test "${enable_pthreads+set}" = set; then
5496 enableval=$enable_pthreads;
5501 case "$enableval" in
5502 yes) ENABLE_PTHREADS=1
5504 no) ENABLE_PTHREADS=0
5506 default) ENABLE_PTHREADS=1
5508 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5509 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5510 { (exit 1); exit 1; }; } ;;
5513 # Check whether --enable-zlib was given.
5514 if test "${enable_zlib+set}" = set; then
5515 enableval=$enable_zlib;
5520 case "$enableval" in
5521 yes) LLVM_ENABLE_ZLIB=1
5523 no) LLVM_ENABLE_ZLIB=0
5525 default) LLVM_ENABLE_ZLIB=1
5527 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5528 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5529 { (exit 1); exit 1; }; } ;;
5532 cat >>confdefs.h <<_ACEOF
5533 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5537 # Check whether --enable-pic was given.
5538 if test "${enable_pic+set}" = set; then
5539 enableval=$enable_pic;
5544 case "$enableval" in
5549 default) ENABLE_PIC=1
5551 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5552 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5553 { (exit 1); exit 1; }; } ;;
5556 cat >>confdefs.h <<_ACEOF
5557 #define ENABLE_PIC $ENABLE_PIC
5561 # Check whether --enable-shared was given.
5562 if test "${enable_shared+set}" = set; then
5563 enableval=$enable_shared;
5568 case "$enableval" in
5569 yes) ENABLE_SHARED=1
5573 default) ENABLE_SHARED=0
5575 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5576 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5577 { (exit 1); exit 1; }; } ;;
5580 # Check whether --enable-embed-stdcxx was given.
5581 if test "${enable_embed_stdcxx+set}" = set; then
5582 enableval=$enable_embed_stdcxx;
5587 case "$enableval" in
5588 yes) ENABLE_EMBED_STDCXX=1
5590 no) ENABLE_EMBED_STDCXX=0
5592 default) ENABLE_EMBED_STDCXX=0
5594 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5595 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5596 { (exit 1); exit 1; }; } ;;
5599 # Check whether --enable-timestamps was given.
5600 if test "${enable_timestamps+set}" = set; then
5601 enableval=$enable_timestamps;
5606 case "$enableval" in
5607 yes) ENABLE_TIMESTAMPS=1
5609 no) ENABLE_TIMESTAMPS=0
5611 default) ENABLE_TIMESTAMPS=1
5613 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5614 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5615 { (exit 1); exit 1; }; } ;;
5618 cat >>confdefs.h <<_ACEOF
5619 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5624 # Check whether --enable-backtraces was given.
5625 if test "${enable_backtraces+set}" = set; then
5626 enableval=$enable_backtraces;
5631 case "$enableval" in
5632 yes) ENABLE_BACKTRACES=1
5634 no) ENABLE_BACKTRACES=0
5636 default) ENABLE_BACKTRACES=1
5638 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5639 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5640 { (exit 1); exit 1; }; } ;;
5643 cat >>confdefs.h <<_ACEOF
5644 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5649 # Check whether --enable-targets was given.
5650 if test "${enable_targets+set}" = set; then
5651 enableval=$enable_targets;
5656 if test "$enableval" = host-only ; then
5659 case "$enableval" in
5660 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5661 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5663 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5664 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5665 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5666 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5667 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5668 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5669 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5670 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5671 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5672 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5673 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5674 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5675 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5676 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5677 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5678 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5679 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5680 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5681 host) case "$llvm_cv_target_arch" in
5682 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5683 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5684 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5685 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5686 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5687 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5688 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5689 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5690 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5691 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5692 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5693 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5694 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5695 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5696 echo "$as_me: error: Can not set target to build" >&2;}
5697 { (exit 1); exit 1; }; } ;;
5699 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5700 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5701 { (exit 1); exit 1; }; } ;;
5707 # Check whether --enable-experimental-targets was given.
5708 if test "${enable_experimental_targets+set}" = set; then
5709 enableval=$enable_experimental_targets;
5715 if test ${enableval} != "disable"
5717 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5720 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5723 for a_target in $TARGETS_TO_BUILD; do
5724 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5726 cat >>confdefs.h <<_ACEOF
5727 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5730 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5731 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5732 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5733 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5734 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5735 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5737 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5738 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5746 cat >>confdefs.h <<_ACEOF
5747 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5751 cat >>confdefs.h <<_ACEOF
5752 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5756 cat >>confdefs.h <<_ACEOF
5757 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5760 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5762 cat >>confdefs.h <<_ACEOF
5763 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5767 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5769 cat >>confdefs.h <<_ACEOF
5770 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5777 LLVM_ENUM_TARGETS=""
5778 LLVM_ENUM_ASM_PRINTERS=""
5779 LLVM_ENUM_ASM_PARSERS=""
5780 LLVM_ENUM_DISASSEMBLERS=""
5781 for target_to_build in $TARGETS_TO_BUILD; do
5782 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5783 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5784 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5786 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5787 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5789 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5790 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5799 # Check whether --with-optimize-option was given.
5800 if test "${with_optimize_option+set}" = set; then
5801 withval=$with_optimize_option;
5806 { echo "$as_me:$LINENO: checking optimization flags" >&5
5807 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5810 case "$llvm_cv_os_type" in
5811 FreeBSD) optimize_option=-O2 ;;
5812 MingW) optimize_option=-O2 ;;
5813 *) optimize_option=-O3 ;;
5815 *) optimize_option="$withval" ;;
5817 OPTIMIZE_OPTION=$optimize_option
5819 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5820 echo "${ECHO_T}$optimize_option" >&6; }
5823 # Check whether --with-extra-options was given.
5824 if test "${with_extra_options+set}" = set; then
5825 withval=$with_extra_options;
5831 default) EXTRA_OPTIONS= ;;
5832 *) EXTRA_OPTIONS=$withval ;;
5834 EXTRA_OPTIONS=$EXTRA_OPTIONS
5838 # Check whether --with-extra-ld-options was given.
5839 if test "${with_extra_ld_options+set}" = set; then
5840 withval=$with_extra_ld_options;
5846 default) EXTRA_LD_OPTIONS= ;;
5847 *) EXTRA_LD_OPTIONS=$withval ;;
5849 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5852 # Check whether --enable-bindings was given.
5853 if test "${enable_bindings+set}" = set; then
5854 enableval=$enable_bindings;
5859 BINDINGS_TO_BUILD=""
5860 case "$enableval" in
5861 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5862 all ) BINDINGS_TO_BUILD="ocaml" ;;
5863 none | no) BINDINGS_TO_BUILD="" ;;
5864 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5865 case "$a_binding" in
5866 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5867 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5868 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5869 { (exit 1); exit 1; }; } ;;
5876 # Check whether --with-ocaml-libdir was given.
5877 if test "${with_ocaml_libdir+set}" = set; then
5878 withval=$with_ocaml_libdir;
5884 auto) with_ocaml_libdir="$withval" ;;
5885 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5886 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5887 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5888 { (exit 1); exit 1; }; } ;;
5892 # Check whether --with-clang-srcdir was given.
5893 if test "${with_clang_srcdir+set}" = set; then
5894 withval=$with_clang_srcdir;
5900 -) clang_src_root="" ;;
5901 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5902 *) clang_src_root="$ac_pwd/$withval" ;;
5904 CLANG_SRC_ROOT=$clang_src_root
5908 # Check whether --with-clang-resource-dir was given.
5909 if test "${with_clang_resource_dir+set}" = set; then
5910 withval=$with_clang_resource_dir;
5916 cat >>confdefs.h <<_ACEOF
5917 #define CLANG_RESOURCE_DIR "$withval"
5922 # Check whether --with-c-include-dirs was given.
5923 if test "${with_c_include_dirs+set}" = set; then
5924 withval=$with_c_include_dirs;
5930 cat >>confdefs.h <<_ACEOF
5931 #define C_INCLUDE_DIRS "$withval"
5935 # Clang normally uses the system c++ headers and libraries. With this option,
5936 # clang will use the ones provided by a gcc installation instead. This option should
5937 # be passed the same value that was used with --prefix when configuring gcc.
5939 # Check whether --with-gcc-toolchain was given.
5940 if test "${with_gcc_toolchain+set}" = set; then
5941 withval=$with_gcc_toolchain;
5947 cat >>confdefs.h <<_ACEOF
5948 #define GCC_INSTALL_PREFIX "$withval"
5953 # Check whether --with-default-sysroot was given.
5954 if test "${with_default_sysroot+set}" = set; then
5955 withval=$with_default_sysroot;
5961 cat >>confdefs.h <<_ACEOF
5962 #define DEFAULT_SYSROOT "$withval"
5967 # Check whether --with-binutils-include was given.
5968 if test "${with_binutils_include+set}" = set; then
5969 withval=$with_binutils_include;
5975 default) WITH_BINUTILS_INCDIR=default ;;
5976 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5977 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5978 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5979 { (exit 1); exit 1; }; } ;;
5981 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5982 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5984 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5985 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5986 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5987 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5988 { (exit 1); exit 1; }; };
5993 # Check whether --with-bug-report-url was given.
5994 if test "${with_bug_report_url+set}" = set; then
5995 withval=$with_bug_report_url;
5997 withval="http://llvm.org/bugs/"
6001 cat >>confdefs.h <<_ACEOF
6002 #define BUG_REPORT_URL "$withval"
6006 # Check whether --enable-libffi was given.
6007 if test "${enable_libffi+set}" = set; then
6008 enableval=$enable_libffi; case "$enableval" in
6009 yes) llvm_cv_enable_libffi="yes" ;;
6010 no) llvm_cv_enable_libffi="no" ;;
6011 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6012 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6013 { (exit 1); exit 1; }; } ;;
6016 llvm_cv_enable_libffi=no
6021 # Check whether --with-internal-prefix was given.
6022 if test "${with_internal_prefix+set}" = set; then
6023 withval=$with_internal_prefix;
6028 INTERNAL_PREFIX=$withval
6032 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6033 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6034 if test "${lt_cv_path_NM+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 if test -n "$NM"; then
6038 # Let the user override the test.
6041 lt_nm_to_check="${ac_tool_prefix}nm"
6042 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6043 lt_nm_to_check="$lt_nm_to_check nm"
6045 for lt_tmp_nm in $lt_nm_to_check; do
6046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6047 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6049 test -z "$ac_dir" && ac_dir=.
6050 tmp_nm="$ac_dir/$lt_tmp_nm"
6051 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6052 # Check to see if the nm accepts a BSD-compat flag.
6053 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6054 # nm: unknown option "B" ignored
6055 # Tru64's nm complains that /dev/null is an invalid object file
6056 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6057 */dev/null* | *'Invalid file or object type'*)
6058 lt_cv_path_NM="$tmp_nm -B"
6062 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6064 lt_cv_path_NM="$tmp_nm -p"
6068 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6069 continue # so that we can try to find one that supports BSD flags
6078 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6081 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6082 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6087 { echo "$as_me:$LINENO: checking for GNU make" >&5
6088 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6089 if test "${llvm_cv_gnu_make_command+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 llvm_cv_gnu_make_command=''
6093 for a in "$MAKE" make gmake gnumake ; do
6094 if test -z "$a" ; then continue ; fi ;
6095 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6097 llvm_cv_gnu_make_command=$a ;
6102 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6103 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6104 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6108 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6109 echo "${ECHO_T}\"Not found\"" >&6; };
6113 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6114 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6116 if test "$LN_S" = "ln -s"; then
6117 { echo "$as_me:$LINENO: result: yes" >&5
6118 echo "${ECHO_T}yes" >&6; }
6120 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6121 echo "${ECHO_T}no, using $LN_S" >&6; }
6124 # Extract the first word of "cmp", so it can be a program name with args.
6125 set dummy cmp; ac_word=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_path_CMP+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6143 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6156 if test -n "$CMP"; then
6157 { echo "$as_me:$LINENO: result: $CMP" >&5
6158 echo "${ECHO_T}$CMP" >&6; }
6160 { echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6; }
6165 # Extract the first word of "cp", so it can be a program name with args.
6166 set dummy cp; ac_word=$2
6167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169 if test "${ac_cv_path_CP+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6197 if test -n "$CP"; then
6198 { echo "$as_me:$LINENO: result: $CP" >&5
6199 echo "${ECHO_T}$CP" >&6; }
6201 { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6206 # Extract the first word of "date", so it can be a program name with args.
6207 set dummy date; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_path_DATE+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6237 DATE=$ac_cv_path_DATE
6238 if test -n "$DATE"; then
6239 { echo "$as_me:$LINENO: result: $DATE" >&5
6240 echo "${ECHO_T}$DATE" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6247 # Extract the first word of "find", so it can be a program name with args.
6248 set dummy find; ac_word=$2
6249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6251 if test "${ac_cv_path_FIND+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6278 FIND=$ac_cv_path_FIND
6279 if test -n "$FIND"; then
6280 { echo "$as_me:$LINENO: result: $FIND" >&5
6281 echo "${ECHO_T}$FIND" >&6; }
6283 { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6288 # Extract the first word of "grep", so it can be a program name with args.
6289 set dummy grep; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_path_GREP+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6319 GREP=$ac_cv_path_GREP
6320 if test -n "$GREP"; then
6321 { echo "$as_me:$LINENO: result: $GREP" >&5
6322 echo "${ECHO_T}$GREP" >&6; }
6324 { echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6; }
6329 # Extract the first word of "mkdir", so it can be a program name with args.
6330 set dummy mkdir; ac_word=$2
6331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6333 if test "${ac_cv_path_MKDIR+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6360 MKDIR=$ac_cv_path_MKDIR
6361 if test -n "$MKDIR"; then
6362 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6363 echo "${ECHO_T}$MKDIR" >&6; }
6365 { echo "$as_me:$LINENO: result: no" >&5
6366 echo "${ECHO_T}no" >&6; }
6370 # Extract the first word of "mv", so it can be a program name with args.
6371 set dummy mv; ac_word=$2
6372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6374 if test "${ac_cv_path_MV+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6402 if test -n "$MV"; then
6403 { echo "$as_me:$LINENO: result: $MV" >&5
6404 echo "${ECHO_T}$MV" >&6; }
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6411 if test -n "$ac_tool_prefix"; then
6412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_RANLIB+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 if test -n "$RANLIB"; then
6420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 RANLIB=$ac_cv_prog_RANLIB
6440 if test -n "$RANLIB"; then
6441 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6442 echo "${ECHO_T}$RANLIB" >&6; }
6444 { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6450 if test -z "$ac_cv_prog_RANLIB"; then
6451 ac_ct_RANLIB=$RANLIB
6452 # Extract the first word of "ranlib", so it can be a program name with args.
6453 set dummy ranlib; ac_word=$2
6454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 if test -n "$ac_ct_RANLIB"; then
6460 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_ac_ct_RANLIB="ranlib"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6480 if test -n "$ac_ct_RANLIB"; then
6481 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6482 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6484 { echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6; }
6488 if test "x$ac_ct_RANLIB" = x; then
6491 case $cross_compiling:$ac_tool_warned in
6493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6494 whose name does not start with the host triplet. If you think this
6495 configuration is useful to you, please write to autoconf@gnu.org." >&5
6496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6497 whose name does not start with the host triplet. If you think this
6498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6499 ac_tool_warned=yes ;;
6501 RANLIB=$ac_ct_RANLIB
6504 RANLIB="$ac_cv_prog_RANLIB"
6507 if test -n "$ac_tool_prefix"; then
6508 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6509 set dummy ${ac_tool_prefix}ar; ac_word=$2
6510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512 if test "${ac_cv_prog_AR+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 if test -n "$AR"; then
6516 ac_cv_prog_AR="$AR" # Let the user override the test.
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_AR="${ac_tool_prefix}ar"
6526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 if test -n "$AR"; then
6537 { echo "$as_me:$LINENO: result: $AR" >&5
6538 echo "${ECHO_T}$AR" >&6; }
6540 { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6546 if test -z "$ac_cv_prog_AR"; then
6548 # Extract the first word of "ar", so it can be a program name with args.
6549 set dummy ar; ac_word=$2
6550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 if test -n "$ac_ct_AR"; then
6556 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_ac_ct_AR="ar"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6576 if test -n "$ac_ct_AR"; then
6577 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6578 echo "${ECHO_T}$ac_ct_AR" >&6; }
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6584 if test "x$ac_ct_AR" = x; then
6587 case $cross_compiling:$ac_tool_warned in
6589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6590 whose name does not start with the host triplet. If you think this
6591 configuration is useful to you, please write to autoconf@gnu.org." >&5
6592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet. If you think this
6594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6595 ac_tool_warned=yes ;;
6603 # Extract the first word of "rm", so it can be a program name with args.
6604 set dummy rm; ac_word=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_path_RM+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6635 if test -n "$RM"; then
6636 { echo "$as_me:$LINENO: result: $RM" >&5
6637 echo "${ECHO_T}$RM" >&6; }
6639 { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6644 # Extract the first word of "sed", so it can be a program name with args.
6645 set dummy sed; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_path_SED+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6676 if test -n "$SED"; then
6677 { echo "$as_me:$LINENO: result: $SED" >&5
6678 echo "${ECHO_T}$SED" >&6; }
6680 { echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6; }
6685 # Extract the first word of "tar", so it can be a program name with args.
6686 set dummy tar; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_TAR+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6717 if test -n "$TAR"; then
6718 { echo "$as_me:$LINENO: result: $TAR" >&5
6719 echo "${ECHO_T}$TAR" >&6; }
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6726 # Extract the first word of "pwd", so it can be a program name with args.
6727 set dummy pwd; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_BINPWD+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6757 BINPWD=$ac_cv_path_BINPWD
6758 if test -n "$BINPWD"; then
6759 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6760 echo "${ECHO_T}$BINPWD" >&6; }
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6768 # Extract the first word of "Graphviz", so it can be a program name with args.
6769 set dummy Graphviz; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6799 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6800 if test -n "$GRAPHVIZ"; then
6801 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6802 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6804 { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6809 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_GRAPHVIZ 1
6815 if test "$llvm_cv_os_type" = "MingW" ; then
6816 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6819 cat >>confdefs.h <<_ACEOF
6820 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6824 # Extract the first word of "dot", so it can be a program name with args.
6825 set dummy dot; ac_word=$2
6826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828 if test "${ac_cv_path_DOT+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6856 if test -n "$DOT"; then
6857 { echo "$as_me:$LINENO: result: $DOT" >&5
6858 echo "${ECHO_T}$DOT" >&6; }
6860 { echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6; }
6865 if test "$DOT" != "echo dot" ; then
6867 cat >>confdefs.h <<\_ACEOF
6871 if test "$llvm_cv_os_type" = "MingW" ; then
6872 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6875 cat >>confdefs.h <<_ACEOF
6876 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6880 # Extract the first word of "fdp", so it can be a program name with args.
6881 set dummy fdp; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_FDP+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6912 if test -n "$FDP"; then
6913 { echo "$as_me:$LINENO: result: $FDP" >&5
6914 echo "${ECHO_T}$FDP" >&6; }
6916 { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6921 if test "$FDP" != "echo fdp" ; then
6923 cat >>confdefs.h <<\_ACEOF
6927 if test "$llvm_cv_os_type" = "MingW" ; then
6928 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6931 cat >>confdefs.h <<_ACEOF
6932 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6936 # Extract the first word of "neato", so it can be a program name with args.
6937 set dummy neato; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_NEATO+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6967 NEATO=$ac_cv_path_NEATO
6968 if test -n "$NEATO"; then
6969 { echo "$as_me:$LINENO: result: $NEATO" >&5
6970 echo "${ECHO_T}$NEATO" >&6; }
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6977 if test "$NEATO" != "echo neato" ; then
6979 cat >>confdefs.h <<\_ACEOF
6980 #define HAVE_NEATO 1
6983 if test "$llvm_cv_os_type" = "MingW" ; then
6984 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6987 cat >>confdefs.h <<_ACEOF
6988 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6992 # Extract the first word of "twopi", so it can be a program name with args.
6993 set dummy twopi; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_TWOPI+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7023 TWOPI=$ac_cv_path_TWOPI
7024 if test -n "$TWOPI"; then
7025 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7026 echo "${ECHO_T}$TWOPI" >&6; }
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7033 if test "$TWOPI" != "echo twopi" ; then
7035 cat >>confdefs.h <<\_ACEOF
7036 #define HAVE_TWOPI 1
7039 if test "$llvm_cv_os_type" = "MingW" ; then
7040 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7043 cat >>confdefs.h <<_ACEOF
7044 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7048 # Extract the first word of "circo", so it can be a program name with args.
7049 set dummy circo; ac_word=$2
7050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7052 if test "${ac_cv_path_CIRCO+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7079 CIRCO=$ac_cv_path_CIRCO
7080 if test -n "$CIRCO"; then
7081 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7082 echo "${ECHO_T}$CIRCO" >&6; }
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7089 if test "$CIRCO" != "echo circo" ; then
7091 cat >>confdefs.h <<\_ACEOF
7092 #define HAVE_CIRCO 1
7095 if test "$llvm_cv_os_type" = "MingW" ; then
7096 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7099 cat >>confdefs.h <<_ACEOF
7100 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7104 for ac_prog in gv gsview32
7106 # Extract the first word of "$ac_prog", so it can be a program name with args.
7107 set dummy $ac_prog; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_path_GV+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 if test -n "$GV"; then
7138 { echo "$as_me:$LINENO: result: $GV" >&5
7139 echo "${ECHO_T}$GV" >&6; }
7141 { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7146 test -n "$GV" && break
7148 test -n "$GV" || GV="echo gv"
7150 if test "$GV" != "echo gv" ; then
7152 cat >>confdefs.h <<\_ACEOF
7156 if test "$llvm_cv_os_type" = "MingW" ; then
7157 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7160 cat >>confdefs.h <<_ACEOF
7161 #define LLVM_PATH_GV "$GV${EXEEXT}"
7165 # Extract the first word of "dotty", so it can be a program name with args.
7166 set dummy dotty; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_path_DOTTY+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7196 DOTTY=$ac_cv_path_DOTTY
7197 if test -n "$DOTTY"; then
7198 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7199 echo "${ECHO_T}$DOTTY" >&6; }
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7206 if test "$DOTTY" != "echo dotty" ; then
7208 cat >>confdefs.h <<\_ACEOF
7209 #define HAVE_DOTTY 1
7212 if test "$llvm_cv_os_type" = "MingW" ; then
7213 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7216 cat >>confdefs.h <<_ACEOF
7217 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7221 # Extract the first word of "xdot.py", so it can be a program name with args.
7222 set dummy xdot.py; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7252 XDOT_PY=$ac_cv_path_XDOT_PY
7253 if test -n "$XDOT_PY"; then
7254 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7255 echo "${ECHO_T}$XDOT_PY" >&6; }
7257 { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7262 if test "$XDOT_PY" != "echo xdot.py" ; then
7264 cat >>confdefs.h <<\_ACEOF
7265 #define HAVE_XDOT_PY 1
7268 if test "$llvm_cv_os_type" = "MingW" ; then
7269 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7272 cat >>confdefs.h <<_ACEOF
7273 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7278 # Find a good install program. We prefer a C program (faster),
7279 # so one script is as good as another. But avoid the broken or
7280 # incompatible versions:
7281 # SysV /etc/install, /usr/sbin/install
7282 # SunOS /usr/etc/install
7283 # IRIX /sbin/install
7285 # AmigaOS /C/install, which installs bootblocks on floppy discs
7286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7289 # OS/2's system install, which has a completely different semantic
7290 # ./install, which can be erroneously created by make from ./install.sh.
7291 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7292 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7293 if test -z "$INSTALL"; then
7294 if test "${ac_cv_path_install+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 # Account for people who put trailing slashes in PATH elements.
7304 ./ | .// | /cC/* | \
7305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7306 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7309 # OSF1 and SCO ODT 3.0 have their own names for install.
7310 # Don't use installbsd from OSF since it installs stuff as root
7312 for ac_prog in ginstall scoinst install; do
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7315 if test $ac_prog = install &&
7316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7317 # AIX install. It has an incompatible calling convention.
7319 elif test $ac_prog = install &&
7320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7321 # program-specific install script used by HP pwplus--don't use.
7324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7337 if test "${ac_cv_path_install+set}" = set; then
7338 INSTALL=$ac_cv_path_install
7340 # As a last resort, use the slow shell script. Don't cache a
7341 # value for INSTALL within a source directory, because that will
7342 # break other packages using the cache if that directory is
7343 # removed, or if the value is a relative name.
7344 INSTALL=$ac_install_sh
7347 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7348 echo "${ECHO_T}$INSTALL" >&6; }
7350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7351 # It thinks the first close brace ends the variable substitution.
7352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7359 [\\/$]* | ?:[\\/]* ) ;;
7360 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7363 # Extract the first word of "bzip2", so it can be a program name with args.
7364 set dummy bzip2; ac_word=$2
7365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7367 if test "${ac_cv_path_BZIP2+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 BZIP2=$ac_cv_path_BZIP2
7394 if test -n "$BZIP2"; then
7395 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7396 echo "${ECHO_T}$BZIP2" >&6; }
7398 { echo "$as_me:$LINENO: result: no" >&5
7399 echo "${ECHO_T}no" >&6; }
7403 # Extract the first word of "cat", so it can be a program name with args.
7404 set dummy cat; ac_word=$2
7405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7407 if test "${ac_cv_path_CAT+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7422 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 if test -n "$CAT"; then
7435 { echo "$as_me:$LINENO: result: $CAT" >&5
7436 echo "${ECHO_T}$CAT" >&6; }
7438 { echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6; }
7443 # Extract the first word of "doxygen", so it can be a program name with args.
7444 set dummy doxygen; ac_word=$2
7445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 DOXYGEN=$ac_cv_path_DOXYGEN
7474 if test -n "$DOXYGEN"; then
7475 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7476 echo "${ECHO_T}$DOXYGEN" >&6; }
7478 { echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6; }
7483 # Extract the first word of "groff", so it can be a program name with args.
7484 set dummy groff; ac_word=$2
7485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7487 if test "${ac_cv_path_GROFF+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 GROFF=$ac_cv_path_GROFF
7514 if test -n "$GROFF"; then
7515 { echo "$as_me:$LINENO: result: $GROFF" >&5
7516 echo "${ECHO_T}$GROFF" >&6; }
7518 { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7523 # Extract the first word of "gzip", so it can be a program name with args.
7524 set dummy gzip; ac_word=$2
7525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 GZIPBIN=$ac_cv_path_GZIPBIN
7554 if test -n "$GZIPBIN"; then
7555 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7556 echo "${ECHO_T}$GZIPBIN" >&6; }
7558 { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7563 # Extract the first word of "pdfroff", so it can be a program name with args.
7564 set dummy pdfroff; ac_word=$2
7565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567 if test "${ac_cv_path_PDFROFF+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 PDFROFF=$ac_cv_path_PDFROFF
7594 if test -n "$PDFROFF"; then
7595 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7596 echo "${ECHO_T}$PDFROFF" >&6; }
7598 { echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6; }
7603 # Extract the first word of "zip", so it can be a program name with args.
7604 set dummy zip; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_ZIP+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 if test -n "$ZIP"; then
7635 { echo "$as_me:$LINENO: result: $ZIP" >&5
7636 echo "${ECHO_T}$ZIP" >&6; }
7638 { echo "$as_me:$LINENO: result: no" >&5
7639 echo "${ECHO_T}no" >&6; }
7643 for ac_prog in ocamlc
7645 # Extract the first word of "$ac_prog", so it can be a program name with args.
7646 set dummy $ac_prog; ac_word=$2
7647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7649 if test "${ac_cv_path_OCAMLC+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7664 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 OCAMLC=$ac_cv_path_OCAMLC
7676 if test -n "$OCAMLC"; then
7677 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7678 echo "${ECHO_T}$OCAMLC" >&6; }
7680 { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7685 test -n "$OCAMLC" && break
7688 for ac_prog in ocamlopt
7690 # Extract the first word of "$ac_prog", so it can be a program name with args.
7691 set dummy $ac_prog; ac_word=$2
7692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 OCAMLOPT=$ac_cv_path_OCAMLOPT
7721 if test -n "$OCAMLOPT"; then
7722 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7723 echo "${ECHO_T}$OCAMLOPT" >&6; }
7725 { echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6; }
7730 test -n "$OCAMLOPT" && break
7733 for ac_prog in ocamldep
7735 # Extract the first word of "$ac_prog", so it can be a program name with args.
7736 set dummy $ac_prog; ac_word=$2
7737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 OCAMLDEP=$ac_cv_path_OCAMLDEP
7766 if test -n "$OCAMLDEP"; then
7767 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7768 echo "${ECHO_T}$OCAMLDEP" >&6; }
7770 { echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6; }
7775 test -n "$OCAMLDEP" && break
7778 for ac_prog in ocamldoc
7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy $ac_prog; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 OCAMLDOC=$ac_cv_path_OCAMLDOC
7811 if test -n "$OCAMLDOC"; then
7812 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7813 echo "${ECHO_T}$OCAMLDOC" >&6; }
7815 { echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6; }
7820 test -n "$OCAMLDOC" && break
7823 for ac_prog in gas as
7825 # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829 if test "${ac_cv_path_GAS+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 if test -n "$GAS"; then
7857 { echo "$as_me:$LINENO: result: $GAS" >&5
7858 echo "${ECHO_T}$GAS" >&6; }
7860 { echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6; }
7865 test -n "$GAS" && break
7869 { echo "$as_me:$LINENO: checking for linker version" >&5
7870 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7871 if test "${llvm_cv_link_version+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 version_string="$(ld -v 2>&1 | head -1)"
7878 if (echo "$version_string" | grep -q "ld64"); then
7879 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7881 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7885 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7886 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7888 cat >>confdefs.h <<_ACEOF
7889 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7894 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7895 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7896 if test "${llvm_cv_link_use_r+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7906 CFLAGS="$CFLAGS -Wl,-R."
7907 cat >conftest.$ac_ext <<_ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923 if { (ac_try="$ac_link"
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_link") 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7937 { (case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_try") 2>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; } &&
7946 { ac_try='test -s conftest$ac_exeext'
7947 { (case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_try") 2>&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then
7956 llvm_cv_link_use_r=yes
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 llvm_cv_link_use_r=no
7964 rm -f core conftest.err conftest.$ac_objext \
7965 conftest$ac_exeext conftest.$ac_ext
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7975 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7976 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7977 if test "$llvm_cv_link_use_r" = yes ; then
7979 cat >>confdefs.h <<\_ACEOF
7980 #define HAVE_LINK_R 1
7986 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7987 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7988 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (ac_try="$ac_link"
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_link") 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8029 { (case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_try") 2>&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; } &&
8038 { ac_try='test -s conftest$ac_exeext'
8039 { (case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_try") 2>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 llvm_cv_link_use_export_dynamic=yes
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 llvm_cv_link_use_export_dynamic=no
8056 rm -f core conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8060 ac_cpp='$CPP $CPPFLAGS'
8061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8068 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8069 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8071 cat >>confdefs.h <<\_ACEOF
8072 #define HAVE_LINK_EXPORT_DYNAMIC 1
8078 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8079 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8080 if test "${llvm_cv_link_use_version_script+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 ac_cpp='$CPP $CPPFLAGS'
8085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8091 # The following code is from the autoconf manual,
8092 # "11.13: Limitations of Usual Tools".
8093 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8094 # Use mktemp if possible; otherwise fall back on mkdir,
8095 # with $RANDOM to make collisions less likely.
8099 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8101 test -n "$tmp" && test -d "$tmp"
8103 tmp=$TMPDIR/foo$$-$RANDOM
8104 (umask 077 && mkdir "$tmp")
8107 echo "{" > "$tmp/export.map"
8108 echo " global: main;" >> "$tmp/export.map"
8109 echo " local: *;" >> "$tmp/export.map"
8110 echo "};" >> "$tmp/export.map"
8112 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (ac_try="$ac_link"
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_link") 2>conftest.er1
8137 grep -v '^ *+' conftest.er1 >conftest.err
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8143 { (case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148 (eval "$ac_try") 2>&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try='test -s conftest$ac_exeext'
8153 { (case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_try") 2>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 llvm_cv_link_use_version_script=yes
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 llvm_cv_link_use_version_script=no
8170 rm -f core conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172 rm "$tmp/export.map"
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8183 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8184 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8185 if test "$llvm_cv_link_use_version_script" = yes ; then
8186 HAVE_LINK_VERSION_SCRIPT=1
8193 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8194 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8195 if test "${ac_cv_c_const+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 cat >conftest.$ac_ext <<_ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8208 /* FIXME: Include the comments suggested by Paul. */
8210 /* Ultrix mips cc rejects this. */
8211 typedef int charset[2];
8213 /* SunOS 4.1.1 cc rejects this. */
8214 char const *const *ccp;
8216 /* NEC SVR4.0.2 mips cc rejects this. */
8217 struct point {int x, y;};
8218 static struct point const zero = {0,0};
8219 /* AIX XL C 1.02.0.0 rejects this.
8220 It does not let you subtract one const X* pointer from another in
8221 an arm of an if-expression whose if-part is not a constant
8223 const char *g = "string";
8224 ccp = &g + (g ? g-g : 0);
8225 /* HPUX 7.0 cc rejects these. */
8228 ccp = (char const *const *) p;
8229 { /* SCO 3.2v4 cc rejects this. */
8231 char const *s = 0 ? (char *) 0 : (char const *) 0;
8236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8238 const int *foo = &x[0];
8241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8242 typedef const int *iptr;
8246 { /* AIX XL C 1.02.0.0 rejects this saying
8247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8248 struct s { int j; const int *ap[3]; };
8249 struct s *b; b->j = 5;
8251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8255 return !x[0] && !zero.x;
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8277 { (case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_try") 2>&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; } &&
8286 { ac_try='test -s conftest.$ac_objext'
8287 { (case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_try") 2>&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8307 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8308 if test $ac_cv_c_const = no; then
8310 cat >>confdefs.h <<\_ACEOF
8322 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8323 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8324 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8325 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 cat >conftest.$ac_ext <<_ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h. */
8335 #include <sys/types.h>
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362 { (case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_try") 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest.$ac_objext'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 eval "$as_ac_Header=yes"
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8386 eval "$as_ac_Header=no"
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 ac_res=`eval echo '${'$as_ac_Header'}'`
8392 { echo "$as_me:$LINENO: result: $ac_res" >&5
8393 echo "${ECHO_T}$ac_res" >&6; }
8394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8395 cat >>confdefs.h <<_ACEOF
8396 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8399 ac_header_dirent=$ac_hdr; break
8403 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8404 if test $ac_header_dirent = dirent.h; then
8405 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8406 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8407 if test "${ac_cv_search_opendir+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 ac_func_search_save_LIBS=$LIBS
8411 cat >conftest.$ac_ext <<_ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8418 /* Override any GCC internal prototype to avoid an error.
8419 Use char because int might match the return type of a GCC
8420 builtin and then its argument prototype would still apply. */
8433 for ac_lib in '' dir; do
8434 if test -z "$ac_lib"; then
8435 ac_res="none required"
8438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_link") 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455 { (case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_try") 2>&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest$ac_exeext'
8465 { (case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_try") 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_search_opendir=$ac_res
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8482 rm -f core conftest.err conftest.$ac_objext \
8484 if test "${ac_cv_search_opendir+set}" = set; then
8488 if test "${ac_cv_search_opendir+set}" = set; then
8491 ac_cv_search_opendir=no
8494 LIBS=$ac_func_search_save_LIBS
8496 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8497 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8498 ac_res=$ac_cv_search_opendir
8499 if test "$ac_res" != no; then
8500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8505 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8506 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8507 if test "${ac_cv_search_opendir+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 ac_func_search_save_LIBS=$LIBS
8511 cat >conftest.$ac_ext <<_ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8518 /* Override any GCC internal prototype to avoid an error.
8519 Use char because int might match the return type of a GCC
8520 builtin and then its argument prototype would still apply. */
8533 for ac_lib in '' x; do
8534 if test -z "$ac_lib"; then
8535 ac_res="none required"
8538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (ac_try="$ac_link"
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_link") 2>conftest.er1
8549 grep -v '^ *+' conftest.er1 >conftest.err
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555 { (case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_try") 2>&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_try") 2>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 ac_cv_search_opendir=$ac_res
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8582 rm -f core conftest.err conftest.$ac_objext \
8584 if test "${ac_cv_search_opendir+set}" = set; then
8588 if test "${ac_cv_search_opendir+set}" = set; then
8591 ac_cv_search_opendir=no
8594 LIBS=$ac_func_search_save_LIBS
8596 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8597 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8598 ac_res=$ac_cv_search_opendir
8599 if test "$ac_res" != no; then
8600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8607 for ac_header in dlfcn.h
8609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 ac_res=`eval echo '${'$as_ac_Header'}'`
8617 { echo "$as_me:$LINENO: result: $ac_res" >&5
8618 echo "${ECHO_T}$ac_res" >&6; }
8620 # Is the header compilable?
8621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629 $ac_includes_default
8630 #include <$ac_header>
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8641 grep -v '^ *+' conftest.er1 >conftest.err
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } &&
8646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8647 { (case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_try") 2>&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_try") 2>&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_header_compiler=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 ac_header_compiler=no
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8676 echo "${ECHO_T}$ac_header_compiler" >&6; }
8678 # Is the header present?
8679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8681 cat >conftest.$ac_ext <<_ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8687 #include <$ac_header>
8689 if { (ac_try="$ac_cpp conftest.$ac_ext"
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8697 grep -v '^ *+' conftest.er1 >conftest.err
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } >/dev/null; then
8702 if test -s conftest.err; then
8703 ac_cpp_err=$ac_c_preproc_warn_flag
8704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8711 if test -z "$ac_cpp_err"; then
8712 ac_header_preproc=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_header_preproc=no
8720 rm -f conftest.err conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8722 echo "${ECHO_T}$ac_header_preproc" >&6; }
8724 # So? What about this header?
8725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8731 ac_header_preproc=yes
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8747 ## ------------------------------------ ##
8748 ## Report this to http://llvm.org/bugs/ ##
8749 ## ------------------------------------ ##
8751 ) | sed "s/^/$as_me: WARNING: /" >&2
8754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 eval "$as_ac_Header=\$ac_header_preproc"
8761 ac_res=`eval echo '${'$as_ac_Header'}'`
8762 { echo "$as_me:$LINENO: result: $ac_res" >&5
8763 echo "${ECHO_T}$ac_res" >&6; }
8766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8767 cat >>confdefs.h <<_ACEOF
8768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775 # Check whether --enable-ltdl-install was given.
8776 if test "${enable_ltdl_install+set}" = set; then
8777 enableval=$enable_ltdl_install;
8783 if test x"${enable_ltdl_install-no}" != xno; then
8785 INSTALL_LTDL_FALSE='#'
8787 INSTALL_LTDL_TRUE='#'
8793 if test x"${enable_ltdl_convenience-no}" != xno; then
8794 CONVENIENCE_LTDL_TRUE=
8795 CONVENIENCE_LTDL_FALSE='#'
8797 CONVENIENCE_LTDL_TRUE='#'
8798 CONVENIENCE_LTDL_FALSE=
8802 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8803 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8805 libname_spec='lib$name'
8813 shlibpath_overrides_runpath=unknown
8815 dynamic_linker="$host_os ld.so"
8816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8817 if test "$GCC" = yes; then
8818 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8819 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8820 # if the path contains ";" then we assume it to be the separator
8821 # otherwise default to the standard path separator (i.e. ":") - it is
8822 # assumed that no part of a normal pathname contains ";" but that should
8823 # okay in the real world where ";" in dirpaths is itself problematic.
8824 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8831 need_lib_prefix=unknown
8832 hardcode_into_libs=no
8834 # when you set need_version to no, make sure it does not cause -set_version
8835 # flags to be left without arguments
8836 need_version=unknown
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8842 shlibpath_var=LIBPATH
8844 # AIX 3 has no versioning support, so we append a major version to the name.
8845 soname_spec='${libname}${release}${shared_ext}$major'
8852 hardcode_into_libs=yes
8853 if test "$host_cpu" = ia64; then
8854 # AIX 5 supports IA64
8855 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8856 shlibpath_var=LD_LIBRARY_PATH
8858 # With GCC up to 2.95.x, collect2 would create an import file
8859 # for dependence libraries. The import file would start with
8860 # the line `#! .'. This would cause the generated library to
8861 # depend on `.', always an invalid library. This was fixed in
8862 # development snapshots of GCC prior to 3.0.
8864 aix4 | aix4.[01] | aix4.[01].*)
8865 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8867 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8874 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8875 # soname into executable. Probably we can add versioning support to
8876 # collect2, so additional links can be useful in future.
8877 if test "$aix_use_runtimelinking" = yes; then
8878 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8879 # instead of lib<name>.a to let people know that these are not
8880 # typical AIX shared libraries.
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883 # We preserve .a as extension for shared libraries through AIX4.2
8884 # and later when we are not doing run time linking.
8885 library_names_spec='${libname}${release}.a $libname.a'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8888 shlibpath_var=LIBPATH
8893 library_names_spec='$libname.ixlibrary $libname.a'
8894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8895 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'
8899 library_names_spec='${libname}${shared_ext}'
8900 dynamic_linker="$host_os ld.so"
8901 shlibpath_var=LIBRARY_PATH
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8910 shlibpath_var=LD_LIBRARY_PATH
8911 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8912 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8913 # the default ld.so.conf also contains /usr/contrib/lib and
8914 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8915 # libtool to hard-code these into programs
8918 cygwin* | mingw* | pw32*)
8919 version_type=windows
8924 case $GCC,$host_os in
8925 yes,cygwin* | yes,mingw* | yes,pw32*)
8926 library_names_spec='$libname.dll.a'
8927 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8928 postinstall_cmds='base_file=`basename \${file}`~
8929 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8930 dldir=$destdir/`dirname \$dlpath`~
8931 test -d \$dldir || mkdir -p \$dldir~
8932 $install_prog $dir/$dlname \$dldir/$dlname~
8933 chmod a+x \$dldir/$dlname'
8934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8935 dlpath=$dir/\$dldll~
8937 shlibpath_overrides_runpath=yes
8941 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8942 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8943 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8946 # MinGW DLLs use traditional 'lib' prefix
8947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8949 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8950 # It is most probably a Windows format PATH printed by
8951 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8952 # path with ; separators, and with drive letters. We can handle the
8953 # drive letters (cygwin fileutils understands them), so leave them,
8954 # especially as we might pass files found there to a mingw objdump,
8955 # which wouldn't understand a cygwinified path. Ahh.
8956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8962 # pw32 DLLs use 'pw' prefix rather than 'lib'
8963 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8972 dynamic_linker='Win32 ld.exe'
8973 # FIXME: first we should search . and the directory the executable is in
8977 darwin* | rhapsody*)
8978 dynamic_linker="$host_os dyld"
8982 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8983 soname_spec='${libname}${release}${major}$shared_ext'
8984 shlibpath_overrides_runpath=yes
8985 shlibpath_var=DYLD_LIBRARY_PATH
8986 shrext_cmds='.dylib'
8987 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8988 if test "$GCC" = yes; then
8989 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"`
8991 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8993 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=no
9017 hardcode_into_libs=yes
9018 dynamic_linker='GNU ld.so'
9021 freebsd* | dragonfly*)
9022 # DragonFly does not have aout. When/if they implement a new
9023 # versioning mechanism, adjust this.
9024 if test -x /usr/bin/objformat; then
9025 objformat=`/usr/bin/objformat`
9028 freebsd[123].*) objformat=aout ;;
9032 version_type=freebsd-$objformat
9033 case $version_type in
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9044 shlibpath_var=LD_LIBRARY_PATH
9047 shlibpath_overrides_runpath=yes
9049 freebsd3.[01]* | freebsdelf3.[01]*)
9050 shlibpath_overrides_runpath=yes
9051 hardcode_into_libs=yes
9053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9055 shlibpath_overrides_runpath=no
9056 hardcode_into_libs=yes
9058 freebsd*) # from 4.6 on
9059 shlibpath_overrides_runpath=yes
9060 hardcode_into_libs=yes
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 hardcode_into_libs=yes
9075 hpux9* | hpux10* | hpux11*)
9076 # Give a soname corresponding to the major version so that dld.sl refuses to
9077 # link against other versions.
9084 hardcode_into_libs=yes
9085 dynamic_linker="$host_os dld.so"
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 soname_spec='${libname}${release}${shared_ext}$major'
9090 if test "X$HPUX_IA64_MODE" = X32; then
9091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9099 hardcode_into_libs=yes
9100 dynamic_linker="$host_os dld.sl"
9101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9110 dynamic_linker="$host_os dld.sl"
9111 shlibpath_var=SHLIB_PATH
9112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9117 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9118 postinstall_cmds='chmod 555 $lib'
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=no
9130 hardcode_into_libs=yes
9133 irix5* | irix6* | nonstopux*)
9135 nonstopux*) version_type=nonstopux ;;
9137 if test "$lt_cv_prog_gnu_ld" = yes; then
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9148 irix5* | nonstopux*)
9152 case $LD in # libtool.m4 will add one of these switches to LD
9153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9154 libsuff= shlibsuff= libmagic=32-bit;;
9155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9156 libsuff=32 shlibsuff=N32 libmagic=N32;;
9157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9158 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9159 *) libsuff= shlibsuff= libmagic=never-match;;
9163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9164 shlibpath_overrides_runpath=no
9165 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9166 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9167 hardcode_into_libs=yes
9170 # No shared lib support for Linux oldld, aout, or coff.
9171 linux*oldld* | linux*aout* | linux*coff*)
9175 # This must be Linux ELF.
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 shlibpath_overrides_runpath=no
9185 # This implies no fast_install, which is unacceptable.
9186 # Some rework will be needed to allow for fast_install
9187 # before this can be enabled.
9188 hardcode_into_libs=yes
9190 # Append ld.so.conf contents to the search path
9191 if test -f /etc/ld.so.conf; then
9192 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' ' '`
9193 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9196 # We used to test for /lib/ld.so.1 and disable shared libraries on
9197 # powerpc, because MkLinux only supported shared libraries with the
9198 # GNU dynamic linker. Since this was broken with cross compilers,
9199 # most powerpc-linux boxes support dynamic linking these days and
9200 # people can always --disable-shared, the test was removed, and we
9201 # assume the GNU/Linux dynamic linker is in use.
9202 dynamic_linker='GNU/Linux ld.so'
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=no
9213 hardcode_into_libs=yes
9214 dynamic_linker='GNU ld.so'
9221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9224 dynamic_linker='NetBSD (a.out) ld.so'
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 dynamic_linker='NetBSD ld.elf_so'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=yes
9232 hardcode_into_libs=yes
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=yes
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=yes
9254 sys_lib_dlsearch_path_spec="/usr/lib"
9256 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9258 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9259 *) need_version=no ;;
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9266 openbsd2.[89] | openbsd2.[89].*)
9267 shlibpath_overrides_runpath=no
9270 shlibpath_overrides_runpath=yes
9274 shlibpath_overrides_runpath=yes
9279 libname_spec='$name'
9282 library_names_spec='$libname${shared_ext} $libname.a'
9283 dynamic_linker='OS/2 ld.exe'
9284 shlibpath_var=LIBPATH
9287 osf3* | osf4* | osf5*)
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9295 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9307 # ldd complains unless libraries are executable
9308 postinstall_cmds='chmod +x $lib'
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 shlibpath_overrides_runpath=yes
9317 if test "$with_gnu_ld" = yes; then
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 case $host_vendor in
9330 shlibpath_overrides_runpath=no
9332 export_dynamic_flag_spec='${wl}-Blargedynsym'
9333 runpath_var=LD_RUN_PATH
9341 shlibpath_overrides_runpath=no
9342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9348 if test -d /usr/nec ;then
9350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9351 soname_spec='$libname${shared_ext}.$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9357 version_type=freebsd-elf
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 hardcode_into_libs=yes
9364 if test "$with_gnu_ld" = yes; then
9365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9366 shlibpath_overrides_runpath=no
9368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9369 shlibpath_overrides_runpath=yes
9372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9376 sys_lib_dlsearch_path_spec='/usr/lib'
9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LD_LIBRARY_PATH
9390 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9391 echo "${ECHO_T}$dynamic_linker" >&6; }
9392 test "$dynamic_linker" = no && can_build_shared=no
9394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9395 if test "$GCC" = yes; then
9396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9400 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9401 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9402 if test "${libltdl_cv_shlibext+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 eval libltdl_cv_shlibext=$shrext_cmds
9410 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9411 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9412 if test -n "$libltdl_cv_shlibext"; then
9414 cat >>confdefs.h <<_ACEOF
9415 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9421 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9422 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9423 if test "${libltdl_cv_sys_search_path+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9428 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9429 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9430 if test -n "$libltdl_cv_sys_search_path"; then
9432 for dir in $libltdl_cv_sys_search_path; do
9433 if test -z "$sys_search_path"; then
9434 sys_search_path="$dir"
9436 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9440 cat >>confdefs.h <<_ACEOF
9441 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9446 { echo "$as_me:$LINENO: checking for objdir" >&5
9447 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9448 if test "${libltdl_cv_objdir+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 libltdl_cv_objdir="$objdir"
9452 if test -n "$objdir"; then
9455 rm -f .libs 2>/dev/null
9456 mkdir .libs 2>/dev/null
9457 if test -d .libs; then
9458 libltdl_cv_objdir=.libs
9460 # MS-DOS does not allow filenames that begin with a dot.
9461 libltdl_cv_objdir=_libs
9463 rmdir .libs 2>/dev/null
9467 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9468 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9470 cat >>confdefs.h <<_ACEOF
9471 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9479 # Check for command to grab the raw symbol name followed by C symbol from nm.
9480 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9481 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 # These are sane defaults that work on at least a few old systems.
9487 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9489 # Character class describing NM global symbol codes.
9490 symcode='[BCDEGRST]'
9492 # Regexp to match symbols that can be accessed directly from C.
9493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9495 # Transform an extracted symbol line into a proper C declaration
9496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9498 # Transform an extracted symbol line into symbol name and symbol address
9499 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'"
9501 # Define system-specific variables.
9506 cygwin* | mingw* | pw32*)
9507 symcode='[ABCDGISTW]'
9509 hpux*) # Its linker distinguishes data from code symbols
9510 if test "$host_cpu" = ia64; then
9511 symcode='[ABCDEGRST]'
9513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9514 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'"
9517 if test "$host_cpu" = ia64; then
9518 symcode='[ABCDGIRSTW]'
9519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9520 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 symcode='[BCDEGRST]'
9527 symcode='[BCDEGQRST]'
9538 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9546 # Handle CRLF in mingw tool chain
9550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9554 # If we're using GNU nm, then use its standard symbol codes.
9555 case `$NM -V 2>&1` in
9556 *GNU* | *'with BFD'*)
9557 symcode='[ABCDGIRSTW]' ;;
9560 # Try without a prefix undercore, then with it.
9561 for ac_symprfx in "" "_"; do
9563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9564 symxfrm="\\1 $ac_symprfx\\2 \\2"
9566 # Write the raw and C identifiers.
9567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9569 # Check to see that the pipe works correctly.
9573 cat > conftest.$ac_ext <<EOF
9578 void nm_test_func(){}
9582 int main(){nm_test_var='a';nm_test_func();return(0);}
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; then
9590 # Now try to grab the symbols.
9592 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9593 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } && test -s "$nlist"; then
9597 # Try sorting and uniquifying the output.
9598 if sort "$nlist" | uniq > "$nlist"T; then
9599 mv -f "$nlist"T "$nlist"
9604 # Make sure that we snagged all the symbols we need.
9605 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9606 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9607 cat <<EOF > conftest.$ac_ext
9613 # Now generate the symbol file.
9614 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9616 cat <<EOF >> conftest.$ac_ext
9617 #if defined (__STDC__) && __STDC__
9618 # define lt_ptr_t void *
9620 # define lt_ptr_t char *
9624 /* The mapping between symbol names and symbols. */
9629 lt_preloaded_symbols[] =
9632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9633 cat <<\EOF >> conftest.$ac_ext
9641 # Now try linking the two files.
9642 mv conftest.$ac_objext conftstm.$ac_objext
9643 lt_save_LIBS="$LIBS"
9644 lt_save_CFLAGS="$CFLAGS"
9645 LIBS="conftstm.$ac_objext"
9646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9654 LIBS="$lt_save_LIBS"
9655 CFLAGS="$lt_save_CFLAGS"
9657 echo "cannot find nm_test_func in $nlist" >&5
9660 echo "cannot find nm_test_var in $nlist" >&5
9663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9666 echo "$progname: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9669 rm -f conftest* conftst*
9671 # Do not use the global_symbol_pipe unless it works.
9672 if test "$pipe_works" = yes; then
9675 lt_cv_sys_global_symbol_pipe=
9681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9682 lt_cv_sys_global_symbol_to_cdecl=
9684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9685 { echo "$as_me:$LINENO: result: failed" >&5
9686 echo "${ECHO_T}failed" >&6; }
9688 { echo "$as_me:$LINENO: result: ok" >&5
9689 echo "${ECHO_T}ok" >&6; }
9693 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9694 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9695 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9699 libltdl_cv_preloaded_symbols=yes
9701 libltdl_cv_preloaded_symbols=no
9705 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9706 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9707 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9709 cat >>confdefs.h <<\_ACEOF
9710 #define HAVE_PRELOADED_SYMBOLS 1
9718 ac_cpp='$CPP $CPPFLAGS'
9719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9724 { echo "$as_me:$LINENO: checking for shl_load" >&5
9725 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9726 if test "${ac_cv_func_shl_load+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9737 #define shl_load innocuous_shl_load
9739 /* System header to define __stub macros and hopefully few prototypes,
9740 which can conflict with char shl_load (); below.
9741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9742 <limits.h> exists even on freestanding compilers. */
9745 # include <limits.h>
9747 # include <assert.h>
9752 /* Override any GCC internal prototype to avoid an error.
9753 Use char because int might match the return type of a GCC
9754 builtin and then its argument prototype would still apply. */
9759 /* The GNU C library defines this for functions which it implements
9760 to always fail with ENOSYS. Some functions are actually named
9761 something starting with __ and the normal name is an alias. */
9762 #if defined __stub_shl_load || defined __stub___shl_load
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_link") 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_try") 2>&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808 ac_cv_func_shl_load=yes
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9813 ac_cv_func_shl_load=no
9816 rm -f core conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9819 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9820 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9821 if test $ac_cv_func_shl_load = yes; then
9823 cat >>confdefs.h <<\_ACEOF
9824 #define HAVE_SHL_LOAD 1
9828 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9829 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9830 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 ac_check_lib_save_LIBS=$LIBS
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9842 /* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply. */
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (ac_try="$ac_link"
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_link") 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9872 { (case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_try") 2>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest$ac_exeext'
9882 { (case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_try") 2>&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; }; then
9891 ac_cv_lib_dld_shl_load=yes
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_cv_lib_dld_shl_load=no
9899 rm -f core conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
9901 LIBS=$ac_check_lib_save_LIBS
9903 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9904 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9905 if test $ac_cv_lib_dld_shl_load = yes; then
9907 cat >>confdefs.h <<\_ACEOF
9908 #define HAVE_SHL_LOAD 1
9911 LIBADD_DL="$LIBADD_DL -ldld"
9913 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9914 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9915 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 ac_check_lib_save_LIBS=$LIBS
9920 cat >conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9927 /* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (ac_try="$ac_link"
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_link") 2>conftest.er1
9951 grep -v '^ *+' conftest.er1 >conftest.err
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_try") 2>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_lib_dl_dlopen=yes
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 ac_cv_lib_dl_dlopen=no
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9988 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9989 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9990 if test $ac_cv_lib_dl_dlopen = yes; then
9992 cat >>confdefs.h <<\_ACEOF
9993 #define HAVE_LIBDL 1
9996 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9998 cat >conftest.$ac_ext <<_ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10005 # include <dlfcn.h>
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (ac_try="$ac_link"
10018 case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_link") 2>conftest.er1
10025 grep -v '^ *+' conftest.er1 >conftest.err
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10031 { (case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_try") 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_try") 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10051 cat >>confdefs.h <<\_ACEOF
10052 #define HAVE_LIBDL 1
10054 libltdl_cv_func_dlopen="yes"
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 ac_check_lib_save_LIBS=$LIBS
10065 LIBS="-lsvld $LIBS"
10066 cat >conftest.$ac_ext <<_ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10073 /* Override any GCC internal prototype to avoid an error.
10074 Use char because int might match the return type of a GCC
10075 builtin and then its argument prototype would still apply. */
10088 rm -f conftest.$ac_objext conftest$ac_exeext
10089 if { (ac_try="$ac_link"
10090 case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_link") 2>conftest.er1
10097 grep -v '^ *+' conftest.er1 >conftest.err
10099 cat conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10103 { (case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_try") 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; } &&
10112 { ac_try='test -s conftest$ac_exeext'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_cv_lib_svld_dlopen=yes
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 ac_cv_lib_svld_dlopen=no
10130 rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132 LIBS=$ac_check_lib_save_LIBS
10134 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10135 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10136 if test $ac_cv_lib_svld_dlopen = yes; then
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_LIBDL 1
10142 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10144 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10145 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10146 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 ac_check_lib_save_LIBS=$LIBS
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10158 /* Override any GCC internal prototype to avoid an error.
10159 Use char because int might match the return type of a GCC
10160 builtin and then its argument prototype would still apply. */
10168 return dld_link ();
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (ac_try="$ac_link"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_link") 2>conftest.er1
10182 grep -v '^ *+' conftest.er1 >conftest.err
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
10187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10188 { (case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_try") 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; } &&
10197 { ac_try='test -s conftest$ac_exeext'
10198 { (case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_try") 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_cv_lib_dld_dld_link=yes
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 ac_cv_lib_dld_dld_link=no
10215 rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10219 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10220 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10221 if test $ac_cv_lib_dld_dld_link = yes; then
10223 cat >>confdefs.h <<\_ACEOF
10227 LIBADD_DL="$LIBADD_DL -ldld"
10229 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10230 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10231 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 cat >conftest.$ac_ext <<_ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10240 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10242 #define _dyld_func_lookup innocuous__dyld_func_lookup
10244 /* System header to define __stub macros and hopefully few prototypes,
10245 which can conflict with char _dyld_func_lookup (); below.
10246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10247 <limits.h> exists even on freestanding compilers. */
10250 # include <limits.h>
10252 # include <assert.h>
10255 #undef _dyld_func_lookup
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10263 char _dyld_func_lookup ();
10264 /* The GNU C library defines this for functions which it implements
10265 to always fail with ENOSYS. Some functions are actually named
10266 something starting with __ and the normal name is an alias. */
10267 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10274 return _dyld_func_lookup ();
10279 rm -f conftest.$ac_objext conftest$ac_exeext
10280 if { (ac_try="$ac_link"
10281 case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_link") 2>conftest.er1
10288 grep -v '^ *+' conftest.er1 >conftest.err
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 (eval "$ac_try") 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 ac_cv_func__dyld_func_lookup=yes
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_cv_func__dyld_func_lookup=no
10321 rm -f core conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10324 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10325 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10326 if test $ac_cv_func__dyld_func_lookup = yes; then
10328 cat >>confdefs.h <<\_ACEOF
10329 #define HAVE_DYLD 1
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10355 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10357 lt_save_LIBS="$LIBS"
10358 LIBS="$LIBS $LIBADD_DL"
10360 for ac_func in dlerror
10362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 cat >conftest.$ac_ext <<_ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10376 #define $ac_func innocuous_$ac_func
10378 /* System header to define __stub macros and hopefully few prototypes,
10379 which can conflict with char $ac_func (); below.
10380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10381 <limits.h> exists even on freestanding compilers. */
10384 # include <limits.h>
10386 # include <assert.h>
10391 /* Override any GCC internal prototype to avoid an error.
10392 Use char because int might match the return type of a GCC
10393 builtin and then its argument prototype would still apply. */
10398 /* The GNU C library defines this for functions which it implements
10399 to always fail with ENOSYS. Some functions are actually named
10400 something starting with __ and the normal name is an alias. */
10401 #if defined __stub_$ac_func || defined __stub___$ac_func
10408 return $ac_func ();
10413 rm -f conftest.$ac_objext conftest$ac_exeext
10414 if { (ac_try="$ac_link"
10415 case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_link") 2>conftest.er1
10422 grep -v '^ *+' conftest.er1 >conftest.err
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10428 { (case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_try") 2>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest$ac_exeext'
10438 { (case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_try") 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 eval "$as_ac_var=yes"
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10452 eval "$as_ac_var=no"
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10458 ac_res=`eval echo '${'$as_ac_var'}'`
10459 { echo "$as_me:$LINENO: result: $ac_res" >&5
10460 echo "${ECHO_T}$ac_res" >&6; }
10461 if test `eval echo '${'$as_ac_var'}'` = yes; then
10462 cat >>confdefs.h <<_ACEOF
10463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10469 LIBS="$lt_save_LIBS"
10472 ac_cpp='$CPP $CPPFLAGS'
10473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10479 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10480 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10481 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 ac_cv_sys_symbol_underscore=no
10485 cat > conftest.$ac_ext <<EOF
10486 void nm_test_func(){}
10487 int main(){nm_test_func;return 0;}
10489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10490 (eval $ac_compile) 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; then
10494 # Now try to grab the symbols.
10495 ac_nlist=conftest.nm
10496 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10497 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && test -s "$ac_nlist"; then
10501 # See whether the symbols have a leading underscore.
10502 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10503 ac_cv_sys_symbol_underscore=yes
10505 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10508 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10512 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10515 echo "configure: failed program was:" >&5
10521 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10522 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10525 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10526 if test x"$libltdl_cv_func_dlopen" = xyes ||
10527 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10528 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10529 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10530 if test "${libltdl_cv_need_uscore+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 libltdl_cv_need_uscore=unknown
10535 LIBS="$LIBS $LIBADD_DL"
10536 if test "$cross_compiling" = yes; then :
10537 libltdl_cv_need_uscore=cross
10539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10540 lt_status=$lt_dlunknown
10541 cat > conftest.$ac_ext <<EOF
10542 #line 10542 "configure"
10543 #include "confdefs.h"
10552 # define LT_DLGLOBAL RTLD_GLOBAL
10555 # define LT_DLGLOBAL DL_GLOBAL
10557 # define LT_DLGLOBAL 0
10561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10562 find out it does not work in some platform. */
10563 #ifndef LT_DLLAZY_OR_NOW
10565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10568 # define LT_DLLAZY_OR_NOW DL_LAZY
10571 # define LT_DLLAZY_OR_NOW RTLD_NOW
10574 # define LT_DLLAZY_OR_NOW DL_NOW
10576 # define LT_DLLAZY_OR_NOW 0
10584 extern "C" void exit (int);
10587 void fnord() { int i=42;}
10590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10591 int status = $lt_dlunknown;
10595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10596 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10597 /* dlclose (self); */
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10610 (./conftest; exit; ) >&5 2>/dev/null
10612 case x$lt_status in
10613 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10614 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10615 x$lt_dlunknown|x*) ;;
10618 # compilation failed
10627 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10628 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10632 if test x"$libltdl_cv_need_uscore" = xyes; then
10634 cat >>confdefs.h <<\_ACEOF
10635 #define NEED_USCORE 1
10641 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10642 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10643 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 # PORTME does your system automatically load deplibs for dlopen?
10647 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10648 # For now, we just catch OSes we know something about -- in the
10649 # future, we'll try test this programmatically.
10650 libltdl_cv_sys_dlopen_deplibs=unknown
10652 aix3*|aix4.1.*|aix4.2.*)
10653 # Unknown whether this is true for these versions of AIX, but
10654 # we want this `case' here to explicitly catch those versions.
10655 libltdl_cv_sys_dlopen_deplibs=unknown
10658 libltdl_cv_sys_dlopen_deplibs=yes
10661 # Assuming the user has installed a libdl from somewhere, this is true
10662 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10663 libltdl_cv_sys_dlopen_deplibs=yes
10665 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10666 # GNU and its variants, using gnu ld.so (Glibc)
10667 libltdl_cv_sys_dlopen_deplibs=yes
10670 libltdl_cv_sys_dlopen_deplibs=yes
10673 libltdl_cv_sys_dlopen_deplibs=yes
10675 irix[12345]*|irix6.[01]*)
10676 # Catch all versions of IRIX before 6.2, and indicate that we don't
10677 # know how it worked for any of those versions.
10678 libltdl_cv_sys_dlopen_deplibs=unknown
10681 # The case above catches anything before 6.2, and it's known that
10682 # at 6.2 and later dlopen does load deplibs.
10683 libltdl_cv_sys_dlopen_deplibs=yes
10686 libltdl_cv_sys_dlopen_deplibs=yes
10689 libltdl_cv_sys_dlopen_deplibs=yes
10692 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10693 # it did *not* use an RPATH in a shared library to find objects the
10694 # library depends on, so we explicitly say `no'.
10695 libltdl_cv_sys_dlopen_deplibs=no
10697 osf5.0|osf5.0a|osf5.1)
10698 # dlopen *does* load deplibs and with the right loader patch applied
10699 # it even uses RPATH in a shared library to search for shared objects
10700 # that the library depends on, but there's no easy way to know if that
10701 # patch is installed. Since this is the case, all we can really
10702 # say is unknown -- it depends on the patch being installed. If
10703 # it is, this changes to `yes'. Without it, it would be `no'.
10704 libltdl_cv_sys_dlopen_deplibs=unknown
10707 # the two cases above should catch all versions of osf <= 5.1. Read
10708 # the comments above for what we know about them.
10709 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10710 # is used to find them so we can finally say `yes'.
10711 libltdl_cv_sys_dlopen_deplibs=yes
10714 libltdl_cv_sys_dlopen_deplibs=yes
10716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10717 libltdl_cv_sys_dlopen_deplibs=yes
10722 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10723 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10724 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10726 cat >>confdefs.h <<\_ACEOF
10727 #define LTDL_DLOPEN_DEPLIBS 1
10733 for ac_header in argz.h
10735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 ac_res=`eval echo '${'$as_ac_Header'}'`
10743 { echo "$as_me:$LINENO: result: $ac_res" >&5
10744 echo "${ECHO_T}$ac_res" >&6; }
10746 # Is the header compilable?
10747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10749 cat >conftest.$ac_ext <<_ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 $ac_includes_default
10756 #include <$ac_header>
10758 rm -f conftest.$ac_objext
10759 if { (ac_try="$ac_compile"
10760 case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_compile") 2>conftest.er1
10767 grep -v '^ *+' conftest.er1 >conftest.err
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10773 { (case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_try") 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; } &&
10782 { ac_try='test -s conftest.$ac_objext'
10783 { (case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_try") 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_header_compiler=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 ac_header_compiler=no
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10802 echo "${ECHO_T}$ac_header_compiler" >&6; }
10804 # Is the header present?
10805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <$ac_header>
10815 if { (ac_try="$ac_cpp conftest.$ac_ext"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10823 grep -v '^ *+' conftest.er1 >conftest.err
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } >/dev/null; then
10828 if test -s conftest.err; then
10829 ac_cpp_err=$ac_c_preproc_warn_flag
10830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10837 if test -z "$ac_cpp_err"; then
10838 ac_header_preproc=yes
10840 echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10843 ac_header_preproc=no
10846 rm -f conftest.err conftest.$ac_ext
10847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10848 echo "${ECHO_T}$ac_header_preproc" >&6; }
10850 # So? What about this header?
10851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10857 ac_header_preproc=yes
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10873 ## ------------------------------------ ##
10874 ## Report this to http://llvm.org/bugs/ ##
10875 ## ------------------------------------ ##
10877 ) | sed "s/^/$as_me: WARNING: /" >&2
10880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 eval "$as_ac_Header=\$ac_header_preproc"
10887 ac_res=`eval echo '${'$as_ac_Header'}'`
10888 { echo "$as_me:$LINENO: result: $ac_res" >&5
10889 echo "${ECHO_T}$ac_res" >&6; }
10892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10893 cat >>confdefs.h <<_ACEOF
10894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10902 { echo "$as_me:$LINENO: checking for error_t" >&5
10903 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10904 if test "${ac_cv_type_error_t+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10917 typedef error_t ac__type_new_;
10921 if ((ac__type_new_ *) 0)
10923 if (sizeof (ac__type_new_))
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
10931 case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_compile") 2>conftest.er1
10938 grep -v '^ *+' conftest.er1 >conftest.err
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_try") 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_cv_type_error_t=yes
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 ac_cv_type_error_t=no
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10974 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10975 if test $ac_cv_type_error_t = yes; then
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_ERROR_T 1
10984 cat >>confdefs.h <<\_ACEOF
10985 #define error_t int
10996 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 cat >conftest.$ac_ext <<_ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11012 #define $ac_func innocuous_$ac_func
11014 /* System header to define __stub macros and hopefully few prototypes,
11015 which can conflict with char $ac_func (); below.
11016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11017 <limits.h> exists even on freestanding compilers. */
11020 # include <limits.h>
11022 # include <assert.h>
11027 /* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11034 /* The GNU C library defines this for functions which it implements
11035 to always fail with ENOSYS. Some functions are actually named
11036 something starting with __ and the normal name is an alias. */
11037 #if defined __stub_$ac_func || defined __stub___$ac_func
11044 return $ac_func ();
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (ac_try="$ac_link"
11051 case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_link") 2>conftest.er1
11058 grep -v '^ *+' conftest.er1 >conftest.err
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } &&
11063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11064 { (case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069 (eval "$ac_try") 2>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; } &&
11073 { ac_try='test -s conftest$ac_exeext'
11074 { (case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_try") 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 eval "$as_ac_var=yes"
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11088 eval "$as_ac_var=no"
11091 rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11094 ac_res=`eval echo '${'$as_ac_var'}'`
11095 { echo "$as_me:$LINENO: result: $ac_res" >&5
11096 echo "${ECHO_T}$ac_res" >&6; }
11097 if test `eval echo '${'$as_ac_var'}'` = yes; then
11098 cat >>confdefs.h <<_ACEOF
11099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11131 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 ac_res=`eval echo '${'$as_ac_Header'}'`
11142 { echo "$as_me:$LINENO: result: $ac_res" >&5
11143 echo "${ECHO_T}$ac_res" >&6; }
11145 # Is the header compilable?
11146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11148 cat >conftest.$ac_ext <<_ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 $ac_includes_default
11155 #include <$ac_header>
11157 rm -f conftest.$ac_objext
11158 if { (ac_try="$ac_compile"
11159 case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_compile") 2>conftest.er1
11166 grep -v '^ *+' conftest.er1 >conftest.err
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172 { (case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_try") 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest.$ac_objext'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_header_compiler=yes
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 ac_header_compiler=no
11199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11201 echo "${ECHO_T}$ac_header_compiler" >&6; }
11203 # Is the header present?
11204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11206 cat >conftest.$ac_ext <<_ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 #include <$ac_header>
11214 if { (ac_try="$ac_cpp conftest.$ac_ext"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11222 grep -v '^ *+' conftest.er1 >conftest.err
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } >/dev/null; then
11227 if test -s conftest.err; then
11228 ac_cpp_err=$ac_c_preproc_warn_flag
11229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11236 if test -z "$ac_cpp_err"; then
11237 ac_header_preproc=yes
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 ac_header_preproc=no
11245 rm -f conftest.err conftest.$ac_ext
11246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11247 echo "${ECHO_T}$ac_header_preproc" >&6; }
11249 # So? What about this header?
11250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11256 ac_header_preproc=yes
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11272 ## ------------------------------------ ##
11273 ## Report this to http://llvm.org/bugs/ ##
11274 ## ------------------------------------ ##
11276 ) | sed "s/^/$as_me: WARNING: /" >&2
11279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 eval "$as_ac_Header=\$ac_header_preproc"
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287 { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11304 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 ac_res=`eval echo '${'$as_ac_Header'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315 echo "${ECHO_T}$ac_res" >&6; }
11317 # Is the header compilable?
11318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11320 cat >conftest.$ac_ext <<_ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 $ac_includes_default
11327 #include <$ac_header>
11329 rm -f conftest.$ac_objext
11330 if { (ac_try="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11344 { (case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_try") 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; } &&
11353 { ac_try='test -s conftest.$ac_objext'
11354 { (case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_try") 2>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_header_compiler=yes
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11368 ac_header_compiler=no
11371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11373 echo "${ECHO_T}$ac_header_compiler" >&6; }
11375 # Is the header present?
11376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11378 cat >conftest.$ac_ext <<_ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 #include <$ac_header>
11386 if { (ac_try="$ac_cpp conftest.$ac_ext"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11394 grep -v '^ *+' conftest.er1 >conftest.err
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } >/dev/null; then
11399 if test -s conftest.err; then
11400 ac_cpp_err=$ac_c_preproc_warn_flag
11401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408 if test -z "$ac_cpp_err"; then
11409 ac_header_preproc=yes
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_header_preproc=no
11417 rm -f conftest.err conftest.$ac_ext
11418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11419 echo "${ECHO_T}$ac_header_preproc" >&6; }
11421 # So? What about this header?
11422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11428 ac_header_preproc=yes
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11444 ## ------------------------------------ ##
11445 ## Report this to http://llvm.org/bugs/ ##
11446 ## ------------------------------------ ##
11448 ) | sed "s/^/$as_me: WARNING: /" >&2
11451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 eval "$as_ac_Header=\$ac_header_preproc"
11458 ac_res=`eval echo '${'$as_ac_Header'}'`
11459 { echo "$as_me:$LINENO: result: $ac_res" >&5
11460 echo "${ECHO_T}$ac_res" >&6; }
11463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11464 cat >>confdefs.h <<_ACEOF
11465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474 for ac_header in string.h strings.h
11476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11487 # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.$ac_ext <<_ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 $ac_includes_default
11497 #include <$ac_header>
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11514 { (case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_try") 2>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; } &&
11523 { ac_try='test -s conftest.$ac_objext'
11524 { (case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_try") 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 ac_header_compiler=yes
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 ac_header_compiler=no
11541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11543 echo "${ECHO_T}$ac_header_compiler" >&6; }
11545 # Is the header present?
11546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11548 cat >conftest.$ac_ext <<_ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 #include <$ac_header>
11556 if { (ac_try="$ac_cpp conftest.$ac_ext"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11564 grep -v '^ *+' conftest.er1 >conftest.err
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } >/dev/null; then
11569 if test -s conftest.err; then
11570 ac_cpp_err=$ac_c_preproc_warn_flag
11571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11578 if test -z "$ac_cpp_err"; then
11579 ac_header_preproc=yes
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_header_preproc=no
11587 rm -f conftest.err conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11589 echo "${ECHO_T}$ac_header_preproc" >&6; }
11591 # So? What about this header?
11592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11598 ac_header_preproc=yes
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11614 ## ------------------------------------ ##
11615 ## Report this to http://llvm.org/bugs/ ##
11616 ## ------------------------------------ ##
11618 ) | sed "s/^/$as_me: WARNING: /" >&2
11621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 eval "$as_ac_Header=\$ac_header_preproc"
11628 ac_res=`eval echo '${'$as_ac_Header'}'`
11629 { echo "$as_me:$LINENO: result: $ac_res" >&5
11630 echo "${ECHO_T}$ac_res" >&6; }
11633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11634 cat >>confdefs.h <<_ACEOF
11635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11645 for ac_func in strchr index
11647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11661 #define $ac_func innocuous_$ac_func
11663 /* System header to define __stub macros and hopefully few prototypes,
11664 which can conflict with char $ac_func (); below.
11665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666 <limits.h> exists even on freestanding compilers. */
11669 # include <limits.h>
11671 # include <assert.h>
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11683 /* The GNU C library defines this for functions which it implements
11684 to always fail with ENOSYS. Some functions are actually named
11685 something starting with __ and the normal name is an alias. */
11686 #if defined __stub_$ac_func || defined __stub___$ac_func
11693 return $ac_func ();
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_link") 2>conftest.er1
11707 grep -v '^ *+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713 { (case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_try") 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 eval "$as_ac_var=yes"
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11737 eval "$as_ac_var=no"
11740 rm -f core conftest.err conftest.$ac_objext \
11741 conftest$ac_exeext conftest.$ac_ext
11743 ac_res=`eval echo '${'$as_ac_var'}'`
11744 { echo "$as_me:$LINENO: result: $ac_res" >&5
11745 echo "${ECHO_T}$ac_res" >&6; }
11746 if test `eval echo '${'$as_ac_var'}'` = yes; then
11747 cat >>confdefs.h <<_ACEOF
11748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 for ac_func in strrchr rindex
11758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11772 #define $ac_func innocuous_$ac_func
11774 /* System header to define __stub macros and hopefully few prototypes,
11775 which can conflict with char $ac_func (); below.
11776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11777 <limits.h> exists even on freestanding compilers. */
11780 # include <limits.h>
11782 # include <assert.h>
11787 /* Override any GCC internal prototype to avoid an error.
11788 Use char because int might match the return type of a GCC
11789 builtin and then its argument prototype would still apply. */
11794 /* The GNU C library defines this for functions which it implements
11795 to always fail with ENOSYS. Some functions are actually named
11796 something starting with __ and the normal name is an alias. */
11797 #if defined __stub_$ac_func || defined __stub___$ac_func
11804 return $ac_func ();
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (ac_try="$ac_link"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_link") 2>conftest.er1
11818 grep -v '^ *+' conftest.er1 >conftest.err
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824 { (case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest$ac_exeext'
11834 { (case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_try") 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 eval "$as_ac_var=yes"
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 eval "$as_ac_var=no"
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11854 ac_res=`eval echo '${'$as_ac_var'}'`
11855 { echo "$as_me:$LINENO: result: $ac_res" >&5
11856 echo "${ECHO_T}$ac_res" >&6; }
11857 if test `eval echo '${'$as_ac_var'}'` = yes; then
11858 cat >>confdefs.h <<_ACEOF
11859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867 for ac_func in memcpy bcopy
11869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11883 #define $ac_func innocuous_$ac_func
11885 /* System header to define __stub macros and hopefully few prototypes,
11886 which can conflict with char $ac_func (); below.
11887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888 <limits.h> exists even on freestanding compilers. */
11891 # include <limits.h>
11893 # include <assert.h>
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11905 /* The GNU C library defines this for functions which it implements
11906 to always fail with ENOSYS. Some functions are actually named
11907 something starting with __ and the normal name is an alias. */
11908 #if defined __stub_$ac_func || defined __stub___$ac_func
11915 return $ac_func ();
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_link") 2>conftest.er1
11929 grep -v '^ *+' conftest.er1 >conftest.err
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11935 { (case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_try") 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest$ac_exeext'
11945 { (case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_try") 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 eval "$as_ac_var=yes"
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11959 eval "$as_ac_var=no"
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11965 ac_res=`eval echo '${'$as_ac_var'}'`
11966 { echo "$as_me:$LINENO: result: $ac_res" >&5
11967 echo "${ECHO_T}$ac_res" >&6; }
11968 if test `eval echo '${'$as_ac_var'}'` = yes; then
11969 cat >>confdefs.h <<_ACEOF
11970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978 for ac_func in memmove strcmp
11980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11994 #define $ac_func innocuous_$ac_func
11996 /* System header to define __stub macros and hopefully few prototypes,
11997 which can conflict with char $ac_func (); below.
11998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11999 <limits.h> exists even on freestanding compilers. */
12002 # include <limits.h>
12004 # include <assert.h>
12009 /* Override any GCC internal prototype to avoid an error.
12010 Use char because int might match the return type of a GCC
12011 builtin and then its argument prototype would still apply. */
12016 /* The GNU C library defines this for functions which it implements
12017 to always fail with ENOSYS. Some functions are actually named
12018 something starting with __ and the normal name is an alias. */
12019 #if defined __stub_$ac_func || defined __stub___$ac_func
12026 return $ac_func ();
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (ac_try="$ac_link"
12033 case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_link") 2>conftest.er1
12040 grep -v '^ *+' conftest.er1 >conftest.err
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } &&
12045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12046 { (case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_try") 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; } &&
12055 { ac_try='test -s conftest$ac_exeext'
12056 { (case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_try") 2>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; }; then
12065 eval "$as_ac_var=yes"
12067 echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 eval "$as_ac_var=no"
12073 rm -f core conftest.err conftest.$ac_objext \
12074 conftest$ac_exeext conftest.$ac_ext
12076 ac_res=`eval echo '${'$as_ac_var'}'`
12077 { echo "$as_me:$LINENO: result: $ac_res" >&5
12078 echo "${ECHO_T}$ac_res" >&6; }
12079 if test `eval echo '${'$as_ac_var'}'` = yes; then
12080 cat >>confdefs.h <<_ACEOF
12081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12090 for ac_func in closedir opendir readdir
12092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12106 #define $ac_func innocuous_$ac_func
12108 /* System header to define __stub macros and hopefully few prototypes,
12109 which can conflict with char $ac_func (); below.
12110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12111 <limits.h> exists even on freestanding compilers. */
12114 # include <limits.h>
12116 # include <assert.h>
12121 /* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
12128 /* The GNU C library defines this for functions which it implements
12129 to always fail with ENOSYS. Some functions are actually named
12130 something starting with __ and the normal name is an alias. */
12131 #if defined __stub_$ac_func || defined __stub___$ac_func
12138 return $ac_func ();
12143 rm -f conftest.$ac_objext conftest$ac_exeext
12144 if { (ac_try="$ac_link"
12145 case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_link") 2>conftest.er1
12152 grep -v '^ *+' conftest.er1 >conftest.err
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } &&
12157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12158 { (case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163 (eval "$ac_try") 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest$ac_exeext'
12168 { (case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_try") 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 eval "$as_ac_var=yes"
12179 echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12182 eval "$as_ac_var=no"
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12188 ac_res=`eval echo '${'$as_ac_var'}'`
12189 { echo "$as_me:$LINENO: result: $ac_res" >&5
12190 echo "${ECHO_T}$ac_res" >&6; }
12191 if test `eval echo '${'$as_ac_var'}'` = yes; then
12192 cat >>confdefs.h <<_ACEOF
12193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12202 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12215 if test "$GCC" != "yes" && test "$ICC" != "yes"
12217 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12218 echo "$as_me: error: gcc|icc required but not found" >&2;}
12219 { (exit 1); exit 1; }; }
12222 if test "$GXX" != "yes" && test "$IXX" != "yes"
12224 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12225 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12226 { (exit 1); exit 1; }; }
12229 if test "$GCC" = "yes"
12231 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12239 #if !defined(__GNUC__) || __GNUC__ < 3
12240 #error Unsupported GCC version
12245 rm -f conftest.$ac_objext
12246 if { (ac_try="$ac_compile"
12247 case "(($ac_try" in
12248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249 *) ac_try_echo=$ac_try;;
12251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12252 (eval "$ac_compile") 2>conftest.er1
12254 grep -v '^ *+' conftest.er1 >conftest.err
12256 cat conftest.err >&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } &&
12259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12260 { (case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_try") 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; } &&
12269 { ac_try='test -s conftest.$ac_objext'
12270 { (case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_try") 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12285 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12286 { (exit 1); exit 1; }; }
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292 if test -z "$llvm_cv_gnu_make_command"
12294 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12295 echo "$as_me: error: GNU Make required but not found" >&2;}
12296 { (exit 1); exit 1; }; }
12299 { echo "$as_me:$LINENO: result: ok" >&5
12300 echo "${ECHO_T}ok" >&6; }
12302 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12303 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12304 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12306 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12308 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12312 NO_MAYBE_UNINITIALIZED=
12313 if test "$GXX" = "yes"
12315 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12317 if test -z "$NO_MAYBE_UNINITIALIZED"
12319 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12323 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12324 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12327 # Check whether --with-python was given.
12328 if test "${with_python+set}" = set; then
12329 withval=$with_python; PYTHON="$withval"
12333 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12334 { echo "$as_me:$LINENO: checking for python" >&5
12335 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12336 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12337 echo "${ECHO_T}user defined: $with_python" >&6; }
12339 if test -n "$PYTHON" ; then
12340 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12341 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12344 # Extract the first word of "python python2 python26", so it can be a program name with args.
12345 set dummy python python2 python26; ac_word=$2
12346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12348 if test "${ac_cv_path_PYTHON+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12372 echo "${ECHO_T}not found" >&6; }
12373 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12374 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12375 { (exit 1); exit 1; }; }"
12379 PYTHON=$ac_cv_path_PYTHON
12380 if test -n "$PYTHON"; then
12381 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12382 echo "${ECHO_T}$PYTHON" >&6; }
12384 { echo "$as_me:$LINENO: result: no" >&5
12385 echo "${ECHO_T}no" >&6; }
12391 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12392 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12393 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12394 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12395 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12396 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12397 if test "$ac_python_version_major" -eq "2" \
12398 && test "$ac_python_version_minor" -ge "5" ; then
12399 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12400 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12402 { echo "$as_me:$LINENO: result: not found" >&5
12403 echo "${ECHO_T}not found" >&6; }
12404 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12405 See \`config.log' for more details." >&5
12406 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12407 See \`config.log' for more details." >&2;}
12408 { (exit 1); exit 1; }; }
12413 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12414 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12415 if test "${ac_cv_lib_m_sin+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 ac_check_lib_save_LIBS=$LIBS
12420 cat >conftest.$ac_ext <<_ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12427 /* Override any GCC internal prototype to avoid an error.
12428 Use char because int might match the return type of a GCC
12429 builtin and then its argument prototype would still apply. */
12442 rm -f conftest.$ac_objext conftest$ac_exeext
12443 if { (ac_try="$ac_link"
12444 case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449 (eval "$ac_link") 2>conftest.er1
12451 grep -v '^ *+' conftest.er1 >conftest.err
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
12456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12457 { (case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462 (eval "$ac_try") 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; } &&
12466 { ac_try='test -s conftest$ac_exeext'
12467 { (case "(($ac_try" in
12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_try") 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_lib_m_sin=yes
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12484 rm -f core conftest.err conftest.$ac_objext \
12485 conftest$ac_exeext conftest.$ac_ext
12486 LIBS=$ac_check_lib_save_LIBS
12488 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12489 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12490 if test $ac_cv_lib_m_sin = yes; then
12491 cat >>confdefs.h <<_ACEOF
12492 #define HAVE_LIBM 1
12499 if test "$llvm_cv_os_type" = "MingW" ; then
12501 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12502 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12503 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 ac_check_lib_save_LIBS=$LIBS
12507 LIBS="-limagehlp $LIBS"
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (ac_try="$ac_link"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_link") 2>conftest.er1
12533 grep -v '^ *+' conftest.er1 >conftest.err
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12539 { (case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_try") 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest$ac_exeext'
12549 { (case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_try") 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_lib_imagehlp_main=yes
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ac_cv_lib_imagehlp_main=no
12566 rm -f core conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12570 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12571 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12572 if test $ac_cv_lib_imagehlp_main = yes; then
12573 cat >>confdefs.h <<_ACEOF
12574 #define HAVE_LIBIMAGEHLP 1
12577 LIBS="-limagehlp $LIBS"
12582 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12583 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12584 if test "${ac_cv_lib_psapi_main+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lpsapi $LIBS"
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12605 rm -f conftest.$ac_objext conftest$ac_exeext
12606 if { (ac_try="$ac_link"
12607 case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_link") 2>conftest.er1
12614 grep -v '^ *+' conftest.er1 >conftest.err
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12620 { (case "(($ac_try" in
12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622 *) ac_try_echo=$ac_try;;
12624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12625 (eval "$ac_try") 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; } &&
12629 { ac_try='test -s conftest$ac_exeext'
12630 { (case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_try") 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
12639 ac_cv_lib_psapi_main=yes
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 ac_cv_lib_psapi_main=no
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12651 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12652 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12653 if test $ac_cv_lib_psapi_main = yes; then
12654 cat >>confdefs.h <<_ACEOF
12655 #define HAVE_LIBPSAPI 1
12658 LIBS="-lpsapi $LIBS"
12664 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12665 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12666 if test "${ac_cv_search_dlopen+set}" = set; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 ac_func_search_save_LIBS=$LIBS
12670 cat >conftest.$ac_ext <<_ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12677 /* Override any GCC internal prototype to avoid an error.
12678 Use char because int might match the return type of a GCC
12679 builtin and then its argument prototype would still apply. */
12692 for ac_lib in '' dl; do
12693 if test -z "$ac_lib"; then
12694 ac_res="none required"
12697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12699 rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (ac_try="$ac_link"
12701 case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_link") 2>conftest.er1
12708 grep -v '^ *+' conftest.er1 >conftest.err
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12714 { (case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_try") 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try='test -s conftest$ac_exeext'
12724 { (case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_try") 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 ac_cv_search_dlopen=$ac_res
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12741 rm -f core conftest.err conftest.$ac_objext \
12743 if test "${ac_cv_search_dlopen+set}" = set; then
12747 if test "${ac_cv_search_dlopen+set}" = set; then
12750 ac_cv_search_dlopen=no
12752 rm conftest.$ac_ext
12753 LIBS=$ac_func_search_save_LIBS
12755 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12756 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12757 ac_res=$ac_cv_search_dlopen
12758 if test "$ac_res" != no; then
12759 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12761 cat >>confdefs.h <<\_ACEOF
12762 #define HAVE_DLOPEN 1
12766 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12767 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12771 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12772 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12773 if test "${ac_cv_search_clock_gettime+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 ac_func_search_save_LIBS=$LIBS
12777 cat >conftest.$ac_ext <<_ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12784 /* Override any GCC internal prototype to avoid an error.
12785 Use char because int might match the return type of a GCC
12786 builtin and then its argument prototype would still apply. */
12790 char clock_gettime ();
12794 return clock_gettime ();
12799 for ac_lib in '' rt; do
12800 if test -z "$ac_lib"; then
12801 ac_res="none required"
12804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (ac_try="$ac_link"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_link") 2>conftest.er1
12815 grep -v '^ *+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
12820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12821 { (case "(($ac_try" in
12822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823 *) ac_try_echo=$ac_try;;
12825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12826 (eval "$ac_try") 2>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } &&
12830 { ac_try='test -s conftest$ac_exeext'
12831 { (case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836 (eval "$ac_try") 2>&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_cv_search_clock_gettime=$ac_res
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12848 rm -f core conftest.err conftest.$ac_objext \
12850 if test "${ac_cv_search_clock_gettime+set}" = set; then
12854 if test "${ac_cv_search_clock_gettime+set}" = set; then
12857 ac_cv_search_clock_gettime=no
12859 rm conftest.$ac_ext
12860 LIBS=$ac_func_search_save_LIBS
12862 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12863 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12864 ac_res=$ac_cv_search_clock_gettime
12865 if test "$ac_res" != no; then
12866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12871 if test "$llvm_cv_enable_libffi" = "yes" ; then
12872 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12873 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12874 if test "${ac_cv_search_ffi_call+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 ac_func_search_save_LIBS=$LIBS
12878 cat >conftest.$ac_ext <<_ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12885 /* Override any GCC internal prototype to avoid an error.
12886 Use char because int might match the return type of a GCC
12887 builtin and then its argument prototype would still apply. */
12895 return ffi_call ();
12900 for ac_lib in '' ffi; do
12901 if test -z "$ac_lib"; then
12902 ac_res="none required"
12905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12907 rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (ac_try="$ac_link"
12909 case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_link") 2>conftest.er1
12916 grep -v '^ *+' conftest.er1 >conftest.err
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12922 { (case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_try") 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest$ac_exeext'
12932 { (case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_try") 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 ac_cv_search_ffi_call=$ac_res
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12949 rm -f core conftest.err conftest.$ac_objext \
12951 if test "${ac_cv_search_ffi_call+set}" = set; then
12955 if test "${ac_cv_search_ffi_call+set}" = set; then
12958 ac_cv_search_ffi_call=no
12960 rm conftest.$ac_ext
12961 LIBS=$ac_func_search_save_LIBS
12963 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12964 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12965 ac_res=$ac_cv_search_ffi_call
12966 if test "$ac_res" != no; then
12967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12969 cat >>confdefs.h <<\_ACEOF
12970 #define HAVE_FFI_CALL 1
12974 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12975 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12976 { (exit 1); exit 1; }; }
12981 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12982 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12983 if test "${ac_cv_search_mallinfo+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 ac_func_search_save_LIBS=$LIBS
12987 cat >conftest.$ac_ext <<_ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12994 /* Override any GCC internal prototype to avoid an error.
12995 Use char because int might match the return type of a GCC
12996 builtin and then its argument prototype would still apply. */
13004 return mallinfo ();
13009 for ac_lib in '' malloc; do
13010 if test -z "$ac_lib"; then
13011 ac_res="none required"
13014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_link") 2>conftest.er1
13025 grep -v '^ *+' conftest.er1 >conftest.err
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13031 { (case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_try") 2>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; } &&
13040 { ac_try='test -s conftest$ac_exeext'
13041 { (case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_try") 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; }; then
13050 ac_cv_search_mallinfo=$ac_res
13052 echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13058 rm -f core conftest.err conftest.$ac_objext \
13060 if test "${ac_cv_search_mallinfo+set}" = set; then
13064 if test "${ac_cv_search_mallinfo+set}" = set; then
13067 ac_cv_search_mallinfo=no
13069 rm conftest.$ac_ext
13070 LIBS=$ac_func_search_save_LIBS
13072 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13073 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13074 ac_res=$ac_cv_search_mallinfo
13075 if test "$ac_res" != no; then
13076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13078 cat >>confdefs.h <<\_ACEOF
13079 #define HAVE_MALLINFO 1
13085 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13087 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13088 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13089 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 ac_check_lib_save_LIBS=$LIBS
13093 LIBS="-lpthread $LIBS"
13094 cat >conftest.$ac_ext <<_ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13107 char pthread_mutex_init ();
13111 return pthread_mutex_init ();
13116 rm -f conftest.$ac_objext conftest$ac_exeext
13117 if { (ac_try="$ac_link"
13118 case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_link") 2>conftest.er1
13125 grep -v '^ *+' conftest.er1 >conftest.err
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13131 { (case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_try") 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; } &&
13140 { ac_try='test -s conftest$ac_exeext'
13141 { (case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_try") 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 ac_cv_lib_pthread_pthread_mutex_init=yes
13152 echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13155 ac_cv_lib_pthread_pthread_mutex_init=no
13158 rm -f core conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13162 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13163 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13164 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13165 cat >>confdefs.h <<_ACEOF
13166 #define HAVE_LIBPTHREAD 1
13169 LIBS="-lpthread $LIBS"
13173 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13174 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13175 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 ac_func_search_save_LIBS=$LIBS
13179 cat >conftest.$ac_ext <<_ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13186 /* Override any GCC internal prototype to avoid an error.
13187 Use char because int might match the return type of a GCC
13188 builtin and then its argument prototype would still apply. */
13192 char pthread_mutex_lock ();
13196 return pthread_mutex_lock ();
13201 for ac_lib in '' pthread; do
13202 if test -z "$ac_lib"; then
13203 ac_res="none required"
13206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (ac_try="$ac_link"
13210 case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 (eval "$ac_link") 2>conftest.er1
13217 grep -v '^ *+' conftest.er1 >conftest.err
13219 cat conftest.err >&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } &&
13222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13223 { (case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_try") 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try='test -s conftest$ac_exeext'
13233 { (case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_try") 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; }; then
13242 ac_cv_search_pthread_mutex_lock=$ac_res
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13250 rm -f core conftest.err conftest.$ac_objext \
13252 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13256 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13259 ac_cv_search_pthread_mutex_lock=no
13261 rm conftest.$ac_ext
13262 LIBS=$ac_func_search_save_LIBS
13264 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13265 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13266 ac_res=$ac_cv_search_pthread_mutex_lock
13267 if test "$ac_res" != no; then
13268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_PTHREAD_MUTEX_LOCK 1
13276 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13277 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13278 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 ac_func_search_save_LIBS=$LIBS
13282 cat >conftest.$ac_ext <<_ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h. */
13289 /* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13295 char pthread_rwlock_init ();
13299 return pthread_rwlock_init ();
13304 for ac_lib in '' pthread; do
13305 if test -z "$ac_lib"; then
13306 ac_res="none required"
13309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13311 rm -f conftest.$ac_objext conftest$ac_exeext
13312 if { (ac_try="$ac_link"
13313 case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_link") 2>conftest.er1
13320 grep -v '^ *+' conftest.er1 >conftest.err
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } &&
13325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13326 { (case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_try") 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; } &&
13335 { ac_try='test -s conftest$ac_exeext'
13336 { (case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_try") 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345 ac_cv_search_pthread_rwlock_init=$ac_res
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13353 rm -f core conftest.err conftest.$ac_objext \
13355 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13359 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13362 ac_cv_search_pthread_rwlock_init=no
13364 rm conftest.$ac_ext
13365 LIBS=$ac_func_search_save_LIBS
13367 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13368 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13369 ac_res=$ac_cv_search_pthread_rwlock_init
13370 if test "$ac_res" != no; then
13371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13373 cat >>confdefs.h <<\_ACEOF
13374 #define HAVE_PTHREAD_RWLOCK_INIT 1
13379 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13380 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13381 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 ac_func_search_save_LIBS=$LIBS
13385 cat >conftest.$ac_ext <<_ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13392 /* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13398 char pthread_getspecific ();
13402 return pthread_getspecific ();
13407 for ac_lib in '' pthread; do
13408 if test -z "$ac_lib"; then
13409 ac_res="none required"
13412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (ac_try="$ac_link"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_link") 2>conftest.er1
13423 grep -v '^ *+' conftest.er1 >conftest.err
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest$ac_exeext'
13439 { (case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_try") 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_search_pthread_getspecific=$ac_res
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13456 rm -f core conftest.err conftest.$ac_objext \
13458 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13462 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13465 ac_cv_search_pthread_getspecific=no
13467 rm conftest.$ac_ext
13468 LIBS=$ac_func_search_save_LIBS
13470 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13471 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13472 ac_res=$ac_cv_search_pthread_getspecific
13473 if test "$ac_res" != no; then
13474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13476 cat >>confdefs.h <<\_ACEOF
13477 #define HAVE_PTHREAD_GETSPECIFIC 1
13484 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13486 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13487 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13488 if test "${ac_cv_lib_z_compress2+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 ac_check_lib_save_LIBS=$LIBS
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13500 /* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13510 return compress2 ();
13515 rm -f conftest.$ac_objext conftest$ac_exeext
13516 if { (ac_try="$ac_link"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_link") 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13530 { (case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_try") 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest$ac_exeext'
13540 { (case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_try") 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_cv_lib_z_compress2=yes
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 ac_cv_lib_z_compress2=no
13557 rm -f core conftest.err conftest.$ac_objext \
13558 conftest$ac_exeext conftest.$ac_ext
13559 LIBS=$ac_check_lib_save_LIBS
13561 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13562 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13563 if test $ac_cv_lib_z_compress2 = yes; then
13564 cat >>confdefs.h <<_ACEOF
13565 #define HAVE_LIBZ 1
13575 # Check whether --with-udis86 was given.
13576 if test "${with_udis86+set}" = set; then
13577 withval=$with_udis86;
13582 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13585 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13586 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13587 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-ludis86 $LIBS"
13592 cat >conftest.$ac_ext <<_ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any GCC internal prototype to avoid an error.
13600 Use char because int might match the return type of a GCC
13601 builtin and then its argument prototype would still apply. */
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_link") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629 { (case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_try") 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest$ac_exeext'
13639 { (case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_try") 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 ac_cv_lib_udis86_ud_init=yes
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13653 ac_cv_lib_udis86_ud_init=no
13656 rm -f core conftest.err conftest.$ac_objext \
13657 conftest$ac_exeext conftest.$ac_ext
13658 LIBS=$ac_check_lib_save_LIBS
13660 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13661 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13662 if test $ac_cv_lib_udis86_ud_init = yes; then
13663 cat >>confdefs.h <<_ACEOF
13664 #define HAVE_LIBUDIS86 1
13667 LIBS="-ludis86 $LIBS"
13671 echo "Error! You need to have libudis86 around."
13683 cat >>confdefs.h <<_ACEOF
13684 #define USE_UDIS86 $USE_UDIS86
13689 # Check whether --with-oprofile was given.
13690 if test "${with_oprofile+set}" = set; then
13691 withval=$with_oprofile;
13695 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13696 no) llvm_cv_oppath=
13699 *) llvm_cv_oppath="${withval}/lib/oprofile"
13700 CPPFLAGS="-I${withval}/include";;
13702 case $llvm_cv_os_type in
13704 if test -n "$llvm_cv_oppath" ; then
13705 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13706 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13707 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13708 if test "${ac_cv_search_bfd_init+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 ac_func_search_save_LIBS=$LIBS
13712 cat >conftest.$ac_ext <<_ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13719 /* Override any GCC internal prototype to avoid an error.
13720 Use char because int might match the return type of a GCC
13721 builtin and then its argument prototype would still apply. */
13729 return bfd_init ();
13734 for ac_lib in '' bfd; do
13735 if test -z "$ac_lib"; then
13736 ac_res="none required"
13739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13741 rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (ac_try="$ac_link"
13743 case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_link") 2>conftest.er1
13750 grep -v '^ *+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } &&
13765 { ac_try='test -s conftest$ac_exeext'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 ac_cv_search_bfd_init=$ac_res
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13783 rm -f core conftest.err conftest.$ac_objext \
13785 if test "${ac_cv_search_bfd_init+set}" = set; then
13789 if test "${ac_cv_search_bfd_init+set}" = set; then
13792 ac_cv_search_bfd_init=no
13794 rm conftest.$ac_ext
13795 LIBS=$ac_func_search_save_LIBS
13797 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13798 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13799 ac_res=$ac_cv_search_bfd_init
13800 if test "$ac_res" != no; then
13801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13805 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13806 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13807 if test "${ac_cv_search_op_open_agent+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 ac_func_search_save_LIBS=$LIBS
13811 cat >conftest.$ac_ext <<_ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13818 /* Override any GCC internal prototype to avoid an error.
13819 Use char because int might match the return type of a GCC
13820 builtin and then its argument prototype would still apply. */
13824 char op_open_agent ();
13828 return op_open_agent ();
13833 for ac_lib in '' opagent; do
13834 if test -z "$ac_lib"; then
13835 ac_res="none required"
13838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_link") 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest$ac_exeext'
13865 { (case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_try") 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_search_op_open_agent=$ac_res
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13882 rm -f core conftest.err conftest.$ac_objext \
13884 if test "${ac_cv_search_op_open_agent+set}" = set; then
13888 if test "${ac_cv_search_op_open_agent+set}" = set; then
13891 ac_cv_search_op_open_agent=no
13893 rm conftest.$ac_ext
13894 LIBS=$ac_func_search_save_LIBS
13896 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13897 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13898 ac_res=$ac_cv_search_op_open_agent
13899 if test "$ac_res" != no; then
13900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13904 echo "Error! You need to have libopagent around."
13909 if test "${ac_cv_header_opagent_h+set}" = set; then
13910 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13911 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13912 if test "${ac_cv_header_opagent_h+set}" = set; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13916 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13918 # Is the header compilable?
13919 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13920 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13921 cat >conftest.$ac_ext <<_ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927 $ac_includes_default
13928 #include <opagent.h>
13930 rm -f conftest.$ac_objext
13931 if { (ac_try="$ac_compile"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_compile") 2>conftest.er1
13939 grep -v '^ *+' conftest.er1 >conftest.err
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
13944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13945 { (case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_try") 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_try") 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_header_compiler=yes
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_header_compiler=no
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 echo "${ECHO_T}$ac_header_compiler" >&6; }
13976 # Is the header present?
13977 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13978 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <opagent.h>
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } >/dev/null; then
14000 if test -s conftest.err; then
14001 ac_cpp_err=$ac_c_preproc_warn_flag
14002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14009 if test -z "$ac_cpp_err"; then
14010 ac_header_preproc=yes
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 ac_header_preproc=no
14018 rm -f conftest.err conftest.$ac_ext
14019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14020 echo "${ECHO_T}$ac_header_preproc" >&6; }
14022 # So? What about this header?
14023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14025 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14026 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14028 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14029 ac_header_preproc=yes
14032 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14033 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14035 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14037 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14038 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14039 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14041 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14043 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14045 ## ------------------------------------ ##
14046 ## Report this to http://llvm.org/bugs/ ##
14047 ## ------------------------------------ ##
14049 ) | sed "s/^/$as_me: WARNING: /" >&2
14052 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14053 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14054 if test "${ac_cv_header_opagent_h+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 ac_cv_header_opagent_h=$ac_header_preproc
14059 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14060 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14063 if test $ac_cv_header_opagent_h = yes; then
14067 echo "Error! You need to have opagent.h around."
14075 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14076 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14077 { (exit 1); exit 1; }; } ;;
14088 cat >>confdefs.h <<_ACEOF
14089 #define LLVM_USE_OPROFILE $USE_OPROFILE
14094 # Check whether --with-intel-jitevents was given.
14095 if test "${with_intel_jitevents+set}" = set; then
14096 withval=$with_intel_jitevents;
14098 yes) USE_INTEL_JITEVENTS=1
14100 no) USE_INTEL_JITEVENTS=0
14102 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14103 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14104 { (exit 1); exit 1; }; };;
14107 case $llvm_cv_os_type in
14108 Linux|Win32|Cygwin|MingW) ;;
14109 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14110 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14111 { (exit 1); exit 1; }; };;
14114 case "$llvm_cv_target_arch" in
14116 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14117 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14118 { (exit 1); exit 1; }; };;
14123 USE_INTEL_JITEVENTS=0
14129 cat >>confdefs.h <<_ACEOF
14130 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14134 for ac_prog in xml2-config
14136 # Extract the first word of "$ac_prog", so it can be a program name with args.
14137 set dummy $ac_prog; ac_word=$2
14138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14140 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 if test -n "$XML2CONFIG"; then
14144 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14150 test -z "$as_dir" && as_dir=.
14151 for ac_exec_ext in '' $ac_executable_extensions; do
14152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14153 ac_cv_prog_XML2CONFIG="$ac_prog"
14154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14163 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14164 if test -n "$XML2CONFIG"; then
14165 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14166 echo "${ECHO_T}$XML2CONFIG" >&6; }
14168 { echo "$as_me:$LINENO: result: no" >&5
14169 echo "${ECHO_T}no" >&6; }
14173 test -n "$XML2CONFIG" && break
14177 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14178 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14179 if test "x$XML2CONFIG" = "x"; then
14180 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14181 echo "${ECHO_T}xml2-config not found" >&6; }
14183 LIBXML2_INC=`$XML2CONFIG --cflags`
14184 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14185 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14186 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14187 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14188 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 ac_check_lib_save_LIBS=$LIBS
14192 LIBS="-lxml2 $LIBS"
14193 cat >conftest.$ac_ext <<_ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14200 /* Override any GCC internal prototype to avoid an error.
14201 Use char because int might match the return type of a GCC
14202 builtin and then its argument prototype would still apply. */
14206 char xmlReadFile ();
14210 return xmlReadFile ();
14215 rm -f conftest.$ac_objext conftest$ac_exeext
14216 if { (ac_try="$ac_link"
14217 case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_link") 2>conftest.er1
14224 grep -v '^ *+' conftest.er1 >conftest.err
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14230 { (case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_try") 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; } &&
14239 { ac_try='test -s conftest$ac_exeext'
14240 { (case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_try") 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 ac_cv_lib_xml2_xmlReadFile=yes
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14254 ac_cv_lib_xml2_xmlReadFile=no
14257 rm -f core conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
14259 LIBS=$ac_check_lib_save_LIBS
14261 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14262 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14263 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14265 cat >>confdefs.h <<\_ACEOF
14266 #define CLANG_HAVE_LIBXML 1
14269 LIBXML2_LIBS="-lxml2"
14282 ac_header_dirent=no
14283 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14284 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14285 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14286 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14296 #include <sys/types.h>
14308 rm -f conftest.$ac_objext
14309 if { (ac_try="$ac_compile"
14310 case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_compile") 2>conftest.er1
14317 grep -v '^ *+' conftest.er1 >conftest.err
14319 cat conftest.err >&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } &&
14322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14323 { (case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_try") 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; } &&
14332 { ac_try='test -s conftest.$ac_objext'
14333 { (case "(($ac_try" in
14334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14335 *) ac_try_echo=$ac_try;;
14337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14338 (eval "$ac_try") 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14342 eval "$as_ac_Header=yes"
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 eval "$as_ac_Header=no"
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 ac_res=`eval echo '${'$as_ac_Header'}'`
14353 { echo "$as_me:$LINENO: result: $ac_res" >&5
14354 echo "${ECHO_T}$ac_res" >&6; }
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14360 ac_header_dirent=$ac_hdr; break
14364 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14365 if test $ac_header_dirent = dirent.h; then
14366 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14367 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14368 if test "${ac_cv_search_opendir+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 ac_func_search_save_LIBS=$LIBS
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14379 /* Override any GCC internal prototype to avoid an error.
14380 Use char because int might match the return type of a GCC
14381 builtin and then its argument prototype would still apply. */
14394 for ac_lib in '' dir; do
14395 if test -z "$ac_lib"; then
14396 ac_res="none required"
14399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14401 rm -f conftest.$ac_objext conftest$ac_exeext
14402 if { (ac_try="$ac_link"
14403 case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_link") 2>conftest.er1
14410 grep -v '^ *+' conftest.er1 >conftest.err
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14416 { (case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_try") 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest$ac_exeext'
14426 { (case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_try") 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 ac_cv_search_opendir=$ac_res
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14443 rm -f core conftest.err conftest.$ac_objext \
14445 if test "${ac_cv_search_opendir+set}" = set; then
14449 if test "${ac_cv_search_opendir+set}" = set; then
14452 ac_cv_search_opendir=no
14454 rm conftest.$ac_ext
14455 LIBS=$ac_func_search_save_LIBS
14457 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14458 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14459 ac_res=$ac_cv_search_opendir
14460 if test "$ac_res" != no; then
14461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14466 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14467 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14468 if test "${ac_cv_search_opendir+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 ac_func_search_save_LIBS=$LIBS
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14479 /* Override any GCC internal prototype to avoid an error.
14480 Use char because int might match the return type of a GCC
14481 builtin and then its argument prototype would still apply. */
14494 for ac_lib in '' x; do
14495 if test -z "$ac_lib"; then
14496 ac_res="none required"
14499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14501 rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (ac_try="$ac_link"
14503 case "(($ac_try" in
14504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505 *) ac_try_echo=$ac_try;;
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508 (eval "$ac_link") 2>conftest.er1
14510 grep -v '^ *+' conftest.er1 >conftest.err
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14516 { (case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521 (eval "$ac_try") 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest$ac_exeext'
14526 { (case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_try") 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14535 ac_cv_search_opendir=$ac_res
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14543 rm -f core conftest.err conftest.$ac_objext \
14545 if test "${ac_cv_search_opendir+set}" = set; then
14549 if test "${ac_cv_search_opendir+set}" = set; then
14552 ac_cv_search_opendir=no
14554 rm conftest.$ac_ext
14555 LIBS=$ac_func_search_save_LIBS
14557 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14558 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14559 ac_res=$ac_cv_search_opendir
14560 if test "$ac_res" != no; then
14561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14567 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14568 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14569 if test "${ac_cv_header_mmap_anon+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 ac_cpp='$CPP $CPPFLAGS'
14574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14578 cat >conftest.$ac_ext <<_ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14584 #include <sys/mman.h>
14585 #include <unistd.h>
14590 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_compile") 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest.$ac_objext'
14620 { (case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_try") 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_cv_header_mmap_anon=yes
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_cv_header_mmap_anon=no
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639 ac_cpp='$CPP $CPPFLAGS'
14640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14646 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14647 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14648 if test "$ac_cv_header_mmap_anon" = yes; then
14650 cat >>confdefs.h <<\_ACEOF
14651 #define HAVE_MMAP_ANONYMOUS 1
14656 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14657 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14658 if test "${ac_cv_header_stat_broken+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 #include <sys/types.h>
14668 #include <sys/stat.h>
14670 #if defined S_ISBLK && defined S_IFDIR
14671 # if S_ISBLK (S_IFDIR)
14676 #if defined S_ISBLK && defined S_IFCHR
14677 # if S_ISBLK (S_IFCHR)
14682 #if defined S_ISLNK && defined S_IFREG
14683 # if S_ISLNK (S_IFREG)
14688 #if defined S_ISSOCK && defined S_IFREG
14689 # if S_ISSOCK (S_IFREG)
14695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14696 $EGREP "You lose" >/dev/null 2>&1; then
14697 ac_cv_header_stat_broken=yes
14699 ac_cv_header_stat_broken=no
14704 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14705 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14706 if test $ac_cv_header_stat_broken = yes; then
14708 cat >>confdefs.h <<\_ACEOF
14709 #define STAT_MACROS_BROKEN 1
14714 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14715 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14716 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 #include <sys/types.h>
14726 #include <sys/wait.h>
14727 #ifndef WEXITSTATUS
14728 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14731 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14739 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14744 rm -f conftest.$ac_objext
14745 if { (ac_try="$ac_compile"
14746 case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_compile") 2>conftest.er1
14753 grep -v '^ *+' conftest.er1 >conftest.err
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14759 { (case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_try") 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try='test -s conftest.$ac_objext'
14769 { (case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_try") 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_cv_header_sys_wait_h=yes
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 ac_cv_header_sys_wait_h=no
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14789 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14790 if test $ac_cv_header_sys_wait_h = yes; then
14792 cat >>confdefs.h <<\_ACEOF
14793 #define HAVE_SYS_WAIT_H 1
14798 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14799 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14800 if test "${ac_cv_header_time+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 cat >conftest.$ac_ext <<_ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <sys/types.h>
14810 #include <sys/time.h>
14816 if ((struct tm *) 0)
14822 rm -f conftest.$ac_objext
14823 if { (ac_try="$ac_compile"
14824 case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_compile") 2>conftest.er1
14831 grep -v '^ *+' conftest.er1 >conftest.err
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14837 { (case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_try") 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_try") 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_cv_header_time=yes
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 ac_cv_header_time=no
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14867 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14868 if test $ac_cv_header_time = yes; then
14870 cat >>confdefs.h <<\_ACEOF
14871 #define TIME_WITH_SYS_TIME 1
14878 ac_cpp='$CXXCPP $CPPFLAGS'
14879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14884 ac_cpp='$CXXCPP $CPPFLAGS'
14885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14888 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14889 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14890 if test -z "$CXXCPP"; then
14891 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 # Double quotes because CXXCPP needs to be expanded
14895 for CXXCPP in "$CXX -E" "/lib/cpp"
14897 ac_preproc_ok=false
14898 for ac_cxx_preproc_warn_flag in '' yes
14900 # Use a header file that comes with gcc, so configuring glibc
14901 # with a fresh cross-compiler works.
14902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14903 # <limits.h> exists even on freestanding compilers.
14904 # On the NeXT, cc -E runs the code through the compiler's parser,
14905 # not just through cpp. "Syntax error" is here to catch this case.
14906 cat >conftest.$ac_ext <<_ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h. */
14913 # include <limits.h>
14915 # include <assert.h>
14919 if { (ac_try="$ac_cpp conftest.$ac_ext"
14920 case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14927 grep -v '^ *+' conftest.er1 >conftest.err
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } >/dev/null; then
14932 if test -s conftest.err; then
14933 ac_cpp_err=$ac_cxx_preproc_warn_flag
14934 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14941 if test -z "$ac_cpp_err"; then
14944 echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14947 # Broken: fails on valid input.
14951 rm -f conftest.err conftest.$ac_ext
14953 # OK, works on sane cases. Now check whether nonexistent headers
14954 # can be detected and how.
14955 cat >conftest.$ac_ext <<_ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <ac_nonexistent.h>
14963 if { (ac_try="$ac_cpp conftest.$ac_ext"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } >/dev/null; then
14976 if test -s conftest.err; then
14977 ac_cpp_err=$ac_cxx_preproc_warn_flag
14978 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14985 if test -z "$ac_cpp_err"; then
14986 # Broken: success on invalid input.
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 # Passes both tests.
14997 rm -f conftest.err conftest.$ac_ext
15000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15001 rm -f conftest.err conftest.$ac_ext
15002 if $ac_preproc_ok; then
15007 ac_cv_prog_CXXCPP=$CXXCPP
15010 CXXCPP=$ac_cv_prog_CXXCPP
15012 ac_cv_prog_CXXCPP=$CXXCPP
15014 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15015 echo "${ECHO_T}$CXXCPP" >&6; }
15016 ac_preproc_ok=false
15017 for ac_cxx_preproc_warn_flag in '' yes
15019 # Use a header file that comes with gcc, so configuring glibc
15020 # with a fresh cross-compiler works.
15021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15022 # <limits.h> exists even on freestanding compilers.
15023 # On the NeXT, cc -E runs the code through the compiler's parser,
15024 # not just through cpp. "Syntax error" is here to catch this case.
15025 cat >conftest.$ac_ext <<_ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15032 # include <limits.h>
15034 # include <assert.h>
15038 if { (ac_try="$ac_cpp conftest.$ac_ext"
15039 case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15046 grep -v '^ *+' conftest.er1 >conftest.err
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } >/dev/null; then
15051 if test -s conftest.err; then
15052 ac_cpp_err=$ac_cxx_preproc_warn_flag
15053 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15060 if test -z "$ac_cpp_err"; then
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 # Broken: fails on valid input.
15070 rm -f conftest.err conftest.$ac_ext
15072 # OK, works on sane cases. Now check whether nonexistent headers
15073 # can be detected and how.
15074 cat >conftest.$ac_ext <<_ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <ac_nonexistent.h>
15082 if { (ac_try="$ac_cpp conftest.$ac_ext"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15090 grep -v '^ *+' conftest.er1 >conftest.err
15092 cat conftest.err >&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } >/dev/null; then
15095 if test -s conftest.err; then
15096 ac_cpp_err=$ac_cxx_preproc_warn_flag
15097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15104 if test -z "$ac_cpp_err"; then
15105 # Broken: success on invalid input.
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 # Passes both tests.
15116 rm -f conftest.err conftest.$ac_ext
15119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15120 rm -f conftest.err conftest.$ac_ext
15121 if $ac_preproc_ok; then
15124 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15125 See \`config.log' for more details." >&5
15126 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15127 See \`config.log' for more details." >&2;}
15128 { (exit 1); exit 1; }; }
15132 ac_cpp='$CXXCPP $CPPFLAGS'
15133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15139 for ac_header in cxxabi.h
15141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15148 ac_res=`eval echo '${'$as_ac_Header'}'`
15149 { echo "$as_me:$LINENO: result: $ac_res" >&5
15150 echo "${ECHO_T}$ac_res" >&6; }
15152 # Is the header compilable?
15153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 $ac_includes_default
15162 #include <$ac_header>
15164 rm -f conftest.$ac_objext
15165 if { (ac_try="$ac_compile"
15166 case "(($ac_try" in
15167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168 *) ac_try_echo=$ac_try;;
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171 (eval "$ac_compile") 2>conftest.er1
15173 grep -v '^ *+' conftest.er1 >conftest.err
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; } &&
15188 { ac_try='test -s conftest.$ac_objext'
15189 { (case "(($ac_try" in
15190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191 *) ac_try_echo=$ac_try;;
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194 (eval "$ac_try") 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198 ac_header_compiler=yes
15200 echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15203 ac_header_compiler=no
15206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15208 echo "${ECHO_T}$ac_header_compiler" >&6; }
15210 # Is the header present?
15211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15213 cat >conftest.$ac_ext <<_ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 #include <$ac_header>
15221 if { (ac_try="$ac_cpp conftest.$ac_ext"
15222 case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15229 grep -v '^ *+' conftest.er1 >conftest.err
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } >/dev/null; then
15234 if test -s conftest.err; then
15235 ac_cpp_err=$ac_cxx_preproc_warn_flag
15236 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15243 if test -z "$ac_cpp_err"; then
15244 ac_header_preproc=yes
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_header_preproc=no
15252 rm -f conftest.err conftest.$ac_ext
15253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15254 echo "${ECHO_T}$ac_header_preproc" >&6; }
15256 # So? What about this header?
15257 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15263 ac_header_preproc=yes
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15279 ## ------------------------------------ ##
15280 ## Report this to http://llvm.org/bugs/ ##
15281 ## ------------------------------------ ##
15283 ) | sed "s/^/$as_me: WARNING: /" >&2
15286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 eval "$as_ac_Header=\$ac_header_preproc"
15293 ac_res=`eval echo '${'$as_ac_Header'}'`
15294 { echo "$as_me:$LINENO: result: $ac_res" >&5
15295 echo "${ECHO_T}$ac_res" >&6; }
15298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15299 cat >>confdefs.h <<_ACEOF
15300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15308 ac_cpp='$CPP $CPPFLAGS'
15309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15319 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15328 ac_res=`eval echo '${'$as_ac_Header'}'`
15329 { echo "$as_me:$LINENO: result: $ac_res" >&5
15330 echo "${ECHO_T}$ac_res" >&6; }
15332 # Is the header compilable?
15333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15335 cat >conftest.$ac_ext <<_ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h. */
15341 $ac_includes_default
15342 #include <$ac_header>
15344 rm -f conftest.$ac_objext
15345 if { (ac_try="$ac_compile"
15346 case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_compile") 2>conftest.er1
15353 grep -v '^ *+' conftest.er1 >conftest.err
15355 cat conftest.err >&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
15358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15359 { (case "(($ac_try" in
15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361 *) ac_try_echo=$ac_try;;
15363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364 (eval "$ac_try") 2>&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; } &&
15368 { ac_try='test -s conftest.$ac_objext'
15369 { (case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374 (eval "$ac_try") 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 ac_header_compiler=yes
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15383 ac_header_compiler=no
15386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15388 echo "${ECHO_T}$ac_header_compiler" >&6; }
15390 # Is the header present?
15391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15393 cat >conftest.$ac_ext <<_ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15399 #include <$ac_header>
15401 if { (ac_try="$ac_cpp conftest.$ac_ext"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15409 grep -v '^ *+' conftest.er1 >conftest.err
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } >/dev/null; then
15414 if test -s conftest.err; then
15415 ac_cpp_err=$ac_c_preproc_warn_flag
15416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15423 if test -z "$ac_cpp_err"; then
15424 ac_header_preproc=yes
15426 echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15429 ac_header_preproc=no
15432 rm -f conftest.err conftest.$ac_ext
15433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15434 echo "${ECHO_T}$ac_header_preproc" >&6; }
15436 # So? What about this header?
15437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15443 ac_header_preproc=yes
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15459 ## ------------------------------------ ##
15460 ## Report this to http://llvm.org/bugs/ ##
15461 ## ------------------------------------ ##
15463 ) | sed "s/^/$as_me: WARNING: /" >&2
15466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 eval "$as_ac_Header=\$ac_header_preproc"
15473 ac_res=`eval echo '${'$as_ac_Header'}'`
15474 { echo "$as_me:$LINENO: result: $ac_res" >&5
15475 echo "${ECHO_T}$ac_res" >&6; }
15478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15479 cat >>confdefs.h <<_ACEOF
15480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15493 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 ac_res=`eval echo '${'$as_ac_Header'}'`
15503 { echo "$as_me:$LINENO: result: $ac_res" >&5
15504 echo "${ECHO_T}$ac_res" >&6; }
15506 # Is the header compilable?
15507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15509 cat >conftest.$ac_ext <<_ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 $ac_includes_default
15516 #include <$ac_header>
15518 rm -f conftest.$ac_objext
15519 if { (ac_try="$ac_compile"
15520 case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_compile") 2>conftest.er1
15527 grep -v '^ *+' conftest.er1 >conftest.err
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15533 { (case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_try") 2>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
15543 { (case "(($ac_try" in
15544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545 *) ac_try_echo=$ac_try;;
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548 (eval "$ac_try") 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_header_compiler=yes
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15557 ac_header_compiler=no
15560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15562 echo "${ECHO_T}$ac_header_compiler" >&6; }
15564 # Is the header present?
15565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15567 cat >conftest.$ac_ext <<_ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 #include <$ac_header>
15575 if { (ac_try="$ac_cpp conftest.$ac_ext"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15583 grep -v '^ *+' conftest.er1 >conftest.err
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } >/dev/null; then
15588 if test -s conftest.err; then
15589 ac_cpp_err=$ac_c_preproc_warn_flag
15590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15597 if test -z "$ac_cpp_err"; then
15598 ac_header_preproc=yes
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 ac_header_preproc=no
15606 rm -f conftest.err conftest.$ac_ext
15607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15608 echo "${ECHO_T}$ac_header_preproc" >&6; }
15610 # So? What about this header?
15611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15617 ac_header_preproc=yes
15620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15633 ## ------------------------------------ ##
15634 ## Report this to http://llvm.org/bugs/ ##
15635 ## ------------------------------------ ##
15637 ) | sed "s/^/$as_me: WARNING: /" >&2
15640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 eval "$as_ac_Header=\$ac_header_preproc"
15647 ac_res=`eval echo '${'$as_ac_Header'}'`
15648 { echo "$as_me:$LINENO: result: $ac_res" >&5
15649 echo "${ECHO_T}$ac_res" >&6; }
15652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15653 cat >>confdefs.h <<_ACEOF
15654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15663 for ac_header in utime.h windows.h
15665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 ac_res=`eval echo '${'$as_ac_Header'}'`
15673 { echo "$as_me:$LINENO: result: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15676 # Is the header compilable?
15677 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15679 cat >conftest.$ac_ext <<_ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 $ac_includes_default
15686 #include <$ac_header>
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_compile") 2>conftest.er1
15697 grep -v '^ *+' conftest.er1 >conftest.err
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_header_compiler=yes
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_header_compiler=no
15730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15732 echo "${ECHO_T}$ac_header_compiler" >&6; }
15734 # Is the header present?
15735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15737 cat >conftest.$ac_ext <<_ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h. */
15743 #include <$ac_header>
15745 if { (ac_try="$ac_cpp conftest.$ac_ext"
15746 case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } >/dev/null; then
15758 if test -s conftest.err; then
15759 ac_cpp_err=$ac_c_preproc_warn_flag
15760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15767 if test -z "$ac_cpp_err"; then
15768 ac_header_preproc=yes
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 ac_header_preproc=no
15776 rm -f conftest.err conftest.$ac_ext
15777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15778 echo "${ECHO_T}$ac_header_preproc" >&6; }
15780 # So? What about this header?
15781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15787 ac_header_preproc=yes
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15797 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15803 ## ------------------------------------ ##
15804 ## Report this to http://llvm.org/bugs/ ##
15805 ## ------------------------------------ ##
15807 ) | sed "s/^/$as_me: WARNING: /" >&2
15810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 eval "$as_ac_Header=\$ac_header_preproc"
15817 ac_res=`eval echo '${'$as_ac_Header'}'`
15818 { echo "$as_me:$LINENO: result: $ac_res" >&5
15819 echo "${ECHO_T}$ac_res" >&6; }
15822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15823 cat >>confdefs.h <<_ACEOF
15824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15836 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 ac_res=`eval echo '${'$as_ac_Header'}'`
15846 { echo "$as_me:$LINENO: result: $ac_res" >&5
15847 echo "${ECHO_T}$ac_res" >&6; }
15849 # Is the header compilable?
15850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 $ac_includes_default
15859 #include <$ac_header>
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15870 grep -v '^ *+' conftest.er1 >conftest.err
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15876 { (case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_try") 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest.$ac_objext'
15886 { (case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891 (eval "$ac_try") 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_header_compiler=yes
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15900 ac_header_compiler=no
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15905 echo "${ECHO_T}$ac_header_compiler" >&6; }
15907 # Is the header present?
15908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15910 cat >conftest.$ac_ext <<_ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h. */
15916 #include <$ac_header>
15918 if { (ac_try="$ac_cpp conftest.$ac_ext"
15919 case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15926 grep -v '^ *+' conftest.er1 >conftest.err
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } >/dev/null; then
15931 if test -s conftest.err; then
15932 ac_cpp_err=$ac_c_preproc_warn_flag
15933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15940 if test -z "$ac_cpp_err"; then
15941 ac_header_preproc=yes
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 ac_header_preproc=no
15949 rm -f conftest.err conftest.$ac_ext
15950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951 echo "${ECHO_T}$ac_header_preproc" >&6; }
15953 # So? What about this header?
15954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15960 ac_header_preproc=yes
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15976 ## ------------------------------------ ##
15977 ## Report this to http://llvm.org/bugs/ ##
15978 ## ------------------------------------ ##
15980 ) | sed "s/^/$as_me: WARNING: /" >&2
15983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 eval "$as_ac_Header=\$ac_header_preproc"
15990 ac_res=`eval echo '${'$as_ac_Header'}'`
15991 { echo "$as_me:$LINENO: result: $ac_res" >&5
15992 echo "${ECHO_T}$ac_res" >&6; }
15995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15996 cat >>confdefs.h <<_ACEOF
15997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16008 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 ac_res=`eval echo '${'$as_ac_Header'}'`
16018 { echo "$as_me:$LINENO: result: $ac_res" >&5
16019 echo "${ECHO_T}$ac_res" >&6; }
16021 # Is the header compilable?
16022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16024 cat >conftest.$ac_ext <<_ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 $ac_includes_default
16031 #include <$ac_header>
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_compile") 2>conftest.er1
16042 grep -v '^ *+' conftest.er1 >conftest.err
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048 { (case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_try") 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try='test -s conftest.$ac_objext'
16058 { (case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_try") 2>&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_header_compiler=yes
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_header_compiler=no
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077 echo "${ECHO_T}$ac_header_compiler" >&6; }
16079 # Is the header present?
16080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16088 #include <$ac_header>
16090 if { (ac_try="$ac_cpp conftest.$ac_ext"
16091 case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16098 grep -v '^ *+' conftest.er1 >conftest.err
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } >/dev/null; then
16103 if test -s conftest.err; then
16104 ac_cpp_err=$ac_c_preproc_warn_flag
16105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16112 if test -z "$ac_cpp_err"; then
16113 ac_header_preproc=yes
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16118 ac_header_preproc=no
16121 rm -f conftest.err conftest.$ac_ext
16122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16123 echo "${ECHO_T}$ac_header_preproc" >&6; }
16125 # So? What about this header?
16126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16132 ac_header_preproc=yes
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16148 ## ------------------------------------ ##
16149 ## Report this to http://llvm.org/bugs/ ##
16150 ## ------------------------------------ ##
16152 ) | sed "s/^/$as_me: WARNING: /" >&2
16155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 eval "$as_ac_Header=\$ac_header_preproc"
16162 ac_res=`eval echo '${'$as_ac_Header'}'`
16163 { echo "$as_me:$LINENO: result: $ac_res" >&5
16164 echo "${ECHO_T}$ac_res" >&6; }
16167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16168 cat >>confdefs.h <<_ACEOF
16169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16177 for ac_header in valgrind/valgrind.h
16179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16186 ac_res=`eval echo '${'$as_ac_Header'}'`
16187 { echo "$as_me:$LINENO: result: $ac_res" >&5
16188 echo "${ECHO_T}$ac_res" >&6; }
16190 # Is the header compilable?
16191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16193 cat >conftest.$ac_ext <<_ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 $ac_includes_default
16200 #include <$ac_header>
16202 rm -f conftest.$ac_objext
16203 if { (ac_try="$ac_compile"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_compile") 2>conftest.er1
16211 grep -v '^ *+' conftest.er1 >conftest.err
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } &&
16216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16217 { (case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_try") 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; } &&
16226 { ac_try='test -s conftest.$ac_objext'
16227 { (case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_try") 2>&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then
16236 ac_header_compiler=yes
16238 echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16241 ac_header_compiler=no
16244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16246 echo "${ECHO_T}$ac_header_compiler" >&6; }
16248 # Is the header present?
16249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16251 cat >conftest.$ac_ext <<_ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 #include <$ac_header>
16259 if { (ac_try="$ac_cpp conftest.$ac_ext"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16267 grep -v '^ *+' conftest.er1 >conftest.err
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } >/dev/null; then
16272 if test -s conftest.err; then
16273 ac_cpp_err=$ac_c_preproc_warn_flag
16274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16281 if test -z "$ac_cpp_err"; then
16282 ac_header_preproc=yes
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16287 ac_header_preproc=no
16290 rm -f conftest.err conftest.$ac_ext
16291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16292 echo "${ECHO_T}$ac_header_preproc" >&6; }
16294 # So? What about this header?
16295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16301 ac_header_preproc=yes
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16317 ## ------------------------------------ ##
16318 ## Report this to http://llvm.org/bugs/ ##
16319 ## ------------------------------------ ##
16321 ) | sed "s/^/$as_me: WARNING: /" >&2
16324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 eval "$as_ac_Header=\$ac_header_preproc"
16331 ac_res=`eval echo '${'$as_ac_Header'}'`
16332 { echo "$as_me:$LINENO: result: $ac_res" >&5
16333 echo "${ECHO_T}$ac_res" >&6; }
16336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16337 cat >>confdefs.h <<_ACEOF
16338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16346 for ac_header in fenv.h
16348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16355 ac_res=`eval echo '${'$as_ac_Header'}'`
16356 { echo "$as_me:$LINENO: result: $ac_res" >&5
16357 echo "${ECHO_T}$ac_res" >&6; }
16359 # Is the header compilable?
16360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16362 cat >conftest.$ac_ext <<_ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 $ac_includes_default
16369 #include <$ac_header>
16371 rm -f conftest.$ac_objext
16372 if { (ac_try="$ac_compile"
16373 case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_compile") 2>conftest.er1
16380 grep -v '^ *+' conftest.er1 >conftest.err
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
16385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16386 { (case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_try") 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } &&
16395 { ac_try='test -s conftest.$ac_objext'
16396 { (case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_try") 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405 ac_header_compiler=yes
16407 echo "$as_me: failed program was:" >&5
16408 sed 's/^/| /' conftest.$ac_ext >&5
16410 ac_header_compiler=no
16413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16415 echo "${ECHO_T}$ac_header_compiler" >&6; }
16417 # Is the header present?
16418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16420 cat >conftest.$ac_ext <<_ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16426 #include <$ac_header>
16428 if { (ac_try="$ac_cpp conftest.$ac_ext"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16436 grep -v '^ *+' conftest.er1 >conftest.err
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } >/dev/null; then
16441 if test -s conftest.err; then
16442 ac_cpp_err=$ac_c_preproc_warn_flag
16443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16450 if test -z "$ac_cpp_err"; then
16451 ac_header_preproc=yes
16453 echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ac_header_preproc=no
16459 rm -f conftest.err conftest.$ac_ext
16460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16461 echo "${ECHO_T}$ac_header_preproc" >&6; }
16463 # So? What about this header?
16464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16470 ac_header_preproc=yes
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16486 ## ------------------------------------ ##
16487 ## Report this to http://llvm.org/bugs/ ##
16488 ## ------------------------------------ ##
16490 ) | sed "s/^/$as_me: WARNING: /" >&2
16493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 eval "$as_ac_Header=\$ac_header_preproc"
16500 ac_res=`eval echo '${'$as_ac_Header'}'`
16501 { echo "$as_me:$LINENO: result: $ac_res" >&5
16502 echo "${ECHO_T}$ac_res" >&6; }
16505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16506 cat >>confdefs.h <<_ACEOF
16507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16514 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16515 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16516 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 cat >conftest.$ac_ext <<_ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16530 #ifndef FE_ALL_EXCEPT
16531 char *p = (char *) FE_ALL_EXCEPT;
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_compile") 2>conftest.er1
16548 grep -v '^ *+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16554 { (case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_try") 2>&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; } &&
16563 { ac_try='test -s conftest.$ac_objext'
16564 { (case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_try") 2>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_have_decl_FE_ALL_EXCEPT=no
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16584 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16585 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16587 cat >>confdefs.h <<_ACEOF
16588 #define HAVE_DECL_FE_ALL_EXCEPT 1
16593 cat >>confdefs.h <<_ACEOF
16594 #define HAVE_DECL_FE_ALL_EXCEPT 0
16599 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16600 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16601 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 cat >conftest.$ac_ext <<_ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16616 char *p = (char *) FE_INEXACT;
16624 rm -f conftest.$ac_objext
16625 if { (ac_try="$ac_compile"
16626 case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_compile") 2>conftest.er1
16633 grep -v '^ *+' conftest.er1 >conftest.err
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16639 { (case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_try") 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; } &&
16648 { ac_try='test -s conftest.$ac_objext'
16649 { (case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_try") 2>&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_cv_have_decl_FE_INEXACT=yes
16660 echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16663 ac_cv_have_decl_FE_INEXACT=no
16666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16669 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16670 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16672 cat >>confdefs.h <<_ACEOF
16673 #define HAVE_DECL_FE_INEXACT 1
16678 cat >>confdefs.h <<_ACEOF
16679 #define HAVE_DECL_FE_INEXACT 0
16686 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16688 for ac_header in pthread.h
16690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 ac_res=`eval echo '${'$as_ac_Header'}'`
16698 { echo "$as_me:$LINENO: result: $ac_res" >&5
16699 echo "${ECHO_T}$ac_res" >&6; }
16701 # Is the header compilable?
16702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16704 cat >conftest.$ac_ext <<_ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 $ac_includes_default
16711 #include <$ac_header>
16713 rm -f conftest.$ac_objext
16714 if { (ac_try="$ac_compile"
16715 case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_compile") 2>conftest.er1
16722 grep -v '^ *+' conftest.er1 >conftest.err
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728 { (case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_try") 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_try") 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_header_compiler=yes
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_header_compiler=no
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16757 echo "${ECHO_T}$ac_header_compiler" >&6; }
16759 # Is the header present?
16760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16762 cat >conftest.$ac_ext <<_ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 #include <$ac_header>
16770 if { (ac_try="$ac_cpp conftest.$ac_ext"
16771 case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16778 grep -v '^ *+' conftest.er1 >conftest.err
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } >/dev/null; then
16783 if test -s conftest.err; then
16784 ac_cpp_err=$ac_c_preproc_warn_flag
16785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16792 if test -z "$ac_cpp_err"; then
16793 ac_header_preproc=yes
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16798 ac_header_preproc=no
16801 rm -f conftest.err conftest.$ac_ext
16802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16803 echo "${ECHO_T}$ac_header_preproc" >&6; }
16805 # So? What about this header?
16806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16812 ac_header_preproc=yes
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16828 ## ------------------------------------ ##
16829 ## Report this to http://llvm.org/bugs/ ##
16830 ## ------------------------------------ ##
16832 ) | sed "s/^/$as_me: WARNING: /" >&2
16835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 eval "$as_ac_Header=\$ac_header_preproc"
16842 ac_res=`eval echo '${'$as_ac_Header'}'`
16843 { echo "$as_me:$LINENO: result: $ac_res" >&5
16844 echo "${ECHO_T}$ac_res" >&6; }
16847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16848 cat >>confdefs.h <<_ACEOF
16849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16864 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16866 for ac_header in zlib.h
16868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 ac_res=`eval echo '${'$as_ac_Header'}'`
16876 { echo "$as_me:$LINENO: result: $ac_res" >&5
16877 echo "${ECHO_T}$ac_res" >&6; }
16879 # Is the header compilable?
16880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16882 cat >conftest.$ac_ext <<_ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 $ac_includes_default
16889 #include <$ac_header>
16891 rm -f conftest.$ac_objext
16892 if { (ac_try="$ac_compile"
16893 case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_compile") 2>conftest.er1
16900 grep -v '^ *+' conftest.er1 >conftest.err
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16906 { (case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_try") 2>&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } &&
16915 { ac_try='test -s conftest.$ac_objext'
16916 { (case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_try") 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; }; then
16925 ac_header_compiler=yes
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 ac_header_compiler=no
16933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16935 echo "${ECHO_T}$ac_header_compiler" >&6; }
16937 # Is the header present?
16938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16940 cat >conftest.$ac_ext <<_ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16946 #include <$ac_header>
16948 if { (ac_try="$ac_cpp conftest.$ac_ext"
16949 case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16956 grep -v '^ *+' conftest.er1 >conftest.err
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } >/dev/null; then
16961 if test -s conftest.err; then
16962 ac_cpp_err=$ac_c_preproc_warn_flag
16963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16970 if test -z "$ac_cpp_err"; then
16971 ac_header_preproc=yes
16973 echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16976 ac_header_preproc=no
16979 rm -f conftest.err conftest.$ac_ext
16980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16981 echo "${ECHO_T}$ac_header_preproc" >&6; }
16983 # So? What about this header?
16984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16990 ac_header_preproc=yes
16993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17006 ## ------------------------------------ ##
17007 ## Report this to http://llvm.org/bugs/ ##
17008 ## ------------------------------------ ##
17010 ) | sed "s/^/$as_me: WARNING: /" >&2
17013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 eval "$as_ac_Header=\$ac_header_preproc"
17020 ac_res=`eval echo '${'$as_ac_Header'}'`
17021 { echo "$as_me:$LINENO: result: $ac_res" >&5
17022 echo "${ECHO_T}$ac_res" >&6; }
17025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17026 cat >>confdefs.h <<_ACEOF
17027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17043 if test "$llvm_cv_enable_libffi" = "yes" ; then
17046 for ac_header in ffi.h ffi/ffi.h
17048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 ac_res=`eval echo '${'$as_ac_Header'}'`
17056 { echo "$as_me:$LINENO: result: $ac_res" >&5
17057 echo "${ECHO_T}$ac_res" >&6; }
17059 # Is the header compilable?
17060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17062 cat >conftest.$ac_ext <<_ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 $ac_includes_default
17069 #include <$ac_header>
17071 rm -f conftest.$ac_objext
17072 if { (ac_try="$ac_compile"
17073 case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_compile") 2>conftest.er1
17080 grep -v '^ *+' conftest.er1 >conftest.err
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest.$ac_objext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_header_compiler=yes
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 ac_header_compiler=no
17113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17115 echo "${ECHO_T}$ac_header_compiler" >&6; }
17117 # Is the header present?
17118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17120 cat >conftest.$ac_ext <<_ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17126 #include <$ac_header>
17128 if { (ac_try="$ac_cpp conftest.$ac_ext"
17129 case "(($ac_try" in
17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 *) ac_try_echo=$ac_try;;
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17136 grep -v '^ *+' conftest.er1 >conftest.err
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } >/dev/null; then
17141 if test -s conftest.err; then
17142 ac_cpp_err=$ac_c_preproc_warn_flag
17143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17150 if test -z "$ac_cpp_err"; then
17151 ac_header_preproc=yes
17153 echo "$as_me: failed program was:" >&5
17154 sed 's/^/| /' conftest.$ac_ext >&5
17156 ac_header_preproc=no
17159 rm -f conftest.err conftest.$ac_ext
17160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17161 echo "${ECHO_T}$ac_header_preproc" >&6; }
17163 # So? What about this header?
17164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17170 ac_header_preproc=yes
17173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17186 ## ------------------------------------ ##
17187 ## Report this to http://llvm.org/bugs/ ##
17188 ## ------------------------------------ ##
17190 ) | sed "s/^/$as_me: WARNING: /" >&2
17193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 eval "$as_ac_Header=\$ac_header_preproc"
17200 ac_res=`eval echo '${'$as_ac_Header'}'`
17201 { echo "$as_me:$LINENO: result: $ac_res" >&5
17202 echo "${ECHO_T}$ac_res" >&6; }
17205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17206 cat >>confdefs.h <<_ACEOF
17207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17217 for ac_header in CrashReporterClient.h
17219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 ac_res=`eval echo '${'$as_ac_Header'}'`
17227 { echo "$as_me:$LINENO: result: $ac_res" >&5
17228 echo "${ECHO_T}$ac_res" >&6; }
17230 # Is the header compilable?
17231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17233 cat >conftest.$ac_ext <<_ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17239 $ac_includes_default
17240 #include <$ac_header>
17242 rm -f conftest.$ac_objext
17243 if { (ac_try="$ac_compile"
17244 case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_compile") 2>conftest.er1
17251 grep -v '^ *+' conftest.er1 >conftest.err
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
17256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17257 { (case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_try") 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; } &&
17266 { ac_try='test -s conftest.$ac_objext'
17267 { (case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_try") 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 ac_header_compiler=yes
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17281 ac_header_compiler=no
17284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17286 echo "${ECHO_T}$ac_header_compiler" >&6; }
17288 # Is the header present?
17289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17291 cat >conftest.$ac_ext <<_ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17297 #include <$ac_header>
17299 if { (ac_try="$ac_cpp conftest.$ac_ext"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17307 grep -v '^ *+' conftest.er1 >conftest.err
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } >/dev/null; then
17312 if test -s conftest.err; then
17313 ac_cpp_err=$ac_c_preproc_warn_flag
17314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17321 if test -z "$ac_cpp_err"; then
17322 ac_header_preproc=yes
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17327 ac_header_preproc=no
17330 rm -f conftest.err conftest.$ac_ext
17331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17332 echo "${ECHO_T}$ac_header_preproc" >&6; }
17334 # So? What about this header?
17335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17341 ac_header_preproc=yes
17344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17357 ## ------------------------------------ ##
17358 ## Report this to http://llvm.org/bugs/ ##
17359 ## ------------------------------------ ##
17361 ) | sed "s/^/$as_me: WARNING: /" >&2
17364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 eval "$as_ac_Header=\$ac_header_preproc"
17371 ac_res=`eval echo '${'$as_ac_Header'}'`
17372 { echo "$as_me:$LINENO: result: $ac_res" >&5
17373 echo "${ECHO_T}$ac_res" >&6; }
17376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17377 cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17386 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17387 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17388 cat >conftest.$ac_ext <<_ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17396 extern const char *__crashreporter_info__;
17398 __crashreporter_info__ = "test";
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419 { (case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_try") 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest$ac_exeext'
17429 { (case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_try") 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17439 { echo "$as_me:$LINENO: result: yes" >&5
17440 echo "${ECHO_T}yes" >&6; }
17442 cat >>confdefs.h <<\_ACEOF
17443 #define HAVE_CRASHREPORTER_INFO 1
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17452 { echo "$as_me:$LINENO: result: no" >&5
17453 echo "${ECHO_T}no" >&6; }
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_CRASHREPORTER_INFO 0
17462 rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17467 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17468 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17469 if test "${ac_cv_huge_val_sanity+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 ac_cpp='$CXXCPP $CPPFLAGS'
17475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17479 ac_save_CXXFLAGS=$CXXFLAGS
17480 CXXFLAGS="$CXXFLAGS -pedantic"
17481 if test "$cross_compiling" = yes; then
17482 ac_cv_huge_val_sanity=yes
17484 cat >conftest.$ac_ext <<_ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17494 double x = HUGE_VAL; return x != x;
17499 rm -f conftest$ac_exeext
17500 if { (ac_try="$ac_link"
17501 case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_link") 2>&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17510 { (case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_try") 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_cv_huge_val_sanity=yes
17521 echo "$as_me: program exited with status $ac_status" >&5
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 ( exit $ac_status )
17526 ac_cv_huge_val_sanity=no
17528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17532 CXXFLAGS=$ac_save_CXXFLAGS
17534 ac_cpp='$CPP $CPPFLAGS'
17535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17541 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17542 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17543 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17546 { echo "$as_me:$LINENO: checking for pid_t" >&5
17547 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17548 if test "${ac_cv_type_pid_t+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 cat >conftest.$ac_ext <<_ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557 $ac_includes_default
17558 typedef pid_t ac__type_new_;
17562 if ((ac__type_new_ *) 0)
17564 if (sizeof (ac__type_new_))
17570 rm -f conftest.$ac_objext
17571 if { (ac_try="$ac_compile"
17572 case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_compile") 2>conftest.er1
17579 grep -v '^ *+' conftest.er1 >conftest.err
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17585 { (case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_try") 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try='test -s conftest.$ac_objext'
17595 { (case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_try") 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_cv_type_pid_t=yes
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 ac_cv_type_pid_t=no
17612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17614 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17615 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17616 if test $ac_cv_type_pid_t = yes; then
17620 cat >>confdefs.h <<_ACEOF
17626 { echo "$as_me:$LINENO: checking for size_t" >&5
17627 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17628 if test "${ac_cv_type_size_t+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 cat >conftest.$ac_ext <<_ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 $ac_includes_default
17638 typedef size_t ac__type_new_;
17642 if ((ac__type_new_ *) 0)
17644 if (sizeof (ac__type_new_))
17650 rm -f conftest.$ac_objext
17651 if { (ac_try="$ac_compile"
17652 case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_compile") 2>conftest.er1
17659 grep -v '^ *+' conftest.er1 >conftest.err
17661 cat conftest.err >&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17665 { (case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest.$ac_objext'
17675 { (case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_try") 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; }; then
17684 ac_cv_type_size_t=yes
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 ac_cv_type_size_t=no
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17695 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17696 if test $ac_cv_type_size_t = yes; then
17700 cat >>confdefs.h <<_ACEOF
17701 #define size_t unsigned int
17707 cat >>confdefs.h <<_ACEOF
17708 #define RETSIGTYPE void
17711 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17712 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17713 if test "${ac_cv_struct_tm+set}" = set; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 cat >conftest.$ac_ext <<_ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17722 #include <sys/types.h>
17728 struct tm *tp; tp->tm_sec;
17733 rm -f conftest.$ac_objext
17734 if { (ac_try="$ac_compile"
17735 case "(($ac_try" in
17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737 *) ac_try_echo=$ac_try;;
17739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740 (eval "$ac_compile") 2>conftest.er1
17742 grep -v '^ *+' conftest.er1 >conftest.err
17744 cat conftest.err >&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } &&
17747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17748 { (case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753 (eval "$ac_try") 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; } &&
17757 { ac_try='test -s conftest.$ac_objext'
17758 { (case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_try") 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17767 ac_cv_struct_tm=time.h
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ac_cv_struct_tm=sys/time.h
17775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17778 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17779 if test $ac_cv_struct_tm = sys/time.h; then
17781 cat >>confdefs.h <<\_ACEOF
17782 #define TM_IN_SYS_TIME 1
17787 { echo "$as_me:$LINENO: checking for int64_t" >&5
17788 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17789 if test "${ac_cv_type_int64_t+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 cat >conftest.$ac_ext <<_ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 $ac_includes_default
17799 typedef int64_t ac__type_new_;
17803 if ((ac__type_new_ *) 0)
17805 if (sizeof (ac__type_new_))
17811 rm -f conftest.$ac_objext
17812 if { (ac_try="$ac_compile"
17813 case "(($ac_try" in
17814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815 *) ac_try_echo=$ac_try;;
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818 (eval "$ac_compile") 2>conftest.er1
17820 grep -v '^ *+' conftest.er1 >conftest.err
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17826 { (case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_try") 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_try") 2>&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 ac_cv_type_int64_t=yes
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17850 ac_cv_type_int64_t=no
17853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17856 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17857 if test $ac_cv_type_int64_t = yes; then
17859 cat >>confdefs.h <<_ACEOF
17860 #define HAVE_INT64_T 1
17865 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17866 echo "$as_me: error: Type int64_t required but not found" >&2;}
17867 { (exit 1); exit 1; }; }
17870 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17871 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17872 if test "${ac_cv_type_uint64_t+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17875 cat >conftest.$ac_ext <<_ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 $ac_includes_default
17882 typedef uint64_t ac__type_new_;
17886 if ((ac__type_new_ *) 0)
17888 if (sizeof (ac__type_new_))
17894 rm -f conftest.$ac_objext
17895 if { (ac_try="$ac_compile"
17896 case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_compile") 2>conftest.er1
17903 grep -v '^ *+' conftest.er1 >conftest.err
17905 cat conftest.err >&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } &&
17908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17909 { (case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_try") 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest.$ac_objext'
17919 { (case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_try") 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 ac_cv_type_uint64_t=yes
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ac_cv_type_uint64_t=no
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17939 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17940 if test $ac_cv_type_uint64_t = yes; then
17942 cat >>confdefs.h <<_ACEOF
17943 #define HAVE_UINT64_T 1
17948 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17949 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17950 if test "${ac_cv_type_u_int64_t+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17953 cat >conftest.$ac_ext <<_ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17959 $ac_includes_default
17960 typedef u_int64_t ac__type_new_;
17964 if ((ac__type_new_ *) 0)
17966 if (sizeof (ac__type_new_))
17972 rm -f conftest.$ac_objext
17973 if { (ac_try="$ac_compile"
17974 case "(($ac_try" in
17975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976 *) ac_try_echo=$ac_try;;
17978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17979 (eval "$ac_compile") 2>conftest.er1
17981 grep -v '^ *+' conftest.er1 >conftest.err
17983 cat conftest.err >&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } &&
17986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17987 { (case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_try") 2>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; } &&
17996 { ac_try='test -s conftest.$ac_objext'
17997 { (case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_try") 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_type_u_int64_t=yes
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18011 ac_cv_type_u_int64_t=no
18014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18017 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18018 if test $ac_cv_type_u_int64_t = yes; then
18020 cat >>confdefs.h <<_ACEOF
18021 #define HAVE_U_INT64_T 1
18026 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18027 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18028 { (exit 1); exit 1; }; }
18042 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 cat >conftest.$ac_ext <<_ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18058 #define $ac_func innocuous_$ac_func
18060 /* System header to define __stub macros and hopefully few prototypes,
18061 which can conflict with char $ac_func (); below.
18062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18063 <limits.h> exists even on freestanding compilers. */
18066 # include <limits.h>
18068 # include <assert.h>
18073 /* Override any GCC internal prototype to avoid an error.
18074 Use char because int might match the return type of a GCC
18075 builtin and then its argument prototype would still apply. */
18080 /* The GNU C library defines this for functions which it implements
18081 to always fail with ENOSYS. Some functions are actually named
18082 something starting with __ and the normal name is an alias. */
18083 #if defined __stub_$ac_func || defined __stub___$ac_func
18090 return $ac_func ();
18095 rm -f conftest.$ac_objext conftest$ac_exeext
18096 if { (ac_try="$ac_link"
18097 case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_link") 2>conftest.er1
18104 grep -v '^ *+' conftest.er1 >conftest.err
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } &&
18109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18110 { (case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_try") 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest$ac_exeext'
18120 { (case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_try") 2>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 eval "$as_ac_var=yes"
18131 echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18134 eval "$as_ac_var=no"
18137 rm -f core conftest.err conftest.$ac_objext \
18138 conftest$ac_exeext conftest.$ac_ext
18140 ac_res=`eval echo '${'$as_ac_var'}'`
18141 { echo "$as_me:$LINENO: result: $ac_res" >&5
18142 echo "${ECHO_T}$ac_res" >&6; }
18143 if test `eval echo '${'$as_ac_var'}'` = yes; then
18144 cat >>confdefs.h <<_ACEOF
18145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18155 for ac_func in powf fmodf strtof round
18157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18163 cat >conftest.$ac_ext <<_ACEOF
18166 cat confdefs.h >>conftest.$ac_ext
18167 cat >>conftest.$ac_ext <<_ACEOF
18168 /* end confdefs.h. */
18169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18171 #define $ac_func innocuous_$ac_func
18173 /* System header to define __stub macros and hopefully few prototypes,
18174 which can conflict with char $ac_func (); below.
18175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18176 <limits.h> exists even on freestanding compilers. */
18179 # include <limits.h>
18181 # include <assert.h>
18186 /* Override any GCC internal prototype to avoid an error.
18187 Use char because int might match the return type of a GCC
18188 builtin and then its argument prototype would still apply. */
18193 /* The GNU C library defines this for functions which it implements
18194 to always fail with ENOSYS. Some functions are actually named
18195 something starting with __ and the normal name is an alias. */
18196 #if defined __stub_$ac_func || defined __stub___$ac_func
18203 return $ac_func ();
18208 rm -f conftest.$ac_objext conftest$ac_exeext
18209 if { (ac_try="$ac_link"
18210 case "(($ac_try" in
18211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212 *) ac_try_echo=$ac_try;;
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215 (eval "$ac_link") 2>conftest.er1
18217 grep -v '^ *+' conftest.er1 >conftest.err
18219 cat conftest.err >&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest$ac_exeext'
18233 { (case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_try") 2>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; }; then
18242 eval "$as_ac_var=yes"
18244 echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18247 eval "$as_ac_var=no"
18250 rm -f core conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18253 ac_res=`eval echo '${'$as_ac_var'}'`
18254 { echo "$as_me:$LINENO: result: $ac_res" >&5
18255 echo "${ECHO_T}$ac_res" >&6; }
18256 if test `eval echo '${'$as_ac_var'}'` = yes; then
18257 cat >>confdefs.h <<_ACEOF
18258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18269 for ac_func in log log2 log10 exp exp2
18271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18285 #define $ac_func innocuous_$ac_func
18287 /* System header to define __stub macros and hopefully few prototypes,
18288 which can conflict with char $ac_func (); below.
18289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18290 <limits.h> exists even on freestanding compilers. */
18293 # include <limits.h>
18295 # include <assert.h>
18300 /* Override any GCC internal prototype to avoid an error.
18301 Use char because int might match the return type of a GCC
18302 builtin and then its argument prototype would still apply. */
18307 /* The GNU C library defines this for functions which it implements
18308 to always fail with ENOSYS. Some functions are actually named
18309 something starting with __ and the normal name is an alias. */
18310 #if defined __stub_$ac_func || defined __stub___$ac_func
18317 return $ac_func ();
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (ac_try="$ac_link"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_link") 2>conftest.er1
18331 grep -v '^ *+' conftest.er1 >conftest.err
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18337 { (case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_try") 2>&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest$ac_exeext'
18347 { (case "(($ac_try" in
18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349 *) ac_try_echo=$ac_try;;
18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352 (eval "$ac_try") 2>&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; }; then
18356 eval "$as_ac_var=yes"
18358 echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18361 eval "$as_ac_var=no"
18364 rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
18367 ac_res=`eval echo '${'$as_ac_var'}'`
18368 { echo "$as_me:$LINENO: result: $ac_res" >&5
18369 echo "${ECHO_T}$ac_res" >&6; }
18370 if test `eval echo '${'$as_ac_var'}'` = yes; then
18371 cat >>confdefs.h <<_ACEOF
18372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18383 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 cat >conftest.$ac_ext <<_ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18399 #define $ac_func innocuous_$ac_func
18401 /* System header to define __stub macros and hopefully few prototypes,
18402 which can conflict with char $ac_func (); below.
18403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18404 <limits.h> exists even on freestanding compilers. */
18407 # include <limits.h>
18409 # include <assert.h>
18414 /* Override any GCC internal prototype to avoid an error.
18415 Use char because int might match the return type of a GCC
18416 builtin and then its argument prototype would still apply. */
18421 /* The GNU C library defines this for functions which it implements
18422 to always fail with ENOSYS. Some functions are actually named
18423 something starting with __ and the normal name is an alias. */
18424 #if defined __stub_$ac_func || defined __stub___$ac_func
18431 return $ac_func ();
18436 rm -f conftest.$ac_objext conftest$ac_exeext
18437 if { (ac_try="$ac_link"
18438 case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_link") 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } &&
18450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18451 { (case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456 (eval "$ac_try") 2>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest$ac_exeext'
18461 { (case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_try") 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 eval "$as_ac_var=yes"
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18475 eval "$as_ac_var=no"
18478 rm -f core conftest.err conftest.$ac_objext \
18479 conftest$ac_exeext conftest.$ac_ext
18481 ac_res=`eval echo '${'$as_ac_var'}'`
18482 { echo "$as_me:$LINENO: result: $ac_res" >&5
18483 echo "${ECHO_T}$ac_res" >&6; }
18484 if test `eval echo '${'$as_ac_var'}'` = yes; then
18485 cat >>confdefs.h <<_ACEOF
18486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18495 for ac_func in isatty mkdtemp mkstemp
18497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18511 #define $ac_func innocuous_$ac_func
18513 /* System header to define __stub macros and hopefully few prototypes,
18514 which can conflict with char $ac_func (); below.
18515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18516 <limits.h> exists even on freestanding compilers. */
18519 # include <limits.h>
18521 # include <assert.h>
18526 /* Override any GCC internal prototype to avoid an error.
18527 Use char because int might match the return type of a GCC
18528 builtin and then its argument prototype would still apply. */
18533 /* The GNU C library defines this for functions which it implements
18534 to always fail with ENOSYS. Some functions are actually named
18535 something starting with __ and the normal name is an alias. */
18536 #if defined __stub_$ac_func || defined __stub___$ac_func
18543 return $ac_func ();
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (ac_try="$ac_link"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_link") 2>conftest.er1
18557 grep -v '^ *+' conftest.er1 >conftest.err
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_try") 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest$ac_exeext'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 eval "$as_ac_var=yes"
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18587 eval "$as_ac_var=no"
18590 rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18593 ac_res=`eval echo '${'$as_ac_var'}'`
18594 { echo "$as_me:$LINENO: result: $ac_res" >&5
18595 echo "${ECHO_T}$ac_res" >&6; }
18596 if test `eval echo '${'$as_ac_var'}'` = yes; then
18597 cat >>confdefs.h <<_ACEOF
18598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18611 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 cat >conftest.$ac_ext <<_ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18627 #define $ac_func innocuous_$ac_func
18629 /* System header to define __stub macros and hopefully few prototypes,
18630 which can conflict with char $ac_func (); below.
18631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18632 <limits.h> exists even on freestanding compilers. */
18635 # include <limits.h>
18637 # include <assert.h>
18642 /* Override any GCC internal prototype to avoid an error.
18643 Use char because int might match the return type of a GCC
18644 builtin and then its argument prototype would still apply. */
18649 /* The GNU C library defines this for functions which it implements
18650 to always fail with ENOSYS. Some functions are actually named
18651 something starting with __ and the normal name is an alias. */
18652 #if defined __stub_$ac_func || defined __stub___$ac_func
18659 return $ac_func ();
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679 { (case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_try") 2>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 eval "$as_ac_var=yes"
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18703 eval "$as_ac_var=no"
18706 rm -f core conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext conftest.$ac_ext
18709 ac_res=`eval echo '${'$as_ac_var'}'`
18710 { echo "$as_me:$LINENO: result: $ac_res" >&5
18711 echo "${ECHO_T}$ac_res" >&6; }
18712 if test `eval echo '${'$as_ac_var'}'` = yes; then
18713 cat >>confdefs.h <<_ACEOF
18714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18724 for ac_func in strerror strerror_r setenv arc4random
18726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18732 cat >conftest.$ac_ext <<_ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18740 #define $ac_func innocuous_$ac_func
18742 /* System header to define __stub macros and hopefully few prototypes,
18743 which can conflict with char $ac_func (); below.
18744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18745 <limits.h> exists even on freestanding compilers. */
18748 # include <limits.h>
18750 # include <assert.h>
18755 /* Override any GCC internal prototype to avoid an error.
18756 Use char because int might match the return type of a GCC
18757 builtin and then its argument prototype would still apply. */
18762 /* The GNU C library defines this for functions which it implements
18763 to always fail with ENOSYS. Some functions are actually named
18764 something starting with __ and the normal name is an alias. */
18765 #if defined __stub_$ac_func || defined __stub___$ac_func
18772 return $ac_func ();
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_link") 2>conftest.er1
18786 grep -v '^ *+' conftest.er1 >conftest.err
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
18791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18792 { (case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_try") 2>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; } &&
18801 { ac_try='test -s conftest$ac_exeext'
18802 { (case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_try") 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 eval "$as_ac_var=yes"
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18816 eval "$as_ac_var=no"
18819 rm -f core conftest.err conftest.$ac_objext \
18820 conftest$ac_exeext conftest.$ac_ext
18822 ac_res=`eval echo '${'$as_ac_var'}'`
18823 { echo "$as_me:$LINENO: result: $ac_res" >&5
18824 echo "${ECHO_T}$ac_res" >&6; }
18825 if test `eval echo '${'$as_ac_var'}'` = yes; then
18826 cat >>confdefs.h <<_ACEOF
18827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18837 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 cat >conftest.$ac_ext <<_ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18853 #define $ac_func innocuous_$ac_func
18855 /* System header to define __stub macros and hopefully few prototypes,
18856 which can conflict with char $ac_func (); below.
18857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18858 <limits.h> exists even on freestanding compilers. */
18861 # include <limits.h>
18863 # include <assert.h>
18868 /* Override any GCC internal prototype to avoid an error.
18869 Use char because int might match the return type of a GCC
18870 builtin and then its argument prototype would still apply. */
18875 /* The GNU C library defines this for functions which it implements
18876 to always fail with ENOSYS. Some functions are actually named
18877 something starting with __ and the normal name is an alias. */
18878 #if defined __stub_$ac_func || defined __stub___$ac_func
18885 return $ac_func ();
18890 rm -f conftest.$ac_objext conftest$ac_exeext
18891 if { (ac_try="$ac_link"
18892 case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_link") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
18904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18905 { (case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_try") 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try='test -s conftest$ac_exeext'
18915 { (case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_try") 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
18924 eval "$as_ac_var=yes"
18926 echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18929 eval "$as_ac_var=no"
18932 rm -f core conftest.err conftest.$ac_objext \
18933 conftest$ac_exeext conftest.$ac_ext
18935 ac_res=`eval echo '${'$as_ac_var'}'`
18936 { echo "$as_me:$LINENO: result: $ac_res" >&5
18937 echo "${ECHO_T}$ac_res" >&6; }
18938 if test `eval echo '${'$as_ac_var'}'` = yes; then
18939 cat >>confdefs.h <<_ACEOF
18940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18951 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 cat >conftest.$ac_ext <<_ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18967 #define $ac_func innocuous_$ac_func
18969 /* System header to define __stub macros and hopefully few prototypes,
18970 which can conflict with char $ac_func (); below.
18971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18972 <limits.h> exists even on freestanding compilers. */
18975 # include <limits.h>
18977 # include <assert.h>
18982 /* Override any GCC internal prototype to avoid an error.
18983 Use char because int might match the return type of a GCC
18984 builtin and then its argument prototype would still apply. */
18989 /* The GNU C library defines this for functions which it implements
18990 to always fail with ENOSYS. Some functions are actually named
18991 something starting with __ and the normal name is an alias. */
18992 #if defined __stub_$ac_func || defined __stub___$ac_func
18999 return $ac_func ();
19004 rm -f conftest.$ac_objext conftest$ac_exeext
19005 if { (ac_try="$ac_link"
19006 case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_link") 2>conftest.er1
19013 grep -v '^ *+' conftest.er1 >conftest.err
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
19018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19019 { (case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_try") 2>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest$ac_exeext'
19029 { (case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_try") 2>&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 eval "$as_ac_var=yes"
19040 echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19043 eval "$as_ac_var=no"
19046 rm -f core conftest.err conftest.$ac_objext \
19047 conftest$ac_exeext conftest.$ac_ext
19049 ac_res=`eval echo '${'$as_ac_var'}'`
19050 { echo "$as_me:$LINENO: result: $ac_res" >&5
19051 echo "${ECHO_T}$ac_res" >&6; }
19052 if test `eval echo '${'$as_ac_var'}'` = yes; then
19053 cat >>confdefs.h <<_ACEOF
19054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19060 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19061 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19062 if test "${llvm_cv_c_printf_a+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19066 ac_cpp='$CPP $CPPFLAGS'
19067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19071 if test "$cross_compiling" = yes; then
19072 llvmac_cv_c_printf_a=no
19074 cat >conftest.$ac_ext <<_ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19083 #include <stdlib.h>
19089 volatile double A, B;
19093 sprintf(Buffer, "%a", A);
19097 if (A != 0x1.999999999999ap-4)
19104 rm -f conftest$ac_exeext
19105 if { (ac_try="$ac_link"
19106 case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_link") 2>&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19115 { (case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_try") 2>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 llvm_cv_c_printf_a=yes
19126 echo "$as_me: program exited with status $ac_status" >&5
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 ( exit $ac_status )
19131 llvmac_cv_c_printf_a=no
19133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19138 ac_cpp='$CPP $CPPFLAGS'
19139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19144 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19145 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19146 if test "$llvm_cv_c_printf_a" = "yes"; then
19148 cat >>confdefs.h <<\_ACEOF
19149 #define HAVE_PRINTF_A 1
19156 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19157 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19158 if test "${ac_cv_func_rand48+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19163 ac_cpp='$CXXCPP $CPPFLAGS'
19164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19168 cat >conftest.$ac_ext <<_ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h. */
19174 #include <stdlib.h>
19178 srand48(0);lrand48();drand48();
19183 rm -f conftest.$ac_objext
19184 if { (ac_try="$ac_compile"
19185 case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_compile") 2>conftest.er1
19192 grep -v '^ *+' conftest.er1 >conftest.err
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19198 { (case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_try") 2>&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; } &&
19207 { ac_try='test -s conftest.$ac_objext'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19217 ac_cv_func_rand48=yes
19219 echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19222 ac_cv_func_rand48=no
19225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19227 ac_cpp='$CPP $CPPFLAGS'
19228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19234 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19235 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19237 if test "$ac_cv_func_rand48" = "yes" ; then
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE_RAND48 1
19246 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19247 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19248 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19249 echo $ECHO_N "(cached) $ECHO_C" >&6
19251 cat >conftest.$ac_ext <<_ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 $ac_includes_default
19262 char *p = (char *) strerror_s;
19270 rm -f conftest.$ac_objext
19271 if { (ac_try="$ac_compile"
19272 case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_compile") 2>conftest.er1
19279 grep -v '^ *+' conftest.er1 >conftest.err
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } &&
19284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest.$ac_objext'
19295 { (case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_try") 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_have_decl_strerror_s=yes
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ac_cv_have_decl_strerror_s=no
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19315 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19316 if test $ac_cv_have_decl_strerror_s = yes; then
19318 cat >>confdefs.h <<_ACEOF
19319 #define HAVE_DECL_STRERROR_S 1
19324 cat >>confdefs.h <<_ACEOF
19325 #define HAVE_DECL_STRERROR_S 0
19333 if test "$llvm_cv_os_type" = "MingW" ; then
19334 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19335 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19336 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 ac_check_lib_save_LIBS=$LIBS
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19348 /* Override any GCC internal prototype to avoid an error.
19349 Use char because int might match the return type of a GCC
19350 builtin and then its argument prototype would still apply. */
19363 rm -f conftest.$ac_objext conftest$ac_exeext
19364 if { (ac_try="$ac_link"
19365 case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_link") 2>conftest.er1
19372 grep -v '^ *+' conftest.er1 >conftest.err
19374 cat conftest.err >&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest$ac_exeext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 ac_cv_lib_gcc__alloca=yes
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 ac_cv_lib_gcc__alloca=no
19405 rm -f core conftest.err conftest.$ac_objext \
19406 conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_lib_save_LIBS
19409 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19410 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19411 if test $ac_cv_lib_gcc__alloca = yes; then
19413 cat >>confdefs.h <<\_ACEOF
19414 #define HAVE__ALLOCA 1
19419 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19420 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19421 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 ac_check_lib_save_LIBS=$LIBS
19426 cat >conftest.$ac_ext <<_ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19433 /* Override any GCC internal prototype to avoid an error.
19434 Use char because int might match the return type of a GCC
19435 builtin and then its argument prototype would still apply. */
19443 return __alloca ();
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_link") 2>conftest.er1
19457 grep -v '^ *+' conftest.er1 >conftest.err
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } &&
19462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19463 { (case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_try") 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest$ac_exeext'
19473 { (case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_try") 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_lib_gcc___alloca=yes
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 ac_cv_lib_gcc___alloca=no
19490 rm -f core conftest.err conftest.$ac_objext \
19491 conftest$ac_exeext conftest.$ac_ext
19492 LIBS=$ac_check_lib_save_LIBS
19494 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19495 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19496 if test $ac_cv_lib_gcc___alloca = yes; then
19498 cat >>confdefs.h <<\_ACEOF
19499 #define HAVE___ALLOCA 1
19504 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19505 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19506 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19507 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 ac_check_lib_save_LIBS=$LIBS
19511 cat >conftest.$ac_ext <<_ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19518 /* Override any GCC internal prototype to avoid an error.
19519 Use char because int might match the return type of a GCC
19520 builtin and then its argument prototype would still apply. */
19528 return __chkstk ();
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_link") 2>conftest.er1
19542 grep -v '^ *+' conftest.er1 >conftest.err
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest$ac_exeext'
19558 { (case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_try") 2>&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19567 ac_cv_lib_gcc___chkstk=yes
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 ac_cv_lib_gcc___chkstk=no
19575 rm -f core conftest.err conftest.$ac_objext \
19576 conftest$ac_exeext conftest.$ac_ext
19577 LIBS=$ac_check_lib_save_LIBS
19579 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19580 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19581 if test $ac_cv_lib_gcc___chkstk = yes; then
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE___CHKSTK 1
19589 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19590 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19591 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 ac_check_lib_save_LIBS=$LIBS
19596 cat >conftest.$ac_ext <<_ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19603 /* Override any GCC internal prototype to avoid an error.
19604 Use char because int might match the return type of a GCC
19605 builtin and then its argument prototype would still apply. */
19613 return ___chkstk ();
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (ac_try="$ac_link"
19620 case "(($ac_try" in
19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625 (eval "$ac_link") 2>conftest.er1
19627 grep -v '^ *+' conftest.er1 >conftest.err
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
19632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19633 { (case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_try") 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest$ac_exeext'
19643 { (case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_try") 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_cv_lib_gcc____chkstk=yes
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_cv_lib_gcc____chkstk=no
19660 rm -f core conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19664 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19665 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19666 if test $ac_cv_lib_gcc____chkstk = yes; then
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE____CHKSTK 1
19675 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19676 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19677 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19680 ac_check_lib_save_LIBS=$LIBS
19682 cat >conftest.$ac_ext <<_ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h. */
19689 /* Override any GCC internal prototype to avoid an error.
19690 Use char because int might match the return type of a GCC
19691 builtin and then its argument prototype would still apply. */
19699 return __ashldi3 ();
19704 rm -f conftest.$ac_objext conftest$ac_exeext
19705 if { (ac_try="$ac_link"
19706 case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_link") 2>conftest.er1
19713 grep -v '^ *+' conftest.er1 >conftest.err
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
19718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; } &&
19728 { ac_try='test -s conftest$ac_exeext'
19729 { (case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_try") 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_cv_lib_gcc___ashldi3=yes
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19743 ac_cv_lib_gcc___ashldi3=no
19746 rm -f core conftest.err conftest.$ac_objext \
19747 conftest$ac_exeext conftest.$ac_ext
19748 LIBS=$ac_check_lib_save_LIBS
19750 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19751 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19752 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19754 cat >>confdefs.h <<\_ACEOF
19755 #define HAVE___ASHLDI3 1
19760 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19761 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19762 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 ac_check_lib_save_LIBS=$LIBS
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19774 /* Override any GCC internal prototype to avoid an error.
19775 Use char because int might match the return type of a GCC
19776 builtin and then its argument prototype would still apply. */
19784 return __ashrdi3 ();
19789 rm -f conftest.$ac_objext conftest$ac_exeext
19790 if { (ac_try="$ac_link"
19791 case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_link") 2>conftest.er1
19798 grep -v '^ *+' conftest.er1 >conftest.err
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
19803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19804 { (case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_try") 2>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest$ac_exeext'
19814 { (case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_try") 2>&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; }; then
19823 ac_cv_lib_gcc___ashrdi3=yes
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19828 ac_cv_lib_gcc___ashrdi3=no
19831 rm -f core conftest.err conftest.$ac_objext \
19832 conftest$ac_exeext conftest.$ac_ext
19833 LIBS=$ac_check_lib_save_LIBS
19835 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19836 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19837 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE___ASHRDI3 1
19845 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19846 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19847 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19848 echo $ECHO_N "(cached) $ECHO_C" >&6
19850 ac_check_lib_save_LIBS=$LIBS
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19859 /* Override any GCC internal prototype to avoid an error.
19860 Use char because int might match the return type of a GCC
19861 builtin and then its argument prototype would still apply. */
19869 return __divdi3 ();
19874 rm -f conftest.$ac_objext conftest$ac_exeext
19875 if { (ac_try="$ac_link"
19876 case "(($ac_try" in
19877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878 *) ac_try_echo=$ac_try;;
19880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881 (eval "$ac_link") 2>conftest.er1
19883 grep -v '^ *+' conftest.er1 >conftest.err
19885 cat conftest.err >&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19889 { (case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_try") 2>&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; } &&
19898 { ac_try='test -s conftest$ac_exeext'
19899 { (case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_try") 2>&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 ac_cv_lib_gcc___divdi3=yes
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19913 ac_cv_lib_gcc___divdi3=no
19916 rm -f core conftest.err conftest.$ac_objext \
19917 conftest$ac_exeext conftest.$ac_ext
19918 LIBS=$ac_check_lib_save_LIBS
19920 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19921 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19922 if test $ac_cv_lib_gcc___divdi3 = yes; then
19924 cat >>confdefs.h <<\_ACEOF
19925 #define HAVE___DIVDI3 1
19930 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19931 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19932 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 ac_check_lib_save_LIBS=$LIBS
19937 cat >conftest.$ac_ext <<_ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19944 /* Override any GCC internal prototype to avoid an error.
19945 Use char because int might match the return type of a GCC
19946 builtin and then its argument prototype would still apply. */
19954 return __fixdfdi ();
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (ac_try="$ac_link"
19961 case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_link") 2>conftest.er1
19968 grep -v '^ *+' conftest.er1 >conftest.err
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } &&
19973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19974 { (case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; } &&
19983 { ac_try='test -s conftest$ac_exeext'
19984 { (case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_try") 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; }; then
19993 ac_cv_lib_gcc___fixdfdi=yes
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 ac_cv_lib_gcc___fixdfdi=no
20001 rm -f core conftest.err conftest.$ac_objext \
20002 conftest$ac_exeext conftest.$ac_ext
20003 LIBS=$ac_check_lib_save_LIBS
20005 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20006 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20007 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE___FIXDFDI 1
20015 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20016 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20017 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 ac_check_lib_save_LIBS=$LIBS
20022 cat >conftest.$ac_ext <<_ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20029 /* Override any GCC internal prototype to avoid an error.
20030 Use char because int might match the return type of a GCC
20031 builtin and then its argument prototype would still apply. */
20039 return __fixsfdi ();
20044 rm -f conftest.$ac_objext conftest$ac_exeext
20045 if { (ac_try="$ac_link"
20046 case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_link") 2>conftest.er1
20053 grep -v '^ *+' conftest.er1 >conftest.err
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20059 { (case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_try") 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest$ac_exeext'
20069 { (case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074 (eval "$ac_try") 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 ac_cv_lib_gcc___fixsfdi=yes
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 ac_cv_lib_gcc___fixsfdi=no
20086 rm -f core conftest.err conftest.$ac_objext \
20087 conftest$ac_exeext conftest.$ac_ext
20088 LIBS=$ac_check_lib_save_LIBS
20090 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20091 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20092 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20094 cat >>confdefs.h <<\_ACEOF
20095 #define HAVE___FIXSFDI 1
20100 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20101 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20102 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 ac_check_lib_save_LIBS=$LIBS
20107 cat >conftest.$ac_ext <<_ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h. */
20114 /* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
20120 char __floatdidf ();
20124 return __floatdidf ();
20129 rm -f conftest.$ac_objext conftest$ac_exeext
20130 if { (ac_try="$ac_link"
20131 case "(($ac_try" in
20132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133 *) ac_try_echo=$ac_try;;
20135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136 (eval "$ac_link") 2>conftest.er1
20138 grep -v '^ *+' conftest.er1 >conftest.err
20140 cat conftest.err >&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } &&
20143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20144 { (case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_try") 2>&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; } &&
20153 { ac_try='test -s conftest$ac_exeext'
20154 { (case "(($ac_try" in
20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156 *) ac_try_echo=$ac_try;;
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159 (eval "$ac_try") 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_cv_lib_gcc___floatdidf=yes
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_cv_lib_gcc___floatdidf=no
20171 rm -f core conftest.err conftest.$ac_objext \
20172 conftest$ac_exeext conftest.$ac_ext
20173 LIBS=$ac_check_lib_save_LIBS
20175 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20176 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20177 if test $ac_cv_lib_gcc___floatdidf = yes; then
20179 cat >>confdefs.h <<\_ACEOF
20180 #define HAVE___FLOATDIDF 1
20185 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20186 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20187 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 ac_check_lib_save_LIBS=$LIBS
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20199 /* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
20209 return __lshrdi3 ();
20214 rm -f conftest.$ac_objext conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_link") 2>conftest.er1
20223 grep -v '^ *+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
20228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20229 { (case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_try") 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest$ac_exeext'
20239 { (case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_try") 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_cv_lib_gcc___lshrdi3=yes
20250 echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20253 ac_cv_lib_gcc___lshrdi3=no
20256 rm -f core conftest.err conftest.$ac_objext \
20257 conftest$ac_exeext conftest.$ac_ext
20258 LIBS=$ac_check_lib_save_LIBS
20260 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20261 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20262 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20264 cat >>confdefs.h <<\_ACEOF
20265 #define HAVE___LSHRDI3 1
20270 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20271 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20272 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20273 echo $ECHO_N "(cached) $ECHO_C" >&6
20275 ac_check_lib_save_LIBS=$LIBS
20277 cat >conftest.$ac_ext <<_ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20284 /* Override any GCC internal prototype to avoid an error.
20285 Use char because int might match the return type of a GCC
20286 builtin and then its argument prototype would still apply. */
20294 return __moddi3 ();
20299 rm -f conftest.$ac_objext conftest$ac_exeext
20300 if { (ac_try="$ac_link"
20301 case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_link") 2>conftest.er1
20308 grep -v '^ *+' conftest.er1 >conftest.err
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
20313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314 { (case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_try") 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest$ac_exeext'
20324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_lib_gcc___moddi3=yes
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 ac_cv_lib_gcc___moddi3=no
20341 rm -f core conftest.err conftest.$ac_objext \
20342 conftest$ac_exeext conftest.$ac_ext
20343 LIBS=$ac_check_lib_save_LIBS
20345 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20346 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20347 if test $ac_cv_lib_gcc___moddi3 = yes; then
20349 cat >>confdefs.h <<\_ACEOF
20350 #define HAVE___MODDI3 1
20355 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20356 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20357 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 ac_check_lib_save_LIBS=$LIBS
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20369 /* Override any GCC internal prototype to avoid an error.
20370 Use char because int might match the return type of a GCC
20371 builtin and then its argument prototype would still apply. */
20379 return __udivdi3 ();
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_link") 2>conftest.er1
20393 grep -v '^ *+' conftest.er1 >conftest.err
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } &&
20398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20399 { (case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_try") 2>&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; } &&
20408 { ac_try='test -s conftest$ac_exeext'
20409 { (case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_try") 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; }; then
20418 ac_cv_lib_gcc___udivdi3=yes
20420 echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20423 ac_cv_lib_gcc___udivdi3=no
20426 rm -f core conftest.err conftest.$ac_objext \
20427 conftest$ac_exeext conftest.$ac_ext
20428 LIBS=$ac_check_lib_save_LIBS
20430 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20431 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20432 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20434 cat >>confdefs.h <<\_ACEOF
20435 #define HAVE___UDIVDI3 1
20440 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20441 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20442 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 ac_check_lib_save_LIBS=$LIBS
20447 cat >conftest.$ac_ext <<_ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20454 /* Override any GCC internal prototype to avoid an error.
20455 Use char because int might match the return type of a GCC
20456 builtin and then its argument prototype would still apply. */
20464 return __umoddi3 ();
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (ac_try="$ac_link"
20471 case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_link") 2>conftest.er1
20478 grep -v '^ *+' conftest.er1 >conftest.err
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
20483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest$ac_exeext'
20494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 ac_cv_lib_gcc___umoddi3=yes
20505 echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20508 ac_cv_lib_gcc___umoddi3=no
20511 rm -f core conftest.err conftest.$ac_objext \
20512 conftest$ac_exeext conftest.$ac_ext
20513 LIBS=$ac_check_lib_save_LIBS
20515 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20516 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20517 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20519 cat >>confdefs.h <<\_ACEOF
20520 #define HAVE___UMODDI3 1
20526 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20527 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20528 if test "${ac_cv_lib_gcc___main+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 ac_check_lib_save_LIBS=$LIBS
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20540 /* Override any GCC internal prototype to avoid an error.
20541 Use char because int might match the return type of a GCC
20542 builtin and then its argument prototype would still apply. */
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (ac_try="$ac_link"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_link") 2>conftest.er1
20564 grep -v '^ *+' conftest.er1 >conftest.err
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20570 { (case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_try") 2>&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try='test -s conftest$ac_exeext'
20580 { (case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_try") 2>&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; }; then
20589 ac_cv_lib_gcc___main=yes
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 ac_cv_lib_gcc___main=no
20597 rm -f core conftest.err conftest.$ac_objext \
20598 conftest$ac_exeext conftest.$ac_ext
20599 LIBS=$ac_check_lib_save_LIBS
20601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20602 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20603 if test $ac_cv_lib_gcc___main = yes; then
20605 cat >>confdefs.h <<\_ACEOF
20606 #define HAVE___MAIN 1
20611 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20612 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20613 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20616 ac_check_lib_save_LIBS=$LIBS
20618 cat >conftest.$ac_ext <<_ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20625 /* Override any GCC internal prototype to avoid an error.
20626 Use char because int might match the return type of a GCC
20627 builtin and then its argument prototype would still apply. */
20635 return __cmpdi2 ();
20640 rm -f conftest.$ac_objext conftest$ac_exeext
20641 if { (ac_try="$ac_link"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_link") 2>conftest.er1
20649 grep -v '^ *+' conftest.er1 >conftest.err
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } &&
20654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20655 { (case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_try") 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest$ac_exeext'
20665 { (case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_try") 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_cv_lib_gcc___cmpdi2=yes
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_cv_lib_gcc___cmpdi2=no
20682 rm -f core conftest.err conftest.$ac_objext \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20686 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20687 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20688 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE___CMPDI2 1
20698 if test "$llvm_cv_os_type" = "MingW" ; then
20699 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20700 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20701 cat >conftest.$ac_ext <<_ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20709 #include <windows.h>
20710 #include <imagehlp.h>
20711 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20712 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_compile") 2>conftest.er1
20725 grep -v '^ *+' conftest.er1 >conftest.err
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } &&
20730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20731 { (case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_try") 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest.$ac_objext'
20741 { (case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_try") 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20751 { echo "$as_me:$LINENO: result: yes" >&5
20752 echo "${ECHO_T}yes" >&6; }
20753 llvm_cv_win32_elmcb_pcstr="PCSTR"
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20760 { echo "$as_me:$LINENO: result: no" >&5
20761 echo "${ECHO_T}no" >&6; }
20762 llvm_cv_win32_elmcb_pcstr="PSTR"
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20768 cat >>confdefs.h <<_ACEOF
20769 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20776 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20777 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20778 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20783 ac_cpp='$CXXCPP $CPPFLAGS'
20784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20788 cat >conftest.$ac_ext <<_ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h. */
20803 rm -f conftest.$ac_objext
20804 if { (ac_try="$ac_compile"
20805 case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_compile") 2>conftest.er1
20812 grep -v '^ *+' conftest.er1 >conftest.err
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20818 { (case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_try") 2>&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; } &&
20827 { ac_try='test -s conftest.$ac_objext'
20828 { (case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_try") 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 ac_cv_func_isnan_in_math_h=yes
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ac_cv_func_isnan_in_math_h=no
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 ac_cpp='$CPP $CPPFLAGS'
20848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20854 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20855 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20858 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_ISNAN_IN_MATH_H 1
20867 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20868 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20869 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20874 ac_cpp='$CXXCPP $CPPFLAGS'
20875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20879 cat >conftest.$ac_ext <<_ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20894 rm -f conftest.$ac_objext
20895 if { (ac_try="$ac_compile"
20896 case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_compile") 2>conftest.er1
20903 grep -v '^ *+' conftest.er1 >conftest.err
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } &&
20908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20909 { (case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_try") 2>&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; } &&
20918 { ac_try='test -s conftest.$ac_objext'
20919 { (case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924 (eval "$ac_try") 2>&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_cv_func_isnan_in_cmath=yes
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20933 ac_cv_func_isnan_in_cmath=no
20936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20938 ac_cpp='$CPP $CPPFLAGS'
20939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20945 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20946 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20948 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20950 cat >>confdefs.h <<\_ACEOF
20951 #define HAVE_ISNAN_IN_CMATH 1
20957 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20958 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20959 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20964 ac_cpp='$CXXCPP $CPPFLAGS'
20965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20979 float f; std::isnan(f);
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1 >conftest.err
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20999 { (case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_try") 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest.$ac_objext'
21009 { (case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_try") 2>&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 ac_cv_func_std_isnan_in_cmath=yes
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 ac_cv_func_std_isnan_in_cmath=no
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028 ac_cpp='$CPP $CPPFLAGS'
21029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21035 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21036 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21038 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21040 cat >>confdefs.h <<\_ACEOF
21041 #define HAVE_STD_ISNAN_IN_CMATH 1
21049 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21050 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21051 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21056 ac_cpp='$CXXCPP $CPPFLAGS'
21057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21061 cat >conftest.$ac_ext <<_ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_compile") 2>conftest.er1
21085 grep -v '^ *+' conftest.er1 >conftest.err
21087 cat conftest.err >&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } &&
21090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21091 { (case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096 (eval "$ac_try") 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; } &&
21100 { ac_try='test -s conftest.$ac_objext'
21101 { (case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_try") 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; }; then
21110 ac_cv_func_isinf_in_math_h=yes
21112 echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 ac_cv_func_isinf_in_math_h=no
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 ac_cpp='$CPP $CPPFLAGS'
21121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21127 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21128 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21130 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21132 cat >>confdefs.h <<\_ACEOF
21133 #define HAVE_ISINF_IN_MATH_H 1
21139 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21140 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21141 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 ac_cpp='$CXXCPP $CPPFLAGS'
21147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21151 cat >conftest.$ac_ext <<_ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21166 rm -f conftest.$ac_objext
21167 if { (ac_try="$ac_compile"
21168 case "(($ac_try" in
21169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170 *) ac_try_echo=$ac_try;;
21172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173 (eval "$ac_compile") 2>conftest.er1
21175 grep -v '^ *+' conftest.er1 >conftest.err
21177 cat conftest.err >&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } &&
21180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21181 { (case "(($ac_try" in
21182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183 *) ac_try_echo=$ac_try;;
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186 (eval "$ac_try") 2>&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; } &&
21190 { ac_try='test -s conftest.$ac_objext'
21191 { (case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_try") 2>&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; }; then
21200 ac_cv_func_isinf_in_cmath=yes
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 ac_cv_func_isinf_in_cmath=no
21208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21210 ac_cpp='$CPP $CPPFLAGS'
21211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21217 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21218 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21220 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21222 cat >>confdefs.h <<\_ACEOF
21223 #define HAVE_ISINF_IN_CMATH 1
21229 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21230 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21231 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21236 ac_cpp='$CXXCPP $CPPFLAGS'
21237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21241 cat >conftest.$ac_ext <<_ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h. */
21251 float f; std::isinf(f);
21256 rm -f conftest.$ac_objext
21257 if { (ac_try="$ac_compile"
21258 case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_compile") 2>conftest.er1
21265 grep -v '^ *+' conftest.er1 >conftest.err
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } &&
21270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21271 { (case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_try") 2>&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; } &&
21280 { ac_try='test -s conftest.$ac_objext'
21281 { (case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_try") 2>&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 ac_cv_func_std_isinf_in_cmath=yes
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21295 ac_cv_func_std_isinf_in_cmath=no
21298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21300 ac_cpp='$CPP $CPPFLAGS'
21301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21307 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21308 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21310 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21312 cat >>confdefs.h <<\_ACEOF
21313 #define HAVE_STD_ISINF_IN_CMATH 1
21319 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21320 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21321 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21326 ac_cpp='$CXXCPP $CPPFLAGS'
21327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 #include <ieeefp.h>
21341 float f; finite(f);
21346 rm -f conftest.$ac_objext
21347 if { (ac_try="$ac_compile"
21348 case "(($ac_try" in
21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350 *) ac_try_echo=$ac_try;;
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353 (eval "$ac_compile") 2>conftest.er1
21355 grep -v '^ *+' conftest.er1 >conftest.err
21357 cat conftest.err >&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } &&
21360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21361 { (case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_try") 2>&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; } &&
21370 { ac_try='test -s conftest.$ac_objext'
21371 { (case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376 (eval "$ac_try") 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 ac_cv_func_finite_in_ieeefp_h=yes
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21385 ac_cv_func_finite_in_ieeefp_h=no
21388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390 ac_cpp='$CPP $CPPFLAGS'
21391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21397 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21398 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21400 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21402 cat >>confdefs.h <<\_ACEOF
21403 #define HAVE_FINITE_IN_IEEEFP_H 1
21410 if test "$llvm_cv_platform_type" = "Unix" ; then
21413 for ac_header in stdlib.h unistd.h
21415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21422 ac_res=`eval echo '${'$as_ac_Header'}'`
21423 { echo "$as_me:$LINENO: result: $ac_res" >&5
21424 echo "${ECHO_T}$ac_res" >&6; }
21426 # Is the header compilable?
21427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21429 cat >conftest.$ac_ext <<_ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21435 $ac_includes_default
21436 #include <$ac_header>
21438 rm -f conftest.$ac_objext
21439 if { (ac_try="$ac_compile"
21440 case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_compile") 2>conftest.er1
21447 grep -v '^ *+' conftest.er1 >conftest.err
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } &&
21452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21453 { (case "(($ac_try" in
21454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455 *) ac_try_echo=$ac_try;;
21457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458 (eval "$ac_try") 2>&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; } &&
21462 { ac_try='test -s conftest.$ac_objext'
21463 { (case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_try") 2>&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); }; }; then
21472 ac_header_compiler=yes
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 ac_header_compiler=no
21480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21482 echo "${ECHO_T}$ac_header_compiler" >&6; }
21484 # Is the header present?
21485 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21487 cat >conftest.$ac_ext <<_ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21493 #include <$ac_header>
21495 if { (ac_try="$ac_cpp conftest.$ac_ext"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21503 grep -v '^ *+' conftest.er1 >conftest.err
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } >/dev/null; then
21508 if test -s conftest.err; then
21509 ac_cpp_err=$ac_c_preproc_warn_flag
21510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21517 if test -z "$ac_cpp_err"; then
21518 ac_header_preproc=yes
21520 echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21523 ac_header_preproc=no
21526 rm -f conftest.err conftest.$ac_ext
21527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21528 echo "${ECHO_T}$ac_header_preproc" >&6; }
21530 # So? What about this header?
21531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21537 ac_header_preproc=yes
21540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21553 ## ------------------------------------ ##
21554 ## Report this to http://llvm.org/bugs/ ##
21555 ## ------------------------------------ ##
21557 ) | sed "s/^/$as_me: WARNING: /" >&2
21560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 eval "$as_ac_Header=\$ac_header_preproc"
21567 ac_res=`eval echo '${'$as_ac_Header'}'`
21568 { echo "$as_me:$LINENO: result: $ac_res" >&5
21569 echo "${ECHO_T}$ac_res" >&6; }
21572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21573 cat >>confdefs.h <<_ACEOF
21574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21582 for ac_func in getpagesize
21584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21588 echo $ECHO_N "(cached) $ECHO_C" >&6
21590 cat >conftest.$ac_ext <<_ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21598 #define $ac_func innocuous_$ac_func
21600 /* System header to define __stub macros and hopefully few prototypes,
21601 which can conflict with char $ac_func (); below.
21602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21603 <limits.h> exists even on freestanding compilers. */
21606 # include <limits.h>
21608 # include <assert.h>
21613 /* Override any GCC internal prototype to avoid an error.
21614 Use char because int might match the return type of a GCC
21615 builtin and then its argument prototype would still apply. */
21620 /* The GNU C library defines this for functions which it implements
21621 to always fail with ENOSYS. Some functions are actually named
21622 something starting with __ and the normal name is an alias. */
21623 #if defined __stub_$ac_func || defined __stub___$ac_func
21630 return $ac_func ();
21635 rm -f conftest.$ac_objext conftest$ac_exeext
21636 if { (ac_try="$ac_link"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_link") 2>conftest.er1
21644 grep -v '^ *+' conftest.er1 >conftest.err
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } &&
21649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21650 { (case "(($ac_try" in
21651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 *) ac_try_echo=$ac_try;;
21654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655 (eval "$ac_try") 2>&5
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try='test -s conftest$ac_exeext'
21660 { (case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_try") 2>&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); }; }; then
21669 eval "$as_ac_var=yes"
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 eval "$as_ac_var=no"
21677 rm -f core conftest.err conftest.$ac_objext \
21678 conftest$ac_exeext conftest.$ac_ext
21680 ac_res=`eval echo '${'$as_ac_var'}'`
21681 { echo "$as_me:$LINENO: result: $ac_res" >&5
21682 echo "${ECHO_T}$ac_res" >&6; }
21683 if test `eval echo '${'$as_ac_var'}'` = yes; then
21684 cat >>confdefs.h <<_ACEOF
21685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21691 { echo "$as_me:$LINENO: checking for working mmap" >&5
21692 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21693 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21696 if test "$cross_compiling" = yes; then
21697 ac_cv_func_mmap_fixed_mapped=no
21699 cat >conftest.$ac_ext <<_ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h. */
21705 $ac_includes_default
21706 /* malloc might have been renamed as rpl_malloc. */
21709 /* Thanks to Mike Haertel and Jim Avera for this test.
21710 Here is a matrix of mmap possibilities:
21711 mmap private not fixed
21712 mmap private fixed at somewhere currently unmapped
21713 mmap private fixed at somewhere already mapped
21714 mmap shared not fixed
21715 mmap shared fixed at somewhere currently unmapped
21716 mmap shared fixed at somewhere already mapped
21717 For private mappings, we should verify that changes cannot be read()
21718 back from the file, nor mmap's back from the file at a different
21719 address. (There have been systems where private was not correctly
21720 implemented like the infamous i386 svr4.0, and systems where the
21721 VM page cache was not coherent with the file system buffer cache
21722 like early versions of FreeBSD and possibly contemporary NetBSD.)
21723 For shared mappings, we should conversely verify that changes get
21724 propagated back to all the places they're supposed to be.
21726 Grep wants private fixed already mapped.
21727 The main things grep needs to know about mmap are:
21728 * does it exist and is it safe to write into the mmap'd area
21729 * how to use it (BSD variants) */
21732 #include <sys/mman.h>
21734 #if !STDC_HEADERS && !HAVE_STDLIB_H
21738 /* This mess was copied from the GNU getpagesize.h. */
21739 #if !HAVE_GETPAGESIZE
21740 /* Assume that all systems that can run configure have sys/param.h. */
21741 # if !HAVE_SYS_PARAM_H
21742 # define HAVE_SYS_PARAM_H 1
21745 # ifdef _SC_PAGESIZE
21746 # define getpagesize() sysconf(_SC_PAGESIZE)
21747 # else /* no _SC_PAGESIZE */
21748 # if HAVE_SYS_PARAM_H
21749 # include <sys/param.h>
21750 # ifdef EXEC_PAGESIZE
21751 # define getpagesize() EXEC_PAGESIZE
21752 # else /* no EXEC_PAGESIZE */
21754 # define getpagesize() NBPG * CLSIZE
21757 # endif /* no CLSIZE */
21758 # else /* no NBPG */
21760 # define getpagesize() NBPC
21761 # else /* no NBPC */
21763 # define getpagesize() PAGESIZE
21764 # endif /* PAGESIZE */
21765 # endif /* no NBPC */
21766 # endif /* no NBPG */
21767 # endif /* no EXEC_PAGESIZE */
21768 # else /* no HAVE_SYS_PARAM_H */
21769 # define getpagesize() 8192 /* punt totally */
21770 # endif /* no HAVE_SYS_PARAM_H */
21771 # endif /* no _SC_PAGESIZE */
21773 #endif /* no HAVE_GETPAGESIZE */
21778 char *data, *data2, *data3;
21782 pagesize = getpagesize ();
21784 /* First, make a file with some known garbage in it. */
21785 data = (char *) malloc (pagesize);
21788 for (i = 0; i < pagesize; ++i)
21789 *(data + i) = rand ();
21791 fd = creat ("conftest.mmap", 0600);
21794 if (write (fd, data, pagesize) != pagesize)
21798 /* Next, try to mmap the file at a fixed address which already has
21799 something else allocated at it. If we can, also make sure that
21800 we see the same garbage. */
21801 fd = open ("conftest.mmap", O_RDWR);
21804 data2 = (char *) malloc (2 * pagesize);
21807 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21808 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21809 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21811 for (i = 0; i < pagesize; ++i)
21812 if (*(data + i) != *(data2 + i))
21815 /* Finally, make sure that changes to the mapped area do not
21816 percolate back to the file as seen by read(). (This is a bug on
21817 some variants of i386 svr4.0.) */
21818 for (i = 0; i < pagesize; ++i)
21819 *(data2 + i) = *(data2 + i) + 1;
21820 data3 = (char *) malloc (pagesize);
21823 if (read (fd, data3, pagesize) != pagesize)
21825 for (i = 0; i < pagesize; ++i)
21826 if (*(data + i) != *(data3 + i))
21832 rm -f conftest$ac_exeext
21833 if { (ac_try="$ac_link"
21834 case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839 (eval "$ac_link") 2>&5
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21843 { (case "(($ac_try" in
21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845 *) ac_try_echo=$ac_try;;
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848 (eval "$ac_try") 2>&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); }; }; then
21852 ac_cv_func_mmap_fixed_mapped=yes
21854 echo "$as_me: program exited with status $ac_status" >&5
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21858 ( exit $ac_status )
21859 ac_cv_func_mmap_fixed_mapped=no
21861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21867 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21868 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21870 cat >>confdefs.h <<\_ACEOF
21871 #define HAVE_MMAP 1
21875 rm -f conftest.mmap
21877 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21878 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21879 if test "${ac_cv_func_mmap_file+set}" = set; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 ac_cpp='$CPP $CPPFLAGS'
21884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21888 if test "$cross_compiling" = yes; then
21889 ac_cv_func_mmap_file=no
21891 cat >conftest.$ac_ext <<_ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21899 #include <sys/types.h>
21900 #include <sys/mman.h>
21908 fd = creat ("foo",0777);
21909 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21911 return (fd != (int) MAP_FAILED);
21916 rm -f conftest$ac_exeext
21917 if { (ac_try="$ac_link"
21918 case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923 (eval "$ac_link") 2>&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21927 { (case "(($ac_try" in
21928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929 *) ac_try_echo=$ac_try;;
21931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932 (eval "$ac_try") 2>&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); }; }; then
21936 ac_cv_func_mmap_file=yes
21938 echo "$as_me: program exited with status $ac_status" >&5
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21942 ( exit $ac_status )
21943 ac_cv_func_mmap_file=no
21945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21950 ac_cpp='$CPP $CPPFLAGS'
21951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21957 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21958 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21959 if test "$ac_cv_func_mmap_file" = yes; then
21961 cat >>confdefs.h <<\_ACEOF
21962 #define HAVE_MMAP_FILE
21969 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21970 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21971 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21972 echo $ECHO_N "(cached) $ECHO_C" >&6
21974 if test "$llvm_cv_os_type" = "Interix" ; then
21975 ac_cv_need_dev_zero_for_mmap=yes
21977 ac_cv_need_dev_zero_for_mmap=no
21981 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21982 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21983 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21985 cat >>confdefs.h <<\_ACEOF
21986 #define NEED_DEV_ZERO_FOR_MMAP 1
21991 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21993 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21994 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21996 if test "$ac_cv_func_mmap_file" = "no"
21998 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21999 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22003 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22004 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22006 ac_cpp='$CXXCPP $CPPFLAGS'
22007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22011 cat >conftest.$ac_ext <<_ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22020 volatile unsigned long val = 1;
22021 __sync_synchronize();
22022 __sync_val_compare_and_swap(&val, 1, 0);
22023 __sync_add_and_fetch(&val, 1);
22024 __sync_sub_and_fetch(&val, 1);
22030 rm -f conftest.$ac_objext conftest$ac_exeext
22031 if { (ac_try="$ac_link"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037 (eval "$ac_link") 2>conftest.er1
22039 grep -v '^ *+' conftest.er1 >conftest.err
22041 cat conftest.err >&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } &&
22044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
22054 { ac_try='test -s conftest$ac_exeext'
22055 { (case "(($ac_try" in
22056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057 *) ac_try_echo=$ac_try;;
22059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060 (eval "$ac_try") 2>&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22065 { echo "$as_me:$LINENO: result: yes" >&5
22066 echo "${ECHO_T}yes" >&6; }
22068 cat >>confdefs.h <<\_ACEOF
22069 #define LLVM_HAS_ATOMICS 1
22074 echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22078 { echo "$as_me:$LINENO: result: no" >&5
22079 echo "${ECHO_T}no" >&6; }
22081 cat >>confdefs.h <<\_ACEOF
22082 #define LLVM_HAS_ATOMICS 0
22085 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22086 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22090 rm -f core conftest.err conftest.$ac_objext \
22091 conftest$ac_exeext conftest.$ac_ext
22093 ac_cpp='$CPP $CPPFLAGS'
22094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22100 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22101 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22102 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22103 if test "${llvm_cv_linux_mixed+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
22107 ac_cpp='$CPP $CPPFLAGS'
22108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22119 error: Not x86-64 even if uname says so!
22130 rm -f conftest.$ac_objext
22131 if { (ac_try="$ac_compile"
22132 case "(($ac_try" in
22133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137 (eval "$ac_compile") 2>conftest.er1
22139 grep -v '^ *+' conftest.er1 >conftest.err
22141 cat conftest.err >&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } &&
22144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22145 { (case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150 (eval "$ac_try") 2>&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); }; } &&
22154 { ac_try='test -s conftest.$ac_objext'
22155 { (case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_try") 2>&5
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; }; then
22164 llvm_cv_linux_mixed=no
22166 echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22169 llvm_cv_linux_mixed=yes
22172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22174 ac_cpp='$CPP $CPPFLAGS'
22175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22181 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22182 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22184 if test "$llvm_cv_linux_mixed" = "yes"; then
22185 llvm_cv_target_arch="x86"
22191 for ac_func in __dso_handle
22193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 cat >conftest.$ac_ext <<_ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22207 #define $ac_func innocuous_$ac_func
22209 /* System header to define __stub macros and hopefully few prototypes,
22210 which can conflict with char $ac_func (); below.
22211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22212 <limits.h> exists even on freestanding compilers. */
22215 # include <limits.h>
22217 # include <assert.h>
22222 /* Override any GCC internal prototype to avoid an error.
22223 Use char because int might match the return type of a GCC
22224 builtin and then its argument prototype would still apply. */
22229 /* The GNU C library defines this for functions which it implements
22230 to always fail with ENOSYS. Some functions are actually named
22231 something starting with __ and the normal name is an alias. */
22232 #if defined __stub_$ac_func || defined __stub___$ac_func
22239 return $ac_func ();
22244 rm -f conftest.$ac_objext conftest$ac_exeext
22245 if { (ac_try="$ac_link"
22246 case "(($ac_try" in
22247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248 *) ac_try_echo=$ac_try;;
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251 (eval "$ac_link") 2>conftest.er1
22253 grep -v '^ *+' conftest.er1 >conftest.err
22255 cat conftest.err >&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); } &&
22258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22259 { (case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_try") 2>&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; } &&
22268 { ac_try='test -s conftest$ac_exeext'
22269 { (case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_try") 2>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; }; then
22278 eval "$as_ac_var=yes"
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 eval "$as_ac_var=no"
22286 rm -f core conftest.err conftest.$ac_objext \
22287 conftest$ac_exeext conftest.$ac_ext
22289 ac_res=`eval echo '${'$as_ac_var'}'`
22290 { echo "$as_me:$LINENO: result: $ac_res" >&5
22291 echo "${ECHO_T}$ac_res" >&6; }
22292 if test `eval echo '${'$as_ac_var'}'` = yes; then
22293 cat >>confdefs.h <<_ACEOF
22294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22301 SHLIBEXT=$libltdl_cv_shlibext
22304 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22307 if test "${prefix}" = "NONE" ; then
22308 prefix="/usr/local"
22310 eval LLVM_PREFIX="${prefix}";
22311 eval LLVM_BINDIR="${prefix}/bin";
22312 eval LLVM_DATADIR="${prefix}/share/llvm";
22313 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22314 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22315 eval LLVM_INCLUDEDIR="${prefix}/include";
22316 eval LLVM_INFODIR="${prefix}/info";
22317 eval LLVM_MANDIR="${prefix}/man";
22318 LLVM_CONFIGTIME=`date`
22329 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22330 LLVM_CONFIGTIME="(timestamp not enabled)"
22334 cat >>confdefs.h <<_ACEOF
22335 #define LLVM_PREFIX "$LLVM_PREFIX"
22339 cat >>confdefs.h <<_ACEOF
22340 #define LLVM_BINDIR "$LLVM_BINDIR"
22344 cat >>confdefs.h <<_ACEOF
22345 #define LLVM_DATADIR "$LLVM_DATADIR"
22349 cat >>confdefs.h <<_ACEOF
22350 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22354 cat >>confdefs.h <<_ACEOF
22355 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22359 cat >>confdefs.h <<_ACEOF
22360 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22364 cat >>confdefs.h <<_ACEOF
22365 #define LLVM_INFODIR "$LLVM_INFODIR"
22369 cat >>confdefs.h <<_ACEOF
22370 #define LLVM_MANDIR "$LLVM_MANDIR"
22374 cat >>confdefs.h <<_ACEOF
22375 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22379 cat >>confdefs.h <<_ACEOF
22380 #define LLVM_HOST_TRIPLE "$host"
22384 cat >>confdefs.h <<_ACEOF
22385 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22389 if test "$BINDINGS_TO_BUILD" = auto ; then
22390 BINDINGS_TO_BUILD=""
22391 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22392 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22395 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22401 binding_prereqs_failed=0
22402 for a_binding in $BINDINGS_TO_BUILD ; do
22403 case "$a_binding" in
22405 if test "x$OCAMLC" = x ; then
22406 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22407 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22408 binding_prereqs_failed=1
22410 if test "x$OCAMLDEP" = x ; then
22411 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22412 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22413 binding_prereqs_failed=1
22415 if test "x$OCAMLOPT" = x ; then
22416 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22417 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22419 if test "x$with_ocaml_libdir" != xauto ; then
22420 OCAML_LIBDIR=$with_ocaml_libdir
22423 ocaml_stdlib="`"$OCAMLC" -where`"
22424 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22426 # ocaml stdlib is beneath our prefix; use stdlib
22427 OCAML_LIBDIR=$ocaml_stdlib
22430 # ocaml stdlib is outside our prefix; use libdir/ocaml
22431 OCAML_LIBDIR=${prefix}/lib/ocaml
22438 if test "$binding_prereqs_failed" = 1 ; then
22439 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22440 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22441 { (exit 1); exit 1; }; }
22444 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22445 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22446 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22447 echo $ECHO_N "(cached) $ECHO_C" >&6
22450 ac_cpp='$CXXCPP $CPPFLAGS'
22451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22455 oldcxxflags="$CXXFLAGS"
22456 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22457 cat >conftest.$ac_ext <<_ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22472 rm -f conftest.$ac_objext
22473 if { (ac_try="$ac_compile"
22474 case "(($ac_try" in
22475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476 *) ac_try_echo=$ac_try;;
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479 (eval "$ac_compile") 2>conftest.er1
22481 grep -v '^ *+' conftest.er1 >conftest.err
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } &&
22486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22487 { (case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_try") 2>&5
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); }; } &&
22496 { ac_try='test -s conftest.$ac_objext'
22497 { (case "(($ac_try" in
22498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499 *) ac_try_echo=$ac_try;;
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502 (eval "$ac_try") 2>&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; }; then
22506 llvm_cv_cxx_visibility_inlines_hidden=yes
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 llvm_cv_cxx_visibility_inlines_hidden=no
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515 CXXFLAGS="$oldcxxflags"
22517 ac_cpp='$CPP $CPPFLAGS'
22518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22524 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22525 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22526 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22527 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22530 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22535 if test "$llvm_cv_link_use_r" = "yes" ; then
22542 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22543 RDYNAMIC="-Wl,-export-dynamic"
22550 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22557 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22559 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22561 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22563 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22565 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22568 ac_config_files="$ac_config_files Makefile.config"
22571 ac_config_files="$ac_config_files llvm.spec"
22574 ac_config_files="$ac_config_files docs/doxygen.cfg"
22577 if test "${clang_src_root}" = ""; then
22578 clang_src_root="$srcdir/tools/clang"
22580 if test -f ${clang_src_root}/README.txt; then
22581 configh="include/clang/Config/config.h"
22582 doxy="docs/doxygen.cfg"
22583 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22585 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22589 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22592 test "x$program_prefix" = "xNONE" && program_prefix=""
22596 ac_config_commands="$ac_config_commands setup"
22598 ac_config_commands="$ac_config_commands Makefile"
22601 ac_config_commands="$ac_config_commands Makefile.common"
22604 ac_config_commands="$ac_config_commands examples/Makefile"
22607 ac_config_commands="$ac_config_commands lib/Makefile"
22610 ac_config_commands="$ac_config_commands runtime/Makefile"
22613 ac_config_commands="$ac_config_commands test/Makefile"
22616 ac_config_commands="$ac_config_commands test/Makefile.tests"
22619 ac_config_commands="$ac_config_commands unittests/Makefile"
22622 ac_config_commands="$ac_config_commands tools/Makefile"
22625 ac_config_commands="$ac_config_commands utils/Makefile"
22628 ac_config_commands="$ac_config_commands projects/Makefile"
22631 ac_config_commands="$ac_config_commands bindings/Makefile"
22634 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22638 cat >confcache <<\_ACEOF
22639 # This file is a shell script that caches the results of configure
22640 # tests run on this system so they can be shared between configure
22641 # scripts and configure runs, see configure's option --config-cache.
22642 # It is not useful on other systems. If it contains results you don't
22643 # want to keep, you may remove or edit it.
22645 # config.status only pays attention to the cache file if you give it
22646 # the --recheck option to rerun configure.
22648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22650 # following values.
22654 # The following way of writing the cache mishandles newlines in values,
22655 # but we know of no workaround that is simple, portable, and efficient.
22656 # So, we kill variables containing newlines.
22657 # Ultrix sh set writes to stderr and can't be redirected directly,
22658 # and sets the high bit in the cache file unless we assign to the vars.
22660 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22661 eval ac_val=\$$ac_var
22665 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22666 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22669 _ | IFS | as_nl) ;; #(
22670 *) $as_unset $ac_var ;;
22676 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22677 *${as_nl}ac_space=\ *)
22678 # `set' does not quote correctly, so add quotes (double-quote
22679 # substitution turns \\\\ into \\, and sed turns \\ into \).
22682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22685 # `set' quotes correctly as required by POSIX, so do not add quotes.
22686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22697 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22699 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22700 if test -w "$cache_file"; then
22701 test "x$cache_file" != "x/dev/null" &&
22702 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22703 echo "$as_me: updating cache $cache_file" >&6;}
22704 cat confcache >$cache_file
22706 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22707 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22713 # Let make expand exec_prefix.
22714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22716 DEFS=-DHAVE_CONFIG_H
22720 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22721 # 1. Remove the extension, and $U if already installed.
22722 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22723 ac_i=`echo "$ac_i" | sed "$ac_script"`
22724 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22725 # will be set to the directory where LIBOBJS objects are built.
22726 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22727 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22729 LIBOBJS=$ac_libobjs
22731 LTLIBOBJS=$ac_ltlibobjs
22734 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22735 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22736 Usually this means the macro was only invoked conditionally." >&5
22737 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22738 Usually this means the macro was only invoked conditionally." >&2;}
22739 { (exit 1); exit 1; }; }
22741 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22742 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22743 Usually this means the macro was only invoked conditionally." >&5
22744 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22745 Usually this means the macro was only invoked conditionally." >&2;}
22746 { (exit 1); exit 1; }; }
22749 : ${CONFIG_STATUS=./config.status}
22750 ac_clean_files_save=$ac_clean_files
22751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22754 cat >$CONFIG_STATUS <<_ACEOF
22756 # Generated by $as_me.
22757 # Run this file to recreate the current configuration.
22758 # Compiler output produced by configure, useful for debugging
22759 # configure, is in config.log if it exists.
22762 ac_cs_recheck=false
22764 SHELL=\${CONFIG_SHELL-$SHELL}
22767 cat >>$CONFIG_STATUS <<\_ACEOF
22768 ## --------------------- ##
22769 ## M4sh Initialization. ##
22770 ## --------------------- ##
22772 # Be Bourne compatible
22773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22776 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22777 # is contrary to our usage. Disable this feature.
22778 alias -g '${1+"$@"}'='"$@"'
22779 setopt NO_GLOB_SUBST
22781 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22783 BIN_SH=xpg4; export BIN_SH # for Tru64
22784 DUALCASE=1; export DUALCASE # for MKS sh
22788 # Avoid depending upon Character Ranges.
22789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22792 as_cr_digits='0123456789'
22793 as_cr_alnum=$as_cr_Letters$as_cr_digits
22795 # The user is always right.
22796 if test "${PATH_SEPARATOR+set}" != set; then
22797 echo "#! /bin/sh" >conf$$.sh
22798 echo "exit 0" >>conf$$.sh
22800 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22808 # Support unset when possible.
22809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22817 # We need space, tab and new line, in precisely that order. Quoting is
22818 # there to prevent editors from complaining about space-tab.
22819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22820 # splitting by setting IFS to empty value.)
22825 # Find who we are. Look in the path if we contain no directory separator.
22827 *[\\/]* ) as_myself=$0 ;;
22828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22829 for as_dir in $PATH
22832 test -z "$as_dir" && as_dir=.
22833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22839 # We did not find ourselves, most probably we were run as `sh COMMAND'
22840 # in which case we are not to be found in the path.
22841 if test "x$as_myself" = x; then
22844 if test ! -f "$as_myself"; then
22845 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22846 { (exit 1); exit 1; }
22849 # Work around bugs in pre-3.0 UWIN ksh.
22850 for as_var in ENV MAIL MAILPATH
22851 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22859 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22860 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22861 LC_TELEPHONE LC_TIME
22863 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22864 eval $as_var=C; export $as_var
22866 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22870 # Required to use basename.
22871 if expr a : '\(a\)' >/dev/null 2>&1 &&
22872 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22878 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22879 as_basename=basename
22885 # Name of the executable.
22886 as_me=`$as_basename -- "$0" ||
22887 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22888 X"$0" : 'X\(//\)$' \| \
22889 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22891 sed '/^.*\/\([^/][^/]*\)\/*$/{
22910 as_lineno_1=$LINENO
22911 as_lineno_2=$LINENO
22912 test "x$as_lineno_1" != "x$as_lineno_2" &&
22913 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22915 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22916 # uniformly replaced by the line number. The first 'sed' inserts a
22917 # line-number line after each line using $LINENO; the second 'sed'
22918 # does the real work. The second script uses 'N' to pair each
22919 # line-number line with the line containing $LINENO, and appends
22920 # trailing '-' during substitution so that $LINENO is not a special
22921 # case at line end.
22922 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22923 # scripts with optimization help from Paolo Bonzini. Blame Lee
22924 # E. McMahon (1931-1989) for sed's syntax. :-)
22936 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22939 ' >$as_me.lineno &&
22940 chmod +x "$as_me.lineno" ||
22941 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22942 { (exit 1); exit 1; }; }
22944 # Don't try to exec as it changes $[0], causing all sort of problems
22945 # (the dirname of $[0] is not the place where we might find the
22946 # original and so on. Autoconf is especially sensitive to this).
22947 . "./$as_me.lineno"
22948 # Exit status is that of the last command.
22953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22959 ECHO_C= ECHO_N= ECHO_T=
22960 case `echo -n x` in
22962 case `echo 'x\c'` in
22963 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22970 if expr a : '\(a\)' >/dev/null 2>&1 &&
22971 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22977 rm -f conf$$ conf$$.exe conf$$.file
22978 if test -d conf$$.dir; then
22979 rm -f conf$$.dir/conf$$.file
22985 if ln -s conf$$.file conf$$ 2>/dev/null; then
22987 # ... but there are two gotchas:
22988 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22989 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22990 # In both cases, we have to default to `cp -p'.
22991 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22993 elif ln conf$$.file conf$$ 2>/dev/null; then
22998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22999 rmdir conf$$.dir 2>/dev/null
23001 if mkdir -p . 2>/dev/null; then
23004 test -d ./-p && rmdir ./-p
23008 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23009 # systems may use methods other than mode bits to determine executability.
23010 cat >conf$$.file <<_ASEOF
23014 chmod +x conf$$.file
23015 if test -x conf$$.file >/dev/null 2>&1; then
23016 as_executable_p="test -x"
23022 # Sed expression to map a string onto a valid CPP name.
23023 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23025 # Sed expression to map a string onto a valid variable name.
23026 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23031 # Save the log message, to keep $[0] and so on meaningful, and to
23032 # report actual input values of CONFIG_FILES etc. instead of their
23033 # values after options handling.
23035 This file was extended by LLVM $as_me 3.4svn, which was
23036 generated by GNU Autoconf 2.60. Invocation command line was
23038 CONFIG_FILES = $CONFIG_FILES
23039 CONFIG_HEADERS = $CONFIG_HEADERS
23040 CONFIG_LINKS = $CONFIG_LINKS
23041 CONFIG_COMMANDS = $CONFIG_COMMANDS
23044 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23049 cat >>$CONFIG_STATUS <<_ACEOF
23050 # Files that config.status was made for.
23051 config_files="$ac_config_files"
23052 config_headers="$ac_config_headers"
23053 config_commands="$ac_config_commands"
23057 cat >>$CONFIG_STATUS <<\_ACEOF
23059 \`$as_me' instantiates files from templates according to the
23060 current configuration.
23062 Usage: $0 [OPTIONS] [FILE]...
23064 -h, --help print this help, then exit
23065 -V, --version print version number, then exit
23066 -q, --quiet do not print progress messages
23067 -d, --debug don't remove temporary files
23068 --recheck update $as_me by reconfiguring in the same conditions
23069 --file=FILE[:TEMPLATE]
23070 instantiate the configuration file FILE
23071 --header=FILE[:TEMPLATE]
23072 instantiate the configuration header FILE
23074 Configuration files:
23077 Configuration headers:
23080 Configuration commands:
23083 Report bugs to <bug-autoconf@gnu.org>."
23086 cat >>$CONFIG_STATUS <<_ACEOF
23088 LLVM config.status 3.4svn
23089 configured by $0, generated by GNU Autoconf 2.60,
23090 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23092 Copyright (C) 2006 Free Software Foundation, Inc.
23093 This config.status script is free software; the Free Software Foundation
23094 gives unlimited permission to copy, distribute and modify it."
23101 cat >>$CONFIG_STATUS <<\_ACEOF
23102 # If no file are specified by the user, then we need to provide default
23103 # value. By we need to know if files were specified by the user.
23109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23110 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23121 # Handling of the options.
23122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23125 echo "$ac_cs_version"; exit ;;
23126 --debug | --debu | --deb | --de | --d | -d )
23128 --file | --fil | --fi | --f )
23130 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23131 ac_need_defaults=false;;
23132 --header | --heade | --head | --hea )
23134 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23135 ac_need_defaults=false;;
23137 # Conflict between --help and --header
23138 { echo "$as_me: error: ambiguous option: $1
23139 Try \`$0 --help' for more information." >&2
23140 { (exit 1); exit 1; }; };;
23141 --help | --hel | -h )
23142 echo "$ac_cs_usage"; exit ;;
23143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23147 # This is an error.
23148 -*) { echo "$as_me: error: unrecognized option: $1
23149 Try \`$0 --help' for more information." >&2
23150 { (exit 1); exit 1; }; } ;;
23152 *) ac_config_targets="$ac_config_targets $1"
23153 ac_need_defaults=false ;;
23159 ac_configure_extra_args=
23161 if $ac_cs_silent; then
23163 ac_configure_extra_args="$ac_configure_extra_args --silent"
23167 cat >>$CONFIG_STATUS <<_ACEOF
23168 if \$ac_cs_recheck; then
23169 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23170 CONFIG_SHELL=$SHELL
23171 export CONFIG_SHELL
23172 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23176 cat >>$CONFIG_STATUS <<\_ACEOF
23180 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23181 ## Running $as_me. ##
23187 cat >>$CONFIG_STATUS <<_ACEOF
23191 llvm_src="${srcdir}"
23195 cat >>$CONFIG_STATUS <<\_ACEOF
23197 # Handling of arguments.
23198 for ac_config_target in $ac_config_targets
23200 case $ac_config_target in
23201 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23202 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23203 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23204 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23205 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23206 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23207 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23208 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23209 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23210 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23211 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23212 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23213 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23214 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23215 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23216 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23217 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23218 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23219 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23220 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23221 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23222 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23223 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23224 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23225 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23226 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23227 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23229 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23231 { (exit 1); exit 1; }; };;
23236 # If the user did not use the arguments to specify the items to instantiate,
23237 # then the envvar interface is used. Set only those that are not.
23238 # We use the long form for the default assignment because of an extremely
23239 # bizarre bug on SunOS 4.1.3.
23240 if $ac_need_defaults; then
23241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23243 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23246 # Have a temporary directory for convenience. Make it in the build tree
23247 # simply because there is no reason against having it here, and in addition,
23248 # creating and moving files from /tmp can sometimes cause problems.
23249 # Hook for its removal unless debugging.
23250 # Note that there is a small window in which the directory will not be cleaned:
23251 # after its creation but before its name has been assigned to `$tmp'.
23255 trap 'exit_status=$?
23256 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23258 trap '{ (exit 1); exit 1; }' 1 2 13 15
23260 # Create a (secure) tmp directory for tmp files.
23263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23264 test -n "$tmp" && test -d "$tmp"
23267 tmp=./conf$$-$RANDOM
23268 (umask 077 && mkdir "$tmp")
23271 echo "$me: cannot create a temporary directory in ." >&2
23272 { (exit 1); exit 1; }
23276 # Set up the sed scripts for CONFIG_FILES section.
23279 # No need to generate the scripts if there are no CONFIG_FILES.
23280 # This happens for instance when ./config.status config.h
23281 if test -n "$CONFIG_FILES"; then
23288 for ac_last_try in false false false false false :; do
23289 cat >conf$$subs.sed <<_ACEOF
23290 SHELL!$SHELL$ac_delim
23291 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23292 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23293 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23294 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23295 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23296 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23297 exec_prefix!$exec_prefix$ac_delim
23298 prefix!$prefix$ac_delim
23299 program_transform_name!$program_transform_name$ac_delim
23300 bindir!$bindir$ac_delim
23301 sbindir!$sbindir$ac_delim
23302 libexecdir!$libexecdir$ac_delim
23303 datarootdir!$datarootdir$ac_delim
23304 datadir!$datadir$ac_delim
23305 sysconfdir!$sysconfdir$ac_delim
23306 sharedstatedir!$sharedstatedir$ac_delim
23307 localstatedir!$localstatedir$ac_delim
23308 includedir!$includedir$ac_delim
23309 oldincludedir!$oldincludedir$ac_delim
23310 docdir!$docdir$ac_delim
23311 infodir!$infodir$ac_delim
23312 htmldir!$htmldir$ac_delim
23313 dvidir!$dvidir$ac_delim
23314 pdfdir!$pdfdir$ac_delim
23315 psdir!$psdir$ac_delim
23316 libdir!$libdir$ac_delim
23317 localedir!$localedir$ac_delim
23318 mandir!$mandir$ac_delim
23319 DEFS!$DEFS$ac_delim
23320 ECHO_C!$ECHO_C$ac_delim
23321 ECHO_N!$ECHO_N$ac_delim
23322 ECHO_T!$ECHO_T$ac_delim
23323 LIBS!$LIBS$ac_delim
23324 build_alias!$build_alias$ac_delim
23325 host_alias!$host_alias$ac_delim
23326 target_alias!$target_alias$ac_delim
23327 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23329 CFLAGS!$CFLAGS$ac_delim
23330 LDFLAGS!$LDFLAGS$ac_delim
23331 CPPFLAGS!$CPPFLAGS$ac_delim
23332 ac_ct_CC!$ac_ct_CC$ac_delim
23333 EXEEXT!$EXEEXT$ac_delim
23334 OBJEXT!$OBJEXT$ac_delim
23336 CXXFLAGS!$CXXFLAGS$ac_delim
23337 ac_ct_CXX!$ac_ct_CXX$ac_delim
23339 subdirs!$subdirs$ac_delim
23340 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23341 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23342 build!$build$ac_delim
23343 build_cpu!$build_cpu$ac_delim
23344 build_vendor!$build_vendor$ac_delim
23345 build_os!$build_os$ac_delim
23346 host!$host$ac_delim
23347 host_cpu!$host_cpu$ac_delim
23348 host_vendor!$host_vendor$ac_delim
23349 host_os!$host_os$ac_delim
23350 target!$target$ac_delim
23351 target_cpu!$target_cpu$ac_delim
23352 target_vendor!$target_vendor$ac_delim
23353 target_os!$target_os$ac_delim
23355 HOST_OS!$HOST_OS$ac_delim
23356 TARGET_OS!$TARGET_OS$ac_delim
23357 LINKALL!$LINKALL$ac_delim
23358 NOLINKALL!$NOLINKALL$ac_delim
23359 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23360 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23361 ARCH!$ARCH$ac_delim
23362 HOST_ARCH!$HOST_ARCH$ac_delim
23363 ENDIAN!$ENDIAN$ac_delim
23364 GREP!$GREP$ac_delim
23365 EGREP!$EGREP$ac_delim
23366 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23367 BUILD_CC!$BUILD_CC$ac_delim
23368 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23369 BUILD_CXX!$BUILD_CXX$ac_delim
23370 CVSBUILD!$CVSBUILD$ac_delim
23371 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23372 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23373 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23374 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23375 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23376 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23377 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23378 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23379 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23380 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23381 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23382 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23383 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23384 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23385 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23391 elif $ac_last_try; then
23392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23393 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23394 { (exit 1); exit 1; }; }
23396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23400 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23401 if test -n "$ac_eof"; then
23402 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23403 ac_eof=`expr $ac_eof + 1`
23406 cat >>$CONFIG_STATUS <<_ACEOF
23407 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23411 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23412 s/^/s,@/; s/!/@,|#_!!_#|/
23415 s/'"$ac_delim"'$/,g/; t
23417 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23418 ' >>$CONFIG_STATUS <conf$$subs.sed
23419 rm -f conf$$subs.sed
23420 cat >>$CONFIG_STATUS <<_ACEOF
23426 for ac_last_try in false false false false false :; do
23427 cat >conf$$subs.sed <<_ACEOF
23428 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23429 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23430 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23431 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23432 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23433 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23434 ENABLE_PIC!$ENABLE_PIC$ac_delim
23435 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23436 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23437 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23438 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23439 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23440 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23441 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23442 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23443 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23444 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23445 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23446 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23447 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23448 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23449 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23451 ifGNUmake!$ifGNUmake$ac_delim
23452 LN_S!$LN_S$ac_delim
23455 DATE!$DATE$ac_delim
23456 FIND!$FIND$ac_delim
23457 MKDIR!$MKDIR$ac_delim
23459 RANLIB!$RANLIB$ac_delim
23464 BINPWD!$BINPWD$ac_delim
23465 GRAPHVIZ!$GRAPHVIZ$ac_delim
23468 NEATO!$NEATO$ac_delim
23469 TWOPI!$TWOPI$ac_delim
23470 CIRCO!$CIRCO$ac_delim
23472 DOTTY!$DOTTY$ac_delim
23473 XDOT_PY!$XDOT_PY$ac_delim
23474 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23475 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23476 INSTALL_DATA!$INSTALL_DATA$ac_delim
23477 BZIP2!$BZIP2$ac_delim
23479 DOXYGEN!$DOXYGEN$ac_delim
23480 GROFF!$GROFF$ac_delim
23481 GZIPBIN!$GZIPBIN$ac_delim
23482 PDFROFF!$PDFROFF$ac_delim
23484 OCAMLC!$OCAMLC$ac_delim
23485 OCAMLOPT!$OCAMLOPT$ac_delim
23486 OCAMLDEP!$OCAMLDEP$ac_delim
23487 OCAMLDOC!$OCAMLDOC$ac_delim
23489 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23490 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23491 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23492 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23493 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23494 LIBADD_DL!$LIBADD_DL$ac_delim
23495 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23496 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23497 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23498 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23499 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23500 PYTHON!$PYTHON$ac_delim
23501 USE_UDIS86!$USE_UDIS86$ac_delim
23502 USE_OPROFILE!$USE_OPROFILE$ac_delim
23503 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23504 XML2CONFIG!$XML2CONFIG$ac_delim
23505 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23506 LIBXML2_INC!$LIBXML2_INC$ac_delim
23507 CXXCPP!$CXXCPP$ac_delim
23508 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23509 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23510 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23511 MMAP_FILE!$MMAP_FILE$ac_delim
23512 SHLIBEXT!$SHLIBEXT$ac_delim
23513 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23514 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23515 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23516 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23517 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23518 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23519 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23520 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23521 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23522 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23523 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23524 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23527 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23529 elif $ac_last_try; then
23530 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23531 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23532 { (exit 1); exit 1; }; }
23534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23538 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23539 if test -n "$ac_eof"; then
23540 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23541 ac_eof=`expr $ac_eof + 1`
23544 cat >>$CONFIG_STATUS <<_ACEOF
23545 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23549 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23550 s/^/s,@/; s/!/@,|#_!!_#|/
23553 s/'"$ac_delim"'$/,g/; t
23555 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23556 ' >>$CONFIG_STATUS <conf$$subs.sed
23557 rm -f conf$$subs.sed
23558 cat >>$CONFIG_STATUS <<_ACEOF
23564 for ac_last_try in false false false false false :; do
23565 cat >conf$$subs.sed <<_ACEOF
23566 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23567 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23568 RPATH!$RPATH$ac_delim
23569 RDYNAMIC!$RDYNAMIC$ac_delim
23570 program_prefix!$program_prefix$ac_delim
23571 LIBOBJS!$LIBOBJS$ac_delim
23572 LTLIBOBJS!$LTLIBOBJS$ac_delim
23575 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23577 elif $ac_last_try; then
23578 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23579 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23580 { (exit 1); exit 1; }; }
23582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23586 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23587 if test -n "$ac_eof"; then
23588 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23589 ac_eof=`expr $ac_eof + 1`
23592 cat >>$CONFIG_STATUS <<_ACEOF
23593 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23597 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23598 s/^/s,@/; s/!/@,|#_!!_#|/
23601 s/'"$ac_delim"'$/,g/; t
23603 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23604 ' >>$CONFIG_STATUS <conf$$subs.sed
23605 rm -f conf$$subs.sed
23606 cat >>$CONFIG_STATUS <<_ACEOF
23613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23615 # trailing colons and then remove the whole line if VPATH becomes empty
23616 # (actually we leave an empty line to preserve line numbers).
23617 if test "x$srcdir" = x.; then
23618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23619 s/:*\$(srcdir):*/:/
23620 s/:*\${srcdir}:*/:/
23622 s/^\([^=]*=[ ]*\):*/\1/
23628 cat >>$CONFIG_STATUS <<\_ACEOF
23629 fi # test -n "$CONFIG_FILES"
23632 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23635 :[FHLC]) ac_mode=$ac_tag; continue;;
23637 case $ac_mode$ac_tag in
23639 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23640 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23641 { (exit 1); exit 1; }; };;
23642 :[FH]-) ac_tag=-:-;;
23643 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23660 -) ac_f="$tmp/stdin";;
23661 *) # Look for the file first in the build tree, then in the source tree
23662 # (if the path is not absolute). The absolute path cannot be DOS-style,
23663 # because $ac_f cannot contain `:'.
23667 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23669 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23670 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23671 { (exit 1); exit 1; }; };;
23673 ac_file_inputs="$ac_file_inputs $ac_f"
23676 # Let's still pretend it is `configure' which instantiates (i.e., don't
23677 # use $as_me), people would be surprised to read:
23678 # /* config.h. Generated by config.status. */
23679 configure_input="Generated from "`IFS=:
23680 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23681 if test x"$ac_file" != x-; then
23682 configure_input="$ac_file. $configure_input"
23683 { echo "$as_me:$LINENO: creating $ac_file" >&5
23684 echo "$as_me: creating $ac_file" >&6;}
23688 *:-:* | *:-) cat >"$tmp/stdin";;
23693 ac_dir=`$as_dirname -- "$ac_file" ||
23694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23695 X"$ac_file" : 'X\(//\)[^/]' \| \
23696 X"$ac_file" : 'X\(//\)$' \| \
23697 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23703 /^X\(\/\/\)[^/].*/{
23718 -*) as_dir=./$as_dir;;
23720 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23724 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23725 *) as_qdir=$as_dir;;
23727 as_dirs="'$as_qdir' $as_dirs"
23728 as_dir=`$as_dirname -- "$as_dir" ||
23729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23730 X"$as_dir" : 'X\(//\)[^/]' \| \
23731 X"$as_dir" : 'X\(//\)$' \| \
23732 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23738 /^X\(\/\/\)[^/].*/{
23751 test -d "$as_dir" && break
23753 test -z "$as_dirs" || eval "mkdir $as_dirs"
23754 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23755 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23756 { (exit 1); exit 1; }; }; }
23760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23762 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23763 # A ".." for each directory in $ac_dir_suffix.
23764 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23765 case $ac_top_builddir_sub in
23766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23770 ac_abs_top_builddir=$ac_pwd
23771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23772 # for backward compatibility:
23773 ac_top_builddir=$ac_top_build_prefix
23776 .) # We are building in place.
23778 ac_top_srcdir=$ac_top_builddir_sub
23779 ac_abs_top_srcdir=$ac_pwd ;;
23780 [\\/]* | ?:[\\/]* ) # Absolute name.
23781 ac_srcdir=$srcdir$ac_dir_suffix;
23782 ac_top_srcdir=$srcdir
23783 ac_abs_top_srcdir=$srcdir ;;
23784 *) # Relative name.
23785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23786 ac_top_srcdir=$ac_top_build_prefix$srcdir
23787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23799 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23800 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23804 cat >>$CONFIG_STATUS <<\_ACEOF
23805 # If the template does not know about datarootdir, expand it.
23806 # FIXME: This hack should be removed a few years after 2.60.
23807 ac_datarootdir_hack=; ac_datarootdir_seen=
23809 case `sed -n '/datarootdir/ {
23818 ' $ac_file_inputs` in
23819 *datarootdir*) ac_datarootdir_seen=yes;;
23820 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23821 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23822 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23824 cat >>$CONFIG_STATUS <<_ACEOF
23825 ac_datarootdir_hack='
23826 s&@datadir@&$datadir&g
23827 s&@docdir@&$docdir&g
23828 s&@infodir@&$infodir&g
23829 s&@localedir@&$localedir&g
23830 s&@mandir@&$mandir&g
23831 s&\\\${datarootdir}&$datarootdir&g' ;;
23835 # Neutralize VPATH when `$srcdir' = `.'.
23836 # Shell code in configure.ac might set extrasub.
23837 # FIXME: do we really want to maintain this feature?
23838 cat >>$CONFIG_STATUS <<_ACEOF
23842 cat >>$CONFIG_STATUS <<\_ACEOF
23844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23845 s&@configure_input@&$configure_input&;t t
23846 s&@top_builddir@&$ac_top_builddir_sub&;t t
23847 s&@srcdir@&$ac_srcdir&;t t
23848 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23849 s&@top_srcdir@&$ac_top_srcdir&;t t
23850 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23851 s&@builddir@&$ac_builddir&;t t
23852 s&@abs_builddir@&$ac_abs_builddir&;t t
23853 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23854 s&@INSTALL@&$ac_INSTALL&;t t
23855 $ac_datarootdir_hack
23856 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23858 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23859 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23860 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23861 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862 which seems to be undefined. Please make sure it is defined." >&5
23863 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23864 which seems to be undefined. Please make sure it is defined." >&2;}
23868 -) cat "$tmp/out"; rm -f "$tmp/out";;
23869 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23878 # Transform confdefs.h into a sed script `conftest.defines', that
23879 # substitutes the proper values into config.h.in to produce config.h.
23880 rm -f conftest.defines conftest.tail
23881 # First, append a space to every undef/define line, to ease matching.
23882 echo 's/$/ /' >conftest.defines
23883 # Then, protect against being on the right side of a sed subst, or in
23884 # an unquoted here document, in config.status. If some macros were
23885 # called several times there might be several #defines for the same
23886 # symbol, which is useless. But do not sort them, since the last
23887 # AC_DEFINE must be honored.
23888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23889 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23890 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23891 # PARAMS is the parameter list in the macro definition--in most cases, it's
23892 # just an empty string.
23893 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23894 ac_dB='\\)[ (].*,\\1define\\2'
23902 s/^[ ]*#[ ]*define[ ][ ]*//
23907 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23908 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23909 ' >>conftest.defines
23911 # Remove the space that was appended to ease matching.
23912 # Then replace #undef with comments. This is necessary, for
23913 # example, in the case of _POSIX_SOURCE, which is predefined and required
23914 # on some systems where configure will not decide to define it.
23915 # (The regexp can be short, since the line contains either #define or #undef.)
23917 s,^[ #]*u.*,/* & */,' >>conftest.defines
23919 # Break up conftest.defines:
23920 ac_max_sed_lines=50
23922 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23923 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23924 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23926 ac_in='$ac_file_inputs'
23927 ac_out='"$tmp/out1"'
23928 ac_nxt='"$tmp/out2"'
23932 # Write a here document:
23933 cat >>$CONFIG_STATUS <<_ACEOF
23934 # First, check the format of the line:
23935 cat >"\$tmp/defines.sed" <<\\CEOF
23936 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23937 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23941 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23943 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23944 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23945 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23946 grep . conftest.tail >/dev/null || break
23947 rm -f conftest.defines
23948 mv conftest.tail conftest.defines
23950 rm -f conftest.defines conftest.tail
23952 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23953 cat >>$CONFIG_STATUS <<\_ACEOF
23954 if test x"$ac_file" != x-; then
23955 echo "/* $configure_input */" >"$tmp/config.h"
23956 cat "$ac_result" >>"$tmp/config.h"
23957 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23958 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23959 echo "$as_me: $ac_file is unchanged" >&6;}
23962 mv "$tmp/config.h" $ac_file
23965 echo "/* $configure_input */"
23971 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23972 echo "$as_me: executing $ac_file commands" >&6;}
23977 case $ac_file$ac_mode in
23978 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23979 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23980 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23981 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23982 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23984 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23986 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23988 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23990 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23992 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23994 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23996 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23998 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24000 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24002 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24009 { (exit 0); exit 0; }
24011 chmod +x $CONFIG_STATUS
24012 ac_clean_files=$ac_clean_files_save
24015 # configure is writing to config.log, and then calls config.status.
24016 # config.status does its own redirection, appending to config.log.
24017 # Unfortunately, on DOS this fails, as config.log is still kept open
24018 # by configure, so config.status won't be able to write to it; its
24019 # output is simply discarded. So we exec the FD to /dev/null,
24020 # effectively closing config.log, so it can be properly (re)opened and
24021 # appended to by config.status. When coming back to configure, we
24022 # need to make the FD available again.
24023 if test "$no_create" != yes; then
24025 ac_config_status_args=
24026 test "$silent" = yes &&
24027 ac_config_status_args="$ac_config_status_args --quiet"
24029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24032 # would make configure fail if this is the last instruction.
24033 $ac_cs_success || { (exit 1); exit 1; }
24037 # CONFIG_SUBDIRS section.
24039 if test "$no_recursion" != yes; then
24041 # Remove --cache-file and --srcdir arguments so they do not pile up.
24042 ac_sub_configure_args=
24044 eval "set x $ac_configure_args"
24048 if test -n "$ac_prev"; then
24053 -cache-file | --cache-file | --cache-fil | --cache-fi \
24054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24055 ac_prev=cache_file ;;
24056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24060 --config-cache | -C)
24062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24072 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24074 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24078 # Always prepend --prefix to ensure using the same prefix
24079 # in subdir configurations.
24080 ac_arg="--prefix=$prefix"
24082 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24084 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24087 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24089 # Do not complain, so a configure script can configure whichever
24090 # parts of a large source tree are present.
24091 test -d "$srcdir/$ac_dir" || continue
24093 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24094 echo "$as_me:$LINENO: $ac_msg" >&5
24098 -*) as_dir=./$as_dir;;
24100 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24104 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24105 *) as_qdir=$as_dir;;
24107 as_dirs="'$as_qdir' $as_dirs"
24108 as_dir=`$as_dirname -- "$as_dir" ||
24109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24110 X"$as_dir" : 'X\(//\)[^/]' \| \
24111 X"$as_dir" : 'X\(//\)$' \| \
24112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24118 /^X\(\/\/\)[^/].*/{
24131 test -d "$as_dir" && break
24133 test -z "$as_dirs" || eval "mkdir $as_dirs"
24134 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24135 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24136 { (exit 1); exit 1; }; }; }
24140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24142 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24143 # A ".." for each directory in $ac_dir_suffix.
24144 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24145 case $ac_top_builddir_sub in
24146 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24147 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24150 ac_abs_top_builddir=$ac_pwd
24151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24152 # for backward compatibility:
24153 ac_top_builddir=$ac_top_build_prefix
24156 .) # We are building in place.
24158 ac_top_srcdir=$ac_top_builddir_sub
24159 ac_abs_top_srcdir=$ac_pwd ;;
24160 [\\/]* | ?:[\\/]* ) # Absolute name.
24161 ac_srcdir=$srcdir$ac_dir_suffix;
24162 ac_top_srcdir=$srcdir
24163 ac_abs_top_srcdir=$srcdir ;;
24164 *) # Relative name.
24165 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24166 ac_top_srcdir=$ac_top_build_prefix$srcdir
24167 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24174 # Check for guested configure; otherwise get Cygnus style configure.
24175 if test -f "$ac_srcdir/configure.gnu"; then
24176 ac_sub_configure=$ac_srcdir/configure.gnu
24177 elif test -f "$ac_srcdir/configure"; then
24178 ac_sub_configure=$ac_srcdir/configure
24179 elif test -f "$ac_srcdir/configure.in"; then
24180 # This should be Cygnus configure.
24181 ac_sub_configure=$ac_aux_dir/configure
24183 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24184 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24188 # The recursion is here.
24189 if test -n "$ac_sub_configure"; then
24190 # Make the cache file name correct relative to the subdirectory.
24191 case $cache_file in
24192 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24193 *) # Relative name.
24194 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24197 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24198 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24199 # The eval makes quoting arguments work.
24200 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24201 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24202 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24203 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24204 { (exit 1); exit 1; }; }