2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
695 ENABLE_EXPENSIVE_CHECKS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
762 HAVE_LINK_VERSION_SCRIPT
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 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.3svn 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.3svn:";;
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-clang-arcmt Enable building of clang ARCMT (default is YES)
1411 --enable-clang-static-analyzer
1412 Enable building of clang Static Analyzer (default is
1414 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1415 --enable-optimized Compile with optimizations enabled (default is NO)
1416 --enable-profiling Compile with profiling enabled (default is NO)
1417 --enable-assertions Compile with assertion checks enabled (default is
1419 --enable-werror Compile with -Werror enabled (default is NO)
1420 --enable-expensive-checks
1421 Compile with expensive debug checks enabled (default
1423 --enable-debug-runtime Build runtime libs with debug symbols (default is
1425 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1426 optimization is on and YES if it's off)
1427 --enable-keep-symbols Do not strip installed executables)
1428 --enable-jit Enable Just In Time Compiling (default is YES)
1429 --enable-docs Build documents (default is YES)
1430 --enable-doxygen Build doxygen documentation (default is NO)
1431 --enable-threads Use threads if available (default is YES)
1432 --enable-pthreads Use pthreads if available (default is YES)
1433 --enable-zlib Use zlib for compression/decompression if available
1435 --enable-pic Build LLVM with Position Independent Code (default
1437 --enable-shared Build a shared library and link tools against it
1439 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1440 Win32 DLL (default is NO)
1441 --enable-timestamps Enable embedding timestamp information in build
1443 --enable-backtraces Enable embedding backtraces on crash (default is
1445 --enable-targets Build specific host targets: all or
1446 target1,target2,... Valid targets are: host, x86,
1447 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1448 xcore, msp430, nvptx, systemz, and cpp (default=all)
1449 --enable-experimental-targets
1450 Build experimental host targets: disable or
1451 target1,target2,... (default=disable)
1452 --enable-bindings Build specific language bindings:
1453 all,auto,none,{binding-name} (default=auto)
1454 --enable-libffi Check for the presence of libffi (default is NO)
1455 --enable-ltdl-install install libltdl
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-optimize-option Select the compiler options to use for optimized
1462 --with-extra-options Specify additional options to compile LLVM with
1463 --with-extra-ld-options Specify additional options to link LLVM with
1464 --with-ocaml-libdir Specify install location for ocaml bindings (default
1466 --with-clang-srcdir Directory to the out-of-tree Clang source
1467 --with-clang-resource-dir
1468 Relative directory from the Clang binary for
1470 --with-c-include-dirs Colon separated list of directories clang will
1472 --with-gcc-toolchain Directory where gcc is installed.
1473 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1474 --with-binutils-include Specify path to binutils/include/ containing
1475 plugin-api.h file for gold plugin.
1476 --with-bug-report-url Specify the URL where bug reports should be
1477 submitted (default=http://llvm.org/bugs/)
1478 --with-internal-prefix Installation directory for internal files
1479 --with-python path to python
1480 --with-udis86=<path> Use udis86 external x86 disassembler library
1481 --with-oprofile=<prefix>
1482 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1496 CXXCPP C++ preprocessor
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to <http://llvm.org/bugs/>.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" || continue
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1529 .) # We are building in place.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1562 LLVM configure 3.3svn
1563 generated by GNU Autoconf 2.60
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1570 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1578 It was created by LLVM $as_me 3.3svn, which was
1579 generated by GNU Autoconf 2.60. Invocation command line was
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1600 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1601 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1604 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1605 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1606 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 test -z "$as_dir" && as_dir=.
1615 echo "PATH: $as_dir"
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_must_keep_next=false
1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647 | -silent | --silent | --silen | --sile | --sil)
1650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656 if test $ac_must_keep_next = true; then
1657 ac_must_keep_next=false # Got value, back to normal.
1660 *=* | --config-cache | -C | -disable-* | --disable-* \
1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663 | -with-* | --with-* | -without-* | --without-* | --x)
1664 case "$ac_configure_args0 " in
1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 -* ) ac_must_keep_next=true ;;
1671 ac_configure_args="$ac_configure_args '$ac_arg'"
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log. We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685 # Save into config.log some information that might help in debugging.
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1695 # The following way of writing the cache mishandles newlines in values,
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 _ | IFS | as_nl) ;; #(
1707 *) $as_unset $ac_var ;;
1712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
1715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1732 for ac_var in $ac_subst_vars
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 echo "$ac_var='\''$ac_val'\''"
1742 if test -n "$ac_subst_files"; then
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1749 for ac_var in $ac_subst_files
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1760 if test -s confdefs.h; then
1770 test "$ac_signal" != 0 &&
1771 echo "$as_me: caught signal $ac_signal"
1772 echo "$as_me: exit $exit_status"
1774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 for ac_signal in 1 2 13 15; do
1779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1786 # Predefined preprocessor variables.
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816 set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 set x "$ac_default_prefix/share/config.site" \
1821 "$ac_default_prefix/etc/config.site"
1826 if test -r "$ac_site_file"; then
1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829 sed 's/^/| /' "$ac_site_file" >&5
1834 if test -r "$cache_file"; then
1835 # Some versions of bash will fail to source /dev/null (special
1836 # files actually), so we avoid doing that.
1837 if test -f "$cache_file"; then
1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
1846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1851 # Check that the precious variables saved in the cache have kept the same
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
1859 case $ac_old_set,$ac_new_set in
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
1871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1874 echo "$as_me: former value: $ac_old_val" >&2;}
1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1876 echo "$as_me: current value: $ac_new_val" >&2;}
1877 ac_cache_corrupted=:
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892 if $ac_cache_corrupted; then
1893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 3
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952 if test -f "$ac_dir/install-sh"; then
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1956 elif test -f "$ac_dir/install.sh"; then
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1960 elif test -f "$ac_dir/shtool"; then
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1966 if test -z "$ac_aux_dir"; then
1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969 { (exit 1); exit 1; }; }
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1982 if test ${srcdir} != "." ; then
1983 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986 { (exit 1); exit 1; }; }
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999 for ac_prog in clang llvm-gcc gcc
2001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$CC"; then
2009 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 if test -n "$CC"; then
2030 { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2033 { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2038 test -n "$CC" && break
2041 if test -z "$CC"; then
2043 for ac_prog in clang llvm-gcc gcc
2045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$ac_ct_CC"; then
2053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062 ac_cv_prog_ac_ct_CC="$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2077 { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2082 test -n "$ac_ct_CC" && break
2085 if test "x$ac_ct_CC" = x; then
2088 case $cross_compiling:$ac_tool_warned in
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet. If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet. If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler --version >&5") 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler -v >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -V >&5") 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort. b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions. Remove them first so a
2174 # subsequent execution test works.
2176 for ac_file in $ac_files
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2185 if { (ac_try="$ac_link_default"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191 (eval "$ac_link_default") 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; then
2195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2200 for ac_file in $ac_files
2202 test -f "$ac_file" || continue
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2207 # We found the default executable, but exeext='' is most
2211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215 # We set ac_cv_exeext here because the later test for it is not
2216 # safe: cross compilers may not add the suffix if given an `-o'
2217 # argument, so we may need to know it at that point already.
2218 # Even if this section looks crufty: it has the advantage of
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235 { (exit 77); exit 77; }; }
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2242 # Check that the compiler produces executables we can run. If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249 if { ac_try='./$ac_file'
2250 { (case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_try") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 if test "$cross_compiling" = maybe; then
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294 (eval "$ac_link") 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 for ac_file in conftest.exe conftest conftest.*; do
2303 test -f "$ac_file" || continue
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353 (eval "$ac_compile") 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 for ac_file in conftest.o conftest.obj conftest.*; do
2358 test -f "$ac_file" || continue;
2360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373 { (exit 1); exit 1; }; }
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_compile") 2>conftest.er1
2414 grep -v '^ *+' conftest.er1 >conftest.err
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420 { (case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_try") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 ac_save_c_werror_flag=$ac_c_werror_flag
2462 ac_c_werror_flag=yes
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_compile") 2>conftest.er1
2489 grep -v '^ *+' conftest.er1 >conftest.err
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550 { (case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_try") 2>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 ac_c_werror_flag=$ac_save_c_werror_flag
2576 cat >conftest.$ac_ext <<_ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606 { (case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_try") 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645 CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647 if test "$GCC" = yes; then
2653 if test "$GCC" = yes; then
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 ac_cv_prog_cc_c89=no
2666 cat >conftest.$ac_ext <<_ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2690 s = g (p, va_arg (v,int));
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2696 function prototypes and stuff, but not '\xHH' hex character constants.
2697 These don't provoke an error unfortunately, instead are silently treated
2698 as 'x'. The following induces an error, until -std is added to get
2699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2700 array size at least. It's necessary to write '\x00'==0 to get something
2701 that's true only with -std. */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705 inside strings and character constants. */
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compile") 2>conftest.er1
2736 grep -v '^ *+' conftest.er1 >conftest.err
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742 { (case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_try") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_prog_cc_c89=$ac_arg
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2769 rm -f core conftest.err conftest.$ac_objext
2770 test "x$ac_cv_prog_cc_c89" != "xno" && break
2772 rm -f conftest.$ac_ext
2777 case "x$ac_cv_prog_cc_c89" in
2779 { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2782 { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2785 CC="$CC $ac_cv_prog_cc_c89"
2786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803 if test -n "$CCC"; then
2806 if test -n "$ac_tool_prefix"; then
2807 for ac_prog in clang++ llvm-g++ g++
2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CXX"; then
2817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CXX"; then
2838 { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2846 test -n "$CXX" && break
2849 if test -z "$CXX"; then
2851 for ac_prog in clang++ llvm-g++ g++
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CXX"; then
2861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_CXX="$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2890 test -n "$ac_ct_CXX" && break
2893 if test "x$ac_ct_CXX" = x; then
2896 case $cross_compiling:$ac_tool_warned in
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet. If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet. If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler --version >&5") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler -v >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -V >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026 ac_cxx_werror_flag=yes
3029 cat >conftest.$ac_ext <<_ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_cv_prog_cxx_g=yes
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_prog_cxx_g=yes
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209 CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211 if test "$GXX" = yes; then
3217 if test "$GXX" = yes; then
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3240 if test -z "$CPP"; then
3241 if test "${ac_cv_prog_CPP+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 # Double quotes because CPP needs to be expanded
3245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 for ac_c_preproc_warn_flag in '' yes
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3263 # include <limits.h>
3265 # include <assert.h>
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291 if test -z "$ac_cpp_err"; then
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 # Broken: fails on valid input.
3301 rm -f conftest.err conftest.$ac_ext
3303 # OK, works on sane cases. Now check whether nonexistent headers
3304 # can be detected and how.
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <ac_nonexistent.h>
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3335 if test -z "$ac_cpp_err"; then
3336 # Broken: success on invalid input.
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 # Passes both tests.
3347 rm -f conftest.err conftest.$ac_ext
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3367 for ac_c_preproc_warn_flag in '' yes
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3382 # include <limits.h>
3384 # include <assert.h>
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410 if test -z "$ac_cpp_err"; then
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Broken: fails on valid input.
3420 rm -f conftest.err conftest.$ac_ext
3422 # OK, works on sane cases. Now check whether nonexistent headers
3423 # can be detected and how.
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <ac_nonexistent.h>
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 if test -z "$ac_cpp_err"; then
3455 # Broken: success on invalid input.
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Passes both tests.
3466 rm -f conftest.err conftest.$ac_ext
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478 { (exit 1); exit 1; }; }
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 if test "$CXX" = "clang++" ; then
3489 { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3505 #if __has_include (<cxxabi.h>)
3508 #if __has_include (<unwind.h>)
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_try") 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest.$ac_objext'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3555 { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565 { { 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
3566 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;}
3567 { (exit 1); exit 1; }; }
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 if test -d ${srcdir}/projects/llvm-gcc ; then
3583 subdirs="$subdirs projects/llvm-gcc"
3587 if test -d ${srcdir}/projects/test-suite ; then
3588 subdirs="$subdirs projects/test-suite"
3592 if test -d ${srcdir}/projects/llvm-test ; then
3593 subdirs="$subdirs projects/llvm-test"
3597 if test -d ${srcdir}/projects/poolalloc ; then
3598 subdirs="$subdirs projects/poolalloc"
3602 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3603 subdirs="$subdirs projects/llvm-poolalloc"
3607 for i in `ls ${srcdir}/projects`
3609 if test -d ${srcdir}/projects/${i} ; then
3611 sample) subdirs="$subdirs projects/sample"
3613 privbracket) subdirs="$subdirs projects/privbracket"
3615 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3617 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3619 llvm-java) subdirs="$subdirs projects/llvm-java"
3621 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3623 safecode) subdirs="$subdirs projects/safecode"
3625 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3634 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3635 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3641 # Check whether --enable-polly was given.
3642 if test "${enable_polly+set}" = set; then
3643 enableval=$enable_polly;
3648 case "$enableval" in
3653 default) ENABLE_POLLY=1
3655 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3656 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3657 { (exit 1); exit 1; }; } ;;
3661 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3664 subdirs="$subdirs tools/polly"
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673 { (exit 1); exit 1; }; }
3675 { echo "$as_me:$LINENO: checking build system type" >&5
3676 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677 if test "${ac_cv_build+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 ac_build_alias=$build_alias
3681 test "x$ac_build_alias" = x &&
3682 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683 test "x$ac_build_alias" = x &&
3684 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686 { (exit 1); exit 1; }; }
3687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690 { (exit 1); exit 1; }; }
3693 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694 echo "${ECHO_T}$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698 echo "$as_me: error: invalid value of canonical build" >&2;}
3699 { (exit 1); exit 1; }; };;
3702 ac_save_IFS=$IFS; IFS='-'
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3715 { echo "$as_me:$LINENO: checking host system type" >&5
3716 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717 if test "${ac_cv_host+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 if test "x$host_alias" = x; then
3721 ac_cv_host=$ac_cv_build
3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726 { (exit 1); exit 1; }; }
3730 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731 echo "${ECHO_T}$ac_cv_host" >&6; }
3734 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735 echo "$as_me: error: invalid value of canonical host" >&2;}
3736 { (exit 1); exit 1; }; };;
3739 ac_save_IFS=$IFS; IFS='-'
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3752 { echo "$as_me:$LINENO: checking target system type" >&5
3753 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3754 if test "${ac_cv_target+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 if test "x$target_alias" = x; then
3758 ac_cv_target=$ac_cv_host
3760 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3761 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3762 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3763 { (exit 1); exit 1; }; }
3767 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3768 echo "${ECHO_T}$ac_cv_target" >&6; }
3769 case $ac_cv_target in
3771 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3772 echo "$as_me: error: invalid value of canonical target" >&2;}
3773 { (exit 1); exit 1; }; };;
3775 target=$ac_cv_target
3776 ac_save_IFS=$IFS; IFS='-'
3782 # Remember, the first character of IFS is used to create $*,
3783 # except with old shells:
3786 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3789 # The aliases save the names the user supplied, while $host etc.
3790 # will get canonicalized.
3791 test -n "$target_alias" &&
3792 test "$program_prefix$program_suffix$program_transform_name" = \
3794 program_prefix=${target_alias}-
3796 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3797 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3798 if test "${llvm_cv_os_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 llvm_cv_link_all_option="-Wl,--whole-archive"
3804 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805 llvm_cv_os_type="AIX"
3806 llvm_cv_platform_type="Unix" ;;
3808 llvm_cv_link_all_option="-Wl,--whole-archive"
3809 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810 llvm_cv_os_type="IRIX"
3811 llvm_cv_platform_type="Unix" ;;
3813 llvm_cv_link_all_option="-Wl,--whole-archive"
3814 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815 llvm_cv_os_type="Cygwin"
3816 llvm_cv_platform_type="Unix" ;;
3818 llvm_cv_link_all_option="-Wl,-all_load"
3819 llvm_cv_no_link_all_option="-Wl,-noall_load"
3820 llvm_cv_os_type="Darwin"
3821 llvm_cv_platform_type="Unix" ;;
3823 llvm_cv_link_all_option="-Wl,-all_load"
3824 llvm_cv_no_link_all_option="-Wl,-noall_load"
3825 llvm_cv_os_type="Minix"
3826 llvm_cv_platform_type="Unix" ;;
3827 *-*-freebsd* | *-*-kfreebsd-gnu)
3828 llvm_cv_link_all_option="-Wl,--whole-archive"
3829 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830 llvm_cv_os_type="FreeBSD"
3831 llvm_cv_platform_type="Unix" ;;
3833 llvm_cv_link_all_option="-Wl,--whole-archive"
3834 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835 llvm_cv_os_type="OpenBSD"
3836 llvm_cv_platform_type="Unix" ;;
3838 llvm_cv_link_all_option="-Wl,--whole-archive"
3839 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840 llvm_cv_os_type="NetBSD"
3841 llvm_cv_platform_type="Unix" ;;
3843 llvm_cv_link_all_option="-Wl,--whole-archive"
3844 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845 llvm_cv_os_type="DragonFly"
3846 llvm_cv_platform_type="Unix" ;;
3848 llvm_cv_link_all_option="-Wl,--whole-archive"
3849 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850 llvm_cv_os_type="HP-UX"
3851 llvm_cv_platform_type="Unix" ;;
3853 llvm_cv_link_all_option="-Wl,--whole-archive"
3854 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855 llvm_cv_os_type="Interix"
3856 llvm_cv_platform_type="Unix" ;;
3858 llvm_cv_link_all_option="-Wl,--whole-archive"
3859 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860 llvm_cv_os_type="Linux"
3861 llvm_cv_platform_type="Unix" ;;
3863 llvm_cv_link_all_option="-Wl,--whole-archive"
3864 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865 llvm_cv_os_type="GNU"
3866 llvm_cv_platform_type="Unix" ;;
3868 llvm_cv_link_all_option="-Wl,-z,allextract"
3869 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3870 llvm_cv_os_type="SunOS"
3871 llvm_cv_platform_type="Unix" ;;
3873 llvm_cv_link_all_option="-Wl,-z,allextract"
3874 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3875 llvm_cv_os_type="AuroraUX"
3876 llvm_cv_platform_type="Unix" ;;
3878 llvm_cv_link_all_option="-Wl,--whole-archive"
3879 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880 llvm_cv_os_type="Win32"
3881 llvm_cv_platform_type="Win32" ;;
3883 llvm_cv_link_all_option="-Wl,--whole-archive"
3884 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885 llvm_cv_os_type="MingW"
3886 llvm_cv_platform_type="Win32" ;;
3888 llvm_cv_link_all_option="-Wl,--whole-archive"
3889 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890 llvm_cv_os_type="Haiku"
3891 llvm_cv_platform_type="Unix" ;;
3893 llvm_cv_link_all_option="-Wl,--whole-archive"
3894 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895 llvm_cv_os_type="Freestanding"
3896 llvm_cv_platform_type="Unix" ;;
3898 llvm_cv_link_all_option="-Wl,--whole-archive"
3899 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900 llvm_cv_os_type="Freestanding"
3901 llvm_cv_platform_type="Unix" ;;
3903 llvm_cv_link_all_option=""
3904 llvm_cv_no_link_all_option=""
3905 llvm_cv_os_type="Unknown"
3906 llvm_cv_platform_type="Unknown" ;;
3909 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3910 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3912 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3913 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3914 if test "${llvm_cv_target_os_type+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 llvm_cv_target_os_type="AIX" ;;
3921 llvm_cv_target_os_type="IRIX" ;;
3923 llvm_cv_target_os_type="Cygwin" ;;
3925 llvm_cv_target_os_type="Darwin" ;;
3927 llvm_cv_target_os_type="Minix" ;;
3928 *-*-freebsd* | *-*-kfreebsd-gnu)
3929 llvm_cv_target_os_type="FreeBSD" ;;
3931 llvm_cv_target_os_type="OpenBSD" ;;
3933 llvm_cv_target_os_type="NetBSD" ;;
3935 llvm_cv_target_os_type="DragonFly" ;;
3937 llvm_cv_target_os_type="HP-UX" ;;
3939 llvm_cv_target_os_type="Interix" ;;
3941 llvm_cv_target_os_type="Linux" ;;
3943 llvm_cv_target_os_type="GNU" ;;
3945 llvm_cv_target_os_type="SunOS" ;;
3947 llvm_cv_target_os_type="AuroraUX" ;;
3949 llvm_cv_target_os_type="Win32" ;;
3951 llvm_cv_target_os_type="MingW" ;;
3953 llvm_cv_target_os_type="Haiku" ;;
3955 llvm_cv_target_os_type="RTEMS" ;;
3957 llvm_cv_target_os_type="NativeClient" ;;
3959 llvm_cv_target_os_type="Freestanding" ;;
3961 llvm_cv_target_os_type="Unknown" ;;
3964 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3965 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3967 if test "$llvm_cv_os_type" = "Unknown" ; then
3968 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3969 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3970 { (exit 1); exit 1; }; }
3975 HOST_OS=$llvm_cv_os_type
3977 TARGET_OS=$llvm_cv_target_os_type
3980 LINKALL=$llvm_cv_link_all_option
3982 NOLINKALL=$llvm_cv_no_link_all_option
3985 case $llvm_cv_platform_type in
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_UNIX 1
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_WIN32 1
4010 { echo "$as_me:$LINENO: checking target architecture" >&5
4011 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4012 if test "${llvm_cv_target_arch+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 i?86-*) llvm_cv_target_arch="x86" ;;
4017 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4018 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4019 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4020 arm*-*) llvm_cv_target_arch="ARM" ;;
4021 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4022 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4023 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4024 xcore-*) llvm_cv_target_arch="XCore" ;;
4025 msp430-*) llvm_cv_target_arch="MSP430" ;;
4026 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4027 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4028 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4029 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4030 *) llvm_cv_target_arch="Unknown" ;;
4033 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4034 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4036 if test "$llvm_cv_target_arch" = "Unknown" ; then
4037 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4038 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4041 case "$llvm_cv_target_arch" in
4042 x86) LLVM_NATIVE_ARCH="X86" ;;
4043 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4044 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4047 ARCH=$llvm_cv_target_arch
4051 i?86-*) host_arch="x86" ;;
4052 amd64-* | x86_64-*) host_arch="x86_64" ;;
4053 sparc*-*) host_arch="Sparc" ;;
4054 powerpc*-*) host_arch="PowerPC" ;;
4055 arm*-*) host_arch="ARM" ;;
4056 aarch64*-*) host_arch="AArch64" ;;
4057 mips-* | mips64-*) host_arch="Mips" ;;
4058 mipsel-* | mips64el-*) host_arch="Mips" ;;
4059 xcore-*) host_arch="XCore" ;;
4060 msp430-*) host_arch="MSP430" ;;
4061 hexagon-*) host_arch="Hexagon" ;;
4062 mblaze-*) host_arch="MBlaze" ;;
4063 s390x-*) host_arch="SystemZ" ;;
4064 *) host_arch="Unknown" ;;
4067 if test "$host_arch" = "Unknown" ; then
4068 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4069 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4072 HOST_ARCH=$host_arch
4077 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4078 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4079 if test "${ac_cv_path_GREP+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 # Extract the first word of "grep ggrep" to use in msg output
4083 if test -z "$GREP"; then
4084 set dummy grep ggrep; ac_prog_name=$2
4085 if test "${ac_cv_path_GREP+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 ac_path_GREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in grep ggrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4098 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4099 # Check for GNU ac_path_GREP and select it if it is found.
4100 # Check for GNU $ac_path_GREP
4101 case `"$ac_path_GREP" --version 2>&1` in
4103 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4106 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 echo 'GREP' >> "conftest.nl"
4113 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 ac_count=`expr $ac_count + 1`
4116 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_GREP="$ac_path_GREP"
4119 ac_path_GREP_max=$ac_count
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128 $ac_path_GREP_found && break 3
4138 GREP="$ac_cv_path_GREP"
4139 if test -z "$GREP"; then
4140 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4141 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4142 { (exit 1); exit 1; }; }
4146 ac_cv_path_GREP=$GREP
4151 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4152 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4153 GREP="$ac_cv_path_GREP"
4156 { echo "$as_me:$LINENO: checking for egrep" >&5
4157 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4158 if test "${ac_cv_path_EGREP+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4162 then ac_cv_path_EGREP="$GREP -E"
4164 # Extract the first word of "egrep" to use in msg output
4165 if test -z "$EGREP"; then
4166 set dummy egrep; ac_prog_name=$2
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 ac_path_EGREP_found=false
4171 # Loop through the user's path and test for each of PROGNAME-LIST
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176 test -z "$as_dir" && as_dir=.
4177 for ac_prog in egrep; do
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4180 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4181 # Check for GNU ac_path_EGREP and select it if it is found.
4182 # Check for GNU $ac_path_EGREP
4183 case `"$ac_path_EGREP" --version 2>&1` in
4185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4188 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4191 cat "conftest.in" "conftest.in" >"conftest.tmp"
4192 mv "conftest.tmp" "conftest.in"
4193 cp "conftest.in" "conftest.nl"
4194 echo 'EGREP' >> "conftest.nl"
4195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197 ac_count=`expr $ac_count + 1`
4198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4199 # Best one so far, save it but keep looking for a better one
4200 ac_cv_path_EGREP="$ac_path_EGREP"
4201 ac_path_EGREP_max=$ac_count
4203 # 10*(2^10) chars as input seems more than enough
4204 test $ac_count -gt 10 && break
4206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 $ac_path_EGREP_found && break 3
4220 EGREP="$ac_cv_path_EGREP"
4221 if test -z "$EGREP"; then
4222 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4223 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4224 { (exit 1); exit 1; }; }
4228 ac_cv_path_EGREP=$EGREP
4234 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4235 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4236 EGREP="$ac_cv_path_EGREP"
4239 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4240 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4241 if test "${ac_cv_header_stdc+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4263 rm -f conftest.$ac_objext
4264 if { (ac_try="$ac_compile"
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_compile") 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4278 { (case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_try") 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 ac_cv_header_stdc=yes
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 ac_cv_header_stdc=no
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 if test $ac_cv_header_stdc = yes; then
4308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319 $EGREP "memchr" >/dev/null 2>&1; then
4322 ac_cv_header_stdc=no
4328 if test $ac_cv_header_stdc = yes; then
4329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4340 $EGREP "free" >/dev/null 2>&1; then
4343 ac_cv_header_stdc=no
4349 if test $ac_cv_header_stdc = yes; then
4350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4351 if test "$cross_compiling" = yes; then
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4362 #if ((' ' & 0x0FF) == 0x020)
4363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4366 # define ISLOWER(c) \
4367 (('a' <= (c) && (c) <= 'i') \
4368 || ('j' <= (c) && (c) <= 'r') \
4369 || ('s' <= (c) && (c) <= 'z'))
4370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4378 for (i = 0; i < 256; i++)
4379 if (XOR (islower (i), ISLOWER (i))
4380 || toupper (i) != TOUPPER (i))
4385 rm -f conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_link") 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396 { (case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_try") 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4407 echo "$as_me: program exited with status $ac_status" >&5
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4412 ac_cv_header_stdc=no
4414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4420 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4421 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4422 if test $ac_cv_header_stdc = yes; then
4424 cat >>confdefs.h <<\_ACEOF
4425 #define STDC_HEADERS 1
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441 inttypes.h stdint.h unistd.h
4443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 $ac_includes_default
4457 #include <$ac_header>
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_compile") 2>conftest.er1
4468 grep -v '^ *+' conftest.er1 >conftest.err
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } &&
4473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4474 { (case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_try") 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 eval "$as_ac_Header=yes"
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 eval "$as_ac_Header=no"
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_res=`eval echo '${'$as_ac_Header'}'`
4504 { echo "$as_me:$LINENO: result: $ac_res" >&5
4505 echo "${ECHO_T}$ac_res" >&6; }
4506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507 cat >>confdefs.h <<_ACEOF
4508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4516 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4517 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4518 if test "${ac_cv_c_bigendian+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 # See if sys/param.h defines the BYTE_ORDER macro.
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 #include <sys/types.h>
4529 #include <sys/param.h>
4534 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4542 rm -f conftest.$ac_objext
4543 if { (ac_try="$ac_compile"
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_compile") 2>conftest.er1
4551 grep -v '^ *+' conftest.er1 >conftest.err
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4557 { (case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_try") 2>&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try='test -s conftest.$ac_objext'
4567 { (case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_try") 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 # It does; now see whether it defined to BIG_ENDIAN or not.
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 #include <sys/param.h>
4589 #if BYTE_ORDER != BIG_ENDIAN
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_compile") 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4612 { (case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_try") 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_try") 2>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_cv_c_bigendian=yes
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_cv_c_bigendian=no
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4644 # It does not; compile a test program.
4645 if test "$cross_compiling" = yes; then
4646 # try to guess the endianness by grepping values into an object file
4647 ac_cv_c_bigendian=unknown
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4655 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4656 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4657 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4658 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4659 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4663 _ascii (); _ebcdic ();
4668 rm -f conftest.$ac_objext
4669 if { (ac_try="$ac_compile"
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_compile") 2>conftest.er1
4677 grep -v '^ *+' conftest.er1 >conftest.err
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4683 { (case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_try") 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try='test -s conftest.$ac_objext'
4693 { (case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_try") 2>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4703 ac_cv_c_bigendian=yes
4705 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4706 if test "$ac_cv_c_bigendian" = unknown; then
4707 ac_cv_c_bigendian=no
4709 # finding both strings is unlikely to happen, but who knows?
4710 ac_cv_c_bigendian=unknown
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4733 /* Are we little or big endian? From Harbison&Steele. */
4737 char c[sizeof (long int)];
4740 return u.c[sizeof (long int) - 1] == 1;
4746 rm -f conftest$ac_exeext
4747 if { (ac_try="$ac_link"
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_link") 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4757 { (case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_try") 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 ac_cv_c_bigendian=no
4768 echo "$as_me: program exited with status $ac_status" >&5
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4773 ac_cv_c_bigendian=yes
4775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4784 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4785 case $ac_cv_c_bigendian in
4793 { { echo "$as_me:$LINENO: error: unknown endianness
4794 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4795 echo "$as_me: error: unknown endianness
4796 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4797 { (exit 1); exit 1; }; } ;;
4801 if test "$cross_compiling" = yes; then
4802 LLVM_CROSS_COMPILING=1
4805 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4806 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4807 if test "${ac_cv_build_exeext+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4811 ac_cv_build_exeext=.exe
4813 ac_build_prefix=${build_alias}-
4815 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4816 set dummy ${ac_build_prefix}gcc; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$BUILD_CC"; then
4823 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 BUILD_CC=$ac_cv_prog_BUILD_CC
4843 if test -n "$BUILD_CC"; then
4844 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4845 echo "${ECHO_T}$BUILD_CC" >&6; }
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4852 if test -z "$BUILD_CC"; then
4853 # Extract the first word of "gcc", so it can be a program name with args.
4854 set dummy gcc; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$BUILD_CC"; then
4861 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_BUILD_CC="gcc"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 BUILD_CC=$ac_cv_prog_BUILD_CC
4881 if test -n "$BUILD_CC"; then
4882 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4883 echo "${ECHO_T}$BUILD_CC" >&6; }
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 if test -z "$BUILD_CC"; then
4891 # Extract the first word of "cc", so it can be a program name with args.
4892 set dummy cc; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 if test -n "$BUILD_CC"; then
4899 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4910 ac_prog_rejected=yes
4913 ac_cv_prog_BUILD_CC="cc"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 if test $ac_prog_rejected = yes; then
4922 # We found a bogon in the path, so make sure we never use it.
4923 set dummy $ac_cv_prog_BUILD_CC
4925 if test $# != 0; then
4926 # We chose a different compiler from the bogus one.
4927 # However, it has the same basename, so the bogon will be chosen
4928 # first if we set BUILD_CC to just the basename; use the full file name.
4930 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4935 BUILD_CC=$ac_cv_prog_BUILD_CC
4936 if test -n "$BUILD_CC"; then
4937 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4938 echo "${ECHO_T}$BUILD_CC" >&6; }
4940 { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4947 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4948 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4949 { (exit 1); exit 1; }; }
4950 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4952 echo 'int main () { return 0; }' > conftest.$ac_ext
4954 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4955 (eval $ac_build_link) 2>&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; then
4959 for file in conftest.*; do
4961 *.c | *.o | *.obj | *.dSYM) ;;
4962 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4966 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4967 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4968 { (exit 1); exit 1; }; }
4971 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4976 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4977 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4978 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4979 ac_build_exeext=$BUILD_EXEEXT
4981 ac_build_prefix=${build_alias}-
4982 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4983 set dummy ${ac_build_prefix}g++; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 if test -n "$BUILD_CXX"; then
4990 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5010 if test -n "$BUILD_CXX"; then
5011 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5012 echo "${ECHO_T}$BUILD_CXX" >&6; }
5014 { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5019 if test -z "$BUILD_CXX"; then
5020 # Extract the first word of "g++", so it can be a program name with args.
5021 set dummy g++; ac_word=$2
5022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 if test -n "$BUILD_CXX"; then
5028 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_BUILD_CXX="g++"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5048 if test -n "$BUILD_CXX"; then
5049 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5050 echo "${ECHO_T}$BUILD_CXX" >&6; }
5052 { echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6; }
5057 if test -z "$BUILD_CXX"; then
5058 # Extract the first word of "c++", so it can be a program name with args.
5059 set dummy c++; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 if test -n "$BUILD_CXX"; then
5066 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5077 ac_prog_rejected=yes
5080 ac_cv_prog_BUILD_CXX="c++"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 if test $ac_prog_rejected = yes; then
5089 # We found a bogon in the path, so make sure we never use it.
5090 set dummy $ac_cv_prog_BUILD_CXX
5092 if test $# != 0; then
5093 # We chose a different compiler from the bogus one.
5094 # However, it has the same basename, so the bogon will be chosen
5095 # first if we set BUILD_CXX to just the basename; use the full file name.
5097 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5102 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5103 if test -n "$BUILD_CXX"; then
5104 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5105 echo "${ECHO_T}$BUILD_CXX" >&6; }
5107 { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5115 LLVM_CROSS_COMPILING=0
5119 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5130 # Check whether --enable-libcpp was given.
5131 if test "${enable_libcpp+set}" = set; then
5132 enableval=$enable_libcpp;
5137 case "$enableval" in
5138 yes) ENABLE_LIBCPP=1
5142 default) ENABLE_LIBCPP=0
5144 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5145 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5146 { (exit 1); exit 1; }; } ;;
5149 # Check whether --enable-cxx11 was given.
5150 if test "${enable_cxx11+set}" = set; then
5151 enableval=$enable_cxx11;
5156 case "$enableval" in
5161 default) ENABLE_CXX11=0
5163 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5164 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5165 { (exit 1); exit 1; }; } ;;
5169 # Check whether --enable-clang-arcmt was given.
5170 if test "${enable_clang_arcmt+set}" = set; then
5171 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5176 case "$enableval" in
5177 yes) ENABLE_CLANG_ARCMT=1
5179 no) ENABLE_CLANG_ARCMT=0
5181 default) ENABLE_CLANG_ARCMT=1
5183 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5185 { (exit 1); exit 1; }; } ;;
5188 clang_static_analyzer="yes"
5189 # Check whether --enable-clang-static-analyzer was given.
5190 if test "${enable_clang_static_analyzer+set}" = set; then
5191 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5196 case "$enableval" in
5197 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5199 no) ENABLE_CLANG_STATIC_ANALYZER=0
5201 default) ENABLE_CLANG_STATIC_ANALYZER=1
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 # Check whether --enable-clang-rewriter was given.
5209 if test "${enable_clang_rewriter+set}" = set; then
5210 enableval=$enable_clang_rewriter;
5215 case "$enableval" in
5216 yes) ENABLE_CLANG_REWRITER=1
5219 if test ${clang_arcmt} != "no" ; then
5220 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5221 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5222 { (exit 1); exit 1; }; }
5224 if test ${clang_static_analyzer} != "no" ; then
5225 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5226 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5227 { (exit 1); exit 1; }; }
5229 ENABLE_CLANG_REWRITER=0
5232 default) ENABLE_CLANG_REWRITER=1
5234 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5235 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5236 { (exit 1); exit 1; }; } ;;
5239 # Check whether --enable-optimized was given.
5240 if test "${enable_optimized+set}" = set; then
5241 enableval=$enable_optimized;
5246 if test ${enableval} = "no" ; then
5250 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5254 # Check whether --enable-profiling was given.
5255 if test "${enable_profiling+set}" = set; then
5256 enableval=$enable_profiling;
5261 if test ${enableval} = "no" ; then
5265 ENABLE_PROFILING=ENABLE_PROFILING=1
5269 # Check whether --enable-assertions was given.
5270 if test "${enable_assertions+set}" = set; then
5271 enableval=$enable_assertions;
5276 if test ${enableval} = "yes" ; then
5280 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5284 # Check whether --enable-werror was given.
5285 if test "${enable_werror+set}" = set; then
5286 enableval=$enable_werror;
5291 case "$enableval" in
5292 yes) ENABLE_WERROR=1
5296 default) ENABLE_WERROR=0
5298 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5300 { (exit 1); exit 1; }; } ;;
5303 # Check whether --enable-expensive-checks was given.
5304 if test "${enable_expensive_checks+set}" = set; then
5305 enableval=$enable_expensive_checks;
5310 if test ${enableval} = "yes" ; then
5311 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5313 EXPENSIVE_CHECKS=yes
5316 ENABLE_EXPENSIVE_CHECKS=
5322 # Check whether --enable-debug-runtime was given.
5323 if test "${enable_debug_runtime+set}" = set; then
5324 enableval=$enable_debug_runtime;
5329 if test ${enableval} = "no" ; then
5333 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5337 # Check whether --enable-debug-symbols was given.
5338 if test "${enable_debug_symbols+set}" = set; then
5339 enableval=$enable_debug_symbols;
5344 if test ${enableval} = "no" ; then
5348 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5352 # Check whether --enable-keep-symbols was given.
5353 if test "${enable_keep_symbols+set}" = set; then
5354 enableval=$enable_keep_symbols;
5359 if test ${enableval} = "no" ; then
5363 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5367 # Check whether --enable-jit was given.
5368 if test "${enable_jit+set}" = set; then
5369 enableval=$enable_jit;
5374 if test ${enableval} = "no"
5379 case "$llvm_cv_target_arch" in
5380 x86) TARGET_HAS_JIT=1
5382 Sparc) TARGET_HAS_JIT=0
5384 PowerPC) TARGET_HAS_JIT=1
5386 x86_64) TARGET_HAS_JIT=1
5388 ARM) TARGET_HAS_JIT=1
5390 AArch64) TARGET_HAS_JIT=0
5392 Mips) TARGET_HAS_JIT=1
5394 XCore) TARGET_HAS_JIT=0
5396 MSP430) TARGET_HAS_JIT=0
5398 Hexagon) TARGET_HAS_JIT=0
5400 MBlaze) TARGET_HAS_JIT=0
5402 NVPTX) TARGET_HAS_JIT=0
5404 SystemZ) TARGET_HAS_JIT=1
5411 # Check whether --enable-docs was given.
5412 if test "${enable_docs+set}" = set; then
5413 enableval=$enable_docs;
5418 case "$enableval" in
5423 default) ENABLE_DOCS=1
5425 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5426 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5427 { (exit 1); exit 1; }; } ;;
5430 # Check whether --enable-doxygen was given.
5431 if test "${enable_doxygen+set}" = set; then
5432 enableval=$enable_doxygen;
5437 case "$enableval" in
5438 yes) ENABLE_DOXYGEN=1
5440 no) ENABLE_DOXYGEN=0
5442 default) ENABLE_DOXYGEN=0
5444 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5445 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5446 { (exit 1); exit 1; }; } ;;
5449 # Check whether --enable-threads was given.
5450 if test "${enable_threads+set}" = set; then
5451 enableval=$enable_threads;
5456 case "$enableval" in
5457 yes) LLVM_ENABLE_THREADS=1
5459 no) LLVM_ENABLE_THREADS=0
5461 default) LLVM_ENABLE_THREADS=1
5463 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5464 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5465 { (exit 1); exit 1; }; } ;;
5468 cat >>confdefs.h <<_ACEOF
5469 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5473 # Check whether --enable-pthreads was given.
5474 if test "${enable_pthreads+set}" = set; then
5475 enableval=$enable_pthreads;
5480 case "$enableval" in
5481 yes) ENABLE_PTHREADS=1
5483 no) ENABLE_PTHREADS=0
5485 default) ENABLE_PTHREADS=1
5487 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5488 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5489 { (exit 1); exit 1; }; } ;;
5492 # Check whether --enable-zlib was given.
5493 if test "${enable_zlib+set}" = set; then
5494 enableval=$enable_zlib;
5499 case "$enableval" in
5500 yes) LLVM_ENABLE_ZLIB=1
5502 no) LLVM_ENABLE_ZLIB=0
5504 default) LLVM_ENABLE_ZLIB=1
5506 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5507 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5508 { (exit 1); exit 1; }; } ;;
5511 cat >>confdefs.h <<_ACEOF
5512 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5516 # Check whether --enable-pic was given.
5517 if test "${enable_pic+set}" = set; then
5518 enableval=$enable_pic;
5523 case "$enableval" in
5528 default) ENABLE_PIC=1
5530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5532 { (exit 1); exit 1; }; } ;;
5535 cat >>confdefs.h <<_ACEOF
5536 #define ENABLE_PIC $ENABLE_PIC
5540 # Check whether --enable-shared was given.
5541 if test "${enable_shared+set}" = set; then
5542 enableval=$enable_shared;
5547 case "$enableval" in
5548 yes) ENABLE_SHARED=1
5552 default) ENABLE_SHARED=0
5554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5556 { (exit 1); exit 1; }; } ;;
5559 # Check whether --enable-embed-stdcxx was given.
5560 if test "${enable_embed_stdcxx+set}" = set; then
5561 enableval=$enable_embed_stdcxx;
5566 case "$enableval" in
5567 yes) ENABLE_EMBED_STDCXX=1
5569 no) ENABLE_EMBED_STDCXX=0
5571 default) ENABLE_EMBED_STDCXX=0
5573 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5574 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5575 { (exit 1); exit 1; }; } ;;
5578 # Check whether --enable-timestamps was given.
5579 if test "${enable_timestamps+set}" = set; then
5580 enableval=$enable_timestamps;
5585 case "$enableval" in
5586 yes) ENABLE_TIMESTAMPS=1
5588 no) ENABLE_TIMESTAMPS=0
5590 default) ENABLE_TIMESTAMPS=1
5592 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5593 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5594 { (exit 1); exit 1; }; } ;;
5597 cat >>confdefs.h <<_ACEOF
5598 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5603 # Check whether --enable-backtraces was given.
5604 if test "${enable_backtraces+set}" = set; then
5605 enableval=$enable_backtraces;
5610 case "$enableval" in
5611 yes) ENABLE_BACKTRACES=1
5613 no) ENABLE_BACKTRACES=0
5615 default) ENABLE_BACKTRACES=1
5617 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5618 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5619 { (exit 1); exit 1; }; } ;;
5622 cat >>confdefs.h <<_ACEOF
5623 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5628 # Check whether --enable-targets was given.
5629 if test "${enable_targets+set}" = set; then
5630 enableval=$enable_targets;
5635 if test "$enableval" = host-only ; then
5638 case "$enableval" in
5639 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ" ;;
5640 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5642 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5643 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5644 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5645 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5646 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5647 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5648 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5649 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5652 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5653 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5654 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5655 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5656 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5657 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5658 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5659 host) case "$llvm_cv_target_arch" in
5660 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5661 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5662 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5663 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5664 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5665 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5666 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5667 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5668 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5669 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5670 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5671 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5672 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5673 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5674 echo "$as_me: error: Can not set target to build" >&2;}
5675 { (exit 1); exit 1; }; } ;;
5677 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5678 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5679 { (exit 1); exit 1; }; } ;;
5685 # Check whether --enable-experimental-targets was given.
5686 if test "${enable_experimental_targets+set}" = set; then
5687 enableval=$enable_experimental_targets;
5693 if test ${enableval} != "disable"
5695 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5698 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5701 for a_target in $TARGETS_TO_BUILD; do
5702 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5704 cat >>confdefs.h <<_ACEOF
5705 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5708 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5709 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5710 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5711 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5712 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5713 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5715 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5716 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5719 cat >>confdefs.h <<_ACEOF
5720 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5724 cat >>confdefs.h <<_ACEOF
5725 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5729 cat >>confdefs.h <<_ACEOF
5730 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5734 cat >>confdefs.h <<_ACEOF
5735 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5738 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5740 cat >>confdefs.h <<_ACEOF
5741 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5745 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5747 cat >>confdefs.h <<_ACEOF
5748 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5755 LLVM_ENUM_TARGETS=""
5756 LLVM_ENUM_ASM_PRINTERS=""
5757 LLVM_ENUM_ASM_PARSERS=""
5758 LLVM_ENUM_DISASSEMBLERS=""
5759 for target_to_build in $TARGETS_TO_BUILD; do
5760 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5761 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5762 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5764 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5765 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5767 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5768 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5777 # Check whether --with-optimize-option was given.
5778 if test "${with_optimize_option+set}" = set; then
5779 withval=$with_optimize_option;
5784 { echo "$as_me:$LINENO: checking optimization flags" >&5
5785 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5788 case "$llvm_cv_os_type" in
5789 FreeBSD) optimize_option=-O2 ;;
5790 MingW) optimize_option=-O2 ;;
5791 *) optimize_option=-O3 ;;
5793 *) optimize_option="$withval" ;;
5795 OPTIMIZE_OPTION=$optimize_option
5797 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5798 echo "${ECHO_T}$optimize_option" >&6; }
5801 # Check whether --with-extra-options was given.
5802 if test "${with_extra_options+set}" = set; then
5803 withval=$with_extra_options;
5809 default) EXTRA_OPTIONS= ;;
5810 *) EXTRA_OPTIONS=$withval ;;
5812 EXTRA_OPTIONS=$EXTRA_OPTIONS
5816 # Check whether --with-extra-ld-options was given.
5817 if test "${with_extra_ld_options+set}" = set; then
5818 withval=$with_extra_ld_options;
5824 default) EXTRA_LD_OPTIONS= ;;
5825 *) EXTRA_LD_OPTIONS=$withval ;;
5827 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5830 # Check whether --enable-bindings was given.
5831 if test "${enable_bindings+set}" = set; then
5832 enableval=$enable_bindings;
5837 BINDINGS_TO_BUILD=""
5838 case "$enableval" in
5839 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5840 all ) BINDINGS_TO_BUILD="ocaml" ;;
5841 none | no) BINDINGS_TO_BUILD="" ;;
5842 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5843 case "$a_binding" in
5844 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5845 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5846 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5847 { (exit 1); exit 1; }; } ;;
5854 # Check whether --with-ocaml-libdir was given.
5855 if test "${with_ocaml_libdir+set}" = set; then
5856 withval=$with_ocaml_libdir;
5862 auto) with_ocaml_libdir="$withval" ;;
5863 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5864 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5865 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5866 { (exit 1); exit 1; }; } ;;
5870 # Check whether --with-clang-srcdir was given.
5871 if test "${with_clang_srcdir+set}" = set; then
5872 withval=$with_clang_srcdir;
5878 -) clang_src_root="" ;;
5879 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5880 *) clang_src_root="$ac_pwd/$withval" ;;
5882 CLANG_SRC_ROOT=$clang_src_root
5886 # Check whether --with-clang-resource-dir was given.
5887 if test "${with_clang_resource_dir+set}" = set; then
5888 withval=$with_clang_resource_dir;
5894 cat >>confdefs.h <<_ACEOF
5895 #define CLANG_RESOURCE_DIR "$withval"
5900 # Check whether --with-c-include-dirs was given.
5901 if test "${with_c_include_dirs+set}" = set; then
5902 withval=$with_c_include_dirs;
5908 cat >>confdefs.h <<_ACEOF
5909 #define C_INCLUDE_DIRS "$withval"
5913 # Clang normally uses the system c++ headers and libraries. With this option,
5914 # clang will use the ones provided by a gcc installation instead. This option should
5915 # be passed the same value that was used with --prefix when configuring gcc.
5917 # Check whether --with-gcc-toolchain was given.
5918 if test "${with_gcc_toolchain+set}" = set; then
5919 withval=$with_gcc_toolchain;
5925 cat >>confdefs.h <<_ACEOF
5926 #define GCC_INSTALL_PREFIX "$withval"
5931 # Check whether --with-default-sysroot was given.
5932 if test "${with_default_sysroot+set}" = set; then
5933 withval=$with_default_sysroot;
5939 cat >>confdefs.h <<_ACEOF
5940 #define DEFAULT_SYSROOT "$withval"
5945 # Check whether --with-binutils-include was given.
5946 if test "${with_binutils_include+set}" = set; then
5947 withval=$with_binutils_include;
5953 default) WITH_BINUTILS_INCDIR=default ;;
5954 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5955 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5956 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5957 { (exit 1); exit 1; }; } ;;
5959 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5960 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5962 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5963 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5964 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5965 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5966 { (exit 1); exit 1; }; };
5971 # Check whether --with-bug-report-url was given.
5972 if test "${with_bug_report_url+set}" = set; then
5973 withval=$with_bug_report_url;
5975 withval="http://llvm.org/bugs/"
5979 cat >>confdefs.h <<_ACEOF
5980 #define BUG_REPORT_URL "$withval"
5984 # Check whether --enable-libffi was given.
5985 if test "${enable_libffi+set}" = set; then
5986 enableval=$enable_libffi; case "$enableval" in
5987 yes) llvm_cv_enable_libffi="yes" ;;
5988 no) llvm_cv_enable_libffi="no" ;;
5989 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5990 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5991 { (exit 1); exit 1; }; } ;;
5994 llvm_cv_enable_libffi=no
5999 # Check whether --with-internal-prefix was given.
6000 if test "${with_internal_prefix+set}" = set; then
6001 withval=$with_internal_prefix;
6006 INTERNAL_PREFIX=$withval
6010 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6011 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6012 if test "${lt_cv_path_NM+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 if test -n "$NM"; then
6016 # Let the user override the test.
6019 lt_nm_to_check="${ac_tool_prefix}nm"
6020 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6021 lt_nm_to_check="$lt_nm_to_check nm"
6023 for lt_tmp_nm in $lt_nm_to_check; do
6024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6025 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6027 test -z "$ac_dir" && ac_dir=.
6028 tmp_nm="$ac_dir/$lt_tmp_nm"
6029 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6030 # Check to see if the nm accepts a BSD-compat flag.
6031 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6032 # nm: unknown option "B" ignored
6033 # Tru64's nm complains that /dev/null is an invalid object file
6034 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6035 */dev/null* | *'Invalid file or object type'*)
6036 lt_cv_path_NM="$tmp_nm -B"
6040 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6042 lt_cv_path_NM="$tmp_nm -p"
6046 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6047 continue # so that we can try to find one that supports BSD flags
6056 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6059 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6060 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6065 { echo "$as_me:$LINENO: checking for GNU make" >&5
6066 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6067 if test "${llvm_cv_gnu_make_command+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 llvm_cv_gnu_make_command=''
6071 for a in "$MAKE" make gmake gnumake ; do
6072 if test -z "$a" ; then continue ; fi ;
6073 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6075 llvm_cv_gnu_make_command=$a ;
6080 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6081 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6082 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6086 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6087 echo "${ECHO_T}\"Not found\"" >&6; };
6091 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6092 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6094 if test "$LN_S" = "ln -s"; then
6095 { echo "$as_me:$LINENO: result: yes" >&5
6096 echo "${ECHO_T}yes" >&6; }
6098 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6099 echo "${ECHO_T}no, using $LN_S" >&6; }
6102 # Extract the first word of "cmp", so it can be a program name with args.
6103 set dummy cmp; ac_word=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_path_CMP+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6134 if test -n "$CMP"; then
6135 { echo "$as_me:$LINENO: result: $CMP" >&5
6136 echo "${ECHO_T}$CMP" >&6; }
6138 { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6143 # Extract the first word of "cp", so it can be a program name with args.
6144 set dummy cp; ac_word=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_path_CP+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6175 if test -n "$CP"; then
6176 { echo "$as_me:$LINENO: result: $CP" >&5
6177 echo "${ECHO_T}$CP" >&6; }
6179 { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6184 # Extract the first word of "date", so it can be a program name with args.
6185 set dummy date; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_path_DATE+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6215 DATE=$ac_cv_path_DATE
6216 if test -n "$DATE"; then
6217 { echo "$as_me:$LINENO: result: $DATE" >&5
6218 echo "${ECHO_T}$DATE" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6225 # Extract the first word of "find", so it can be a program name with args.
6226 set dummy find; ac_word=$2
6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229 if test "${ac_cv_path_FIND+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6256 FIND=$ac_cv_path_FIND
6257 if test -n "$FIND"; then
6258 { echo "$as_me:$LINENO: result: $FIND" >&5
6259 echo "${ECHO_T}$FIND" >&6; }
6261 { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6266 # Extract the first word of "grep", so it can be a program name with args.
6267 set dummy grep; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_GREP+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6297 GREP=$ac_cv_path_GREP
6298 if test -n "$GREP"; then
6299 { echo "$as_me:$LINENO: result: $GREP" >&5
6300 echo "${ECHO_T}$GREP" >&6; }
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6307 # Extract the first word of "mkdir", so it can be a program name with args.
6308 set dummy mkdir; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_MKDIR+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6338 MKDIR=$ac_cv_path_MKDIR
6339 if test -n "$MKDIR"; then
6340 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6341 echo "${ECHO_T}$MKDIR" >&6; }
6343 { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6348 # Extract the first word of "mv", so it can be a program name with args.
6349 set dummy mv; ac_word=$2
6350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352 if test "${ac_cv_path_MV+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6380 if test -n "$MV"; then
6381 { echo "$as_me:$LINENO: result: $MV" >&5
6382 echo "${ECHO_T}$MV" >&6; }
6384 { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6389 if test -n "$ac_tool_prefix"; then
6390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6394 if test "${ac_cv_prog_RANLIB+set}" = set; then
6395 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 if test -n "$RANLIB"; then
6398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 RANLIB=$ac_cv_prog_RANLIB
6418 if test -n "$RANLIB"; then
6419 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6420 echo "${ECHO_T}$RANLIB" >&6; }
6422 { echo "$as_me:$LINENO: result: no" >&5
6423 echo "${ECHO_T}no" >&6; }
6428 if test -z "$ac_cv_prog_RANLIB"; then
6429 ac_ct_RANLIB=$RANLIB
6430 # Extract the first word of "ranlib", so it can be a program name with args.
6431 set dummy ranlib; ac_word=$2
6432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 if test -n "$ac_ct_RANLIB"; then
6438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_prog_ac_ct_RANLIB="ranlib"
6448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6458 if test -n "$ac_ct_RANLIB"; then
6459 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6460 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6462 { echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6; }
6466 if test "x$ac_ct_RANLIB" = x; then
6469 case $cross_compiling:$ac_tool_warned in
6471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6472 whose name does not start with the host triplet. If you think this
6473 configuration is useful to you, please write to autoconf@gnu.org." >&5
6474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6475 whose name does not start with the host triplet. If you think this
6476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6477 ac_tool_warned=yes ;;
6479 RANLIB=$ac_ct_RANLIB
6482 RANLIB="$ac_cv_prog_RANLIB"
6485 if test -n "$ac_tool_prefix"; then
6486 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}ar; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_prog_AR+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 if test -n "$AR"; then
6494 ac_cv_prog_AR="$AR" # Let the user override the test.
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_AR="${ac_tool_prefix}ar"
6504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 if test -n "$AR"; then
6515 { echo "$as_me:$LINENO: result: $AR" >&5
6516 echo "${ECHO_T}$AR" >&6; }
6518 { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6524 if test -z "$ac_cv_prog_AR"; then
6526 # Extract the first word of "ar", so it can be a program name with args.
6527 set dummy ar; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 if test -n "$ac_ct_AR"; then
6534 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_ac_ct_AR="ar"
6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6554 if test -n "$ac_ct_AR"; then
6555 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6556 echo "${ECHO_T}$ac_ct_AR" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6562 if test "x$ac_ct_AR" = x; then
6565 case $cross_compiling:$ac_tool_warned in
6567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6568 whose name does not start with the host triplet. If you think this
6569 configuration is useful to you, please write to autoconf@gnu.org." >&5
6570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6571 whose name does not start with the host triplet. If you think this
6572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6573 ac_tool_warned=yes ;;
6581 # Extract the first word of "rm", so it can be a program name with args.
6582 set dummy rm; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_RM+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6613 if test -n "$RM"; then
6614 { echo "$as_me:$LINENO: result: $RM" >&5
6615 echo "${ECHO_T}$RM" >&6; }
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6622 # Extract the first word of "sed", so it can be a program name with args.
6623 set dummy sed; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_SED+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6654 if test -n "$SED"; then
6655 { echo "$as_me:$LINENO: result: $SED" >&5
6656 echo "${ECHO_T}$SED" >&6; }
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6663 # Extract the first word of "tar", so it can be a program name with args.
6664 set dummy tar; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_TAR+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6695 if test -n "$TAR"; then
6696 { echo "$as_me:$LINENO: result: $TAR" >&5
6697 echo "${ECHO_T}$TAR" >&6; }
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6704 # Extract the first word of "pwd", so it can be a program name with args.
6705 set dummy pwd; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_BINPWD+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6735 BINPWD=$ac_cv_path_BINPWD
6736 if test -n "$BINPWD"; then
6737 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6738 echo "${ECHO_T}$BINPWD" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6746 # Extract the first word of "Graphviz", so it can be a program name with args.
6747 set dummy Graphviz; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6777 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6778 if test -n "$GRAPHVIZ"; then
6779 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6780 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6787 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_GRAPHVIZ 1
6793 if test "$llvm_cv_os_type" = "MingW" ; then
6794 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797 cat >>confdefs.h <<_ACEOF
6798 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6802 # Extract the first word of "dot", so it can be a program name with args.
6803 set dummy dot; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_DOT+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6834 if test -n "$DOT"; then
6835 { echo "$as_me:$LINENO: result: $DOT" >&5
6836 echo "${ECHO_T}$DOT" >&6; }
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6843 if test "$DOT" != "echo dot" ; then
6845 cat >>confdefs.h <<\_ACEOF
6849 if test "$llvm_cv_os_type" = "MingW" ; then
6850 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853 cat >>confdefs.h <<_ACEOF
6854 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6858 # Extract the first word of "fdp", so it can be a program name with args.
6859 set dummy fdp; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_FDP+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6890 if test -n "$FDP"; then
6891 { echo "$as_me:$LINENO: result: $FDP" >&5
6892 echo "${ECHO_T}$FDP" >&6; }
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6899 if test "$FDP" != "echo fdp" ; then
6901 cat >>confdefs.h <<\_ACEOF
6905 if test "$llvm_cv_os_type" = "MingW" ; then
6906 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6909 cat >>confdefs.h <<_ACEOF
6910 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6914 # Extract the first word of "neato", so it can be a program name with args.
6915 set dummy neato; ac_word=$2
6916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918 if test "${ac_cv_path_NEATO+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6945 NEATO=$ac_cv_path_NEATO
6946 if test -n "$NEATO"; then
6947 { echo "$as_me:$LINENO: result: $NEATO" >&5
6948 echo "${ECHO_T}$NEATO" >&6; }
6950 { echo "$as_me:$LINENO: result: no" >&5
6951 echo "${ECHO_T}no" >&6; }
6955 if test "$NEATO" != "echo neato" ; then
6957 cat >>confdefs.h <<\_ACEOF
6958 #define HAVE_NEATO 1
6961 if test "$llvm_cv_os_type" = "MingW" ; then
6962 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6965 cat >>confdefs.h <<_ACEOF
6966 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6970 # Extract the first word of "twopi", so it can be a program name with args.
6971 set dummy twopi; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_TWOPI+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7001 TWOPI=$ac_cv_path_TWOPI
7002 if test -n "$TWOPI"; then
7003 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7004 echo "${ECHO_T}$TWOPI" >&6; }
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7011 if test "$TWOPI" != "echo twopi" ; then
7013 cat >>confdefs.h <<\_ACEOF
7014 #define HAVE_TWOPI 1
7017 if test "$llvm_cv_os_type" = "MingW" ; then
7018 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7021 cat >>confdefs.h <<_ACEOF
7022 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7026 # Extract the first word of "circo", so it can be a program name with args.
7027 set dummy circo; ac_word=$2
7028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7030 if test "${ac_cv_path_CIRCO+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7057 CIRCO=$ac_cv_path_CIRCO
7058 if test -n "$CIRCO"; then
7059 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7060 echo "${ECHO_T}$CIRCO" >&6; }
7062 { echo "$as_me:$LINENO: result: no" >&5
7063 echo "${ECHO_T}no" >&6; }
7067 if test "$CIRCO" != "echo circo" ; then
7069 cat >>confdefs.h <<\_ACEOF
7070 #define HAVE_CIRCO 1
7073 if test "$llvm_cv_os_type" = "MingW" ; then
7074 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7077 cat >>confdefs.h <<_ACEOF
7078 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7082 for ac_prog in gv gsview32
7084 # Extract the first word of "$ac_prog", so it can be a program name with args.
7085 set dummy $ac_prog; ac_word=$2
7086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088 if test "${ac_cv_path_GV+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 if test -n "$GV"; then
7116 { echo "$as_me:$LINENO: result: $GV" >&5
7117 echo "${ECHO_T}$GV" >&6; }
7119 { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7124 test -n "$GV" && break
7126 test -n "$GV" || GV="echo gv"
7128 if test "$GV" != "echo gv" ; then
7130 cat >>confdefs.h <<\_ACEOF
7134 if test "$llvm_cv_os_type" = "MingW" ; then
7135 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7138 cat >>confdefs.h <<_ACEOF
7139 #define LLVM_PATH_GV "$GV${EXEEXT}"
7143 # Extract the first word of "dotty", so it can be a program name with args.
7144 set dummy dotty; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_DOTTY+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7174 DOTTY=$ac_cv_path_DOTTY
7175 if test -n "$DOTTY"; then
7176 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7177 echo "${ECHO_T}$DOTTY" >&6; }
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7184 if test "$DOTTY" != "echo dotty" ; then
7186 cat >>confdefs.h <<\_ACEOF
7187 #define HAVE_DOTTY 1
7190 if test "$llvm_cv_os_type" = "MingW" ; then
7191 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7194 cat >>confdefs.h <<_ACEOF
7195 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7199 # Extract the first word of "xdot.py", so it can be a program name with args.
7200 set dummy xdot.py; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7218 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7230 XDOT_PY=$ac_cv_path_XDOT_PY
7231 if test -n "$XDOT_PY"; then
7232 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7233 echo "${ECHO_T}$XDOT_PY" >&6; }
7235 { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7240 if test "$XDOT_PY" != "echo xdot.py" ; then
7242 cat >>confdefs.h <<\_ACEOF
7243 #define HAVE_XDOT_PY 1
7246 if test "$llvm_cv_os_type" = "MingW" ; then
7247 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7250 cat >>confdefs.h <<_ACEOF
7251 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7256 # Find a good install program. We prefer a C program (faster),
7257 # so one script is as good as another. But avoid the broken or
7258 # incompatible versions:
7259 # SysV /etc/install, /usr/sbin/install
7260 # SunOS /usr/etc/install
7261 # IRIX /sbin/install
7263 # AmigaOS /C/install, which installs bootblocks on floppy discs
7264 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7267 # OS/2's system install, which has a completely different semantic
7268 # ./install, which can be erroneously created by make from ./install.sh.
7269 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7270 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7271 if test -z "$INSTALL"; then
7272 if test "${ac_cv_path_install+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 # Account for people who put trailing slashes in PATH elements.
7282 ./ | .// | /cC/* | \
7283 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7284 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7287 # OSF1 and SCO ODT 3.0 have their own names for install.
7288 # Don't use installbsd from OSF since it installs stuff as root
7290 for ac_prog in ginstall scoinst install; do
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7293 if test $ac_prog = install &&
7294 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7295 # AIX install. It has an incompatible calling convention.
7297 elif test $ac_prog = install &&
7298 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7299 # program-specific install script used by HP pwplus--don't use.
7302 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7315 if test "${ac_cv_path_install+set}" = set; then
7316 INSTALL=$ac_cv_path_install
7318 # As a last resort, use the slow shell script. Don't cache a
7319 # value for INSTALL within a source directory, because that will
7320 # break other packages using the cache if that directory is
7321 # removed, or if the value is a relative name.
7322 INSTALL=$ac_install_sh
7325 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7326 echo "${ECHO_T}$INSTALL" >&6; }
7328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7329 # It thinks the first close brace ends the variable substitution.
7330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7337 [\\/$]* | ?:[\\/]* ) ;;
7338 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7341 # Extract the first word of "bzip2", so it can be a program name with args.
7342 set dummy bzip2; ac_word=$2
7343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345 if test "${ac_cv_path_BZIP2+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 BZIP2=$ac_cv_path_BZIP2
7372 if test -n "$BZIP2"; then
7373 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7374 echo "${ECHO_T}$BZIP2" >&6; }
7376 { echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6; }
7381 # Extract the first word of "cat", so it can be a program name with args.
7382 set dummy cat; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_path_CAT+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 if test -n "$CAT"; then
7413 { echo "$as_me:$LINENO: result: $CAT" >&5
7414 echo "${ECHO_T}$CAT" >&6; }
7416 { echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6; }
7421 # Extract the first word of "doxygen", so it can be a program name with args.
7422 set dummy doxygen; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 DOXYGEN=$ac_cv_path_DOXYGEN
7452 if test -n "$DOXYGEN"; then
7453 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7454 echo "${ECHO_T}$DOXYGEN" >&6; }
7456 { echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6; }
7461 # Extract the first word of "groff", so it can be a program name with args.
7462 set dummy groff; ac_word=$2
7463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465 if test "${ac_cv_path_GROFF+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 GROFF=$ac_cv_path_GROFF
7492 if test -n "$GROFF"; then
7493 { echo "$as_me:$LINENO: result: $GROFF" >&5
7494 echo "${ECHO_T}$GROFF" >&6; }
7496 { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7501 # Extract the first word of "gzip", so it can be a program name with args.
7502 set dummy gzip; ac_word=$2
7503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7505 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 GZIPBIN=$ac_cv_path_GZIPBIN
7532 if test -n "$GZIPBIN"; then
7533 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7534 echo "${ECHO_T}$GZIPBIN" >&6; }
7536 { echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6; }
7541 # Extract the first word of "pdfroff", so it can be a program name with args.
7542 set dummy pdfroff; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_path_PDFROFF+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 PDFROFF=$ac_cv_path_PDFROFF
7572 if test -n "$PDFROFF"; then
7573 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7574 echo "${ECHO_T}$PDFROFF" >&6; }
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7581 # Extract the first word of "zip", so it can be a program name with args.
7582 set dummy zip; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_ZIP+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 if test -n "$ZIP"; then
7613 { echo "$as_me:$LINENO: result: $ZIP" >&5
7614 echo "${ECHO_T}$ZIP" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7621 for ac_prog in ocamlc
7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
7624 set dummy $ac_prog; ac_word=$2
7625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627 if test "${ac_cv_path_OCAMLC+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 OCAMLC=$ac_cv_path_OCAMLC
7654 if test -n "$OCAMLC"; then
7655 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7656 echo "${ECHO_T}$OCAMLC" >&6; }
7658 { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7663 test -n "$OCAMLC" && break
7666 for ac_prog in ocamlopt
7668 # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 OCAMLOPT=$ac_cv_path_OCAMLOPT
7699 if test -n "$OCAMLOPT"; then
7700 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7701 echo "${ECHO_T}$OCAMLOPT" >&6; }
7703 { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7708 test -n "$OCAMLOPT" && break
7711 for ac_prog in ocamldep
7713 # Extract the first word of "$ac_prog", so it can be a program name with args.
7714 set dummy $ac_prog; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 OCAMLDEP=$ac_cv_path_OCAMLDEP
7744 if test -n "$OCAMLDEP"; then
7745 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7746 echo "${ECHO_T}$OCAMLDEP" >&6; }
7748 { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7753 test -n "$OCAMLDEP" && break
7756 for ac_prog in ocamldoc
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 OCAMLDOC=$ac_cv_path_OCAMLDOC
7789 if test -n "$OCAMLDOC"; then
7790 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7791 echo "${ECHO_T}$OCAMLDOC" >&6; }
7793 { echo "$as_me:$LINENO: result: no" >&5
7794 echo "${ECHO_T}no" >&6; }
7798 test -n "$OCAMLDOC" && break
7801 for ac_prog in gas as
7803 # Extract the first word of "$ac_prog", so it can be a program name with args.
7804 set dummy $ac_prog; ac_word=$2
7805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807 if test "${ac_cv_path_GAS+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 if test -n "$GAS"; then
7835 { echo "$as_me:$LINENO: result: $GAS" >&5
7836 echo "${ECHO_T}$GAS" >&6; }
7838 { echo "$as_me:$LINENO: result: no" >&5
7839 echo "${ECHO_T}no" >&6; }
7843 test -n "$GAS" && break
7847 { echo "$as_me:$LINENO: checking for linker version" >&5
7848 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7849 if test "${llvm_cv_link_version+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 version_string="$(ld -v 2>&1 | head -1)"
7856 if (echo "$version_string" | grep -q "ld64"); then
7857 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7859 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7863 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7864 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7866 cat >>confdefs.h <<_ACEOF
7867 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7872 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7873 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7874 if test "${llvm_cv_link_use_r+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 ac_cpp='$CPP $CPPFLAGS'
7879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884 CFLAGS="$CFLAGS -Wl,-R."
7885 cat >conftest.$ac_ext <<_ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (ac_try="$ac_link"
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_link") 2>conftest.er1
7909 grep -v '^ *+' conftest.er1 >conftest.err
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7915 { (case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_try") 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest$ac_exeext'
7925 { (case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_try") 2>&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934 llvm_cv_link_use_r=yes
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7939 llvm_cv_link_use_r=no
7942 rm -f core conftest.err conftest.$ac_objext \
7943 conftest$ac_exeext conftest.$ac_ext
7946 ac_cpp='$CPP $CPPFLAGS'
7947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7953 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7954 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7955 if test "$llvm_cv_link_use_r" = yes ; then
7957 cat >>confdefs.h <<\_ACEOF
7958 #define HAVE_LINK_R 1
7964 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7965 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7966 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 ac_cpp='$CPP $CPPFLAGS'
7971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7977 cat >conftest.$ac_ext <<_ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7992 rm -f conftest.$ac_objext conftest$ac_exeext
7993 if { (ac_try="$ac_link"
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_link") 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007 { (case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_try") 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try='test -s conftest$ac_exeext'
8017 { (case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_try") 2>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 llvm_cv_link_use_export_dynamic=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 llvm_cv_link_use_export_dynamic=no
8034 rm -f core conftest.err conftest.$ac_objext \
8035 conftest$ac_exeext conftest.$ac_ext
8038 ac_cpp='$CPP $CPPFLAGS'
8039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8046 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8047 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8049 cat >>confdefs.h <<\_ACEOF
8050 #define HAVE_LINK_EXPORT_DYNAMIC 1
8056 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8057 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8058 if test "${llvm_cv_link_use_version_script+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 ac_cpp='$CPP $CPPFLAGS'
8063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8069 # The following code is from the autoconf manual,
8070 # "11.13: Limitations of Usual Tools".
8071 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8072 # Use mktemp if possible; otherwise fall back on mkdir,
8073 # with $RANDOM to make collisions less likely.
8077 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8079 test -n "$tmp" && test -d "$tmp"
8081 tmp=$TMPDIR/foo$$-$RANDOM
8082 (umask 077 && mkdir "$tmp")
8085 echo "{" > "$tmp/export.map"
8086 echo " global: main;" >> "$tmp/export.map"
8087 echo " local: *;" >> "$tmp/export.map"
8088 echo "};" >> "$tmp/export.map"
8090 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (ac_try="$ac_link"
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_link") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121 { (case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 llvm_cv_link_use_version_script=yes
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 llvm_cv_link_use_version_script=no
8148 rm -f core conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8150 rm "$tmp/export.map"
8154 ac_cpp='$CPP $CPPFLAGS'
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8162 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8163 if test "$llvm_cv_link_use_version_script" = yes ; then
8164 HAVE_LINK_VERSION_SCRIPT=1
8171 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8172 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8173 if test "${ac_cv_c_const+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8186 /* FIXME: Include the comments suggested by Paul. */
8188 /* Ultrix mips cc rejects this. */
8189 typedef int charset[2];
8191 /* SunOS 4.1.1 cc rejects this. */
8192 char const *const *ccp;
8194 /* NEC SVR4.0.2 mips cc rejects this. */
8195 struct point {int x, y;};
8196 static struct point const zero = {0,0};
8197 /* AIX XL C 1.02.0.0 rejects this.
8198 It does not let you subtract one const X* pointer from another in
8199 an arm of an if-expression whose if-part is not a constant
8201 const char *g = "string";
8202 ccp = &g + (g ? g-g : 0);
8203 /* HPUX 7.0 cc rejects these. */
8206 ccp = (char const *const *) p;
8207 { /* SCO 3.2v4 cc rejects this. */
8209 char const *s = 0 ? (char *) 0 : (char const *) 0;
8214 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8216 const int *foo = &x[0];
8219 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8220 typedef const int *iptr;
8224 { /* AIX XL C 1.02.0.0 rejects this saying
8225 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8226 struct s { int j; const int *ap[3]; };
8227 struct s *b; b->j = 5;
8229 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8233 return !x[0] && !zero.x;
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_compile") 2>conftest.er1
8249 grep -v '^ *+' conftest.er1 >conftest.err
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8255 { (case "(($ac_try" in
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_try") 2>&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; } &&
8264 { ac_try='test -s conftest.$ac_objext'
8265 { (case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_try") 2>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8285 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8286 if test $ac_cv_c_const = no; then
8288 cat >>confdefs.h <<\_ACEOF
8300 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8301 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8302 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8303 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 cat >conftest.$ac_ext <<_ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8313 #include <sys/types.h>
8325 rm -f conftest.$ac_objext
8326 if { (ac_try="$ac_compile"
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_compile") 2>conftest.er1
8334 grep -v '^ *+' conftest.er1 >conftest.err
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8340 { (case "(($ac_try" in
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_try") 2>&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; } &&
8349 { ac_try='test -s conftest.$ac_objext'
8350 { (case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_try") 2>&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 eval "$as_ac_Header=yes"
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8364 eval "$as_ac_Header=no"
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369 ac_res=`eval echo '${'$as_ac_Header'}'`
8370 { echo "$as_me:$LINENO: result: $ac_res" >&5
8371 echo "${ECHO_T}$ac_res" >&6; }
8372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8373 cat >>confdefs.h <<_ACEOF
8374 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8377 ac_header_dirent=$ac_hdr; break
8381 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8382 if test $ac_header_dirent = dirent.h; then
8383 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8384 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8385 if test "${ac_cv_search_opendir+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 ac_func_search_save_LIBS=$LIBS
8389 cat >conftest.$ac_ext <<_ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8396 /* Override any GCC internal prototype to avoid an error.
8397 Use char because int might match the return type of a GCC
8398 builtin and then its argument prototype would still apply. */
8411 for ac_lib in '' dir; do
8412 if test -z "$ac_lib"; then
8413 ac_res="none required"
8416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8418 rm -f conftest.$ac_objext conftest$ac_exeext
8419 if { (ac_try="$ac_link"
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_link") 2>conftest.er1
8427 grep -v '^ *+' conftest.er1 >conftest.err
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433 { (case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_try") 2>&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest$ac_exeext'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 ac_cv_search_opendir=$ac_res
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8460 rm -f core conftest.err conftest.$ac_objext \
8462 if test "${ac_cv_search_opendir+set}" = set; then
8466 if test "${ac_cv_search_opendir+set}" = set; then
8469 ac_cv_search_opendir=no
8472 LIBS=$ac_func_search_save_LIBS
8474 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8475 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8476 ac_res=$ac_cv_search_opendir
8477 if test "$ac_res" != no; then
8478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8483 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8484 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8485 if test "${ac_cv_search_opendir+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 ac_func_search_save_LIBS=$LIBS
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8496 /* Override any GCC internal prototype to avoid an error.
8497 Use char because int might match the return type of a GCC
8498 builtin and then its argument prototype would still apply. */
8511 for ac_lib in '' x; do
8512 if test -z "$ac_lib"; then
8513 ac_res="none required"
8516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (ac_try="$ac_link"
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_link") 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8533 { (case "(($ac_try" in
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_try") 2>&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest$ac_exeext'
8543 { (case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_try") 2>&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 ac_cv_search_opendir=$ac_res
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8560 rm -f core conftest.err conftest.$ac_objext \
8562 if test "${ac_cv_search_opendir+set}" = set; then
8566 if test "${ac_cv_search_opendir+set}" = set; then
8569 ac_cv_search_opendir=no
8572 LIBS=$ac_func_search_save_LIBS
8574 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8575 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8576 ac_res=$ac_cv_search_opendir
8577 if test "$ac_res" != no; then
8578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8585 for ac_header in dlfcn.h
8587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 ac_res=`eval echo '${'$as_ac_Header'}'`
8595 { echo "$as_me:$LINENO: result: $ac_res" >&5
8596 echo "${ECHO_T}$ac_res" >&6; }
8598 # Is the header compilable?
8599 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 $ac_includes_default
8608 #include <$ac_header>
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_compile") 2>conftest.er1
8619 grep -v '^ *+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8625 { (case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_try") 2>&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; } &&
8634 { ac_try='test -s conftest.$ac_objext'
8635 { (case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_try") 2>&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; }; then
8644 ac_header_compiler=yes
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8649 ac_header_compiler=no
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8654 echo "${ECHO_T}$ac_header_compiler" >&6; }
8656 # Is the header present?
8657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8659 cat >conftest.$ac_ext <<_ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 #include <$ac_header>
8667 if { (ac_try="$ac_cpp conftest.$ac_ext"
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8675 grep -v '^ *+' conftest.er1 >conftest.err
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } >/dev/null; then
8680 if test -s conftest.err; then
8681 ac_cpp_err=$ac_c_preproc_warn_flag
8682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8689 if test -z "$ac_cpp_err"; then
8690 ac_header_preproc=yes
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 ac_header_preproc=no
8698 rm -f conftest.err conftest.$ac_ext
8699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8700 echo "${ECHO_T}$ac_header_preproc" >&6; }
8702 # So? What about this header?
8703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8709 ac_header_preproc=yes
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8725 ## ------------------------------------ ##
8726 ## Report this to http://llvm.org/bugs/ ##
8727 ## ------------------------------------ ##
8729 ) | sed "s/^/$as_me: WARNING: /" >&2
8732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 eval "$as_ac_Header=\$ac_header_preproc"
8739 ac_res=`eval echo '${'$as_ac_Header'}'`
8740 { echo "$as_me:$LINENO: result: $ac_res" >&5
8741 echo "${ECHO_T}$ac_res" >&6; }
8744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8753 # Check whether --enable-ltdl-install was given.
8754 if test "${enable_ltdl_install+set}" = set; then
8755 enableval=$enable_ltdl_install;
8761 if test x"${enable_ltdl_install-no}" != xno; then
8763 INSTALL_LTDL_FALSE='#'
8765 INSTALL_LTDL_TRUE='#'
8771 if test x"${enable_ltdl_convenience-no}" != xno; then
8772 CONVENIENCE_LTDL_TRUE=
8773 CONVENIENCE_LTDL_FALSE='#'
8775 CONVENIENCE_LTDL_TRUE='#'
8776 CONVENIENCE_LTDL_FALSE=
8780 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8781 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8783 libname_spec='lib$name'
8791 shlibpath_overrides_runpath=unknown
8793 dynamic_linker="$host_os ld.so"
8794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8795 if test "$GCC" = yes; then
8796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8797 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8798 # if the path contains ";" then we assume it to be the separator
8799 # otherwise default to the standard path separator (i.e. ":") - it is
8800 # assumed that no part of a normal pathname contains ";" but that should
8801 # okay in the real world where ";" in dirpaths is itself problematic.
8802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8807 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8809 need_lib_prefix=unknown
8810 hardcode_into_libs=no
8812 # when you set need_version to no, make sure it does not cause -set_version
8813 # flags to be left without arguments
8814 need_version=unknown
8819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8820 shlibpath_var=LIBPATH
8822 # AIX 3 has no versioning support, so we append a major version to the name.
8823 soname_spec='${libname}${release}${shared_ext}$major'
8830 hardcode_into_libs=yes
8831 if test "$host_cpu" = ia64; then
8832 # AIX 5 supports IA64
8833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8834 shlibpath_var=LD_LIBRARY_PATH
8836 # With GCC up to 2.95.x, collect2 would create an import file
8837 # for dependence libraries. The import file would start with
8838 # the line `#! .'. This would cause the generated library to
8839 # depend on `.', always an invalid library. This was fixed in
8840 # development snapshots of GCC prior to 3.0.
8842 aix4 | aix4.[01] | aix4.[01].*)
8843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8845 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8853 # soname into executable. Probably we can add versioning support to
8854 # collect2, so additional links can be useful in future.
8855 if test "$aix_use_runtimelinking" = yes; then
8856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8857 # instead of lib<name>.a to let people know that these are not
8858 # typical AIX shared libraries.
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861 # We preserve .a as extension for shared libraries through AIX4.2
8862 # and later when we are not doing run time linking.
8863 library_names_spec='${libname}${release}.a $libname.a'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8866 shlibpath_var=LIBPATH
8871 library_names_spec='$libname.ixlibrary $libname.a'
8872 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8873 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'
8877 library_names_spec='${libname}${shared_ext}'
8878 dynamic_linker="$host_os ld.so"
8879 shlibpath_var=LIBRARY_PATH
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8891 # the default ld.so.conf also contains /usr/contrib/lib and
8892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8893 # libtool to hard-code these into programs
8896 cygwin* | mingw* | pw32*)
8897 version_type=windows
8902 case $GCC,$host_os in
8903 yes,cygwin* | yes,mingw* | yes,pw32*)
8904 library_names_spec='$libname.dll.a'
8905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8906 postinstall_cmds='base_file=`basename \${file}`~
8907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8908 dldir=$destdir/`dirname \$dlpath`~
8909 test -d \$dldir || mkdir -p \$dldir~
8910 $install_prog $dir/$dlname \$dldir/$dlname~
8911 chmod a+x \$dldir/$dlname'
8912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8913 dlpath=$dir/\$dldll~
8915 shlibpath_overrides_runpath=yes
8919 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8921 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8924 # MinGW DLLs use traditional 'lib' prefix
8925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8926 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8927 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8928 # It is most probably a Windows format PATH printed by
8929 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8930 # path with ; separators, and with drive letters. We can handle the
8931 # drive letters (cygwin fileutils understands them), so leave them,
8932 # especially as we might pass files found there to a mingw objdump,
8933 # which wouldn't understand a cygwinified path. Ahh.
8934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8940 # pw32 DLLs use 'pw' prefix rather than 'lib'
8941 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8947 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8950 dynamic_linker='Win32 ld.exe'
8951 # FIXME: first we should search . and the directory the executable is in
8955 darwin* | rhapsody*)
8956 dynamic_linker="$host_os dyld"
8960 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8961 soname_spec='${libname}${release}${major}$shared_ext'
8962 shlibpath_overrides_runpath=yes
8963 shlibpath_var=DYLD_LIBRARY_PATH
8964 shrext_cmds='.dylib'
8965 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8966 if test "$GCC" = yes; then
8967 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"`
8969 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8971 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 shlibpath_var=LD_LIBRARY_PATH
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=no
8995 hardcode_into_libs=yes
8996 dynamic_linker='GNU ld.so'
8999 freebsd* | dragonfly*)
9000 # DragonFly does not have aout. When/if they implement a new
9001 # versioning mechanism, adjust this.
9002 if test -x /usr/bin/objformat; then
9003 objformat=`/usr/bin/objformat`
9006 freebsd[123].*) objformat=aout ;;
9010 version_type=freebsd-$objformat
9011 case $version_type in
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9022 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes
9027 freebsd3.[01]* | freebsdelf3.[01]*)
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9031 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9032 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9033 shlibpath_overrides_runpath=no
9034 hardcode_into_libs=yes
9036 freebsd*) # from 4.6 on
9037 shlibpath_overrides_runpath=yes
9038 hardcode_into_libs=yes
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 hardcode_into_libs=yes
9053 hpux9* | hpux10* | hpux11*)
9054 # Give a soname corresponding to the major version so that dld.sl refuses to
9055 # link against other versions.
9062 hardcode_into_libs=yes
9063 dynamic_linker="$host_os dld.so"
9064 shlibpath_var=LD_LIBRARY_PATH
9065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 if test "X$HPUX_IA64_MODE" = X32; then
9069 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9071 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9077 hardcode_into_libs=yes
9078 dynamic_linker="$host_os dld.sl"
9079 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9088 dynamic_linker="$host_os dld.sl"
9089 shlibpath_var=SHLIB_PATH
9090 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9095 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9096 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=no
9108 hardcode_into_libs=yes
9111 irix5* | irix6* | nonstopux*)
9113 nonstopux*) version_type=nonstopux ;;
9115 if test "$lt_cv_prog_gnu_ld" = yes; then
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9126 irix5* | nonstopux*)
9130 case $LD in # libtool.m4 will add one of these switches to LD
9131 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9132 libsuff= shlibsuff= libmagic=32-bit;;
9133 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9134 libsuff=32 shlibsuff=N32 libmagic=N32;;
9135 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9136 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9137 *) libsuff= shlibsuff= libmagic=never-match;;
9141 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9142 shlibpath_overrides_runpath=no
9143 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9144 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9145 hardcode_into_libs=yes
9148 # No shared lib support for Linux oldld, aout, or coff.
9149 linux*oldld* | linux*aout* | linux*coff*)
9153 # This must be Linux ELF.
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 shlibpath_overrides_runpath=no
9163 # This implies no fast_install, which is unacceptable.
9164 # Some rework will be needed to allow for fast_install
9165 # before this can be enabled.
9166 hardcode_into_libs=yes
9168 # Append ld.so.conf contents to the search path
9169 if test -f /etc/ld.so.conf; then
9170 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' ' '`
9171 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9174 # We used to test for /lib/ld.so.1 and disable shared libraries on
9175 # powerpc, because MkLinux only supported shared libraries with the
9176 # GNU dynamic linker. Since this was broken with cross compilers,
9177 # most powerpc-linux boxes support dynamic linking these days and
9178 # people can always --disable-shared, the test was removed, and we
9179 # assume the GNU/Linux dynamic linker is in use.
9180 dynamic_linker='GNU/Linux ld.so'
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=no
9191 hardcode_into_libs=yes
9192 dynamic_linker='GNU ld.so'
9199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9202 dynamic_linker='NetBSD (a.out) ld.so'
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 dynamic_linker='NetBSD ld.elf_so'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=yes
9210 hardcode_into_libs=yes
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 shlibpath_overrides_runpath=yes
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 shlibpath_overrides_runpath=yes
9232 sys_lib_dlsearch_path_spec="/usr/lib"
9234 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9236 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9237 *) need_version=no ;;
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9244 openbsd2.[89] | openbsd2.[89].*)
9245 shlibpath_overrides_runpath=no
9248 shlibpath_overrides_runpath=yes
9252 shlibpath_overrides_runpath=yes
9257 libname_spec='$name'
9260 library_names_spec='$libname${shared_ext} $libname.a'
9261 dynamic_linker='OS/2 ld.exe'
9262 shlibpath_var=LIBPATH
9265 osf3* | osf4* | osf5*)
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9273 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=yes
9284 hardcode_into_libs=yes
9285 # ldd complains unless libraries are executable
9286 postinstall_cmds='chmod +x $lib'
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 shlibpath_overrides_runpath=yes
9295 if test "$with_gnu_ld" = yes; then
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 case $host_vendor in
9308 shlibpath_overrides_runpath=no
9310 export_dynamic_flag_spec='${wl}-Blargedynsym'
9311 runpath_var=LD_RUN_PATH
9319 shlibpath_overrides_runpath=no
9320 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9326 if test -d /usr/nec ;then
9328 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9329 soname_spec='$libname${shared_ext}.$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9335 version_type=freebsd-elf
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 hardcode_into_libs=yes
9342 if test "$with_gnu_ld" = yes; then
9343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9344 shlibpath_overrides_runpath=no
9346 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9347 shlibpath_overrides_runpath=yes
9350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9354 sys_lib_dlsearch_path_spec='/usr/lib'
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 shlibpath_var=LD_LIBRARY_PATH
9368 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9369 echo "${ECHO_T}$dynamic_linker" >&6; }
9370 test "$dynamic_linker" = no && can_build_shared=no
9372 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9373 if test "$GCC" = yes; then
9374 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9378 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9379 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9380 if test "${libltdl_cv_shlibext+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 eval libltdl_cv_shlibext=$shrext_cmds
9388 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9389 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9390 if test -n "$libltdl_cv_shlibext"; then
9392 cat >>confdefs.h <<_ACEOF
9393 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9399 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9400 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9401 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 libltdl_cv_shlibpath_var="$shlibpath_var"
9406 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9407 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9408 if test -n "$libltdl_cv_shlibpath_var"; then
9410 cat >>confdefs.h <<_ACEOF
9411 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9417 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9418 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9419 if test "${libltdl_cv_sys_search_path+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9424 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9425 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9426 if test -n "$libltdl_cv_sys_search_path"; then
9428 for dir in $libltdl_cv_sys_search_path; do
9429 if test -z "$sys_search_path"; then
9430 sys_search_path="$dir"
9432 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9436 cat >>confdefs.h <<_ACEOF
9437 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9442 { echo "$as_me:$LINENO: checking for objdir" >&5
9443 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9444 if test "${libltdl_cv_objdir+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 libltdl_cv_objdir="$objdir"
9448 if test -n "$objdir"; then
9451 rm -f .libs 2>/dev/null
9452 mkdir .libs 2>/dev/null
9453 if test -d .libs; then
9454 libltdl_cv_objdir=.libs
9456 # MS-DOS does not allow filenames that begin with a dot.
9457 libltdl_cv_objdir=_libs
9459 rmdir .libs 2>/dev/null
9463 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9464 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9466 cat >>confdefs.h <<_ACEOF
9467 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9475 # Check for command to grab the raw symbol name followed by C symbol from nm.
9476 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9477 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9478 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 # These are sane defaults that work on at least a few old systems.
9483 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9485 # Character class describing NM global symbol codes.
9486 symcode='[BCDEGRST]'
9488 # Regexp to match symbols that can be accessed directly from C.
9489 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9491 # Transform an extracted symbol line into a proper C declaration
9492 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9494 # Transform an extracted symbol line into symbol name and symbol address
9495 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'"
9497 # Define system-specific variables.
9502 cygwin* | mingw* | pw32*)
9503 symcode='[ABCDGISTW]'
9505 hpux*) # Its linker distinguishes data from code symbols
9506 if test "$host_cpu" = ia64; then
9507 symcode='[ABCDEGRST]'
9509 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9510 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'"
9513 if test "$host_cpu" = ia64; then
9514 symcode='[ABCDGIRSTW]'
9515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9516 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'"
9520 symcode='[BCDEGRST]'
9523 symcode='[BCDEGQRST]'
9534 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9542 # Handle CRLF in mingw tool chain
9546 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9550 # If we're using GNU nm, then use its standard symbol codes.
9551 case `$NM -V 2>&1` in
9552 *GNU* | *'with BFD'*)
9553 symcode='[ABCDGIRSTW]' ;;
9556 # Try without a prefix undercore, then with it.
9557 for ac_symprfx in "" "_"; do
9559 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9560 symxfrm="\\1 $ac_symprfx\\2 \\2"
9562 # Write the raw and C identifiers.
9563 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9565 # Check to see that the pipe works correctly.
9569 cat > conftest.$ac_ext <<EOF
9574 void nm_test_func(){}
9578 int main(){nm_test_var='a';nm_test_func();return(0);}
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; then
9586 # Now try to grab the symbols.
9588 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9589 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && test -s "$nlist"; then
9593 # Try sorting and uniquifying the output.
9594 if sort "$nlist" | uniq > "$nlist"T; then
9595 mv -f "$nlist"T "$nlist"
9600 # Make sure that we snagged all the symbols we need.
9601 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9602 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9603 cat <<EOF > conftest.$ac_ext
9609 # Now generate the symbol file.
9610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9612 cat <<EOF >> conftest.$ac_ext
9613 #if defined (__STDC__) && __STDC__
9614 # define lt_ptr_t void *
9616 # define lt_ptr_t char *
9620 /* The mapping between symbol names and symbols. */
9625 lt_preloaded_symbols[] =
9628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9629 cat <<\EOF >> conftest.$ac_ext
9637 # Now try linking the two files.
9638 mv conftest.$ac_objext conftstm.$ac_objext
9639 lt_save_LIBS="$LIBS"
9640 lt_save_CFLAGS="$CFLAGS"
9641 LIBS="conftstm.$ac_objext"
9642 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9650 LIBS="$lt_save_LIBS"
9651 CFLAGS="$lt_save_CFLAGS"
9653 echo "cannot find nm_test_func in $nlist" >&5
9656 echo "cannot find nm_test_var in $nlist" >&5
9659 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9662 echo "$progname: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9665 rm -f conftest* conftst*
9667 # Do not use the global_symbol_pipe unless it works.
9668 if test "$pipe_works" = yes; then
9671 lt_cv_sys_global_symbol_pipe=
9677 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9678 lt_cv_sys_global_symbol_to_cdecl=
9680 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9681 { echo "$as_me:$LINENO: result: failed" >&5
9682 echo "${ECHO_T}failed" >&6; }
9684 { echo "$as_me:$LINENO: result: ok" >&5
9685 echo "${ECHO_T}ok" >&6; }
9689 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9690 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9691 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9695 libltdl_cv_preloaded_symbols=yes
9697 libltdl_cv_preloaded_symbols=no
9701 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9702 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9703 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_PRELOADED_SYMBOLS 1
9714 ac_cpp='$CPP $CPPFLAGS'
9715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9720 { echo "$as_me:$LINENO: checking for shl_load" >&5
9721 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9722 if test "${ac_cv_func_shl_load+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9733 #define shl_load innocuous_shl_load
9735 /* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char shl_load (); below.
9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738 <limits.h> exists even on freestanding compilers. */
9741 # include <limits.h>
9743 # include <assert.h>
9748 /* Override any GCC internal prototype to avoid an error.
9749 Use char because int might match the return type of a GCC
9750 builtin and then its argument prototype would still apply. */
9755 /* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758 #if defined __stub_shl_load || defined __stub___shl_load
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>conftest.er1
9779 grep -v '^ *+' conftest.er1 >conftest.err
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9785 { (case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_try") 2>&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; } &&
9794 { ac_try='test -s conftest$ac_exeext'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_func_shl_load=yes
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_cv_func_shl_load=no
9812 rm -f core conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9815 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9816 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9817 if test $ac_cv_func_shl_load = yes; then
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_SHL_LOAD 1
9824 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9825 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9826 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 ac_check_lib_save_LIBS=$LIBS
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9838 /* Override any GCC internal prototype to avoid an error.
9839 Use char because int might match the return type of a GCC
9840 builtin and then its argument prototype would still apply. */
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_link") 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_try") 2>&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; } &&
9877 { ac_try='test -s conftest$ac_exeext'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_lib_dld_shl_load=yes
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9892 ac_cv_lib_dld_shl_load=no
9895 rm -f core conftest.err conftest.$ac_objext \
9896 conftest$ac_exeext conftest.$ac_ext
9897 LIBS=$ac_check_lib_save_LIBS
9899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9900 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9901 if test $ac_cv_lib_dld_shl_load = yes; then
9903 cat >>confdefs.h <<\_ACEOF
9904 #define HAVE_SHL_LOAD 1
9907 LIBADD_DL="$LIBADD_DL -ldld"
9909 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 ac_check_lib_save_LIBS=$LIBS
9916 cat >conftest.$ac_ext <<_ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9947 grep -v '^ *+' conftest.er1 >conftest.err
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9953 { (case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_try") 2>&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; } &&
9962 { ac_try='test -s conftest$ac_exeext'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 ac_cv_lib_dl_dlopen=yes
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 ac_cv_lib_dl_dlopen=no
9980 rm -f core conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 LIBS=$ac_check_lib_save_LIBS
9984 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9985 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9986 if test $ac_cv_lib_dl_dlopen = yes; then
9988 cat >>confdefs.h <<\_ACEOF
9989 #define HAVE_LIBDL 1
9992 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10001 # include <dlfcn.h>
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10047 cat >>confdefs.h <<\_ACEOF
10048 #define HAVE_LIBDL 1
10050 libltdl_cv_func_dlopen="yes"
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10056 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10057 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 ac_check_lib_save_LIBS=$LIBS
10061 LIBS="-lsvld $LIBS"
10062 cat >conftest.$ac_ext <<_ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10069 /* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_link") 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099 { (case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_try") 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_cv_lib_svld_dlopen=yes
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_cv_lib_svld_dlopen=no
10126 rm -f core conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10131 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10132 if test $ac_cv_lib_svld_dlopen = yes; then
10134 cat >>confdefs.h <<\_ACEOF
10135 #define HAVE_LIBDL 1
10138 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10140 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10141 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10142 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 ac_check_lib_save_LIBS=$LIBS
10147 cat >conftest.$ac_ext <<_ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10154 /* Override any GCC internal prototype to avoid an error.
10155 Use char because int might match the return type of a GCC
10156 builtin and then its argument prototype would still apply. */
10164 return dld_link ();
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (ac_try="$ac_link"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_link") 2>conftest.er1
10178 grep -v '^ *+' conftest.er1 >conftest.err
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10184 { (case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_try") 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; } &&
10193 { ac_try='test -s conftest$ac_exeext'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_lib_dld_dld_link=yes
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 ac_cv_lib_dld_dld_link=no
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10215 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10216 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10217 if test $ac_cv_lib_dld_dld_link = yes; then
10219 cat >>confdefs.h <<\_ACEOF
10223 LIBADD_DL="$LIBADD_DL -ldld"
10225 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10226 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10227 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 cat >conftest.$ac_ext <<_ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10238 #define _dyld_func_lookup innocuous__dyld_func_lookup
10240 /* System header to define __stub macros and hopefully few prototypes,
10241 which can conflict with char _dyld_func_lookup (); below.
10242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10243 <limits.h> exists even on freestanding compilers. */
10246 # include <limits.h>
10248 # include <assert.h>
10251 #undef _dyld_func_lookup
10253 /* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10259 char _dyld_func_lookup ();
10260 /* The GNU C library defines this for functions which it implements
10261 to always fail with ENOSYS. Some functions are actually named
10262 something starting with __ and the normal name is an alias. */
10263 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10270 return _dyld_func_lookup ();
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (ac_try="$ac_link"
10277 case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_link") 2>conftest.er1
10284 grep -v '^ *+' conftest.er1 >conftest.err
10286 cat conftest.err >&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } &&
10289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10290 { (case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_try") 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest$ac_exeext'
10300 { (case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_try") 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_cv_func__dyld_func_lookup=yes
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_cv_func__dyld_func_lookup=no
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10320 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10321 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10322 if test $ac_cv_func__dyld_func_lookup = yes; then
10324 cat >>confdefs.h <<\_ACEOF
10325 #define HAVE_DYLD 1
10339 rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10351 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10353 lt_save_LIBS="$LIBS"
10354 LIBS="$LIBS $LIBADD_DL"
10356 for ac_func in dlerror
10358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 cat >conftest.$ac_ext <<_ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10372 #define $ac_func innocuous_$ac_func
10374 /* System header to define __stub macros and hopefully few prototypes,
10375 which can conflict with char $ac_func (); below.
10376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10377 <limits.h> exists even on freestanding compilers. */
10380 # include <limits.h>
10382 # include <assert.h>
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10394 /* The GNU C library defines this for functions which it implements
10395 to always fail with ENOSYS. Some functions are actually named
10396 something starting with __ and the normal name is an alias. */
10397 #if defined __stub_$ac_func || defined __stub___$ac_func
10404 return $ac_func ();
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (ac_try="$ac_link"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_link") 2>conftest.er1
10418 grep -v '^ *+' conftest.er1 >conftest.err
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } &&
10423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10424 { (case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_try") 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest$ac_exeext'
10434 { (case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_try") 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 eval "$as_ac_var=yes"
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 eval "$as_ac_var=no"
10451 rm -f core conftest.err conftest.$ac_objext \
10452 conftest$ac_exeext conftest.$ac_ext
10454 ac_res=`eval echo '${'$as_ac_var'}'`
10455 { echo "$as_me:$LINENO: result: $ac_res" >&5
10456 echo "${ECHO_T}$ac_res" >&6; }
10457 if test `eval echo '${'$as_ac_var'}'` = yes; then
10458 cat >>confdefs.h <<_ACEOF
10459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10465 LIBS="$lt_save_LIBS"
10468 ac_cpp='$CPP $CPPFLAGS'
10469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10475 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10476 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10477 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 ac_cv_sys_symbol_underscore=no
10481 cat > conftest.$ac_ext <<EOF
10482 void nm_test_func(){}
10483 int main(){nm_test_func;return 0;}
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486 (eval $ac_compile) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; then
10490 # Now try to grab the symbols.
10491 ac_nlist=conftest.nm
10492 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10493 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && test -s "$ac_nlist"; then
10497 # See whether the symbols have a leading underscore.
10498 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10499 ac_cv_sys_symbol_underscore=yes
10501 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10504 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10508 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10511 echo "configure: failed program was:" >&5
10517 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10518 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10521 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10522 if test x"$libltdl_cv_func_dlopen" = xyes ||
10523 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10524 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10525 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10526 if test "${libltdl_cv_need_uscore+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 libltdl_cv_need_uscore=unknown
10531 LIBS="$LIBS $LIBADD_DL"
10532 if test "$cross_compiling" = yes; then :
10533 libltdl_cv_need_uscore=cross
10535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10536 lt_status=$lt_dlunknown
10537 cat > conftest.$ac_ext <<EOF
10538 #line 10538 "configure"
10539 #include "confdefs.h"
10548 # define LT_DLGLOBAL RTLD_GLOBAL
10551 # define LT_DLGLOBAL DL_GLOBAL
10553 # define LT_DLGLOBAL 0
10557 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10558 find out it does not work in some platform. */
10559 #ifndef LT_DLLAZY_OR_NOW
10561 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10564 # define LT_DLLAZY_OR_NOW DL_LAZY
10567 # define LT_DLLAZY_OR_NOW RTLD_NOW
10570 # define LT_DLLAZY_OR_NOW DL_NOW
10572 # define LT_DLLAZY_OR_NOW 0
10580 extern "C" void exit (int);
10583 void fnord() { int i=42;}
10586 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10587 int status = $lt_dlunknown;
10591 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10592 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10593 /* dlclose (self); */
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602 (eval $ac_link) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10606 (./conftest; exit; ) >&5 2>/dev/null
10608 case x$lt_status in
10609 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10610 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10611 x$lt_dlunknown|x*) ;;
10614 # compilation failed
10623 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10624 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10628 if test x"$libltdl_cv_need_uscore" = xyes; then
10630 cat >>confdefs.h <<\_ACEOF
10631 #define NEED_USCORE 1
10637 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10638 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10639 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 # PORTME does your system automatically load deplibs for dlopen?
10643 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10644 # For now, we just catch OSes we know something about -- in the
10645 # future, we'll try test this programmatically.
10646 libltdl_cv_sys_dlopen_deplibs=unknown
10648 aix3*|aix4.1.*|aix4.2.*)
10649 # Unknown whether this is true for these versions of AIX, but
10650 # we want this `case' here to explicitly catch those versions.
10651 libltdl_cv_sys_dlopen_deplibs=unknown
10654 libltdl_cv_sys_dlopen_deplibs=yes
10657 # Assuming the user has installed a libdl from somewhere, this is true
10658 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10659 libltdl_cv_sys_dlopen_deplibs=yes
10661 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10662 # GNU and its variants, using gnu ld.so (Glibc)
10663 libltdl_cv_sys_dlopen_deplibs=yes
10666 libltdl_cv_sys_dlopen_deplibs=yes
10669 libltdl_cv_sys_dlopen_deplibs=yes
10671 irix[12345]*|irix6.[01]*)
10672 # Catch all versions of IRIX before 6.2, and indicate that we don't
10673 # know how it worked for any of those versions.
10674 libltdl_cv_sys_dlopen_deplibs=unknown
10677 # The case above catches anything before 6.2, and it's known that
10678 # at 6.2 and later dlopen does load deplibs.
10679 libltdl_cv_sys_dlopen_deplibs=yes
10682 libltdl_cv_sys_dlopen_deplibs=yes
10685 libltdl_cv_sys_dlopen_deplibs=yes
10688 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10689 # it did *not* use an RPATH in a shared library to find objects the
10690 # library depends on, so we explicitly say `no'.
10691 libltdl_cv_sys_dlopen_deplibs=no
10693 osf5.0|osf5.0a|osf5.1)
10694 # dlopen *does* load deplibs and with the right loader patch applied
10695 # it even uses RPATH in a shared library to search for shared objects
10696 # that the library depends on, but there's no easy way to know if that
10697 # patch is installed. Since this is the case, all we can really
10698 # say is unknown -- it depends on the patch being installed. If
10699 # it is, this changes to `yes'. Without it, it would be `no'.
10700 libltdl_cv_sys_dlopen_deplibs=unknown
10703 # the two cases above should catch all versions of osf <= 5.1. Read
10704 # the comments above for what we know about them.
10705 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10706 # is used to find them so we can finally say `yes'.
10707 libltdl_cv_sys_dlopen_deplibs=yes
10710 libltdl_cv_sys_dlopen_deplibs=yes
10712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10713 libltdl_cv_sys_dlopen_deplibs=yes
10718 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10719 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10720 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10722 cat >>confdefs.h <<\_ACEOF
10723 #define LTDL_DLOPEN_DEPLIBS 1
10729 for ac_header in argz.h
10731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 ac_res=`eval echo '${'$as_ac_Header'}'`
10739 { echo "$as_me:$LINENO: result: $ac_res" >&5
10740 echo "${ECHO_T}$ac_res" >&6; }
10742 # Is the header compilable?
10743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10745 cat >conftest.$ac_ext <<_ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751 $ac_includes_default
10752 #include <$ac_header>
10754 rm -f conftest.$ac_objext
10755 if { (ac_try="$ac_compile"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_compile") 2>conftest.er1
10763 grep -v '^ *+' conftest.er1 >conftest.err
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } &&
10768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10769 { (case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_try") 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest.$ac_objext'
10779 { (case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_try") 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_header_compiler=yes
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_header_compiler=no
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10798 echo "${ECHO_T}$ac_header_compiler" >&6; }
10800 # Is the header present?
10801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10803 cat >conftest.$ac_ext <<_ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 #include <$ac_header>
10811 if { (ac_try="$ac_cpp conftest.$ac_ext"
10812 case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10819 grep -v '^ *+' conftest.er1 >conftest.err
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } >/dev/null; then
10824 if test -s conftest.err; then
10825 ac_cpp_err=$ac_c_preproc_warn_flag
10826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10833 if test -z "$ac_cpp_err"; then
10834 ac_header_preproc=yes
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_header_preproc=no
10842 rm -f conftest.err conftest.$ac_ext
10843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10844 echo "${ECHO_T}$ac_header_preproc" >&6; }
10846 # So? What about this header?
10847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10853 ac_header_preproc=yes
10856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10869 ## ------------------------------------ ##
10870 ## Report this to http://llvm.org/bugs/ ##
10871 ## ------------------------------------ ##
10873 ) | sed "s/^/$as_me: WARNING: /" >&2
10876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 eval "$as_ac_Header=\$ac_header_preproc"
10883 ac_res=`eval echo '${'$as_ac_Header'}'`
10884 { echo "$as_me:$LINENO: result: $ac_res" >&5
10885 echo "${ECHO_T}$ac_res" >&6; }
10888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10889 cat >>confdefs.h <<_ACEOF
10890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10898 { echo "$as_me:$LINENO: checking for error_t" >&5
10899 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10900 if test "${ac_cv_type_error_t+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 cat >conftest.$ac_ext <<_ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h. */
10913 typedef error_t ac__type_new_;
10917 if ((ac__type_new_ *) 0)
10919 if (sizeof (ac__type_new_))
10925 rm -f conftest.$ac_objext
10926 if { (ac_try="$ac_compile"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_compile") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1 >conftest.err
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10940 { (case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_try") 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest.$ac_objext'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 ac_cv_type_error_t=yes
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_type_error_t=no
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10970 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10971 if test $ac_cv_type_error_t = yes; then
10973 cat >>confdefs.h <<_ACEOF
10974 #define HAVE_ERROR_T 1
10980 cat >>confdefs.h <<\_ACEOF
10981 #define error_t int
10992 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 cat >conftest.$ac_ext <<_ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11008 #define $ac_func innocuous_$ac_func
11010 /* System header to define __stub macros and hopefully few prototypes,
11011 which can conflict with char $ac_func (); below.
11012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11013 <limits.h> exists even on freestanding compilers. */
11016 # include <limits.h>
11018 # include <assert.h>
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11030 /* The GNU C library defines this for functions which it implements
11031 to always fail with ENOSYS. Some functions are actually named
11032 something starting with __ and the normal name is an alias. */
11033 #if defined __stub_$ac_func || defined __stub___$ac_func
11040 return $ac_func ();
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (ac_try="$ac_link"
11047 case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052 (eval "$ac_link") 2>conftest.er1
11054 grep -v '^ *+' conftest.er1 >conftest.err
11056 cat conftest.err >&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11060 { (case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_try") 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest$ac_exeext'
11070 { (case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_try") 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 eval "$as_ac_var=yes"
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 eval "$as_ac_var=no"
11087 rm -f core conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11090 ac_res=`eval echo '${'$as_ac_var'}'`
11091 { echo "$as_me:$LINENO: result: $ac_res" >&5
11092 echo "${ECHO_T}$ac_res" >&6; }
11093 if test `eval echo '${'$as_ac_var'}'` = yes; then
11094 cat >>confdefs.h <<_ACEOF
11095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11128 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 ac_res=`eval echo '${'$as_ac_Header'}'`
11139 { echo "$as_me:$LINENO: result: $ac_res" >&5
11140 echo "${ECHO_T}$ac_res" >&6; }
11142 # Is the header compilable?
11143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11145 cat >conftest.$ac_ext <<_ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 $ac_includes_default
11152 #include <$ac_header>
11154 rm -f conftest.$ac_objext
11155 if { (ac_try="$ac_compile"
11156 case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_compile") 2>conftest.er1
11163 grep -v '^ *+' conftest.er1 >conftest.err
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } &&
11168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11169 { (case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_try") 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; } &&
11178 { ac_try='test -s conftest.$ac_objext'
11179 { (case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_try") 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }; then
11188 ac_header_compiler=yes
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_header_compiler=no
11196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11198 echo "${ECHO_T}$ac_header_compiler" >&6; }
11200 # Is the header present?
11201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11203 cat >conftest.$ac_ext <<_ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 #include <$ac_header>
11211 if { (ac_try="$ac_cpp conftest.$ac_ext"
11212 case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11219 grep -v '^ *+' conftest.er1 >conftest.err
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } >/dev/null; then
11224 if test -s conftest.err; then
11225 ac_cpp_err=$ac_c_preproc_warn_flag
11226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11233 if test -z "$ac_cpp_err"; then
11234 ac_header_preproc=yes
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ac_header_preproc=no
11242 rm -f conftest.err conftest.$ac_ext
11243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11244 echo "${ECHO_T}$ac_header_preproc" >&6; }
11246 # So? What about this header?
11247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11253 ac_header_preproc=yes
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11269 ## ------------------------------------ ##
11270 ## Report this to http://llvm.org/bugs/ ##
11271 ## ------------------------------------ ##
11273 ) | sed "s/^/$as_me: WARNING: /" >&2
11276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 eval "$as_ac_Header=\$ac_header_preproc"
11283 ac_res=`eval echo '${'$as_ac_Header'}'`
11284 { echo "$as_me:$LINENO: result: $ac_res" >&5
11285 echo "${ECHO_T}$ac_res" >&6; }
11288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11289 cat >>confdefs.h <<_ACEOF
11290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11301 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 ac_res=`eval echo '${'$as_ac_Header'}'`
11311 { echo "$as_me:$LINENO: result: $ac_res" >&5
11312 echo "${ECHO_T}$ac_res" >&6; }
11314 # Is the header compilable?
11315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 $ac_includes_default
11324 #include <$ac_header>
11326 rm -f conftest.$ac_objext
11327 if { (ac_try="$ac_compile"
11328 case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 (eval "$ac_compile") 2>conftest.er1
11335 grep -v '^ *+' conftest.er1 >conftest.err
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11341 { (case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_try") 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; } &&
11350 { ac_try='test -s conftest.$ac_objext'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
11360 ac_header_compiler=yes
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 ac_header_compiler=no
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11370 echo "${ECHO_T}$ac_header_compiler" >&6; }
11372 # Is the header present?
11373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11375 cat >conftest.$ac_ext <<_ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 #include <$ac_header>
11383 if { (ac_try="$ac_cpp conftest.$ac_ext"
11384 case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11391 grep -v '^ *+' conftest.er1 >conftest.err
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } >/dev/null; then
11396 if test -s conftest.err; then
11397 ac_cpp_err=$ac_c_preproc_warn_flag
11398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11405 if test -z "$ac_cpp_err"; then
11406 ac_header_preproc=yes
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 ac_header_preproc=no
11414 rm -f conftest.err conftest.$ac_ext
11415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416 echo "${ECHO_T}$ac_header_preproc" >&6; }
11418 # So? What about this header?
11419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425 ac_header_preproc=yes
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11441 ## ------------------------------------ ##
11442 ## Report this to http://llvm.org/bugs/ ##
11443 ## ------------------------------------ ##
11445 ) | sed "s/^/$as_me: WARNING: /" >&2
11448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 eval "$as_ac_Header=\$ac_header_preproc"
11455 ac_res=`eval echo '${'$as_ac_Header'}'`
11456 { echo "$as_me:$LINENO: result: $ac_res" >&5
11457 echo "${ECHO_T}$ac_res" >&6; }
11460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11461 cat >>confdefs.h <<_ACEOF
11462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11471 for ac_header in string.h strings.h
11473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 ac_res=`eval echo '${'$as_ac_Header'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11484 # Is the header compilable?
11485 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11487 cat >conftest.$ac_ext <<_ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 $ac_includes_default
11494 #include <$ac_header>
11496 rm -f conftest.$ac_objext
11497 if { (ac_try="$ac_compile"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_compile") 2>conftest.er1
11505 grep -v '^ *+' conftest.er1 >conftest.err
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } &&
11510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11511 { (case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_try") 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest.$ac_objext'
11521 { (case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_try") 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_header_compiler=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_header_compiler=no
11538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11540 echo "${ECHO_T}$ac_header_compiler" >&6; }
11542 # Is the header present?
11543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11545 cat >conftest.$ac_ext <<_ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551 #include <$ac_header>
11553 if { (ac_try="$ac_cpp conftest.$ac_ext"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } >/dev/null; then
11566 if test -s conftest.err; then
11567 ac_cpp_err=$ac_c_preproc_warn_flag
11568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11575 if test -z "$ac_cpp_err"; then
11576 ac_header_preproc=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_header_preproc=no
11584 rm -f conftest.err conftest.$ac_ext
11585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11586 echo "${ECHO_T}$ac_header_preproc" >&6; }
11588 # So? What about this header?
11589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11595 ac_header_preproc=yes
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11611 ## ------------------------------------ ##
11612 ## Report this to http://llvm.org/bugs/ ##
11613 ## ------------------------------------ ##
11615 ) | sed "s/^/$as_me: WARNING: /" >&2
11618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 eval "$as_ac_Header=\$ac_header_preproc"
11625 ac_res=`eval echo '${'$as_ac_Header'}'`
11626 { echo "$as_me:$LINENO: result: $ac_res" >&5
11627 echo "${ECHO_T}$ac_res" >&6; }
11630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11631 cat >>confdefs.h <<_ACEOF
11632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11642 for ac_func in strchr index
11644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 cat >conftest.$ac_ext <<_ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11658 #define $ac_func innocuous_$ac_func
11660 /* System header to define __stub macros and hopefully few prototypes,
11661 which can conflict with char $ac_func (); below.
11662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 <limits.h> exists even on freestanding compilers. */
11666 # include <limits.h>
11668 # include <assert.h>
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11680 /* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683 #if defined __stub_$ac_func || defined __stub___$ac_func
11690 return $ac_func ();
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_link") 2>conftest.er1
11704 grep -v '^ *+' conftest.er1 >conftest.err
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11710 { (case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_try") 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest$ac_exeext'
11720 { (case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_try") 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 eval "$as_ac_var=yes"
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 eval "$as_ac_var=no"
11737 rm -f core conftest.err conftest.$ac_objext \
11738 conftest$ac_exeext conftest.$ac_ext
11740 ac_res=`eval echo '${'$as_ac_var'}'`
11741 { echo "$as_me:$LINENO: result: $ac_res" >&5
11742 echo "${ECHO_T}$ac_res" >&6; }
11743 if test `eval echo '${'$as_ac_var'}'` = yes; then
11744 cat >>confdefs.h <<_ACEOF
11745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11753 for ac_func in strrchr rindex
11755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11769 #define $ac_func innocuous_$ac_func
11771 /* System header to define __stub macros and hopefully few prototypes,
11772 which can conflict with char $ac_func (); below.
11773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774 <limits.h> exists even on freestanding compilers. */
11777 # include <limits.h>
11779 # include <assert.h>
11784 /* Override any GCC internal prototype to avoid an error.
11785 Use char because int might match the return type of a GCC
11786 builtin and then its argument prototype would still apply. */
11791 /* The GNU C library defines this for functions which it implements
11792 to always fail with ENOSYS. Some functions are actually named
11793 something starting with __ and the normal name is an alias. */
11794 #if defined __stub_$ac_func || defined __stub___$ac_func
11801 return $ac_func ();
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (ac_try="$ac_link"
11808 case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>conftest.er1
11815 grep -v '^ *+' conftest.er1 >conftest.err
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821 { (case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_try") 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest$ac_exeext'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 eval "$as_ac_var=yes"
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 eval "$as_ac_var=no"
11848 rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11851 ac_res=`eval echo '${'$as_ac_var'}'`
11852 { echo "$as_me:$LINENO: result: $ac_res" >&5
11853 echo "${ECHO_T}$ac_res" >&6; }
11854 if test `eval echo '${'$as_ac_var'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11864 for ac_func in memcpy bcopy
11866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11880 #define $ac_func innocuous_$ac_func
11882 /* System header to define __stub macros and hopefully few prototypes,
11883 which can conflict with char $ac_func (); below.
11884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885 <limits.h> exists even on freestanding compilers. */
11888 # include <limits.h>
11890 # include <assert.h>
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11902 /* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905 #if defined __stub_$ac_func || defined __stub___$ac_func
11912 return $ac_func ();
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } &&
11931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11932 { (case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_try") 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest$ac_exeext'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 eval "$as_ac_var=yes"
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 eval "$as_ac_var=no"
11959 rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11962 ac_res=`eval echo '${'$as_ac_var'}'`
11963 { echo "$as_me:$LINENO: result: $ac_res" >&5
11964 echo "${ECHO_T}$ac_res" >&6; }
11965 if test `eval echo '${'$as_ac_var'}'` = yes; then
11966 cat >>confdefs.h <<_ACEOF
11967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11975 for ac_func in memmove strcmp
11977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11991 #define $ac_func innocuous_$ac_func
11993 /* System header to define __stub macros and hopefully few prototypes,
11994 which can conflict with char $ac_func (); below.
11995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996 <limits.h> exists even on freestanding compilers. */
11999 # include <limits.h>
12001 # include <assert.h>
12006 /* Override any GCC internal prototype to avoid an error.
12007 Use char because int might match the return type of a GCC
12008 builtin and then its argument prototype would still apply. */
12013 /* The GNU C library defines this for functions which it implements
12014 to always fail with ENOSYS. Some functions are actually named
12015 something starting with __ and the normal name is an alias. */
12016 #if defined __stub_$ac_func || defined __stub___$ac_func
12023 return $ac_func ();
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_link") 2>conftest.er1
12037 grep -v '^ *+' conftest.er1 >conftest.err
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12043 { (case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_try") 2>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; } &&
12052 { ac_try='test -s conftest$ac_exeext'
12053 { (case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_try") 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 eval "$as_ac_var=yes"
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 eval "$as_ac_var=no"
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12073 ac_res=`eval echo '${'$as_ac_var'}'`
12074 { echo "$as_me:$LINENO: result: $ac_res" >&5
12075 echo "${ECHO_T}$ac_res" >&6; }
12076 if test `eval echo '${'$as_ac_var'}'` = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12087 for ac_func in closedir opendir readdir
12089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 cat >conftest.$ac_ext <<_ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12103 #define $ac_func innocuous_$ac_func
12105 /* System header to define __stub macros and hopefully few prototypes,
12106 which can conflict with char $ac_func (); below.
12107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12108 <limits.h> exists even on freestanding compilers. */
12111 # include <limits.h>
12113 # include <assert.h>
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12125 /* The GNU C library defines this for functions which it implements
12126 to always fail with ENOSYS. Some functions are actually named
12127 something starting with __ and the normal name is an alias. */
12128 #if defined __stub_$ac_func || defined __stub___$ac_func
12135 return $ac_func ();
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (ac_try="$ac_link"
12142 case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_link") 2>conftest.er1
12149 grep -v '^ *+' conftest.er1 >conftest.err
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12155 { (case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_try") 2>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; } &&
12164 { ac_try='test -s conftest$ac_exeext'
12165 { (case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_try") 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 eval "$as_ac_var=yes"
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12179 eval "$as_ac_var=no"
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12185 ac_res=`eval echo '${'$as_ac_var'}'`
12186 { echo "$as_me:$LINENO: result: $ac_res" >&5
12187 echo "${ECHO_T}$ac_res" >&6; }
12188 if test `eval echo '${'$as_ac_var'}'` = yes; then
12189 cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12198 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12199 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12212 if test "$GCC" != "yes" && test "$ICC" != "yes"
12214 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12215 echo "$as_me: error: gcc|icc required but not found" >&2;}
12216 { (exit 1); exit 1; }; }
12219 if test "$GXX" != "yes" && test "$IXX" != "yes"
12221 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12222 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12223 { (exit 1); exit 1; }; }
12226 if test "$GCC" = "yes"
12228 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12236 #if !defined(__GNUC__) || __GNUC__ < 3
12237 #error Unsupported GCC version
12242 rm -f conftest.$ac_objext
12243 if { (ac_try="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_compile") 2>conftest.er1
12251 grep -v '^ *+' conftest.er1 >conftest.err
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12257 { (case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_try") 2>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; } &&
12266 { ac_try='test -s conftest.$ac_objext'
12267 { (case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_try") 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12282 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12283 { (exit 1); exit 1; }; }
12286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289 if test -z "$llvm_cv_gnu_make_command"
12291 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12292 echo "$as_me: error: GNU Make required but not found" >&2;}
12293 { (exit 1); exit 1; }; }
12296 { echo "$as_me:$LINENO: result: ok" >&5
12297 echo "${ECHO_T}ok" >&6; }
12299 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12300 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12301 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12303 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12305 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12309 NO_MAYBE_UNINITIALIZED=
12310 if test "$GXX" = "yes"
12312 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12314 if test -z "$NO_MAYBE_UNINITIALIZED"
12316 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12320 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12321 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12324 # Check whether --with-python was given.
12325 if test "${with_python+set}" = set; then
12326 withval=$with_python; PYTHON="$withval"
12330 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12331 { echo "$as_me:$LINENO: checking for python" >&5
12332 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12333 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12334 echo "${ECHO_T}user defined: $with_python" >&6; }
12336 if test -n "$PYTHON" ; then
12337 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12338 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12341 # Extract the first word of "python python2 python26", so it can be a program name with args.
12342 set dummy python python2 python26; ac_word=$2
12343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12345 if test "${ac_cv_path_PYTHON+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12360 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12369 echo "${ECHO_T}not found" >&6; }
12370 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12371 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12372 { (exit 1); exit 1; }; }"
12376 PYTHON=$ac_cv_path_PYTHON
12377 if test -n "$PYTHON"; then
12378 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12379 echo "${ECHO_T}$PYTHON" >&6; }
12381 { echo "$as_me:$LINENO: result: no" >&5
12382 echo "${ECHO_T}no" >&6; }
12388 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12389 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12390 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12391 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12392 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12393 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12394 if test "$ac_python_version_major" -eq "2" \
12395 && test "$ac_python_version_minor" -ge "5" ; then
12396 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12397 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12399 { echo "$as_me:$LINENO: result: not found" >&5
12400 echo "${ECHO_T}not found" >&6; }
12401 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12402 See \`config.log' for more details." >&5
12403 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12404 See \`config.log' for more details." >&2;}
12405 { (exit 1); exit 1; }; }
12410 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12411 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12412 if test "${ac_cv_lib_m_sin+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 ac_check_lib_save_LIBS=$LIBS
12417 cat >conftest.$ac_ext <<_ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12424 /* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (ac_try="$ac_link"
12441 case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446 (eval "$ac_link") 2>conftest.er1
12448 grep -v '^ *+' conftest.er1 >conftest.err
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12454 { (case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_try") 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest$ac_exeext'
12464 { (case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_try") 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_lib_m_sin=yes
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12481 rm -f core conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12483 LIBS=$ac_check_lib_save_LIBS
12485 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12486 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12487 if test $ac_cv_lib_m_sin = yes; then
12488 cat >>confdefs.h <<_ACEOF
12489 #define HAVE_LIBM 1
12496 if test "$llvm_cv_os_type" = "MingW" ; then
12498 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12499 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12500 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-limagehlp $LIBS"
12505 cat >conftest.$ac_ext <<_ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (ac_try="$ac_link"
12523 case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_link") 2>conftest.er1
12530 grep -v '^ *+' conftest.er1 >conftest.err
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12536 { (case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_try") 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest$ac_exeext'
12546 { (case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_try") 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 ac_cv_lib_imagehlp_main=yes
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12560 ac_cv_lib_imagehlp_main=no
12563 rm -f core conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12567 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12568 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12569 if test $ac_cv_lib_imagehlp_main = yes; then
12570 cat >>confdefs.h <<_ACEOF
12571 #define HAVE_LIBIMAGEHLP 1
12574 LIBS="-limagehlp $LIBS"
12579 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12580 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12581 if test "${ac_cv_lib_psapi_main+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 ac_check_lib_save_LIBS=$LIBS
12585 LIBS="-lpsapi $LIBS"
12586 cat >conftest.$ac_ext <<_ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12602 rm -f conftest.$ac_objext conftest$ac_exeext
12603 if { (ac_try="$ac_link"
12604 case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606 *) ac_try_echo=$ac_try;;
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609 (eval "$ac_link") 2>conftest.er1
12611 grep -v '^ *+' conftest.er1 >conftest.err
12613 cat conftest.err >&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
12616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12617 { (case "(($ac_try" in
12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619 *) ac_try_echo=$ac_try;;
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622 (eval "$ac_try") 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try='test -s conftest$ac_exeext'
12627 { (case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_try") 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 ac_cv_lib_psapi_main=yes
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12641 ac_cv_lib_psapi_main=no
12644 rm -f core conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
12646 LIBS=$ac_check_lib_save_LIBS
12648 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12649 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12650 if test $ac_cv_lib_psapi_main = yes; then
12651 cat >>confdefs.h <<_ACEOF
12652 #define HAVE_LIBPSAPI 1
12655 LIBS="-lpsapi $LIBS"
12661 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12662 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12663 if test "${ac_cv_search_dlopen+set}" = set; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 ac_func_search_save_LIBS=$LIBS
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12674 /* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
12689 for ac_lib in '' dl; do
12690 if test -z "$ac_lib"; then
12691 ac_res="none required"
12694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (ac_try="$ac_link"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_link") 2>conftest.er1
12705 grep -v '^ *+' conftest.er1 >conftest.err
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12711 { (case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_try") 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try='test -s conftest$ac_exeext'
12721 { (case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_try") 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
12730 ac_cv_search_dlopen=$ac_res
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12738 rm -f core conftest.err conftest.$ac_objext \
12740 if test "${ac_cv_search_dlopen+set}" = set; then
12744 if test "${ac_cv_search_dlopen+set}" = set; then
12747 ac_cv_search_dlopen=no
12749 rm conftest.$ac_ext
12750 LIBS=$ac_func_search_save_LIBS
12752 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12753 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12754 ac_res=$ac_cv_search_dlopen
12755 if test "$ac_res" != no; then
12756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12758 cat >>confdefs.h <<\_ACEOF
12759 #define HAVE_DLOPEN 1
12763 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12764 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12768 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12769 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12770 if test "${ac_cv_search_clock_gettime+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 ac_func_search_save_LIBS=$LIBS
12774 cat >conftest.$ac_ext <<_ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12781 /* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12787 char clock_gettime ();
12791 return clock_gettime ();
12796 for ac_lib in '' rt; do
12797 if test -z "$ac_lib"; then
12798 ac_res="none required"
12801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (ac_try="$ac_link"
12805 case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12812 grep -v '^ *+' conftest.er1 >conftest.err
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12818 { (case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_try") 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } &&
12827 { ac_try='test -s conftest$ac_exeext'
12828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_cv_search_clock_gettime=$ac_res
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12845 rm -f core conftest.err conftest.$ac_objext \
12847 if test "${ac_cv_search_clock_gettime+set}" = set; then
12851 if test "${ac_cv_search_clock_gettime+set}" = set; then
12854 ac_cv_search_clock_gettime=no
12856 rm conftest.$ac_ext
12857 LIBS=$ac_func_search_save_LIBS
12859 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12860 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12861 ac_res=$ac_cv_search_clock_gettime
12862 if test "$ac_res" != no; then
12863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12868 if test "$llvm_cv_enable_libffi" = "yes" ; then
12869 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12870 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12871 if test "${ac_cv_search_ffi_call+set}" = set; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 ac_func_search_save_LIBS=$LIBS
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12892 return ffi_call ();
12897 for ac_lib in '' ffi; do
12898 if test -z "$ac_lib"; then
12899 ac_res="none required"
12902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_link") 2>conftest.er1
12913 grep -v '^ *+' conftest.er1 >conftest.err
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919 { (case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_try") 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_try") 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 ac_cv_search_ffi_call=$ac_res
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12946 rm -f core conftest.err conftest.$ac_objext \
12948 if test "${ac_cv_search_ffi_call+set}" = set; then
12952 if test "${ac_cv_search_ffi_call+set}" = set; then
12955 ac_cv_search_ffi_call=no
12957 rm conftest.$ac_ext
12958 LIBS=$ac_func_search_save_LIBS
12960 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12961 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12962 ac_res=$ac_cv_search_ffi_call
12963 if test "$ac_res" != no; then
12964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12966 cat >>confdefs.h <<\_ACEOF
12967 #define HAVE_FFI_CALL 1
12971 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12972 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12973 { (exit 1); exit 1; }; }
12978 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12979 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12980 if test "${ac_cv_search_mallinfo+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 ac_func_search_save_LIBS=$LIBS
12984 cat >conftest.$ac_ext <<_ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12991 /* Override any GCC internal prototype to avoid an error.
12992 Use char because int might match the return type of a GCC
12993 builtin and then its argument prototype would still apply. */
13001 return mallinfo ();
13006 for ac_lib in '' malloc; do
13007 if test -z "$ac_lib"; then
13008 ac_res="none required"
13011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_link") 2>conftest.er1
13022 grep -v '^ *+' conftest.er1 >conftest.err
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } &&
13027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13028 { (case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_try") 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_cv_search_mallinfo=$ac_res
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13055 rm -f core conftest.err conftest.$ac_objext \
13057 if test "${ac_cv_search_mallinfo+set}" = set; then
13061 if test "${ac_cv_search_mallinfo+set}" = set; then
13064 ac_cv_search_mallinfo=no
13066 rm conftest.$ac_ext
13067 LIBS=$ac_func_search_save_LIBS
13069 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13070 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13071 ac_res=$ac_cv_search_mallinfo
13072 if test "$ac_res" != no; then
13073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_MALLINFO 1
13082 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13084 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13085 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13086 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 ac_check_lib_save_LIBS=$LIBS
13090 LIBS="-lpthread $LIBS"
13091 cat >conftest.$ac_ext <<_ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13098 /* Override any GCC internal prototype to avoid an error.
13099 Use char because int might match the return type of a GCC
13100 builtin and then its argument prototype would still apply. */
13104 char pthread_mutex_init ();
13108 return pthread_mutex_init ();
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (ac_try="$ac_link"
13115 case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_link") 2>conftest.er1
13122 grep -v '^ *+' conftest.er1 >conftest.err
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest$ac_exeext'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_cv_lib_pthread_pthread_mutex_init=yes
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_cv_lib_pthread_pthread_mutex_init=no
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13159 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13160 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13161 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13162 cat >>confdefs.h <<_ACEOF
13163 #define HAVE_LIBPTHREAD 1
13166 LIBS="-lpthread $LIBS"
13170 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13171 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13172 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13175 ac_func_search_save_LIBS=$LIBS
13176 cat >conftest.$ac_ext <<_ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13189 char pthread_mutex_lock ();
13193 return pthread_mutex_lock ();
13198 for ac_lib in '' pthread; do
13199 if test -z "$ac_lib"; then
13200 ac_res="none required"
13203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13205 rm -f conftest.$ac_objext conftest$ac_exeext
13206 if { (ac_try="$ac_link"
13207 case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_link") 2>conftest.er1
13214 grep -v '^ *+' conftest.er1 >conftest.err
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; } &&
13229 { ac_try='test -s conftest$ac_exeext'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_cv_search_pthread_mutex_lock=$ac_res
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13247 rm -f core conftest.err conftest.$ac_objext \
13249 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13253 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13256 ac_cv_search_pthread_mutex_lock=no
13258 rm conftest.$ac_ext
13259 LIBS=$ac_func_search_save_LIBS
13261 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13262 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13263 ac_res=$ac_cv_search_pthread_mutex_lock
13264 if test "$ac_res" != no; then
13265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13267 cat >>confdefs.h <<\_ACEOF
13268 #define HAVE_PTHREAD_MUTEX_LOCK 1
13273 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13274 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13275 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 ac_func_search_save_LIBS=$LIBS
13279 cat >conftest.$ac_ext <<_ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13286 /* Override any GCC internal prototype to avoid an error.
13287 Use char because int might match the return type of a GCC
13288 builtin and then its argument prototype would still apply. */
13292 char pthread_rwlock_init ();
13296 return pthread_rwlock_init ();
13301 for ac_lib in '' pthread; do
13302 if test -z "$ac_lib"; then
13303 ac_res="none required"
13306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13308 rm -f conftest.$ac_objext conftest$ac_exeext
13309 if { (ac_try="$ac_link"
13310 case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_link") 2>conftest.er1
13317 grep -v '^ *+' conftest.er1 >conftest.err
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } &&
13322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest$ac_exeext'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13342 ac_cv_search_pthread_rwlock_init=$ac_res
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13350 rm -f core conftest.err conftest.$ac_objext \
13352 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13356 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13359 ac_cv_search_pthread_rwlock_init=no
13361 rm conftest.$ac_ext
13362 LIBS=$ac_func_search_save_LIBS
13364 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13365 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13366 ac_res=$ac_cv_search_pthread_rwlock_init
13367 if test "$ac_res" != no; then
13368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13370 cat >>confdefs.h <<\_ACEOF
13371 #define HAVE_PTHREAD_RWLOCK_INIT 1
13376 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13377 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13378 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 ac_func_search_save_LIBS=$LIBS
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13389 /* Override any GCC internal prototype to avoid an error.
13390 Use char because int might match the return type of a GCC
13391 builtin and then its argument prototype would still apply. */
13395 char pthread_getspecific ();
13399 return pthread_getspecific ();
13404 for ac_lib in '' pthread; do
13405 if test -z "$ac_lib"; then
13406 ac_res="none required"
13409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13411 rm -f conftest.$ac_objext conftest$ac_exeext
13412 if { (ac_try="$ac_link"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_link") 2>conftest.er1
13420 grep -v '^ *+' conftest.er1 >conftest.err
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest$ac_exeext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_cv_search_pthread_getspecific=$ac_res
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13453 rm -f core conftest.err conftest.$ac_objext \
13455 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13459 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13462 ac_cv_search_pthread_getspecific=no
13464 rm conftest.$ac_ext
13465 LIBS=$ac_func_search_save_LIBS
13467 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13468 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13469 ac_res=$ac_cv_search_pthread_getspecific
13470 if test "$ac_res" != no; then
13471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13473 cat >>confdefs.h <<\_ACEOF
13474 #define HAVE_PTHREAD_GETSPECIFIC 1
13481 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13483 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13484 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13485 if test "${ac_cv_lib_z_compress2+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 ac_check_lib_save_LIBS=$LIBS
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13507 return compress2 ();
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (ac_try="$ac_link"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_link") 2>conftest.er1
13521 grep -v '^ *+' conftest.er1 >conftest.err
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest$ac_exeext'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_cv_lib_z_compress2=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 ac_cv_lib_z_compress2=no
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13556 LIBS=$ac_check_lib_save_LIBS
13558 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13559 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13560 if test $ac_cv_lib_z_compress2 = yes; then
13561 cat >>confdefs.h <<_ACEOF
13562 #define HAVE_LIBZ 1
13572 # Check whether --with-udis86 was given.
13573 if test "${with_udis86+set}" = set; then
13574 withval=$with_udis86;
13579 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13582 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13583 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13584 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 ac_check_lib_save_LIBS=$LIBS
13588 LIBS="-ludis86 $LIBS"
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13596 /* Override any GCC internal prototype to avoid an error.
13597 Use char because int might match the return type of a GCC
13598 builtin and then its argument prototype would still apply. */
13611 rm -f conftest.$ac_objext conftest$ac_exeext
13612 if { (ac_try="$ac_link"
13613 case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_link") 2>conftest.er1
13620 grep -v '^ *+' conftest.er1 >conftest.err
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13626 { (case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_try") 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; } &&
13635 { ac_try='test -s conftest$ac_exeext'
13636 { (case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_try") 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }; then
13645 ac_cv_lib_udis86_ud_init=yes
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13650 ac_cv_lib_udis86_ud_init=no
13653 rm -f core conftest.err conftest.$ac_objext \
13654 conftest$ac_exeext conftest.$ac_ext
13655 LIBS=$ac_check_lib_save_LIBS
13657 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13658 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13659 if test $ac_cv_lib_udis86_ud_init = yes; then
13660 cat >>confdefs.h <<_ACEOF
13661 #define HAVE_LIBUDIS86 1
13664 LIBS="-ludis86 $LIBS"
13668 echo "Error! You need to have libudis86 around."
13680 cat >>confdefs.h <<_ACEOF
13681 #define USE_UDIS86 $USE_UDIS86
13686 # Check whether --with-oprofile was given.
13687 if test "${with_oprofile+set}" = set; then
13688 withval=$with_oprofile;
13692 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13693 no) llvm_cv_oppath=
13696 *) llvm_cv_oppath="${withval}/lib/oprofile"
13697 CPPFLAGS="-I${withval}/include";;
13699 case $llvm_cv_os_type in
13701 if test -n "$llvm_cv_oppath" ; then
13702 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13703 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13704 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13705 if test "${ac_cv_search_bfd_init+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 ac_func_search_save_LIBS=$LIBS
13709 cat >conftest.$ac_ext <<_ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13716 /* Override any GCC internal prototype to avoid an error.
13717 Use char because int might match the return type of a GCC
13718 builtin and then its argument prototype would still apply. */
13726 return bfd_init ();
13731 for ac_lib in '' bfd; do
13732 if test -z "$ac_lib"; then
13733 ac_res="none required"
13736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13738 rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (ac_try="$ac_link"
13740 case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_link") 2>conftest.er1
13747 grep -v '^ *+' conftest.er1 >conftest.err
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753 { (case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_try") 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest$ac_exeext'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_cv_search_bfd_init=$ac_res
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13780 rm -f core conftest.err conftest.$ac_objext \
13782 if test "${ac_cv_search_bfd_init+set}" = set; then
13786 if test "${ac_cv_search_bfd_init+set}" = set; then
13789 ac_cv_search_bfd_init=no
13791 rm conftest.$ac_ext
13792 LIBS=$ac_func_search_save_LIBS
13794 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13795 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13796 ac_res=$ac_cv_search_bfd_init
13797 if test "$ac_res" != no; then
13798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13802 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13803 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13804 if test "${ac_cv_search_op_open_agent+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 ac_func_search_save_LIBS=$LIBS
13808 cat >conftest.$ac_ext <<_ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13815 /* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13821 char op_open_agent ();
13825 return op_open_agent ();
13830 for ac_lib in '' opagent; do
13831 if test -z "$ac_lib"; then
13832 ac_res="none required"
13835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13837 rm -f conftest.$ac_objext conftest$ac_exeext
13838 if { (ac_try="$ac_link"
13839 case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_link") 2>conftest.er1
13846 grep -v '^ *+' conftest.er1 >conftest.err
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest$ac_exeext'
13862 { (case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_try") 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13871 ac_cv_search_op_open_agent=$ac_res
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13879 rm -f core conftest.err conftest.$ac_objext \
13881 if test "${ac_cv_search_op_open_agent+set}" = set; then
13885 if test "${ac_cv_search_op_open_agent+set}" = set; then
13888 ac_cv_search_op_open_agent=no
13890 rm conftest.$ac_ext
13891 LIBS=$ac_func_search_save_LIBS
13893 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13894 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13895 ac_res=$ac_cv_search_op_open_agent
13896 if test "$ac_res" != no; then
13897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13901 echo "Error! You need to have libopagent around."
13906 if test "${ac_cv_header_opagent_h+set}" = set; then
13907 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13908 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13909 if test "${ac_cv_header_opagent_h+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13913 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13915 # Is the header compilable?
13916 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13917 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13918 cat >conftest.$ac_ext <<_ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h. */
13924 $ac_includes_default
13925 #include <opagent.h>
13927 rm -f conftest.$ac_objext
13928 if { (ac_try="$ac_compile"
13929 case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_compile") 2>conftest.er1
13936 grep -v '^ *+' conftest.er1 >conftest.err
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } &&
13941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13942 { (case "(($ac_try" in
13943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944 *) ac_try_echo=$ac_try;;
13946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947 (eval "$ac_try") 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; } &&
13951 { ac_try='test -s conftest.$ac_objext'
13952 { (case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957 (eval "$ac_try") 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13961 ac_header_compiler=yes
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13966 ac_header_compiler=no
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13971 echo "${ECHO_T}$ac_header_compiler" >&6; }
13973 # Is the header present?
13974 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13975 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13976 cat >conftest.$ac_ext <<_ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 #include <opagent.h>
13984 if { (ac_try="$ac_cpp conftest.$ac_ext"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13992 grep -v '^ *+' conftest.er1 >conftest.err
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } >/dev/null; then
13997 if test -s conftest.err; then
13998 ac_cpp_err=$ac_c_preproc_warn_flag
13999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14006 if test -z "$ac_cpp_err"; then
14007 ac_header_preproc=yes
14009 echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14012 ac_header_preproc=no
14015 rm -f conftest.err conftest.$ac_ext
14016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14017 echo "${ECHO_T}$ac_header_preproc" >&6; }
14019 # So? What about this header?
14020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14022 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14023 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14025 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14026 ac_header_preproc=yes
14029 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14030 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14032 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14034 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14036 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14038 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14040 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14042 ## ------------------------------------ ##
14043 ## Report this to http://llvm.org/bugs/ ##
14044 ## ------------------------------------ ##
14046 ) | sed "s/^/$as_me: WARNING: /" >&2
14049 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14050 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14051 if test "${ac_cv_header_opagent_h+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 ac_cv_header_opagent_h=$ac_header_preproc
14056 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14057 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14060 if test $ac_cv_header_opagent_h = yes; then
14064 echo "Error! You need to have opagent.h around."
14072 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14073 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14074 { (exit 1); exit 1; }; } ;;
14085 cat >>confdefs.h <<_ACEOF
14086 #define LLVM_USE_OPROFILE $USE_OPROFILE
14091 # Check whether --with-intel-jitevents was given.
14092 if test "${with_intel_jitevents+set}" = set; then
14093 withval=$with_intel_jitevents;
14095 yes) USE_INTEL_JITEVENTS=1
14097 no) USE_INTEL_JITEVENTS=0
14099 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14100 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14101 { (exit 1); exit 1; }; };;
14104 case $llvm_cv_os_type in
14105 Linux|Win32|Cygwin|MingW) ;;
14106 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14107 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14108 { (exit 1); exit 1; }; };;
14111 case "$llvm_cv_target_arch" in
14113 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14114 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14115 { (exit 1); exit 1; }; };;
14120 USE_INTEL_JITEVENTS=0
14126 cat >>confdefs.h <<_ACEOF
14127 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14131 for ac_prog in xml2-config
14133 # Extract the first word of "$ac_prog", so it can be a program name with args.
14134 set dummy $ac_prog; ac_word=$2
14135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14137 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 if test -n "$XML2CONFIG"; then
14141 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14150 ac_cv_prog_XML2CONFIG="$ac_prog"
14151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14161 if test -n "$XML2CONFIG"; then
14162 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14163 echo "${ECHO_T}$XML2CONFIG" >&6; }
14165 { echo "$as_me:$LINENO: result: no" >&5
14166 echo "${ECHO_T}no" >&6; }
14170 test -n "$XML2CONFIG" && break
14174 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14175 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14176 if test "x$XML2CONFIG" = "x"; then
14177 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14178 echo "${ECHO_T}xml2-config not found" >&6; }
14180 LIBXML2_INC=`$XML2CONFIG --cflags`
14181 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14182 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14183 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14184 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14185 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14188 ac_check_lib_save_LIBS=$LIBS
14189 LIBS="-lxml2 $LIBS"
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14197 /* Override any GCC internal prototype to avoid an error.
14198 Use char because int might match the return type of a GCC
14199 builtin and then its argument prototype would still apply. */
14203 char xmlReadFile ();
14207 return xmlReadFile ();
14212 rm -f conftest.$ac_objext conftest$ac_exeext
14213 if { (ac_try="$ac_link"
14214 case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_link") 2>conftest.er1
14221 grep -v '^ *+' conftest.er1 >conftest.err
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } &&
14226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14227 { (case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_try") 2>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest$ac_exeext'
14237 { (case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_try") 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_cv_lib_xml2_xmlReadFile=yes
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_cv_lib_xml2_xmlReadFile=no
14254 rm -f core conftest.err conftest.$ac_objext \
14255 conftest$ac_exeext conftest.$ac_ext
14256 LIBS=$ac_check_lib_save_LIBS
14258 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14259 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14260 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14262 cat >>confdefs.h <<\_ACEOF
14263 #define CLANG_HAVE_LIBXML 1
14266 LIBXML2_LIBS="-lxml2"
14279 ac_header_dirent=no
14280 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14281 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14282 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14283 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 #include <sys/types.h>
14305 rm -f conftest.$ac_objext
14306 if { (ac_try="$ac_compile"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_compile") 2>conftest.er1
14314 grep -v '^ *+' conftest.er1 >conftest.err
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest.$ac_objext'
14330 { (case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_try") 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 eval "$as_ac_Header=yes"
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 eval "$as_ac_Header=no"
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14349 ac_res=`eval echo '${'$as_ac_Header'}'`
14350 { echo "$as_me:$LINENO: result: $ac_res" >&5
14351 echo "${ECHO_T}$ac_res" >&6; }
14352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14353 cat >>confdefs.h <<_ACEOF
14354 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14357 ac_header_dirent=$ac_hdr; break
14361 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14362 if test $ac_header_dirent = dirent.h; then
14363 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14364 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14365 if test "${ac_cv_search_opendir+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 ac_func_search_save_LIBS=$LIBS
14369 cat >conftest.$ac_ext <<_ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14376 /* Override any GCC internal prototype to avoid an error.
14377 Use char because int might match the return type of a GCC
14378 builtin and then its argument prototype would still apply. */
14391 for ac_lib in '' dir; do
14392 if test -z "$ac_lib"; then
14393 ac_res="none required"
14396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (ac_try="$ac_link"
14400 case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_link") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14413 { (case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_try") 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest$ac_exeext'
14423 { (case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_try") 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_cv_search_opendir=$ac_res
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14440 rm -f core conftest.err conftest.$ac_objext \
14442 if test "${ac_cv_search_opendir+set}" = set; then
14446 if test "${ac_cv_search_opendir+set}" = set; then
14449 ac_cv_search_opendir=no
14451 rm conftest.$ac_ext
14452 LIBS=$ac_func_search_save_LIBS
14454 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14455 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14456 ac_res=$ac_cv_search_opendir
14457 if test "$ac_res" != no; then
14458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14463 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14464 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14465 if test "${ac_cv_search_opendir+set}" = set; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 ac_func_search_save_LIBS=$LIBS
14469 cat >conftest.$ac_ext <<_ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14476 /* Override any GCC internal prototype to avoid an error.
14477 Use char because int might match the return type of a GCC
14478 builtin and then its argument prototype would still apply. */
14491 for ac_lib in '' x; do
14492 if test -z "$ac_lib"; then
14493 ac_res="none required"
14496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14498 rm -f conftest.$ac_objext conftest$ac_exeext
14499 if { (ac_try="$ac_link"
14500 case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_link") 2>conftest.er1
14507 grep -v '^ *+' conftest.er1 >conftest.err
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14513 { (case "(($ac_try" in
14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518 (eval "$ac_try") 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest$ac_exeext'
14523 { (case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_try") 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532 ac_cv_search_opendir=$ac_res
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14540 rm -f core conftest.err conftest.$ac_objext \
14542 if test "${ac_cv_search_opendir+set}" = set; then
14546 if test "${ac_cv_search_opendir+set}" = set; then
14549 ac_cv_search_opendir=no
14551 rm conftest.$ac_ext
14552 LIBS=$ac_func_search_save_LIBS
14554 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14555 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14556 ac_res=$ac_cv_search_opendir
14557 if test "$ac_res" != no; then
14558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14564 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14565 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14566 if test "${ac_cv_header_mmap_anon+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 ac_cpp='$CPP $CPPFLAGS'
14571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14581 #include <sys/mman.h>
14582 #include <unistd.h>
14587 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14592 rm -f conftest.$ac_objext
14593 if { (ac_try="$ac_compile"
14594 case "(($ac_try" in
14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_compile") 2>conftest.er1
14601 grep -v '^ *+' conftest.er1 >conftest.err
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14607 { (case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_try") 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; } &&
14616 { ac_try='test -s conftest.$ac_objext'
14617 { (case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_try") 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14626 ac_cv_header_mmap_anon=yes
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 ac_cv_header_mmap_anon=no
14634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636 ac_cpp='$CPP $CPPFLAGS'
14637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14643 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14644 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14645 if test "$ac_cv_header_mmap_anon" = yes; then
14647 cat >>confdefs.h <<\_ACEOF
14648 #define HAVE_MMAP_ANONYMOUS 1
14653 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14654 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14655 if test "${ac_cv_header_stat_broken+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 cat >conftest.$ac_ext <<_ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #include <sys/types.h>
14665 #include <sys/stat.h>
14667 #if defined S_ISBLK && defined S_IFDIR
14668 # if S_ISBLK (S_IFDIR)
14673 #if defined S_ISBLK && defined S_IFCHR
14674 # if S_ISBLK (S_IFCHR)
14679 #if defined S_ISLNK && defined S_IFREG
14680 # if S_ISLNK (S_IFREG)
14685 #if defined S_ISSOCK && defined S_IFREG
14686 # if S_ISSOCK (S_IFREG)
14692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14693 $EGREP "You lose" >/dev/null 2>&1; then
14694 ac_cv_header_stat_broken=yes
14696 ac_cv_header_stat_broken=no
14701 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14702 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14703 if test $ac_cv_header_stat_broken = yes; then
14705 cat >>confdefs.h <<\_ACEOF
14706 #define STAT_MACROS_BROKEN 1
14711 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14712 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14713 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 cat >conftest.$ac_ext <<_ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14722 #include <sys/types.h>
14723 #include <sys/wait.h>
14724 #ifndef WEXITSTATUS
14725 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14728 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14736 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14741 rm -f conftest.$ac_objext
14742 if { (ac_try="$ac_compile"
14743 case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748 (eval "$ac_compile") 2>conftest.er1
14750 grep -v '^ *+' conftest.er1 >conftest.err
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } &&
14755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14756 { (case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_try") 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; } &&
14765 { ac_try='test -s conftest.$ac_objext'
14766 { (case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_try") 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 ac_cv_header_sys_wait_h=yes
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_cv_header_sys_wait_h=no
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14786 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14787 if test $ac_cv_header_sys_wait_h = yes; then
14789 cat >>confdefs.h <<\_ACEOF
14790 #define HAVE_SYS_WAIT_H 1
14795 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14796 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14797 if test "${ac_cv_header_time+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 cat >conftest.$ac_ext <<_ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 #include <sys/types.h>
14807 #include <sys/time.h>
14813 if ((struct tm *) 0)
14819 rm -f conftest.$ac_objext
14820 if { (ac_try="$ac_compile"
14821 case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_compile") 2>conftest.er1
14828 grep -v '^ *+' conftest.er1 >conftest.err
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14834 { (case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_try") 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; } &&
14843 { ac_try='test -s conftest.$ac_objext'
14844 { (case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_try") 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; }; then
14853 ac_cv_header_time=yes
14855 echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 ac_cv_header_time=no
14861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14864 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14865 if test $ac_cv_header_time = yes; then
14867 cat >>confdefs.h <<\_ACEOF
14868 #define TIME_WITH_SYS_TIME 1
14875 ac_cpp='$CXXCPP $CPPFLAGS'
14876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14881 ac_cpp='$CXXCPP $CPPFLAGS'
14882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14885 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14886 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14887 if test -z "$CXXCPP"; then
14888 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 # Double quotes because CXXCPP needs to be expanded
14892 for CXXCPP in "$CXX -E" "/lib/cpp"
14894 ac_preproc_ok=false
14895 for ac_cxx_preproc_warn_flag in '' yes
14897 # Use a header file that comes with gcc, so configuring glibc
14898 # with a fresh cross-compiler works.
14899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14900 # <limits.h> exists even on freestanding compilers.
14901 # On the NeXT, cc -E runs the code through the compiler's parser,
14902 # not just through cpp. "Syntax error" is here to catch this case.
14903 cat >conftest.$ac_ext <<_ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14910 # include <limits.h>
14912 # include <assert.h>
14916 if { (ac_try="$ac_cpp conftest.$ac_ext"
14917 case "(($ac_try" in
14918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919 *) ac_try_echo=$ac_try;;
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14924 grep -v '^ *+' conftest.er1 >conftest.err
14926 cat conftest.err >&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } >/dev/null; then
14929 if test -s conftest.err; then
14930 ac_cpp_err=$ac_cxx_preproc_warn_flag
14931 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14938 if test -z "$ac_cpp_err"; then
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14944 # Broken: fails on valid input.
14948 rm -f conftest.err conftest.$ac_ext
14950 # OK, works on sane cases. Now check whether nonexistent headers
14951 # can be detected and how.
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include <ac_nonexistent.h>
14960 if { (ac_try="$ac_cpp conftest.$ac_ext"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14968 grep -v '^ *+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } >/dev/null; then
14973 if test -s conftest.err; then
14974 ac_cpp_err=$ac_cxx_preproc_warn_flag
14975 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14982 if test -z "$ac_cpp_err"; then
14983 # Broken: success on invalid input.
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 # Passes both tests.
14994 rm -f conftest.err conftest.$ac_ext
14997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14998 rm -f conftest.err conftest.$ac_ext
14999 if $ac_preproc_ok; then
15004 ac_cv_prog_CXXCPP=$CXXCPP
15007 CXXCPP=$ac_cv_prog_CXXCPP
15009 ac_cv_prog_CXXCPP=$CXXCPP
15011 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15012 echo "${ECHO_T}$CXXCPP" >&6; }
15013 ac_preproc_ok=false
15014 for ac_cxx_preproc_warn_flag in '' yes
15016 # Use a header file that comes with gcc, so configuring glibc
15017 # with a fresh cross-compiler works.
15018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15019 # <limits.h> exists even on freestanding compilers.
15020 # On the NeXT, cc -E runs the code through the compiler's parser,
15021 # not just through cpp. "Syntax error" is here to catch this case.
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15029 # include <limits.h>
15031 # include <assert.h>
15035 if { (ac_try="$ac_cpp conftest.$ac_ext"
15036 case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15043 grep -v '^ *+' conftest.er1 >conftest.err
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } >/dev/null; then
15048 if test -s conftest.err; then
15049 ac_cpp_err=$ac_cxx_preproc_warn_flag
15050 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15057 if test -z "$ac_cpp_err"; then
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 # Broken: fails on valid input.
15067 rm -f conftest.err conftest.$ac_ext
15069 # OK, works on sane cases. Now check whether nonexistent headers
15070 # can be detected and how.
15071 cat >conftest.$ac_ext <<_ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15077 #include <ac_nonexistent.h>
15079 if { (ac_try="$ac_cpp conftest.$ac_ext"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } >/dev/null; then
15092 if test -s conftest.err; then
15093 ac_cpp_err=$ac_cxx_preproc_warn_flag
15094 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15101 if test -z "$ac_cpp_err"; then
15102 # Broken: success on invalid input.
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 # Passes both tests.
15113 rm -f conftest.err conftest.$ac_ext
15116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15117 rm -f conftest.err conftest.$ac_ext
15118 if $ac_preproc_ok; then
15121 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15122 See \`config.log' for more details." >&5
15123 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15124 See \`config.log' for more details." >&2;}
15125 { (exit 1); exit 1; }; }
15129 ac_cpp='$CXXCPP $CPPFLAGS'
15130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15136 for ac_header in cxxabi.h
15138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 ac_res=`eval echo '${'$as_ac_Header'}'`
15146 { echo "$as_me:$LINENO: result: $ac_res" >&5
15147 echo "${ECHO_T}$ac_res" >&6; }
15149 # Is the header compilable?
15150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15152 cat >conftest.$ac_ext <<_ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 $ac_includes_default
15159 #include <$ac_header>
15161 rm -f conftest.$ac_objext
15162 if { (ac_try="$ac_compile"
15163 case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_compile") 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15176 { (case "(($ac_try" in
15177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178 *) ac_try_echo=$ac_try;;
15180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15181 (eval "$ac_try") 2>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; } &&
15185 { ac_try='test -s conftest.$ac_objext'
15186 { (case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_try") 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 ac_header_compiler=yes
15197 echo "$as_me: failed program was:" >&5
15198 sed 's/^/| /' conftest.$ac_ext >&5
15200 ac_header_compiler=no
15203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15205 echo "${ECHO_T}$ac_header_compiler" >&6; }
15207 # Is the header present?
15208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15210 cat >conftest.$ac_ext <<_ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 #include <$ac_header>
15218 if { (ac_try="$ac_cpp conftest.$ac_ext"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } >/dev/null; then
15231 if test -s conftest.err; then
15232 ac_cpp_err=$ac_cxx_preproc_warn_flag
15233 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15240 if test -z "$ac_cpp_err"; then
15241 ac_header_preproc=yes
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 ac_header_preproc=no
15249 rm -f conftest.err conftest.$ac_ext
15250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15251 echo "${ECHO_T}$ac_header_preproc" >&6; }
15253 # So? What about this header?
15254 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15260 ac_header_preproc=yes
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15276 ## ------------------------------------ ##
15277 ## Report this to http://llvm.org/bugs/ ##
15278 ## ------------------------------------ ##
15280 ) | sed "s/^/$as_me: WARNING: /" >&2
15283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 eval "$as_ac_Header=\$ac_header_preproc"
15290 ac_res=`eval echo '${'$as_ac_Header'}'`
15291 { echo "$as_me:$LINENO: result: $ac_res" >&5
15292 echo "${ECHO_T}$ac_res" >&6; }
15295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15296 cat >>confdefs.h <<_ACEOF
15297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15305 ac_cpp='$CPP $CPPFLAGS'
15306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15316 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 ac_res=`eval echo '${'$as_ac_Header'}'`
15326 { echo "$as_me:$LINENO: result: $ac_res" >&5
15327 echo "${ECHO_T}$ac_res" >&6; }
15329 # Is the header compilable?
15330 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15332 cat >conftest.$ac_ext <<_ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 $ac_includes_default
15339 #include <$ac_header>
15341 rm -f conftest.$ac_objext
15342 if { (ac_try="$ac_compile"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_compile") 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } &&
15355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15356 { (case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361 (eval "$ac_try") 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; } &&
15365 { ac_try='test -s conftest.$ac_objext'
15366 { (case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_try") 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 ac_header_compiler=yes
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15380 ac_header_compiler=no
15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15385 echo "${ECHO_T}$ac_header_compiler" >&6; }
15387 # Is the header present?
15388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15390 cat >conftest.$ac_ext <<_ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 #include <$ac_header>
15398 if { (ac_try="$ac_cpp conftest.$ac_ext"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15406 grep -v '^ *+' conftest.er1 >conftest.err
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } >/dev/null; then
15411 if test -s conftest.err; then
15412 ac_cpp_err=$ac_c_preproc_warn_flag
15413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15420 if test -z "$ac_cpp_err"; then
15421 ac_header_preproc=yes
15423 echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15426 ac_header_preproc=no
15429 rm -f conftest.err conftest.$ac_ext
15430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15431 echo "${ECHO_T}$ac_header_preproc" >&6; }
15433 # So? What about this header?
15434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15440 ac_header_preproc=yes
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15456 ## ------------------------------------ ##
15457 ## Report this to http://llvm.org/bugs/ ##
15458 ## ------------------------------------ ##
15460 ) | sed "s/^/$as_me: WARNING: /" >&2
15463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 eval "$as_ac_Header=\$ac_header_preproc"
15470 ac_res=`eval echo '${'$as_ac_Header'}'`
15471 { echo "$as_me:$LINENO: result: $ac_res" >&5
15472 echo "${ECHO_T}$ac_res" >&6; }
15475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15476 cat >>confdefs.h <<_ACEOF
15477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15490 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 ac_res=`eval echo '${'$as_ac_Header'}'`
15500 { echo "$as_me:$LINENO: result: $ac_res" >&5
15501 echo "${ECHO_T}$ac_res" >&6; }
15503 # Is the header compilable?
15504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15506 cat >conftest.$ac_ext <<_ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 $ac_includes_default
15513 #include <$ac_header>
15515 rm -f conftest.$ac_objext
15516 if { (ac_try="$ac_compile"
15517 case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_compile") 2>conftest.er1
15524 grep -v '^ *+' conftest.er1 >conftest.err
15526 cat conftest.err >&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } &&
15529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15530 { (case "(($ac_try" in
15531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532 *) ac_try_echo=$ac_try;;
15534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535 (eval "$ac_try") 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; } &&
15539 { ac_try='test -s conftest.$ac_objext'
15540 { (case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_try") 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 ac_header_compiler=yes
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 ac_header_compiler=no
15557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15559 echo "${ECHO_T}$ac_header_compiler" >&6; }
15561 # Is the header present?
15562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15564 cat >conftest.$ac_ext <<_ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 #include <$ac_header>
15572 if { (ac_try="$ac_cpp conftest.$ac_ext"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } >/dev/null; then
15585 if test -s conftest.err; then
15586 ac_cpp_err=$ac_c_preproc_warn_flag
15587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15594 if test -z "$ac_cpp_err"; then
15595 ac_header_preproc=yes
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_header_preproc=no
15603 rm -f conftest.err conftest.$ac_ext
15604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15605 echo "${ECHO_T}$ac_header_preproc" >&6; }
15607 # So? What about this header?
15608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15614 ac_header_preproc=yes
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15630 ## ------------------------------------ ##
15631 ## Report this to http://llvm.org/bugs/ ##
15632 ## ------------------------------------ ##
15634 ) | sed "s/^/$as_me: WARNING: /" >&2
15637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 eval "$as_ac_Header=\$ac_header_preproc"
15644 ac_res=`eval echo '${'$as_ac_Header'}'`
15645 { echo "$as_me:$LINENO: result: $ac_res" >&5
15646 echo "${ECHO_T}$ac_res" >&6; }
15649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15650 cat >>confdefs.h <<_ACEOF
15651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15660 for ac_header in utime.h windows.h
15662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 ac_res=`eval echo '${'$as_ac_Header'}'`
15670 { echo "$as_me:$LINENO: result: $ac_res" >&5
15671 echo "${ECHO_T}$ac_res" >&6; }
15673 # Is the header compilable?
15674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15676 cat >conftest.$ac_ext <<_ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15682 $ac_includes_default
15683 #include <$ac_header>
15685 rm -f conftest.$ac_objext
15686 if { (ac_try="$ac_compile"
15687 case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692 (eval "$ac_compile") 2>conftest.er1
15694 grep -v '^ *+' conftest.er1 >conftest.err
15696 cat conftest.err >&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } &&
15699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15700 { (case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_try") 2>&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try='test -s conftest.$ac_objext'
15710 { (case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_try") 2>&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; }; then
15719 ac_header_compiler=yes
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15724 ac_header_compiler=no
15727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15729 echo "${ECHO_T}$ac_header_compiler" >&6; }
15731 # Is the header present?
15732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15734 cat >conftest.$ac_ext <<_ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 #include <$ac_header>
15742 if { (ac_try="$ac_cpp conftest.$ac_ext"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15750 grep -v '^ *+' conftest.er1 >conftest.err
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } >/dev/null; then
15755 if test -s conftest.err; then
15756 ac_cpp_err=$ac_c_preproc_warn_flag
15757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15764 if test -z "$ac_cpp_err"; then
15765 ac_header_preproc=yes
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 ac_header_preproc=no
15773 rm -f conftest.err conftest.$ac_ext
15774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15775 echo "${ECHO_T}$ac_header_preproc" >&6; }
15777 # So? What about this header?
15778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15784 ac_header_preproc=yes
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15800 ## ------------------------------------ ##
15801 ## Report this to http://llvm.org/bugs/ ##
15802 ## ------------------------------------ ##
15804 ) | sed "s/^/$as_me: WARNING: /" >&2
15807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15812 eval "$as_ac_Header=\$ac_header_preproc"
15814 ac_res=`eval echo '${'$as_ac_Header'}'`
15815 { echo "$as_me:$LINENO: result: $ac_res" >&5
15816 echo "${ECHO_T}$ac_res" >&6; }
15819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15820 cat >>confdefs.h <<_ACEOF
15821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15833 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 ac_res=`eval echo '${'$as_ac_Header'}'`
15843 { echo "$as_me:$LINENO: result: $ac_res" >&5
15844 echo "${ECHO_T}$ac_res" >&6; }
15846 # Is the header compilable?
15847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15849 cat >conftest.$ac_ext <<_ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15855 $ac_includes_default
15856 #include <$ac_header>
15858 rm -f conftest.$ac_objext
15859 if { (ac_try="$ac_compile"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_compile") 2>conftest.er1
15867 grep -v '^ *+' conftest.er1 >conftest.err
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } &&
15872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15873 { (case "(($ac_try" in
15874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878 (eval "$ac_try") 2>&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; } &&
15882 { ac_try='test -s conftest.$ac_objext'
15883 { (case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_try") 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; }; then
15892 ac_header_compiler=yes
15894 echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ac_header_compiler=no
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15902 echo "${ECHO_T}$ac_header_compiler" >&6; }
15904 # Is the header present?
15905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15907 cat >conftest.$ac_ext <<_ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15913 #include <$ac_header>
15915 if { (ac_try="$ac_cpp conftest.$ac_ext"
15916 case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15923 grep -v '^ *+' conftest.er1 >conftest.err
15925 cat conftest.err >&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } >/dev/null; then
15928 if test -s conftest.err; then
15929 ac_cpp_err=$ac_c_preproc_warn_flag
15930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15937 if test -z "$ac_cpp_err"; then
15938 ac_header_preproc=yes
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 ac_header_preproc=no
15946 rm -f conftest.err conftest.$ac_ext
15947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15948 echo "${ECHO_T}$ac_header_preproc" >&6; }
15950 # So? What about this header?
15951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15957 ac_header_preproc=yes
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15973 ## ------------------------------------ ##
15974 ## Report this to http://llvm.org/bugs/ ##
15975 ## ------------------------------------ ##
15977 ) | sed "s/^/$as_me: WARNING: /" >&2
15980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 eval "$as_ac_Header=\$ac_header_preproc"
15987 ac_res=`eval echo '${'$as_ac_Header'}'`
15988 { echo "$as_me:$LINENO: result: $ac_res" >&5
15989 echo "${ECHO_T}$ac_res" >&6; }
15992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15993 cat >>confdefs.h <<_ACEOF
15994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16005 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 ac_res=`eval echo '${'$as_ac_Header'}'`
16015 { echo "$as_me:$LINENO: result: $ac_res" >&5
16016 echo "${ECHO_T}$ac_res" >&6; }
16018 # Is the header compilable?
16019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 $ac_includes_default
16028 #include <$ac_header>
16030 rm -f conftest.$ac_objext
16031 if { (ac_try="$ac_compile"
16032 case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_compile") 2>conftest.er1
16039 grep -v '^ *+' conftest.er1 >conftest.err
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } &&
16044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16045 { (case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_try") 2>&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; } &&
16054 { ac_try='test -s conftest.$ac_objext'
16055 { (case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060 (eval "$ac_try") 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; }; then
16064 ac_header_compiler=yes
16066 echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16069 ac_header_compiler=no
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16074 echo "${ECHO_T}$ac_header_compiler" >&6; }
16076 # Is the header present?
16077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16079 cat >conftest.$ac_ext <<_ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 #include <$ac_header>
16087 if { (ac_try="$ac_cpp conftest.$ac_ext"
16088 case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16095 grep -v '^ *+' conftest.er1 >conftest.err
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } >/dev/null; then
16100 if test -s conftest.err; then
16101 ac_cpp_err=$ac_c_preproc_warn_flag
16102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16109 if test -z "$ac_cpp_err"; then
16110 ac_header_preproc=yes
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 ac_header_preproc=no
16118 rm -f conftest.err conftest.$ac_ext
16119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16120 echo "${ECHO_T}$ac_header_preproc" >&6; }
16122 # So? What about this header?
16123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16129 ac_header_preproc=yes
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16145 ## ------------------------------------ ##
16146 ## Report this to http://llvm.org/bugs/ ##
16147 ## ------------------------------------ ##
16149 ) | sed "s/^/$as_me: WARNING: /" >&2
16152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 eval "$as_ac_Header=\$ac_header_preproc"
16159 ac_res=`eval echo '${'$as_ac_Header'}'`
16160 { echo "$as_me:$LINENO: result: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16165 cat >>confdefs.h <<_ACEOF
16166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16174 for ac_header in valgrind/valgrind.h
16176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 ac_res=`eval echo '${'$as_ac_Header'}'`
16184 { echo "$as_me:$LINENO: result: $ac_res" >&5
16185 echo "${ECHO_T}$ac_res" >&6; }
16187 # Is the header compilable?
16188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16190 cat >conftest.$ac_ext <<_ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 $ac_includes_default
16197 #include <$ac_header>
16199 rm -f conftest.$ac_objext
16200 if { (ac_try="$ac_compile"
16201 case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_compile") 2>conftest.er1
16208 grep -v '^ *+' conftest.er1 >conftest.err
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
16213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16214 { (case "(($ac_try" in
16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16219 (eval "$ac_try") 2>&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; } &&
16223 { ac_try='test -s conftest.$ac_objext'
16224 { (case "(($ac_try" in
16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226 *) ac_try_echo=$ac_try;;
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229 (eval "$ac_try") 2>&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; }; then
16233 ac_header_compiler=yes
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16238 ac_header_compiler=no
16241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16243 echo "${ECHO_T}$ac_header_compiler" >&6; }
16245 # Is the header present?
16246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16248 cat >conftest.$ac_ext <<_ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h. */
16254 #include <$ac_header>
16256 if { (ac_try="$ac_cpp conftest.$ac_ext"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16264 grep -v '^ *+' conftest.er1 >conftest.err
16266 cat conftest.err >&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } >/dev/null; then
16269 if test -s conftest.err; then
16270 ac_cpp_err=$ac_c_preproc_warn_flag
16271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16278 if test -z "$ac_cpp_err"; then
16279 ac_header_preproc=yes
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 ac_header_preproc=no
16287 rm -f conftest.err conftest.$ac_ext
16288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16289 echo "${ECHO_T}$ac_header_preproc" >&6; }
16291 # So? What about this header?
16292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16298 ac_header_preproc=yes
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16314 ## ------------------------------------ ##
16315 ## Report this to http://llvm.org/bugs/ ##
16316 ## ------------------------------------ ##
16318 ) | sed "s/^/$as_me: WARNING: /" >&2
16321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 eval "$as_ac_Header=\$ac_header_preproc"
16328 ac_res=`eval echo '${'$as_ac_Header'}'`
16329 { echo "$as_me:$LINENO: result: $ac_res" >&5
16330 echo "${ECHO_T}$ac_res" >&6; }
16333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16334 cat >>confdefs.h <<_ACEOF
16335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16343 for ac_header in fenv.h
16345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 ac_res=`eval echo '${'$as_ac_Header'}'`
16353 { echo "$as_me:$LINENO: result: $ac_res" >&5
16354 echo "${ECHO_T}$ac_res" >&6; }
16356 # Is the header compilable?
16357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16359 cat >conftest.$ac_ext <<_ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16365 $ac_includes_default
16366 #include <$ac_header>
16368 rm -f conftest.$ac_objext
16369 if { (ac_try="$ac_compile"
16370 case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_compile") 2>conftest.er1
16377 grep -v '^ *+' conftest.er1 >conftest.err
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
16382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16383 { (case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_try") 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_header_compiler=yes
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 ac_header_compiler=no
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16412 echo "${ECHO_T}$ac_header_compiler" >&6; }
16414 # Is the header present?
16415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 #include <$ac_header>
16425 if { (ac_try="$ac_cpp conftest.$ac_ext"
16426 case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16433 grep -v '^ *+' conftest.er1 >conftest.err
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } >/dev/null; then
16438 if test -s conftest.err; then
16439 ac_cpp_err=$ac_c_preproc_warn_flag
16440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16447 if test -z "$ac_cpp_err"; then
16448 ac_header_preproc=yes
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16453 ac_header_preproc=no
16456 rm -f conftest.err conftest.$ac_ext
16457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16458 echo "${ECHO_T}$ac_header_preproc" >&6; }
16460 # So? What about this header?
16461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16467 ac_header_preproc=yes
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16483 ## ------------------------------------ ##
16484 ## Report this to http://llvm.org/bugs/ ##
16485 ## ------------------------------------ ##
16487 ) | sed "s/^/$as_me: WARNING: /" >&2
16490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 eval "$as_ac_Header=\$ac_header_preproc"
16497 ac_res=`eval echo '${'$as_ac_Header'}'`
16498 { echo "$as_me:$LINENO: result: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16503 cat >>confdefs.h <<_ACEOF
16504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16511 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16512 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16513 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16516 cat >conftest.$ac_ext <<_ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16527 #ifndef FE_ALL_EXCEPT
16528 char *p = (char *) FE_ALL_EXCEPT;
16536 rm -f conftest.$ac_objext
16537 if { (ac_try="$ac_compile"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_compile") 2>conftest.er1
16545 grep -v '^ *+' conftest.er1 >conftest.err
16547 cat conftest.err >&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } &&
16550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16551 { (case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_try") 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 ac_cv_have_decl_FE_ALL_EXCEPT=no
16578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16581 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16582 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16584 cat >>confdefs.h <<_ACEOF
16585 #define HAVE_DECL_FE_ALL_EXCEPT 1
16590 cat >>confdefs.h <<_ACEOF
16591 #define HAVE_DECL_FE_ALL_EXCEPT 0
16596 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16597 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16598 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 cat >conftest.$ac_ext <<_ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16613 char *p = (char *) FE_INEXACT;
16621 rm -f conftest.$ac_objext
16622 if { (ac_try="$ac_compile"
16623 case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_compile") 2>conftest.er1
16630 grep -v '^ *+' conftest.er1 >conftest.err
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16636 { (case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_try") 2>&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; } &&
16645 { ac_try='test -s conftest.$ac_objext'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 ac_cv_have_decl_FE_INEXACT=yes
16657 echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16660 ac_cv_have_decl_FE_INEXACT=no
16663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16665 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16666 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16667 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16669 cat >>confdefs.h <<_ACEOF
16670 #define HAVE_DECL_FE_INEXACT 1
16675 cat >>confdefs.h <<_ACEOF
16676 #define HAVE_DECL_FE_INEXACT 0
16683 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16685 for ac_header in pthread.h
16687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 ac_res=`eval echo '${'$as_ac_Header'}'`
16695 { echo "$as_me:$LINENO: result: $ac_res" >&5
16696 echo "${ECHO_T}$ac_res" >&6; }
16698 # Is the header compilable?
16699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 $ac_includes_default
16708 #include <$ac_header>
16710 rm -f conftest.$ac_objext
16711 if { (ac_try="$ac_compile"
16712 case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_compile") 2>conftest.er1
16719 grep -v '^ *+' conftest.er1 >conftest.err
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16725 { (case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_try") 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; } &&
16734 { ac_try='test -s conftest.$ac_objext'
16735 { (case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_try") 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; }; then
16744 ac_header_compiler=yes
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 ac_header_compiler=no
16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16754 echo "${ECHO_T}$ac_header_compiler" >&6; }
16756 # Is the header present?
16757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 #include <$ac_header>
16767 if { (ac_try="$ac_cpp conftest.$ac_ext"
16768 case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16775 grep -v '^ *+' conftest.er1 >conftest.err
16777 cat conftest.err >&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } >/dev/null; then
16780 if test -s conftest.err; then
16781 ac_cpp_err=$ac_c_preproc_warn_flag
16782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16789 if test -z "$ac_cpp_err"; then
16790 ac_header_preproc=yes
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16795 ac_header_preproc=no
16798 rm -f conftest.err conftest.$ac_ext
16799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16800 echo "${ECHO_T}$ac_header_preproc" >&6; }
16802 # So? What about this header?
16803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16809 ac_header_preproc=yes
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16825 ## ------------------------------------ ##
16826 ## Report this to http://llvm.org/bugs/ ##
16827 ## ------------------------------------ ##
16829 ) | sed "s/^/$as_me: WARNING: /" >&2
16832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 eval "$as_ac_Header=\$ac_header_preproc"
16839 ac_res=`eval echo '${'$as_ac_Header'}'`
16840 { echo "$as_me:$LINENO: result: $ac_res" >&5
16841 echo "${ECHO_T}$ac_res" >&6; }
16844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16845 cat >>confdefs.h <<_ACEOF
16846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16861 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16863 for ac_header in zlib.h
16865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16872 ac_res=`eval echo '${'$as_ac_Header'}'`
16873 { echo "$as_me:$LINENO: result: $ac_res" >&5
16874 echo "${ECHO_T}$ac_res" >&6; }
16876 # Is the header compilable?
16877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16879 cat >conftest.$ac_ext <<_ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16885 $ac_includes_default
16886 #include <$ac_header>
16888 rm -f conftest.$ac_objext
16889 if { (ac_try="$ac_compile"
16890 case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_compile") 2>conftest.er1
16897 grep -v '^ *+' conftest.er1 >conftest.err
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16903 { (case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_try") 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest.$ac_objext'
16913 { (case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_try") 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_header_compiler=yes
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 ac_header_compiler=no
16930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16932 echo "${ECHO_T}$ac_header_compiler" >&6; }
16934 # Is the header present?
16935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16937 cat >conftest.$ac_ext <<_ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 #include <$ac_header>
16945 if { (ac_try="$ac_cpp conftest.$ac_ext"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16953 grep -v '^ *+' conftest.er1 >conftest.err
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } >/dev/null; then
16958 if test -s conftest.err; then
16959 ac_cpp_err=$ac_c_preproc_warn_flag
16960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16967 if test -z "$ac_cpp_err"; then
16968 ac_header_preproc=yes
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 ac_header_preproc=no
16976 rm -f conftest.err conftest.$ac_ext
16977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16978 echo "${ECHO_T}$ac_header_preproc" >&6; }
16980 # So? What about this header?
16981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16987 ac_header_preproc=yes
16990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17003 ## ------------------------------------ ##
17004 ## Report this to http://llvm.org/bugs/ ##
17005 ## ------------------------------------ ##
17007 ) | sed "s/^/$as_me: WARNING: /" >&2
17010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 eval "$as_ac_Header=\$ac_header_preproc"
17017 ac_res=`eval echo '${'$as_ac_Header'}'`
17018 { echo "$as_me:$LINENO: result: $ac_res" >&5
17019 echo "${ECHO_T}$ac_res" >&6; }
17022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17023 cat >>confdefs.h <<_ACEOF
17024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17040 if test "$llvm_cv_enable_libffi" = "yes" ; then
17043 for ac_header in ffi.h ffi/ffi.h
17045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 ac_res=`eval echo '${'$as_ac_Header'}'`
17053 { echo "$as_me:$LINENO: result: $ac_res" >&5
17054 echo "${ECHO_T}$ac_res" >&6; }
17056 # Is the header compilable?
17057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17059 cat >conftest.$ac_ext <<_ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17065 $ac_includes_default
17066 #include <$ac_header>
17068 rm -f conftest.$ac_objext
17069 if { (ac_try="$ac_compile"
17070 case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_compile") 2>conftest.er1
17077 grep -v '^ *+' conftest.er1 >conftest.err
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17083 { (case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_try") 2>&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; } &&
17092 { ac_try='test -s conftest.$ac_objext'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_header_compiler=yes
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_header_compiler=no
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17112 echo "${ECHO_T}$ac_header_compiler" >&6; }
17114 # Is the header present?
17115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17117 cat >conftest.$ac_ext <<_ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 #include <$ac_header>
17125 if { (ac_try="$ac_cpp conftest.$ac_ext"
17126 case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17133 grep -v '^ *+' conftest.er1 >conftest.err
17135 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } >/dev/null; then
17138 if test -s conftest.err; then
17139 ac_cpp_err=$ac_c_preproc_warn_flag
17140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17147 if test -z "$ac_cpp_err"; then
17148 ac_header_preproc=yes
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 ac_header_preproc=no
17156 rm -f conftest.err conftest.$ac_ext
17157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17158 echo "${ECHO_T}$ac_header_preproc" >&6; }
17160 # So? What about this header?
17161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17167 ac_header_preproc=yes
17170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17183 ## ------------------------------------ ##
17184 ## Report this to http://llvm.org/bugs/ ##
17185 ## ------------------------------------ ##
17187 ) | sed "s/^/$as_me: WARNING: /" >&2
17190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 eval "$as_ac_Header=\$ac_header_preproc"
17197 ac_res=`eval echo '${'$as_ac_Header'}'`
17198 { echo "$as_me:$LINENO: result: $ac_res" >&5
17199 echo "${ECHO_T}$ac_res" >&6; }
17202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17203 cat >>confdefs.h <<_ACEOF
17204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17214 for ac_header in CrashReporterClient.h
17216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 ac_res=`eval echo '${'$as_ac_Header'}'`
17224 { echo "$as_me:$LINENO: result: $ac_res" >&5
17225 echo "${ECHO_T}$ac_res" >&6; }
17227 # Is the header compilable?
17228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17230 cat >conftest.$ac_ext <<_ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 $ac_includes_default
17237 #include <$ac_header>
17239 rm -f conftest.$ac_objext
17240 if { (ac_try="$ac_compile"
17241 case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_compile") 2>conftest.er1
17248 grep -v '^ *+' conftest.er1 >conftest.err
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest.$ac_objext'
17264 { (case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_try") 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 ac_header_compiler=yes
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ac_header_compiler=no
17281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17283 echo "${ECHO_T}$ac_header_compiler" >&6; }
17285 # Is the header present?
17286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17288 cat >conftest.$ac_ext <<_ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 #include <$ac_header>
17296 if { (ac_try="$ac_cpp conftest.$ac_ext"
17297 case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17304 grep -v '^ *+' conftest.er1 >conftest.err
17306 cat conftest.err >&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } >/dev/null; then
17309 if test -s conftest.err; then
17310 ac_cpp_err=$ac_c_preproc_warn_flag
17311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17318 if test -z "$ac_cpp_err"; then
17319 ac_header_preproc=yes
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 ac_header_preproc=no
17327 rm -f conftest.err conftest.$ac_ext
17328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17329 echo "${ECHO_T}$ac_header_preproc" >&6; }
17331 # So? What about this header?
17332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17338 ac_header_preproc=yes
17341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17354 ## ------------------------------------ ##
17355 ## Report this to http://llvm.org/bugs/ ##
17356 ## ------------------------------------ ##
17358 ) | sed "s/^/$as_me: WARNING: /" >&2
17361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 eval "$as_ac_Header=\$ac_header_preproc"
17368 ac_res=`eval echo '${'$as_ac_Header'}'`
17369 { echo "$as_me:$LINENO: result: $ac_res" >&5
17370 echo "${ECHO_T}$ac_res" >&6; }
17373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17374 cat >>confdefs.h <<_ACEOF
17375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17383 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17384 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17385 cat >conftest.$ac_ext <<_ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h. */
17393 extern const char *__crashreporter_info__;
17395 __crashreporter_info__ = "test";
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (ac_try="$ac_link"
17403 case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_link") 2>conftest.er1
17410 grep -v '^ *+' conftest.er1 >conftest.err
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } &&
17415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17416 { (case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_try") 2>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; } &&
17425 { ac_try='test -s conftest$ac_exeext'
17426 { (case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431 (eval "$ac_try") 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17436 { echo "$as_me:$LINENO: result: yes" >&5
17437 echo "${ECHO_T}yes" >&6; }
17439 cat >>confdefs.h <<\_ACEOF
17440 #define HAVE_CRASHREPORTER_INFO 1
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17449 { echo "$as_me:$LINENO: result: no" >&5
17450 echo "${ECHO_T}no" >&6; }
17452 cat >>confdefs.h <<\_ACEOF
17453 #define HAVE_CRASHREPORTER_INFO 0
17459 rm -f core conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
17464 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17465 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17466 if test "${ac_cv_huge_val_sanity+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 ac_cpp='$CXXCPP $CPPFLAGS'
17472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17476 ac_save_CXXFLAGS=$CXXFLAGS
17477 CXXFLAGS="$CXXFLAGS -pedantic"
17478 if test "$cross_compiling" = yes; then
17479 ac_cv_huge_val_sanity=yes
17481 cat >conftest.$ac_ext <<_ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17491 double x = HUGE_VAL; return x != x;
17496 rm -f conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_link") 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17507 { (case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_try") 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 ac_cv_huge_val_sanity=yes
17518 echo "$as_me: program exited with status $ac_status" >&5
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 ( exit $ac_status )
17523 ac_cv_huge_val_sanity=no
17525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17529 CXXFLAGS=$ac_save_CXXFLAGS
17531 ac_cpp='$CPP $CPPFLAGS'
17532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17538 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17539 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17540 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17543 { echo "$as_me:$LINENO: checking for pid_t" >&5
17544 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17545 if test "${ac_cv_type_pid_t+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 cat >conftest.$ac_ext <<_ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 $ac_includes_default
17555 typedef pid_t ac__type_new_;
17559 if ((ac__type_new_ *) 0)
17561 if (sizeof (ac__type_new_))
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_compile") 2>conftest.er1
17576 grep -v '^ *+' conftest.er1 >conftest.err
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest.$ac_objext'
17592 { (case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_try") 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_type_pid_t=yes
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_type_pid_t=no
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17612 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17613 if test $ac_cv_type_pid_t = yes; then
17617 cat >>confdefs.h <<_ACEOF
17623 { echo "$as_me:$LINENO: checking for size_t" >&5
17624 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17625 if test "${ac_cv_type_size_t+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 cat >conftest.$ac_ext <<_ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17634 $ac_includes_default
17635 typedef size_t ac__type_new_;
17639 if ((ac__type_new_ *) 0)
17641 if (sizeof (ac__type_new_))
17647 rm -f conftest.$ac_objext
17648 if { (ac_try="$ac_compile"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_compile") 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17662 { (case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_try") 2>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest.$ac_objext'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 ac_cv_type_size_t=yes
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 ac_cv_type_size_t=no
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17692 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17693 if test $ac_cv_type_size_t = yes; then
17697 cat >>confdefs.h <<_ACEOF
17698 #define size_t unsigned int
17704 cat >>confdefs.h <<_ACEOF
17705 #define RETSIGTYPE void
17708 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17709 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17710 if test "${ac_cv_struct_tm+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 cat >conftest.$ac_ext <<_ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17719 #include <sys/types.h>
17725 struct tm *tp; tp->tm_sec;
17730 rm -f conftest.$ac_objext
17731 if { (ac_try="$ac_compile"
17732 case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_compile") 2>conftest.er1
17739 grep -v '^ *+' conftest.er1 >conftest.err
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17745 { (case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_try") 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; } &&
17754 { ac_try='test -s conftest.$ac_objext'
17755 { (case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_try") 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_struct_tm=time.h
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 ac_cv_struct_tm=sys/time.h
17772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17775 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17776 if test $ac_cv_struct_tm = sys/time.h; then
17778 cat >>confdefs.h <<\_ACEOF
17779 #define TM_IN_SYS_TIME 1
17784 { echo "$as_me:$LINENO: checking for int64_t" >&5
17785 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17786 if test "${ac_cv_type_int64_t+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 cat >conftest.$ac_ext <<_ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h. */
17795 $ac_includes_default
17796 typedef int64_t ac__type_new_;
17800 if ((ac__type_new_ *) 0)
17802 if (sizeof (ac__type_new_))
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
17810 case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_compile") 2>conftest.er1
17817 grep -v '^ *+' conftest.er1 >conftest.err
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17823 { (case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_try") 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_try") 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_type_int64_t=yes
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_cv_type_int64_t=no
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17853 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17854 if test $ac_cv_type_int64_t = yes; then
17856 cat >>confdefs.h <<_ACEOF
17857 #define HAVE_INT64_T 1
17862 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17863 echo "$as_me: error: Type int64_t required but not found" >&2;}
17864 { (exit 1); exit 1; }; }
17867 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17868 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17869 if test "${ac_cv_type_uint64_t+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 $ac_includes_default
17879 typedef uint64_t ac__type_new_;
17883 if ((ac__type_new_ *) 0)
17885 if (sizeof (ac__type_new_))
17891 rm -f conftest.$ac_objext
17892 if { (ac_try="$ac_compile"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_compile") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17906 { (case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_try") 2>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; } &&
17915 { ac_try='test -s conftest.$ac_objext'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_try") 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17925 ac_cv_type_uint64_t=yes
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ac_cv_type_uint64_t=no
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17936 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17937 if test $ac_cv_type_uint64_t = yes; then
17939 cat >>confdefs.h <<_ACEOF
17940 #define HAVE_UINT64_T 1
17945 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17946 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17947 if test "${ac_cv_type_u_int64_t+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 $ac_includes_default
17957 typedef u_int64_t ac__type_new_;
17961 if ((ac__type_new_ *) 0)
17963 if (sizeof (ac__type_new_))
17969 rm -f conftest.$ac_objext
17970 if { (ac_try="$ac_compile"
17971 case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_compile") 2>conftest.er1
17978 grep -v '^ *+' conftest.er1 >conftest.err
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17984 { (case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_try") 2>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; } &&
17993 { ac_try='test -s conftest.$ac_objext'
17994 { (case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_try") 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; }; then
18003 ac_cv_type_u_int64_t=yes
18005 echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18008 ac_cv_type_u_int64_t=no
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18014 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18015 if test $ac_cv_type_u_int64_t = yes; then
18017 cat >>confdefs.h <<_ACEOF
18018 #define HAVE_U_INT64_T 1
18023 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18024 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18025 { (exit 1); exit 1; }; }
18039 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 cat >conftest.$ac_ext <<_ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18055 #define $ac_func innocuous_$ac_func
18057 /* System header to define __stub macros and hopefully few prototypes,
18058 which can conflict with char $ac_func (); below.
18059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18060 <limits.h> exists even on freestanding compilers. */
18063 # include <limits.h>
18065 # include <assert.h>
18070 /* Override any GCC internal prototype to avoid an error.
18071 Use char because int might match the return type of a GCC
18072 builtin and then its argument prototype would still apply. */
18077 /* The GNU C library defines this for functions which it implements
18078 to always fail with ENOSYS. Some functions are actually named
18079 something starting with __ and the normal name is an alias. */
18080 #if defined __stub_$ac_func || defined __stub___$ac_func
18087 return $ac_func ();
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (ac_try="$ac_link"
18094 case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_link") 2>conftest.er1
18101 grep -v '^ *+' conftest.er1 >conftest.err
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_try") 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; } &&
18116 { ac_try='test -s conftest$ac_exeext'
18117 { (case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_try") 2>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18126 eval "$as_ac_var=yes"
18128 echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18131 eval "$as_ac_var=no"
18134 rm -f core conftest.err conftest.$ac_objext \
18135 conftest$ac_exeext conftest.$ac_ext
18137 ac_res=`eval echo '${'$as_ac_var'}'`
18138 { echo "$as_me:$LINENO: result: $ac_res" >&5
18139 echo "${ECHO_T}$ac_res" >&6; }
18140 if test `eval echo '${'$as_ac_var'}'` = yes; then
18141 cat >>confdefs.h <<_ACEOF
18142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18152 for ac_func in powf fmodf strtof round
18154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 cat >conftest.$ac_ext <<_ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18168 #define $ac_func innocuous_$ac_func
18170 /* System header to define __stub macros and hopefully few prototypes,
18171 which can conflict with char $ac_func (); below.
18172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18173 <limits.h> exists even on freestanding compilers. */
18176 # include <limits.h>
18178 # include <assert.h>
18183 /* Override any GCC internal prototype to avoid an error.
18184 Use char because int might match the return type of a GCC
18185 builtin and then its argument prototype would still apply. */
18190 /* The GNU C library defines this for functions which it implements
18191 to always fail with ENOSYS. Some functions are actually named
18192 something starting with __ and the normal name is an alias. */
18193 #if defined __stub_$ac_func || defined __stub___$ac_func
18200 return $ac_func ();
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_link") 2>conftest.er1
18214 grep -v '^ *+' conftest.er1 >conftest.err
18216 cat conftest.err >&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } &&
18219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18220 { (case "(($ac_try" in
18221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18222 *) ac_try_echo=$ac_try;;
18224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18225 (eval "$ac_try") 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } &&
18229 { ac_try='test -s conftest$ac_exeext'
18230 { (case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_try") 2>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
18239 eval "$as_ac_var=yes"
18241 echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18244 eval "$as_ac_var=no"
18247 rm -f core conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
18250 ac_res=`eval echo '${'$as_ac_var'}'`
18251 { echo "$as_me:$LINENO: result: $ac_res" >&5
18252 echo "${ECHO_T}$ac_res" >&6; }
18253 if test `eval echo '${'$as_ac_var'}'` = yes; then
18254 cat >>confdefs.h <<_ACEOF
18255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18266 for ac_func in log log2 log10 exp exp2
18268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18269 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18272 echo $ECHO_N "(cached) $ECHO_C" >&6
18274 cat >conftest.$ac_ext <<_ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18282 #define $ac_func innocuous_$ac_func
18284 /* System header to define __stub macros and hopefully few prototypes,
18285 which can conflict with char $ac_func (); below.
18286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18287 <limits.h> exists even on freestanding compilers. */
18290 # include <limits.h>
18292 # include <assert.h>
18297 /* Override any GCC internal prototype to avoid an error.
18298 Use char because int might match the return type of a GCC
18299 builtin and then its argument prototype would still apply. */
18304 /* The GNU C library defines this for functions which it implements
18305 to always fail with ENOSYS. Some functions are actually named
18306 something starting with __ and the normal name is an alias. */
18307 #if defined __stub_$ac_func || defined __stub___$ac_func
18314 return $ac_func ();
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (ac_try="$ac_link"
18321 case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_link") 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18334 { (case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_try") 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_try") 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 eval "$as_ac_var=yes"
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 eval "$as_ac_var=no"
18361 rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18364 ac_res=`eval echo '${'$as_ac_var'}'`
18365 { echo "$as_me:$LINENO: result: $ac_res" >&5
18366 echo "${ECHO_T}$ac_res" >&6; }
18367 if test `eval echo '${'$as_ac_var'}'` = yes; then
18368 cat >>confdefs.h <<_ACEOF
18369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18380 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 cat >conftest.$ac_ext <<_ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h. */
18394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18396 #define $ac_func innocuous_$ac_func
18398 /* System header to define __stub macros and hopefully few prototypes,
18399 which can conflict with char $ac_func (); below.
18400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18401 <limits.h> exists even on freestanding compilers. */
18404 # include <limits.h>
18406 # include <assert.h>
18411 /* Override any GCC internal prototype to avoid an error.
18412 Use char because int might match the return type of a GCC
18413 builtin and then its argument prototype would still apply. */
18418 /* The GNU C library defines this for functions which it implements
18419 to always fail with ENOSYS. Some functions are actually named
18420 something starting with __ and the normal name is an alias. */
18421 #if defined __stub_$ac_func || defined __stub___$ac_func
18428 return $ac_func ();
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_link") 2>conftest.er1
18442 grep -v '^ *+' conftest.er1 >conftest.err
18444 cat conftest.err >&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } &&
18447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; } &&
18457 { ac_try='test -s conftest$ac_exeext'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 eval "$as_ac_var=yes"
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 eval "$as_ac_var=no"
18475 rm -f core conftest.err conftest.$ac_objext \
18476 conftest$ac_exeext conftest.$ac_ext
18478 ac_res=`eval echo '${'$as_ac_var'}'`
18479 { echo "$as_me:$LINENO: result: $ac_res" >&5
18480 echo "${ECHO_T}$ac_res" >&6; }
18481 if test `eval echo '${'$as_ac_var'}'` = yes; then
18482 cat >>confdefs.h <<_ACEOF
18483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18492 for ac_func in isatty mkdtemp mkstemp
18494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 cat >conftest.$ac_ext <<_ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h. */
18506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18508 #define $ac_func innocuous_$ac_func
18510 /* System header to define __stub macros and hopefully few prototypes,
18511 which can conflict with char $ac_func (); below.
18512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18513 <limits.h> exists even on freestanding compilers. */
18516 # include <limits.h>
18518 # include <assert.h>
18523 /* Override any GCC internal prototype to avoid an error.
18524 Use char because int might match the return type of a GCC
18525 builtin and then its argument prototype would still apply. */
18530 /* The GNU C library defines this for functions which it implements
18531 to always fail with ENOSYS. Some functions are actually named
18532 something starting with __ and the normal name is an alias. */
18533 #if defined __stub_$ac_func || defined __stub___$ac_func
18540 return $ac_func ();
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (ac_try="$ac_link"
18547 case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_link") 2>conftest.er1
18554 grep -v '^ *+' conftest.er1 >conftest.err
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
18559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18560 { (case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_try") 2>&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; } &&
18569 { ac_try='test -s conftest$ac_exeext'
18570 { (case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_try") 2>&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 eval "$as_ac_var=yes"
18581 echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18584 eval "$as_ac_var=no"
18587 rm -f core conftest.err conftest.$ac_objext \
18588 conftest$ac_exeext conftest.$ac_ext
18590 ac_res=`eval echo '${'$as_ac_var'}'`
18591 { echo "$as_me:$LINENO: result: $ac_res" >&5
18592 echo "${ECHO_T}$ac_res" >&6; }
18593 if test `eval echo '${'$as_ac_var'}'` = yes; then
18594 cat >>confdefs.h <<_ACEOF
18595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18608 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 cat >conftest.$ac_ext <<_ACEOF
18619 cat confdefs.h >>conftest.$ac_ext
18620 cat >>conftest.$ac_ext <<_ACEOF
18621 /* end confdefs.h. */
18622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18624 #define $ac_func innocuous_$ac_func
18626 /* System header to define __stub macros and hopefully few prototypes,
18627 which can conflict with char $ac_func (); below.
18628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18629 <limits.h> exists even on freestanding compilers. */
18632 # include <limits.h>
18634 # include <assert.h>
18639 /* Override any GCC internal prototype to avoid an error.
18640 Use char because int might match the return type of a GCC
18641 builtin and then its argument prototype would still apply. */
18646 /* The GNU C library defines this for functions which it implements
18647 to always fail with ENOSYS. Some functions are actually named
18648 something starting with __ and the normal name is an alias. */
18649 #if defined __stub_$ac_func || defined __stub___$ac_func
18656 return $ac_func ();
18661 rm -f conftest.$ac_objext conftest$ac_exeext
18662 if { (ac_try="$ac_link"
18663 case "(($ac_try" in
18664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665 *) ac_try_echo=$ac_try;;
18667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668 (eval "$ac_link") 2>conftest.er1
18670 grep -v '^ *+' conftest.er1 >conftest.err
18672 cat conftest.err >&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } &&
18675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18676 { (case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_try") 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
18685 { ac_try='test -s conftest$ac_exeext'
18686 { (case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_try") 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18695 eval "$as_ac_var=yes"
18697 echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18700 eval "$as_ac_var=no"
18703 rm -f core conftest.err conftest.$ac_objext \
18704 conftest$ac_exeext conftest.$ac_ext
18706 ac_res=`eval echo '${'$as_ac_var'}'`
18707 { echo "$as_me:$LINENO: result: $ac_res" >&5
18708 echo "${ECHO_T}$ac_res" >&6; }
18709 if test `eval echo '${'$as_ac_var'}'` = yes; then
18710 cat >>confdefs.h <<_ACEOF
18711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18721 for ac_func in strerror strerror_r setenv arc4random
18723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18729 cat >conftest.$ac_ext <<_ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18737 #define $ac_func innocuous_$ac_func
18739 /* System header to define __stub macros and hopefully few prototypes,
18740 which can conflict with char $ac_func (); below.
18741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18742 <limits.h> exists even on freestanding compilers. */
18745 # include <limits.h>
18747 # include <assert.h>
18752 /* Override any GCC internal prototype to avoid an error.
18753 Use char because int might match the return type of a GCC
18754 builtin and then its argument prototype would still apply. */
18759 /* The GNU C library defines this for functions which it implements
18760 to always fail with ENOSYS. Some functions are actually named
18761 something starting with __ and the normal name is an alias. */
18762 #if defined __stub_$ac_func || defined __stub___$ac_func
18769 return $ac_func ();
18774 rm -f conftest.$ac_objext conftest$ac_exeext
18775 if { (ac_try="$ac_link"
18776 case "(($ac_try" in
18777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778 *) ac_try_echo=$ac_try;;
18780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_link") 2>conftest.er1
18783 grep -v '^ *+' conftest.er1 >conftest.err
18785 cat conftest.err >&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } &&
18788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18789 { (case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_try") 2>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest$ac_exeext'
18799 { (case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_try") 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
18808 eval "$as_ac_var=yes"
18810 echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18813 eval "$as_ac_var=no"
18816 rm -f core conftest.err conftest.$ac_objext \
18817 conftest$ac_exeext conftest.$ac_ext
18819 ac_res=`eval echo '${'$as_ac_var'}'`
18820 { echo "$as_me:$LINENO: result: $ac_res" >&5
18821 echo "${ECHO_T}$ac_res" >&6; }
18822 if test `eval echo '${'$as_ac_var'}'` = yes; then
18823 cat >>confdefs.h <<_ACEOF
18824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18834 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 cat >conftest.$ac_ext <<_ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18850 #define $ac_func innocuous_$ac_func
18852 /* System header to define __stub macros and hopefully few prototypes,
18853 which can conflict with char $ac_func (); below.
18854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18855 <limits.h> exists even on freestanding compilers. */
18858 # include <limits.h>
18860 # include <assert.h>
18865 /* Override any GCC internal prototype to avoid an error.
18866 Use char because int might match the return type of a GCC
18867 builtin and then its argument prototype would still apply. */
18872 /* The GNU C library defines this for functions which it implements
18873 to always fail with ENOSYS. Some functions are actually named
18874 something starting with __ and the normal name is an alias. */
18875 #if defined __stub_$ac_func || defined __stub___$ac_func
18882 return $ac_func ();
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (ac_try="$ac_link"
18889 case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_link") 2>conftest.er1
18896 grep -v '^ *+' conftest.er1 >conftest.err
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } &&
18901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18902 { (case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_try") 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; } &&
18911 { ac_try='test -s conftest$ac_exeext'
18912 { (case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_try") 2>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; }; then
18921 eval "$as_ac_var=yes"
18923 echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18926 eval "$as_ac_var=no"
18929 rm -f core conftest.err conftest.$ac_objext \
18930 conftest$ac_exeext conftest.$ac_ext
18932 ac_res=`eval echo '${'$as_ac_var'}'`
18933 { echo "$as_me:$LINENO: result: $ac_res" >&5
18934 echo "${ECHO_T}$ac_res" >&6; }
18935 if test `eval echo '${'$as_ac_var'}'` = yes; then
18936 cat >>confdefs.h <<_ACEOF
18937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18948 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 cat >conftest.$ac_ext <<_ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18964 #define $ac_func innocuous_$ac_func
18966 /* System header to define __stub macros and hopefully few prototypes,
18967 which can conflict with char $ac_func (); below.
18968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18969 <limits.h> exists even on freestanding compilers. */
18972 # include <limits.h>
18974 # include <assert.h>
18979 /* Override any GCC internal prototype to avoid an error.
18980 Use char because int might match the return type of a GCC
18981 builtin and then its argument prototype would still apply. */
18986 /* The GNU C library defines this for functions which it implements
18987 to always fail with ENOSYS. Some functions are actually named
18988 something starting with __ and the normal name is an alias. */
18989 #if defined __stub_$ac_func || defined __stub___$ac_func
18996 return $ac_func ();
19001 rm -f conftest.$ac_objext conftest$ac_exeext
19002 if { (ac_try="$ac_link"
19003 case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_link") 2>conftest.er1
19010 grep -v '^ *+' conftest.er1 >conftest.err
19012 cat conftest.err >&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); } &&
19015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19016 { (case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_try") 2>&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; } &&
19025 { ac_try='test -s conftest$ac_exeext'
19026 { (case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_try") 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19035 eval "$as_ac_var=yes"
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 eval "$as_ac_var=no"
19043 rm -f core conftest.err conftest.$ac_objext \
19044 conftest$ac_exeext conftest.$ac_ext
19046 ac_res=`eval echo '${'$as_ac_var'}'`
19047 { echo "$as_me:$LINENO: result: $ac_res" >&5
19048 echo "${ECHO_T}$ac_res" >&6; }
19049 if test `eval echo '${'$as_ac_var'}'` = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19057 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19058 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19059 if test "${llvm_cv_c_printf_a+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 ac_cpp='$CPP $CPPFLAGS'
19064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19068 if test "$cross_compiling" = yes; then
19069 llvmac_cv_c_printf_a=no
19071 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19080 #include <stdlib.h>
19086 volatile double A, B;
19090 sprintf(Buffer, "%a", A);
19094 if (A != 0x1.999999999999ap-4)
19101 rm -f conftest$ac_exeext
19102 if { (ac_try="$ac_link"
19103 case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_link") 2>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19112 { (case "(($ac_try" in
19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114 *) ac_try_echo=$ac_try;;
19116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19117 (eval "$ac_try") 2>&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; }; then
19121 llvm_cv_c_printf_a=yes
19123 echo "$as_me: program exited with status $ac_status" >&5
19124 echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19127 ( exit $ac_status )
19128 llvmac_cv_c_printf_a=no
19130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19135 ac_cpp='$CPP $CPPFLAGS'
19136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19141 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19142 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19143 if test "$llvm_cv_c_printf_a" = "yes"; then
19145 cat >>confdefs.h <<\_ACEOF
19146 #define HAVE_PRINTF_A 1
19153 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19154 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19155 if test "${ac_cv_func_rand48+set}" = set; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 ac_cpp='$CXXCPP $CPPFLAGS'
19161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19165 cat >conftest.$ac_ext <<_ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 #include <stdlib.h>
19175 srand48(0);lrand48();drand48();
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_compile") 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 ac_cv_func_rand48=yes
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 ac_cv_func_rand48=no
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224 ac_cpp='$CPP $CPPFLAGS'
19225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19231 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19232 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19234 if test "$ac_cv_func_rand48" = "yes" ; then
19236 cat >>confdefs.h <<\_ACEOF
19237 #define HAVE_RAND48 1
19243 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19244 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19245 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 cat >conftest.$ac_ext <<_ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19254 $ac_includes_default
19259 char *p = (char *) strerror_s;
19267 rm -f conftest.$ac_objext
19268 if { (ac_try="$ac_compile"
19269 case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_compile") 2>conftest.er1
19276 grep -v '^ *+' conftest.er1 >conftest.err
19278 cat conftest.err >&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } &&
19281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19282 { (case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_try") 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
19292 { (case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_try") 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
19301 ac_cv_have_decl_strerror_s=yes
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19306 ac_cv_have_decl_strerror_s=no
19309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19312 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19313 if test $ac_cv_have_decl_strerror_s = yes; then
19315 cat >>confdefs.h <<_ACEOF
19316 #define HAVE_DECL_STRERROR_S 1
19321 cat >>confdefs.h <<_ACEOF
19322 #define HAVE_DECL_STRERROR_S 0
19330 if test "$llvm_cv_os_type" = "MingW" ; then
19331 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19332 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19333 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 ac_check_lib_save_LIBS=$LIBS
19338 cat >conftest.$ac_ext <<_ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19345 /* Override any GCC internal prototype to avoid an error.
19346 Use char because int might match the return type of a GCC
19347 builtin and then its argument prototype would still apply. */
19360 rm -f conftest.$ac_objext conftest$ac_exeext
19361 if { (ac_try="$ac_link"
19362 case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_link") 2>conftest.er1
19369 grep -v '^ *+' conftest.er1 >conftest.err
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } &&
19374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19375 { (case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_try") 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; } &&
19384 { ac_try='test -s conftest$ac_exeext'
19385 { (case "(($ac_try" in
19386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19387 *) ac_try_echo=$ac_try;;
19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19390 (eval "$ac_try") 2>&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; }; then
19394 ac_cv_lib_gcc__alloca=yes
19396 echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19399 ac_cv_lib_gcc__alloca=no
19402 rm -f core conftest.err conftest.$ac_objext \
19403 conftest$ac_exeext conftest.$ac_ext
19404 LIBS=$ac_check_lib_save_LIBS
19406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19407 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19408 if test $ac_cv_lib_gcc__alloca = yes; then
19410 cat >>confdefs.h <<\_ACEOF
19411 #define HAVE__ALLOCA 1
19416 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19417 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19418 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19421 ac_check_lib_save_LIBS=$LIBS
19423 cat >conftest.$ac_ext <<_ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h. */
19430 /* Override any GCC internal prototype to avoid an error.
19431 Use char because int might match the return type of a GCC
19432 builtin and then its argument prototype would still apply. */
19440 return __alloca ();
19445 rm -f conftest.$ac_objext conftest$ac_exeext
19446 if { (ac_try="$ac_link"
19447 case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452 (eval "$ac_link") 2>conftest.er1
19454 grep -v '^ *+' conftest.er1 >conftest.err
19456 cat conftest.err >&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19460 { (case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_try") 2>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; } &&
19469 { ac_try='test -s conftest$ac_exeext'
19470 { (case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_try") 2>&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; }; then
19479 ac_cv_lib_gcc___alloca=yes
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19484 ac_cv_lib_gcc___alloca=no
19487 rm -f core conftest.err conftest.$ac_objext \
19488 conftest$ac_exeext conftest.$ac_ext
19489 LIBS=$ac_check_lib_save_LIBS
19491 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19492 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19493 if test $ac_cv_lib_gcc___alloca = yes; then
19495 cat >>confdefs.h <<\_ACEOF
19496 #define HAVE___ALLOCA 1
19501 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19502 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19503 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19506 ac_check_lib_save_LIBS=$LIBS
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19515 /* Override any GCC internal prototype to avoid an error.
19516 Use char because int might match the return type of a GCC
19517 builtin and then its argument prototype would still apply. */
19525 return __chkstk ();
19530 rm -f conftest.$ac_objext conftest$ac_exeext
19531 if { (ac_try="$ac_link"
19532 case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_link") 2>conftest.er1
19539 grep -v '^ *+' conftest.er1 >conftest.err
19541 cat conftest.err >&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
19544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19545 { (case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_try") 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest$ac_exeext'
19555 { (case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_try") 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_cv_lib_gcc___chkstk=yes
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_cv_lib_gcc___chkstk=no
19572 rm -f core conftest.err conftest.$ac_objext \
19573 conftest$ac_exeext conftest.$ac_ext
19574 LIBS=$ac_check_lib_save_LIBS
19576 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19577 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19578 if test $ac_cv_lib_gcc___chkstk = yes; then
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE___CHKSTK 1
19586 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19587 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19588 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 ac_check_lib_save_LIBS=$LIBS
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19600 /* Override any GCC internal prototype to avoid an error.
19601 Use char because int might match the return type of a GCC
19602 builtin and then its argument prototype would still apply. */
19610 return ___chkstk ();
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest$ac_exeext'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 ac_cv_lib_gcc____chkstk=yes
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 ac_cv_lib_gcc____chkstk=no
19657 rm -f core conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19659 LIBS=$ac_check_lib_save_LIBS
19661 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19662 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19663 if test $ac_cv_lib_gcc____chkstk = yes; then
19665 cat >>confdefs.h <<\_ACEOF
19666 #define HAVE____CHKSTK 1
19672 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19673 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19674 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 ac_check_lib_save_LIBS=$LIBS
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19686 /* Override any GCC internal prototype to avoid an error.
19687 Use char because int might match the return type of a GCC
19688 builtin and then its argument prototype would still apply. */
19696 return __ashldi3 ();
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (ac_try="$ac_link"
19703 case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_link") 2>conftest.er1
19710 grep -v '^ *+' conftest.er1 >conftest.err
19712 cat conftest.err >&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } &&
19715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19716 { (case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_try") 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest$ac_exeext'
19726 { (case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_try") 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_lib_gcc___ashldi3=yes
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_lib_gcc___ashldi3=no
19743 rm -f core conftest.err conftest.$ac_objext \
19744 conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19748 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19749 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19751 cat >>confdefs.h <<\_ACEOF
19752 #define HAVE___ASHLDI3 1
19757 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19758 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19759 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 ac_check_lib_save_LIBS=$LIBS
19764 cat >conftest.$ac_ext <<_ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19771 /* Override any GCC internal prototype to avoid an error.
19772 Use char because int might match the return type of a GCC
19773 builtin and then its argument prototype would still apply. */
19781 return __ashrdi3 ();
19786 rm -f conftest.$ac_objext conftest$ac_exeext
19787 if { (ac_try="$ac_link"
19788 case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_link") 2>conftest.er1
19795 grep -v '^ *+' conftest.er1 >conftest.err
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } &&
19800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19801 { (case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_try") 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; } &&
19810 { ac_try='test -s conftest$ac_exeext'
19811 { (case "(($ac_try" in
19812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813 *) ac_try_echo=$ac_try;;
19815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19816 (eval "$ac_try") 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 ac_cv_lib_gcc___ashrdi3=yes
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_cv_lib_gcc___ashrdi3=no
19828 rm -f core conftest.err conftest.$ac_objext \
19829 conftest$ac_exeext conftest.$ac_ext
19830 LIBS=$ac_check_lib_save_LIBS
19832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19833 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19834 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19836 cat >>confdefs.h <<\_ACEOF
19837 #define HAVE___ASHRDI3 1
19842 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19843 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19844 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 ac_check_lib_save_LIBS=$LIBS
19849 cat >conftest.$ac_ext <<_ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19856 /* Override any GCC internal prototype to avoid an error.
19857 Use char because int might match the return type of a GCC
19858 builtin and then its argument prototype would still apply. */
19866 return __divdi3 ();
19871 rm -f conftest.$ac_objext conftest$ac_exeext
19872 if { (ac_try="$ac_link"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_link") 2>conftest.er1
19880 grep -v '^ *+' conftest.er1 >conftest.err
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
19885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19886 { (case "(($ac_try" in
19887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888 *) ac_try_echo=$ac_try;;
19890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891 (eval "$ac_try") 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; } &&
19895 { ac_try='test -s conftest$ac_exeext'
19896 { (case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901 (eval "$ac_try") 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; }; then
19905 ac_cv_lib_gcc___divdi3=yes
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_cv_lib_gcc___divdi3=no
19913 rm -f core conftest.err conftest.$ac_objext \
19914 conftest$ac_exeext conftest.$ac_ext
19915 LIBS=$ac_check_lib_save_LIBS
19917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19918 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19919 if test $ac_cv_lib_gcc___divdi3 = yes; then
19921 cat >>confdefs.h <<\_ACEOF
19922 #define HAVE___DIVDI3 1
19927 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19928 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19929 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 ac_check_lib_save_LIBS=$LIBS
19934 cat >conftest.$ac_ext <<_ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19941 /* Override any GCC internal prototype to avoid an error.
19942 Use char because int might match the return type of a GCC
19943 builtin and then its argument prototype would still apply. */
19951 return __fixdfdi ();
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (ac_try="$ac_link"
19958 case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_link") 2>conftest.er1
19965 grep -v '^ *+' conftest.er1 >conftest.err
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } &&
19970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19971 { (case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_try") 2>&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } &&
19980 { ac_try='test -s conftest$ac_exeext'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 ac_cv_lib_gcc___fixdfdi=yes
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_cv_lib_gcc___fixdfdi=no
19998 rm -f core conftest.err conftest.$ac_objext \
19999 conftest$ac_exeext conftest.$ac_ext
20000 LIBS=$ac_check_lib_save_LIBS
20002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20003 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20004 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20006 cat >>confdefs.h <<\_ACEOF
20007 #define HAVE___FIXDFDI 1
20012 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20013 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20014 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20017 ac_check_lib_save_LIBS=$LIBS
20019 cat >conftest.$ac_ext <<_ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20026 /* Override any GCC internal prototype to avoid an error.
20027 Use char because int might match the return type of a GCC
20028 builtin and then its argument prototype would still apply. */
20036 return __fixsfdi ();
20041 rm -f conftest.$ac_objext conftest$ac_exeext
20042 if { (ac_try="$ac_link"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_link") 2>conftest.er1
20050 grep -v '^ *+' conftest.er1 >conftest.err
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } &&
20055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20056 { (case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_try") 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; } &&
20065 { ac_try='test -s conftest$ac_exeext'
20066 { (case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071 (eval "$ac_try") 2>&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); }; }; then
20075 ac_cv_lib_gcc___fixsfdi=yes
20077 echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 ac_cv_lib_gcc___fixsfdi=no
20083 rm -f core conftest.err conftest.$ac_objext \
20084 conftest$ac_exeext conftest.$ac_ext
20085 LIBS=$ac_check_lib_save_LIBS
20087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20088 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20089 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20091 cat >>confdefs.h <<\_ACEOF
20092 #define HAVE___FIXSFDI 1
20097 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20098 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20099 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20102 ac_check_lib_save_LIBS=$LIBS
20104 cat >conftest.$ac_ext <<_ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20111 /* Override any GCC internal prototype to avoid an error.
20112 Use char because int might match the return type of a GCC
20113 builtin and then its argument prototype would still apply. */
20117 char __floatdidf ();
20121 return __floatdidf ();
20126 rm -f conftest.$ac_objext conftest$ac_exeext
20127 if { (ac_try="$ac_link"
20128 case "(($ac_try" in
20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_link") 2>conftest.er1
20135 grep -v '^ *+' conftest.er1 >conftest.err
20137 cat conftest.err >&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } &&
20140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20141 { (case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_try") 2>&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; } &&
20150 { ac_try='test -s conftest$ac_exeext'
20151 { (case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_try") 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 ac_cv_lib_gcc___floatdidf=yes
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ac_cv_lib_gcc___floatdidf=no
20168 rm -f core conftest.err conftest.$ac_objext \
20169 conftest$ac_exeext conftest.$ac_ext
20170 LIBS=$ac_check_lib_save_LIBS
20172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20173 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20174 if test $ac_cv_lib_gcc___floatdidf = yes; then
20176 cat >>confdefs.h <<\_ACEOF
20177 #define HAVE___FLOATDIDF 1
20182 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20183 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20184 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 ac_check_lib_save_LIBS=$LIBS
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20196 /* Override any GCC internal prototype to avoid an error.
20197 Use char because int might match the return type of a GCC
20198 builtin and then its argument prototype would still apply. */
20206 return __lshrdi3 ();
20211 rm -f conftest.$ac_objext conftest$ac_exeext
20212 if { (ac_try="$ac_link"
20213 case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218 (eval "$ac_link") 2>conftest.er1
20220 grep -v '^ *+' conftest.er1 >conftest.err
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
20225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20226 { (case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231 (eval "$ac_try") 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; } &&
20235 { ac_try='test -s conftest$ac_exeext'
20236 { (case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_try") 2>&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; }; then
20245 ac_cv_lib_gcc___lshrdi3=yes
20247 echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20250 ac_cv_lib_gcc___lshrdi3=no
20253 rm -f core conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
20255 LIBS=$ac_check_lib_save_LIBS
20257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20258 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20259 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20261 cat >>confdefs.h <<\_ACEOF
20262 #define HAVE___LSHRDI3 1
20267 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20268 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20269 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 ac_check_lib_save_LIBS=$LIBS
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20281 /* Override any GCC internal prototype to avoid an error.
20282 Use char because int might match the return type of a GCC
20283 builtin and then its argument prototype would still apply. */
20291 return __moddi3 ();
20296 rm -f conftest.$ac_objext conftest$ac_exeext
20297 if { (ac_try="$ac_link"
20298 case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_link") 2>conftest.er1
20305 grep -v '^ *+' conftest.er1 >conftest.err
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } &&
20310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20311 { (case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_try") 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest$ac_exeext'
20321 { (case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_try") 2>&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 ac_cv_lib_gcc___moddi3=yes
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 ac_cv_lib_gcc___moddi3=no
20338 rm -f core conftest.err conftest.$ac_objext \
20339 conftest$ac_exeext conftest.$ac_ext
20340 LIBS=$ac_check_lib_save_LIBS
20342 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20343 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20344 if test $ac_cv_lib_gcc___moddi3 = yes; then
20346 cat >>confdefs.h <<\_ACEOF
20347 #define HAVE___MODDI3 1
20352 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20353 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20354 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 ac_check_lib_save_LIBS=$LIBS
20359 cat >conftest.$ac_ext <<_ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20366 /* Override any GCC internal prototype to avoid an error.
20367 Use char because int might match the return type of a GCC
20368 builtin and then its argument prototype would still apply. */
20376 return __udivdi3 ();
20381 rm -f conftest.$ac_objext conftest$ac_exeext
20382 if { (ac_try="$ac_link"
20383 case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_link") 2>conftest.er1
20390 grep -v '^ *+' conftest.er1 >conftest.err
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } &&
20395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20396 { (case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401 (eval "$ac_try") 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; } &&
20405 { ac_try='test -s conftest$ac_exeext'
20406 { (case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_try") 2>&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; }; then
20415 ac_cv_lib_gcc___udivdi3=yes
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 ac_cv_lib_gcc___udivdi3=no
20423 rm -f core conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
20425 LIBS=$ac_check_lib_save_LIBS
20427 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20428 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20429 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20431 cat >>confdefs.h <<\_ACEOF
20432 #define HAVE___UDIVDI3 1
20437 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20438 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20439 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 ac_check_lib_save_LIBS=$LIBS
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20451 /* Override any GCC internal prototype to avoid an error.
20452 Use char because int might match the return type of a GCC
20453 builtin and then its argument prototype would still apply. */
20461 return __umoddi3 ();
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (ac_try="$ac_link"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_link") 2>conftest.er1
20475 grep -v '^ *+' conftest.er1 >conftest.err
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
20480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20481 { (case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_try") 2>&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; } &&
20490 { ac_try='test -s conftest$ac_exeext'
20491 { (case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_try") 2>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; }; then
20500 ac_cv_lib_gcc___umoddi3=yes
20502 echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20505 ac_cv_lib_gcc___umoddi3=no
20508 rm -f core conftest.err conftest.$ac_objext \
20509 conftest$ac_exeext conftest.$ac_ext
20510 LIBS=$ac_check_lib_save_LIBS
20512 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20513 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20514 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20516 cat >>confdefs.h <<\_ACEOF
20517 #define HAVE___UMODDI3 1
20523 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20524 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20525 if test "${ac_cv_lib_gcc___main+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 ac_check_lib_save_LIBS=$LIBS
20530 cat >conftest.$ac_ext <<_ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20537 /* Override any GCC internal prototype to avoid an error.
20538 Use char because int might match the return type of a GCC
20539 builtin and then its argument prototype would still apply. */
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_link") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } &&
20566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20567 { (case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_try") 2>&5
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; } &&
20576 { ac_try='test -s conftest$ac_exeext'
20577 { (case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_try") 2>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586 ac_cv_lib_gcc___main=yes
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_cv_lib_gcc___main=no
20594 rm -f core conftest.err conftest.$ac_objext \
20595 conftest$ac_exeext conftest.$ac_ext
20596 LIBS=$ac_check_lib_save_LIBS
20598 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20599 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20600 if test $ac_cv_lib_gcc___main = yes; then
20602 cat >>confdefs.h <<\_ACEOF
20603 #define HAVE___MAIN 1
20608 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20609 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20610 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20613 ac_check_lib_save_LIBS=$LIBS
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 /* Override any GCC internal prototype to avoid an error.
20623 Use char because int might match the return type of a GCC
20624 builtin and then its argument prototype would still apply. */
20632 return __cmpdi2 ();
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } &&
20651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20652 { (case "(($ac_try" in
20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654 *) ac_try_echo=$ac_try;;
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657 (eval "$ac_try") 2>&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; } &&
20661 { ac_try='test -s conftest$ac_exeext'
20662 { (case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_try") 2>&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_lib_gcc___cmpdi2=yes
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_cv_lib_gcc___cmpdi2=no
20679 rm -f core conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20681 LIBS=$ac_check_lib_save_LIBS
20683 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20684 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20685 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20687 cat >>confdefs.h <<\_ACEOF
20688 #define HAVE___CMPDI2 1
20695 if test "$llvm_cv_os_type" = "MingW" ; then
20696 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20697 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20698 cat >conftest.$ac_ext <<_ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20706 #include <windows.h>
20707 #include <imagehlp.h>
20708 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20709 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20722 grep -v '^ *+' conftest.er1 >conftest.err
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
20727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20728 { (case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_try") 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; } &&
20737 { ac_try='test -s conftest.$ac_objext'
20738 { (case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_try") 2>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20748 { echo "$as_me:$LINENO: result: yes" >&5
20749 echo "${ECHO_T}yes" >&6; }
20750 llvm_cv_win32_elmcb_pcstr="PCSTR"
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20757 { echo "$as_me:$LINENO: result: no" >&5
20758 echo "${ECHO_T}no" >&6; }
20759 llvm_cv_win32_elmcb_pcstr="PSTR"
20763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765 cat >>confdefs.h <<_ACEOF
20766 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20773 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20774 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20775 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20776 echo $ECHO_N "(cached) $ECHO_C" >&6
20780 ac_cpp='$CXXCPP $CPPFLAGS'
20781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20785 cat >conftest.$ac_ext <<_ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20800 rm -f conftest.$ac_objext
20801 if { (ac_try="$ac_compile"
20802 case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_compile") 2>conftest.er1
20809 grep -v '^ *+' conftest.er1 >conftest.err
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } &&
20814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20815 { (case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_try") 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; } &&
20824 { ac_try='test -s conftest.$ac_objext'
20825 { (case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_try") 2>&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 ac_cv_func_isnan_in_math_h=yes
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20839 ac_cv_func_isnan_in_math_h=no
20842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20844 ac_cpp='$CPP $CPPFLAGS'
20845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20851 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20852 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20855 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20857 cat >>confdefs.h <<\_ACEOF
20858 #define HAVE_ISNAN_IN_MATH_H 1
20864 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20865 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20866 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 ac_cpp='$CXXCPP $CPPFLAGS'
20872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20876 cat >conftest.$ac_ext <<_ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20891 rm -f conftest.$ac_objext
20892 if { (ac_try="$ac_compile"
20893 case "(($ac_try" in
20894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895 *) ac_try_echo=$ac_try;;
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898 (eval "$ac_compile") 2>conftest.er1
20900 grep -v '^ *+' conftest.er1 >conftest.err
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } &&
20905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20906 { (case "(($ac_try" in
20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908 *) ac_try_echo=$ac_try;;
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911 (eval "$ac_try") 2>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; } &&
20915 { ac_try='test -s conftest.$ac_objext'
20916 { (case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_try") 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; }; then
20925 ac_cv_func_isnan_in_cmath=yes
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20930 ac_cv_func_isnan_in_cmath=no
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 ac_cpp='$CPP $CPPFLAGS'
20936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20942 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20943 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20945 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_ISNAN_IN_CMATH 1
20954 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20955 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20956 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 ac_cpp='$CXXCPP $CPPFLAGS'
20962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20966 cat >conftest.$ac_ext <<_ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20976 float f; std::isnan(f);
20981 rm -f conftest.$ac_objext
20982 if { (ac_try="$ac_compile"
20983 case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988 (eval "$ac_compile") 2>conftest.er1
20990 grep -v '^ *+' conftest.er1 >conftest.err
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } &&
20995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20996 { (case "(($ac_try" in
20997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20998 *) ac_try_echo=$ac_try;;
21000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21001 (eval "$ac_try") 2>&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } &&
21005 { ac_try='test -s conftest.$ac_objext'
21006 { (case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_try") 2>&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_cv_func_std_isnan_in_cmath=yes
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21020 ac_cv_func_std_isnan_in_cmath=no
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 ac_cpp='$CPP $CPPFLAGS'
21026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21032 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21033 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21035 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21037 cat >>confdefs.h <<\_ACEOF
21038 #define HAVE_STD_ISNAN_IN_CMATH 1
21046 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21047 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21048 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 ac_cpp='$CXXCPP $CPPFLAGS'
21054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21058 cat >conftest.$ac_ext <<_ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_compile") 2>conftest.er1
21082 grep -v '^ *+' conftest.er1 >conftest.err
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } &&
21087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21088 { (case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_try") 2>&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; } &&
21097 { ac_try='test -s conftest.$ac_objext'
21098 { (case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_try") 2>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_cv_func_isinf_in_math_h=yes
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21112 ac_cv_func_isinf_in_math_h=no
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117 ac_cpp='$CPP $CPPFLAGS'
21118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21124 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21125 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21127 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21129 cat >>confdefs.h <<\_ACEOF
21130 #define HAVE_ISINF_IN_MATH_H 1
21136 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21137 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21138 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 ac_cpp='$CXXCPP $CPPFLAGS'
21144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21148 cat >conftest.$ac_ext <<_ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21163 rm -f conftest.$ac_objext
21164 if { (ac_try="$ac_compile"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170 (eval "$ac_compile") 2>conftest.er1
21172 grep -v '^ *+' conftest.er1 >conftest.err
21174 cat conftest.err >&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } &&
21177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21178 { (case "(($ac_try" in
21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180 *) ac_try_echo=$ac_try;;
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183 (eval "$ac_try") 2>&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; } &&
21187 { ac_try='test -s conftest.$ac_objext'
21188 { (case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193 (eval "$ac_try") 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 ac_cv_func_isinf_in_cmath=yes
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21202 ac_cv_func_isinf_in_cmath=no
21205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21207 ac_cpp='$CPP $CPPFLAGS'
21208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21214 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21215 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21217 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HAVE_ISINF_IN_CMATH 1
21226 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21227 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21228 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 ac_cpp='$CXXCPP $CPPFLAGS'
21234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21248 float f; std::isinf(f);
21253 rm -f conftest.$ac_objext
21254 if { (ac_try="$ac_compile"
21255 case "(($ac_try" in
21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257 *) ac_try_echo=$ac_try;;
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260 (eval "$ac_compile") 2>conftest.er1
21262 grep -v '^ *+' conftest.er1 >conftest.err
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } &&
21267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21268 { (case "(($ac_try" in
21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270 *) ac_try_echo=$ac_try;;
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_try") 2>&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; } &&
21277 { ac_try='test -s conftest.$ac_objext'
21278 { (case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283 (eval "$ac_try") 2>&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; }; then
21287 ac_cv_func_std_isinf_in_cmath=yes
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21292 ac_cv_func_std_isinf_in_cmath=no
21295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21297 ac_cpp='$CPP $CPPFLAGS'
21298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21304 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21305 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21307 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21309 cat >>confdefs.h <<\_ACEOF
21310 #define HAVE_STD_ISINF_IN_CMATH 1
21316 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21317 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21318 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21323 ac_cpp='$CXXCPP $CPPFLAGS'
21324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 #include <ieeefp.h>
21338 float f; finite(f);
21343 rm -f conftest.$ac_objext
21344 if { (ac_try="$ac_compile"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_compile") 2>conftest.er1
21352 grep -v '^ *+' conftest.er1 >conftest.err
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } &&
21357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21358 { (case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_try") 2>&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; } &&
21367 { ac_try='test -s conftest.$ac_objext'
21368 { (case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_try") 2>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ac_cv_func_finite_in_ieeefp_h=yes
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 ac_cv_func_finite_in_ieeefp_h=no
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 ac_cpp='$CPP $CPPFLAGS'
21388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21394 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21395 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21397 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21399 cat >>confdefs.h <<\_ACEOF
21400 #define HAVE_FINITE_IN_IEEEFP_H 1
21407 if test "$llvm_cv_platform_type" = "Unix" ; then
21410 for ac_header in stdlib.h unistd.h
21412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21417 echo $ECHO_N "(cached) $ECHO_C" >&6
21419 ac_res=`eval echo '${'$as_ac_Header'}'`
21420 { echo "$as_me:$LINENO: result: $ac_res" >&5
21421 echo "${ECHO_T}$ac_res" >&6; }
21423 # Is the header compilable?
21424 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 $ac_includes_default
21433 #include <$ac_header>
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_compile") 2>conftest.er1
21444 grep -v '^ *+' conftest.er1 >conftest.err
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21450 { (case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_try") 2>&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try='test -s conftest.$ac_objext'
21460 { (case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_try") 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 ac_header_compiler=yes
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 ac_header_compiler=no
21477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21479 echo "${ECHO_T}$ac_header_compiler" >&6; }
21481 # Is the header present?
21482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490 #include <$ac_header>
21492 if { (ac_try="$ac_cpp conftest.$ac_ext"
21493 case "(($ac_try" in
21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } >/dev/null; then
21505 if test -s conftest.err; then
21506 ac_cpp_err=$ac_c_preproc_warn_flag
21507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21514 if test -z "$ac_cpp_err"; then
21515 ac_header_preproc=yes
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ac_header_preproc=no
21523 rm -f conftest.err conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21525 echo "${ECHO_T}$ac_header_preproc" >&6; }
21527 # So? What about this header?
21528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21534 ac_header_preproc=yes
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21550 ## ------------------------------------ ##
21551 ## Report this to http://llvm.org/bugs/ ##
21552 ## ------------------------------------ ##
21554 ) | sed "s/^/$as_me: WARNING: /" >&2
21557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 eval "$as_ac_Header=\$ac_header_preproc"
21564 ac_res=`eval echo '${'$as_ac_Header'}'`
21565 { echo "$as_me:$LINENO: result: $ac_res" >&5
21566 echo "${ECHO_T}$ac_res" >&6; }
21569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21570 cat >>confdefs.h <<_ACEOF
21571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21579 for ac_func in getpagesize
21581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 cat >conftest.$ac_ext <<_ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21595 #define $ac_func innocuous_$ac_func
21597 /* System header to define __stub macros and hopefully few prototypes,
21598 which can conflict with char $ac_func (); below.
21599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21600 <limits.h> exists even on freestanding compilers. */
21603 # include <limits.h>
21605 # include <assert.h>
21610 /* Override any GCC internal prototype to avoid an error.
21611 Use char because int might match the return type of a GCC
21612 builtin and then its argument prototype would still apply. */
21617 /* The GNU C library defines this for functions which it implements
21618 to always fail with ENOSYS. Some functions are actually named
21619 something starting with __ and the normal name is an alias. */
21620 #if defined __stub_$ac_func || defined __stub___$ac_func
21627 return $ac_func ();
21632 rm -f conftest.$ac_objext conftest$ac_exeext
21633 if { (ac_try="$ac_link"
21634 case "(($ac_try" in
21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636 *) ac_try_echo=$ac_try;;
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_link") 2>conftest.er1
21641 grep -v '^ *+' conftest.er1 >conftest.err
21643 cat conftest.err >&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
21646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21647 { (case "(($ac_try" in
21648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21649 *) ac_try_echo=$ac_try;;
21651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21652 (eval "$ac_try") 2>&5
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; } &&
21656 { ac_try='test -s conftest$ac_exeext'
21657 { (case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_try") 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 eval "$as_ac_var=yes"
21668 echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21671 eval "$as_ac_var=no"
21674 rm -f core conftest.err conftest.$ac_objext \
21675 conftest$ac_exeext conftest.$ac_ext
21677 ac_res=`eval echo '${'$as_ac_var'}'`
21678 { echo "$as_me:$LINENO: result: $ac_res" >&5
21679 echo "${ECHO_T}$ac_res" >&6; }
21680 if test `eval echo '${'$as_ac_var'}'` = yes; then
21681 cat >>confdefs.h <<_ACEOF
21682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21688 { echo "$as_me:$LINENO: checking for working mmap" >&5
21689 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21690 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 if test "$cross_compiling" = yes; then
21694 ac_cv_func_mmap_fixed_mapped=no
21696 cat >conftest.$ac_ext <<_ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h. */
21702 $ac_includes_default
21703 /* malloc might have been renamed as rpl_malloc. */
21706 /* Thanks to Mike Haertel and Jim Avera for this test.
21707 Here is a matrix of mmap possibilities:
21708 mmap private not fixed
21709 mmap private fixed at somewhere currently unmapped
21710 mmap private fixed at somewhere already mapped
21711 mmap shared not fixed
21712 mmap shared fixed at somewhere currently unmapped
21713 mmap shared fixed at somewhere already mapped
21714 For private mappings, we should verify that changes cannot be read()
21715 back from the file, nor mmap's back from the file at a different
21716 address. (There have been systems where private was not correctly
21717 implemented like the infamous i386 svr4.0, and systems where the
21718 VM page cache was not coherent with the file system buffer cache
21719 like early versions of FreeBSD and possibly contemporary NetBSD.)
21720 For shared mappings, we should conversely verify that changes get
21721 propagated back to all the places they're supposed to be.
21723 Grep wants private fixed already mapped.
21724 The main things grep needs to know about mmap are:
21725 * does it exist and is it safe to write into the mmap'd area
21726 * how to use it (BSD variants) */
21729 #include <sys/mman.h>
21731 #if !STDC_HEADERS && !HAVE_STDLIB_H
21735 /* This mess was copied from the GNU getpagesize.h. */
21736 #if !HAVE_GETPAGESIZE
21737 /* Assume that all systems that can run configure have sys/param.h. */
21738 # if !HAVE_SYS_PARAM_H
21739 # define HAVE_SYS_PARAM_H 1
21742 # ifdef _SC_PAGESIZE
21743 # define getpagesize() sysconf(_SC_PAGESIZE)
21744 # else /* no _SC_PAGESIZE */
21745 # if HAVE_SYS_PARAM_H
21746 # include <sys/param.h>
21747 # ifdef EXEC_PAGESIZE
21748 # define getpagesize() EXEC_PAGESIZE
21749 # else /* no EXEC_PAGESIZE */
21751 # define getpagesize() NBPG * CLSIZE
21754 # endif /* no CLSIZE */
21755 # else /* no NBPG */
21757 # define getpagesize() NBPC
21758 # else /* no NBPC */
21760 # define getpagesize() PAGESIZE
21761 # endif /* PAGESIZE */
21762 # endif /* no NBPC */
21763 # endif /* no NBPG */
21764 # endif /* no EXEC_PAGESIZE */
21765 # else /* no HAVE_SYS_PARAM_H */
21766 # define getpagesize() 8192 /* punt totally */
21767 # endif /* no HAVE_SYS_PARAM_H */
21768 # endif /* no _SC_PAGESIZE */
21770 #endif /* no HAVE_GETPAGESIZE */
21775 char *data, *data2, *data3;
21779 pagesize = getpagesize ();
21781 /* First, make a file with some known garbage in it. */
21782 data = (char *) malloc (pagesize);
21785 for (i = 0; i < pagesize; ++i)
21786 *(data + i) = rand ();
21788 fd = creat ("conftest.mmap", 0600);
21791 if (write (fd, data, pagesize) != pagesize)
21795 /* Next, try to mmap the file at a fixed address which already has
21796 something else allocated at it. If we can, also make sure that
21797 we see the same garbage. */
21798 fd = open ("conftest.mmap", O_RDWR);
21801 data2 = (char *) malloc (2 * pagesize);
21804 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21805 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21806 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21808 for (i = 0; i < pagesize; ++i)
21809 if (*(data + i) != *(data2 + i))
21812 /* Finally, make sure that changes to the mapped area do not
21813 percolate back to the file as seen by read(). (This is a bug on
21814 some variants of i386 svr4.0.) */
21815 for (i = 0; i < pagesize; ++i)
21816 *(data2 + i) = *(data2 + i) + 1;
21817 data3 = (char *) malloc (pagesize);
21820 if (read (fd, data3, pagesize) != pagesize)
21822 for (i = 0; i < pagesize; ++i)
21823 if (*(data + i) != *(data3 + i))
21829 rm -f conftest$ac_exeext
21830 if { (ac_try="$ac_link"
21831 case "(($ac_try" in
21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833 *) ac_try_echo=$ac_try;;
21835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21836 (eval "$ac_link") 2>&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21840 { (case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845 (eval "$ac_try") 2>&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }; then
21849 ac_cv_func_mmap_fixed_mapped=yes
21851 echo "$as_me: program exited with status $ac_status" >&5
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21855 ( exit $ac_status )
21856 ac_cv_func_mmap_fixed_mapped=no
21858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21863 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21864 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21865 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21867 cat >>confdefs.h <<\_ACEOF
21868 #define HAVE_MMAP 1
21872 rm -f conftest.mmap
21874 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21875 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21876 if test "${ac_cv_func_mmap_file+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21880 ac_cpp='$CPP $CPPFLAGS'
21881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21885 if test "$cross_compiling" = yes; then
21886 ac_cv_func_mmap_file=no
21888 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21896 #include <sys/types.h>
21897 #include <sys/mman.h>
21905 fd = creat ("foo",0777);
21906 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21908 return (fd != (int) MAP_FAILED);
21913 rm -f conftest$ac_exeext
21914 if { (ac_try="$ac_link"
21915 case "(($ac_try" in
21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917 *) ac_try_echo=$ac_try;;
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920 (eval "$ac_link") 2>&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21924 { (case "(($ac_try" in
21925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926 *) ac_try_echo=$ac_try;;
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929 (eval "$ac_try") 2>&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; }; then
21933 ac_cv_func_mmap_file=yes
21935 echo "$as_me: program exited with status $ac_status" >&5
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 ( exit $ac_status )
21940 ac_cv_func_mmap_file=no
21942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21947 ac_cpp='$CPP $CPPFLAGS'
21948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21954 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21955 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21956 if test "$ac_cv_func_mmap_file" = yes; then
21958 cat >>confdefs.h <<\_ACEOF
21959 #define HAVE_MMAP_FILE
21966 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21967 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21968 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21971 if test "$llvm_cv_os_type" = "Interix" ; then
21972 ac_cv_need_dev_zero_for_mmap=yes
21974 ac_cv_need_dev_zero_for_mmap=no
21978 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21979 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21980 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21982 cat >>confdefs.h <<\_ACEOF
21983 #define NEED_DEV_ZERO_FOR_MMAP 1
21988 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21990 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21991 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21993 if test "$ac_cv_func_mmap_file" = "no"
21995 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21996 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22000 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22001 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22003 ac_cpp='$CXXCPP $CPPFLAGS'
22004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22008 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22017 volatile unsigned long val = 1;
22018 __sync_synchronize();
22019 __sync_val_compare_and_swap(&val, 1, 0);
22020 __sync_add_and_fetch(&val, 1);
22021 __sync_sub_and_fetch(&val, 1);
22027 rm -f conftest.$ac_objext conftest$ac_exeext
22028 if { (ac_try="$ac_link"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_link") 2>conftest.er1
22036 grep -v '^ *+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22042 { (case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_try") 2>&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; } &&
22051 { ac_try='test -s conftest$ac_exeext'
22052 { (case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057 (eval "$ac_try") 2>&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
22062 { echo "$as_me:$LINENO: result: yes" >&5
22063 echo "${ECHO_T}yes" >&6; }
22065 cat >>confdefs.h <<\_ACEOF
22066 #define LLVM_HAS_ATOMICS 1
22071 echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22075 { echo "$as_me:$LINENO: result: no" >&5
22076 echo "${ECHO_T}no" >&6; }
22078 cat >>confdefs.h <<\_ACEOF
22079 #define LLVM_HAS_ATOMICS 0
22082 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22083 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22087 rm -f core conftest.err conftest.$ac_objext \
22088 conftest$ac_exeext conftest.$ac_ext
22090 ac_cpp='$CPP $CPPFLAGS'
22091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22097 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22098 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22099 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22100 if test "${llvm_cv_linux_mixed+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22104 ac_cpp='$CPP $CPPFLAGS'
22105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22116 error: Not x86-64 even if uname says so!
22127 rm -f conftest.$ac_objext
22128 if { (ac_try="$ac_compile"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_compile") 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
22141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22142 { (case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_try") 2>&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; } &&
22151 { ac_try='test -s conftest.$ac_objext'
22152 { (case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_try") 2>&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; }; then
22161 llvm_cv_linux_mixed=no
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22166 llvm_cv_linux_mixed=yes
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171 ac_cpp='$CPP $CPPFLAGS'
22172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22178 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22179 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22181 if test "$llvm_cv_linux_mixed" = "yes"; then
22182 llvm_cv_target_arch="x86"
22188 for ac_func in __dso_handle
22190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 cat >conftest.$ac_ext <<_ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22204 #define $ac_func innocuous_$ac_func
22206 /* System header to define __stub macros and hopefully few prototypes,
22207 which can conflict with char $ac_func (); below.
22208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22209 <limits.h> exists even on freestanding compilers. */
22212 # include <limits.h>
22214 # include <assert.h>
22219 /* Override any GCC internal prototype to avoid an error.
22220 Use char because int might match the return type of a GCC
22221 builtin and then its argument prototype would still apply. */
22226 /* The GNU C library defines this for functions which it implements
22227 to always fail with ENOSYS. Some functions are actually named
22228 something starting with __ and the normal name is an alias. */
22229 #if defined __stub_$ac_func || defined __stub___$ac_func
22236 return $ac_func ();
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_link") 2>conftest.er1
22250 grep -v '^ *+' conftest.er1 >conftest.err
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } &&
22255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22256 { (case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_try") 2>&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; } &&
22265 { ac_try='test -s conftest$ac_exeext'
22266 { (case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_try") 2>&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; }; then
22275 eval "$as_ac_var=yes"
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 eval "$as_ac_var=no"
22283 rm -f core conftest.err conftest.$ac_objext \
22284 conftest$ac_exeext conftest.$ac_ext
22286 ac_res=`eval echo '${'$as_ac_var'}'`
22287 { echo "$as_me:$LINENO: result: $ac_res" >&5
22288 echo "${ECHO_T}$ac_res" >&6; }
22289 if test `eval echo '${'$as_ac_var'}'` = yes; then
22290 cat >>confdefs.h <<_ACEOF
22291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22298 SHLIBEXT=$libltdl_cv_shlibext
22301 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22304 if test "${prefix}" = "NONE" ; then
22305 prefix="/usr/local"
22307 eval LLVM_PREFIX="${prefix}";
22308 eval LLVM_BINDIR="${prefix}/bin";
22309 eval LLVM_LIBDIR="${prefix}/lib";
22310 eval LLVM_DATADIR="${prefix}/share/llvm";
22311 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22312 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22313 eval LLVM_INCLUDEDIR="${prefix}/include";
22314 eval LLVM_INFODIR="${prefix}/info";
22315 eval LLVM_MANDIR="${prefix}/man";
22316 LLVM_CONFIGTIME=`date`
22328 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22329 LLVM_CONFIGTIME="(timestamp not enabled)"
22333 cat >>confdefs.h <<_ACEOF
22334 #define LLVM_PREFIX "$LLVM_PREFIX"
22338 cat >>confdefs.h <<_ACEOF
22339 #define LLVM_BINDIR "$LLVM_BINDIR"
22343 cat >>confdefs.h <<_ACEOF
22344 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22348 cat >>confdefs.h <<_ACEOF
22349 #define LLVM_DATADIR "$LLVM_DATADIR"
22353 cat >>confdefs.h <<_ACEOF
22354 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22358 cat >>confdefs.h <<_ACEOF
22359 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22363 cat >>confdefs.h <<_ACEOF
22364 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22368 cat >>confdefs.h <<_ACEOF
22369 #define LLVM_INFODIR "$LLVM_INFODIR"
22373 cat >>confdefs.h <<_ACEOF
22374 #define LLVM_MANDIR "$LLVM_MANDIR"
22378 cat >>confdefs.h <<_ACEOF
22379 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22383 cat >>confdefs.h <<_ACEOF
22384 #define LLVM_HOST_TRIPLE "$host"
22388 cat >>confdefs.h <<_ACEOF
22389 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22393 if test "$BINDINGS_TO_BUILD" = auto ; then
22394 BINDINGS_TO_BUILD=""
22395 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22396 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22399 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22405 binding_prereqs_failed=0
22406 for a_binding in $BINDINGS_TO_BUILD ; do
22407 case "$a_binding" in
22409 if test "x$OCAMLC" = x ; then
22410 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22411 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22412 binding_prereqs_failed=1
22414 if test "x$OCAMLDEP" = x ; then
22415 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22416 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22417 binding_prereqs_failed=1
22419 if test "x$OCAMLOPT" = x ; then
22420 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22421 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22423 if test "x$with_ocaml_libdir" != xauto ; then
22424 OCAML_LIBDIR=$with_ocaml_libdir
22427 ocaml_stdlib="`"$OCAMLC" -where`"
22428 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22430 # ocaml stdlib is beneath our prefix; use stdlib
22431 OCAML_LIBDIR=$ocaml_stdlib
22434 # ocaml stdlib is outside our prefix; use libdir/ocaml
22435 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22442 if test "$binding_prereqs_failed" = 1 ; then
22443 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22444 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22445 { (exit 1); exit 1; }; }
22448 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22449 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22450 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 ac_cpp='$CXXCPP $CPPFLAGS'
22455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22459 oldcxxflags="$CXXFLAGS"
22460 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_compile") 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } &&
22490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22491 { (case "(($ac_try" in
22492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493 *) ac_try_echo=$ac_try;;
22495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496 (eval "$ac_try") 2>&5
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); }; } &&
22500 { ac_try='test -s conftest.$ac_objext'
22501 { (case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_try") 2>&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; }; then
22510 llvm_cv_cxx_visibility_inlines_hidden=yes
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22515 llvm_cv_cxx_visibility_inlines_hidden=no
22518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22519 CXXFLAGS="$oldcxxflags"
22521 ac_cpp='$CPP $CPPFLAGS'
22522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22528 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22529 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22530 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22531 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22534 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22539 if test "$llvm_cv_link_use_r" = "yes" ; then
22546 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22547 RDYNAMIC="-Wl,-export-dynamic"
22554 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22561 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22563 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22565 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22567 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22569 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22572 ac_config_files="$ac_config_files Makefile.config"
22575 ac_config_files="$ac_config_files llvm.spec"
22578 ac_config_files="$ac_config_files docs/doxygen.cfg"
22581 if test "${clang_src_root}" = ""; then
22582 clang_src_root="$srcdir/tools/clang"
22584 if test -f ${clang_src_root}/README.txt; then
22585 configh="include/clang/Config/config.h"
22586 doxy="docs/doxygen.cfg"
22587 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22589 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22593 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22596 test "x$program_prefix" = "xNONE" && program_prefix=""
22600 ac_config_commands="$ac_config_commands setup"
22602 ac_config_commands="$ac_config_commands Makefile"
22605 ac_config_commands="$ac_config_commands Makefile.common"
22608 ac_config_commands="$ac_config_commands examples/Makefile"
22611 ac_config_commands="$ac_config_commands lib/Makefile"
22614 ac_config_commands="$ac_config_commands runtime/Makefile"
22617 ac_config_commands="$ac_config_commands test/Makefile"
22620 ac_config_commands="$ac_config_commands test/Makefile.tests"
22623 ac_config_commands="$ac_config_commands unittests/Makefile"
22626 ac_config_commands="$ac_config_commands tools/Makefile"
22629 ac_config_commands="$ac_config_commands utils/Makefile"
22632 ac_config_commands="$ac_config_commands projects/Makefile"
22635 ac_config_commands="$ac_config_commands bindings/Makefile"
22638 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22642 cat >confcache <<\_ACEOF
22643 # This file is a shell script that caches the results of configure
22644 # tests run on this system so they can be shared between configure
22645 # scripts and configure runs, see configure's option --config-cache.
22646 # It is not useful on other systems. If it contains results you don't
22647 # want to keep, you may remove or edit it.
22649 # config.status only pays attention to the cache file if you give it
22650 # the --recheck option to rerun configure.
22652 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22654 # following values.
22658 # The following way of writing the cache mishandles newlines in values,
22659 # but we know of no workaround that is simple, portable, and efficient.
22660 # So, we kill variables containing newlines.
22661 # Ultrix sh set writes to stderr and can't be redirected directly,
22662 # and sets the high bit in the cache file unless we assign to the vars.
22664 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22665 eval ac_val=\$$ac_var
22669 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22670 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22673 _ | IFS | as_nl) ;; #(
22674 *) $as_unset $ac_var ;;
22680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22681 *${as_nl}ac_space=\ *)
22682 # `set' does not quote correctly, so add quotes (double-quote
22683 # substitution turns \\\\ into \\, and sed turns \\ into \).
22686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22689 # `set' quotes correctly as required by POSIX, so do not add quotes.
22690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22704 if test -w "$cache_file"; then
22705 test "x$cache_file" != "x/dev/null" &&
22706 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22707 echo "$as_me: updating cache $cache_file" >&6;}
22708 cat confcache >$cache_file
22710 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22711 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22717 # Let make expand exec_prefix.
22718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22720 DEFS=-DHAVE_CONFIG_H
22724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22725 # 1. Remove the extension, and $U if already installed.
22726 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22727 ac_i=`echo "$ac_i" | sed "$ac_script"`
22728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22729 # will be set to the directory where LIBOBJS objects are built.
22730 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22731 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22733 LIBOBJS=$ac_libobjs
22735 LTLIBOBJS=$ac_ltlibobjs
22738 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22739 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22740 Usually this means the macro was only invoked conditionally." >&5
22741 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22742 Usually this means the macro was only invoked conditionally." >&2;}
22743 { (exit 1); exit 1; }; }
22745 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22746 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22747 Usually this means the macro was only invoked conditionally." >&5
22748 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22749 Usually this means the macro was only invoked conditionally." >&2;}
22750 { (exit 1); exit 1; }; }
22753 : ${CONFIG_STATUS=./config.status}
22754 ac_clean_files_save=$ac_clean_files
22755 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22756 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22757 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22758 cat >$CONFIG_STATUS <<_ACEOF
22760 # Generated by $as_me.
22761 # Run this file to recreate the current configuration.
22762 # Compiler output produced by configure, useful for debugging
22763 # configure, is in config.log if it exists.
22766 ac_cs_recheck=false
22768 SHELL=\${CONFIG_SHELL-$SHELL}
22771 cat >>$CONFIG_STATUS <<\_ACEOF
22772 ## --------------------- ##
22773 ## M4sh Initialization. ##
22774 ## --------------------- ##
22776 # Be Bourne compatible
22777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22780 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22781 # is contrary to our usage. Disable this feature.
22782 alias -g '${1+"$@"}'='"$@"'
22783 setopt NO_GLOB_SUBST
22785 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22787 BIN_SH=xpg4; export BIN_SH # for Tru64
22788 DUALCASE=1; export DUALCASE # for MKS sh
22792 # Avoid depending upon Character Ranges.
22793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22796 as_cr_digits='0123456789'
22797 as_cr_alnum=$as_cr_Letters$as_cr_digits
22799 # The user is always right.
22800 if test "${PATH_SEPARATOR+set}" != set; then
22801 echo "#! /bin/sh" >conf$$.sh
22802 echo "exit 0" >>conf$$.sh
22804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22812 # Support unset when possible.
22813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22821 # We need space, tab and new line, in precisely that order. Quoting is
22822 # there to prevent editors from complaining about space-tab.
22823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22824 # splitting by setting IFS to empty value.)
22829 # Find who we are. Look in the path if we contain no directory separator.
22831 *[\\/]* ) as_myself=$0 ;;
22832 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22833 for as_dir in $PATH
22836 test -z "$as_dir" && as_dir=.
22837 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22843 # We did not find ourselves, most probably we were run as `sh COMMAND'
22844 # in which case we are not to be found in the path.
22845 if test "x$as_myself" = x; then
22848 if test ! -f "$as_myself"; then
22849 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22850 { (exit 1); exit 1; }
22853 # Work around bugs in pre-3.0 UWIN ksh.
22854 for as_var in ENV MAIL MAILPATH
22855 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22863 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22864 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22865 LC_TELEPHONE LC_TIME
22867 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22868 eval $as_var=C; export $as_var
22870 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22874 # Required to use basename.
22875 if expr a : '\(a\)' >/dev/null 2>&1 &&
22876 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22882 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22883 as_basename=basename
22889 # Name of the executable.
22890 as_me=`$as_basename -- "$0" ||
22891 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22892 X"$0" : 'X\(//\)$' \| \
22893 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22895 sed '/^.*\/\([^/][^/]*\)\/*$/{
22914 as_lineno_1=$LINENO
22915 as_lineno_2=$LINENO
22916 test "x$as_lineno_1" != "x$as_lineno_2" &&
22917 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22919 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22920 # uniformly replaced by the line number. The first 'sed' inserts a
22921 # line-number line after each line using $LINENO; the second 'sed'
22922 # does the real work. The second script uses 'N' to pair each
22923 # line-number line with the line containing $LINENO, and appends
22924 # trailing '-' during substitution so that $LINENO is not a special
22925 # case at line end.
22926 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22927 # scripts with optimization help from Paolo Bonzini. Blame Lee
22928 # E. McMahon (1931-1989) for sed's syntax. :-)
22940 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22943 ' >$as_me.lineno &&
22944 chmod +x "$as_me.lineno" ||
22945 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22946 { (exit 1); exit 1; }; }
22948 # Don't try to exec as it changes $[0], causing all sort of problems
22949 # (the dirname of $[0] is not the place where we might find the
22950 # original and so on. Autoconf is especially sensitive to this).
22951 . "./$as_me.lineno"
22952 # Exit status is that of the last command.
22957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22963 ECHO_C= ECHO_N= ECHO_T=
22964 case `echo -n x` in
22966 case `echo 'x\c'` in
22967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22974 if expr a : '\(a\)' >/dev/null 2>&1 &&
22975 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22981 rm -f conf$$ conf$$.exe conf$$.file
22982 if test -d conf$$.dir; then
22983 rm -f conf$$.dir/conf$$.file
22989 if ln -s conf$$.file conf$$ 2>/dev/null; then
22991 # ... but there are two gotchas:
22992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22994 # In both cases, we have to default to `cp -p'.
22995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22997 elif ln conf$$.file conf$$ 2>/dev/null; then
23002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23003 rmdir conf$$.dir 2>/dev/null
23005 if mkdir -p . 2>/dev/null; then
23008 test -d ./-p && rmdir ./-p
23012 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23013 # systems may use methods other than mode bits to determine executability.
23014 cat >conf$$.file <<_ASEOF
23018 chmod +x conf$$.file
23019 if test -x conf$$.file >/dev/null 2>&1; then
23020 as_executable_p="test -x"
23026 # Sed expression to map a string onto a valid CPP name.
23027 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23029 # Sed expression to map a string onto a valid variable name.
23030 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23035 # Save the log message, to keep $[0] and so on meaningful, and to
23036 # report actual input values of CONFIG_FILES etc. instead of their
23037 # values after options handling.
23039 This file was extended by LLVM $as_me 3.3svn, which was
23040 generated by GNU Autoconf 2.60. Invocation command line was
23042 CONFIG_FILES = $CONFIG_FILES
23043 CONFIG_HEADERS = $CONFIG_HEADERS
23044 CONFIG_LINKS = $CONFIG_LINKS
23045 CONFIG_COMMANDS = $CONFIG_COMMANDS
23048 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23053 cat >>$CONFIG_STATUS <<_ACEOF
23054 # Files that config.status was made for.
23055 config_files="$ac_config_files"
23056 config_headers="$ac_config_headers"
23057 config_commands="$ac_config_commands"
23061 cat >>$CONFIG_STATUS <<\_ACEOF
23063 \`$as_me' instantiates files from templates according to the
23064 current configuration.
23066 Usage: $0 [OPTIONS] [FILE]...
23068 -h, --help print this help, then exit
23069 -V, --version print version number, then exit
23070 -q, --quiet do not print progress messages
23071 -d, --debug don't remove temporary files
23072 --recheck update $as_me by reconfiguring in the same conditions
23073 --file=FILE[:TEMPLATE]
23074 instantiate the configuration file FILE
23075 --header=FILE[:TEMPLATE]
23076 instantiate the configuration header FILE
23078 Configuration files:
23081 Configuration headers:
23084 Configuration commands:
23087 Report bugs to <bug-autoconf@gnu.org>."
23090 cat >>$CONFIG_STATUS <<_ACEOF
23092 LLVM config.status 3.3svn
23093 configured by $0, generated by GNU Autoconf 2.60,
23094 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23096 Copyright (C) 2006 Free Software Foundation, Inc.
23097 This config.status script is free software; the Free Software Foundation
23098 gives unlimited permission to copy, distribute and modify it."
23105 cat >>$CONFIG_STATUS <<\_ACEOF
23106 # If no file are specified by the user, then we need to provide default
23107 # value. By we need to know if files were specified by the user.
23113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23125 # Handling of the options.
23126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23129 echo "$ac_cs_version"; exit ;;
23130 --debug | --debu | --deb | --de | --d | -d )
23132 --file | --fil | --fi | --f )
23134 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23135 ac_need_defaults=false;;
23136 --header | --heade | --head | --hea )
23138 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23139 ac_need_defaults=false;;
23141 # Conflict between --help and --header
23142 { echo "$as_me: error: ambiguous option: $1
23143 Try \`$0 --help' for more information." >&2
23144 { (exit 1); exit 1; }; };;
23145 --help | --hel | -h )
23146 echo "$ac_cs_usage"; exit ;;
23147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23151 # This is an error.
23152 -*) { echo "$as_me: error: unrecognized option: $1
23153 Try \`$0 --help' for more information." >&2
23154 { (exit 1); exit 1; }; } ;;
23156 *) ac_config_targets="$ac_config_targets $1"
23157 ac_need_defaults=false ;;
23163 ac_configure_extra_args=
23165 if $ac_cs_silent; then
23167 ac_configure_extra_args="$ac_configure_extra_args --silent"
23171 cat >>$CONFIG_STATUS <<_ACEOF
23172 if \$ac_cs_recheck; then
23173 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23174 CONFIG_SHELL=$SHELL
23175 export CONFIG_SHELL
23176 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23180 cat >>$CONFIG_STATUS <<\_ACEOF
23184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23185 ## Running $as_me. ##
23191 cat >>$CONFIG_STATUS <<_ACEOF
23195 llvm_src="${srcdir}"
23199 cat >>$CONFIG_STATUS <<\_ACEOF
23201 # Handling of arguments.
23202 for ac_config_target in $ac_config_targets
23204 case $ac_config_target in
23205 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23206 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23207 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23208 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23209 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23210 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23211 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23212 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23213 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23214 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23215 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23216 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23217 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23218 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23219 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23220 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23221 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23222 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23223 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23224 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23225 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23226 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23227 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23228 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23229 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23230 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23231 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23233 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23234 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23235 { (exit 1); exit 1; }; };;
23240 # If the user did not use the arguments to specify the items to instantiate,
23241 # then the envvar interface is used. Set only those that are not.
23242 # We use the long form for the default assignment because of an extremely
23243 # bizarre bug on SunOS 4.1.3.
23244 if $ac_need_defaults; then
23245 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23246 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23247 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23250 # Have a temporary directory for convenience. Make it in the build tree
23251 # simply because there is no reason against having it here, and in addition,
23252 # creating and moving files from /tmp can sometimes cause problems.
23253 # Hook for its removal unless debugging.
23254 # Note that there is a small window in which the directory will not be cleaned:
23255 # after its creation but before its name has been assigned to `$tmp'.
23259 trap 'exit_status=$?
23260 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23262 trap '{ (exit 1); exit 1; }' 1 2 13 15
23264 # Create a (secure) tmp directory for tmp files.
23267 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23268 test -n "$tmp" && test -d "$tmp"
23271 tmp=./conf$$-$RANDOM
23272 (umask 077 && mkdir "$tmp")
23275 echo "$me: cannot create a temporary directory in ." >&2
23276 { (exit 1); exit 1; }
23280 # Set up the sed scripts for CONFIG_FILES section.
23283 # No need to generate the scripts if there are no CONFIG_FILES.
23284 # This happens for instance when ./config.status config.h
23285 if test -n "$CONFIG_FILES"; then
23292 for ac_last_try in false false false false false :; do
23293 cat >conf$$subs.sed <<_ACEOF
23294 SHELL!$SHELL$ac_delim
23295 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23296 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23297 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23298 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23299 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23300 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23301 exec_prefix!$exec_prefix$ac_delim
23302 prefix!$prefix$ac_delim
23303 program_transform_name!$program_transform_name$ac_delim
23304 bindir!$bindir$ac_delim
23305 sbindir!$sbindir$ac_delim
23306 libexecdir!$libexecdir$ac_delim
23307 datarootdir!$datarootdir$ac_delim
23308 datadir!$datadir$ac_delim
23309 sysconfdir!$sysconfdir$ac_delim
23310 sharedstatedir!$sharedstatedir$ac_delim
23311 localstatedir!$localstatedir$ac_delim
23312 includedir!$includedir$ac_delim
23313 oldincludedir!$oldincludedir$ac_delim
23314 docdir!$docdir$ac_delim
23315 infodir!$infodir$ac_delim
23316 htmldir!$htmldir$ac_delim
23317 dvidir!$dvidir$ac_delim
23318 pdfdir!$pdfdir$ac_delim
23319 psdir!$psdir$ac_delim
23320 libdir!$libdir$ac_delim
23321 localedir!$localedir$ac_delim
23322 mandir!$mandir$ac_delim
23323 DEFS!$DEFS$ac_delim
23324 ECHO_C!$ECHO_C$ac_delim
23325 ECHO_N!$ECHO_N$ac_delim
23326 ECHO_T!$ECHO_T$ac_delim
23327 LIBS!$LIBS$ac_delim
23328 build_alias!$build_alias$ac_delim
23329 host_alias!$host_alias$ac_delim
23330 target_alias!$target_alias$ac_delim
23331 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23333 CFLAGS!$CFLAGS$ac_delim
23334 LDFLAGS!$LDFLAGS$ac_delim
23335 CPPFLAGS!$CPPFLAGS$ac_delim
23336 ac_ct_CC!$ac_ct_CC$ac_delim
23337 EXEEXT!$EXEEXT$ac_delim
23338 OBJEXT!$OBJEXT$ac_delim
23340 CXXFLAGS!$CXXFLAGS$ac_delim
23341 ac_ct_CXX!$ac_ct_CXX$ac_delim
23343 subdirs!$subdirs$ac_delim
23344 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23345 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23346 build!$build$ac_delim
23347 build_cpu!$build_cpu$ac_delim
23348 build_vendor!$build_vendor$ac_delim
23349 build_os!$build_os$ac_delim
23350 host!$host$ac_delim
23351 host_cpu!$host_cpu$ac_delim
23352 host_vendor!$host_vendor$ac_delim
23353 host_os!$host_os$ac_delim
23354 target!$target$ac_delim
23355 target_cpu!$target_cpu$ac_delim
23356 target_vendor!$target_vendor$ac_delim
23357 target_os!$target_os$ac_delim
23359 HOST_OS!$HOST_OS$ac_delim
23360 TARGET_OS!$TARGET_OS$ac_delim
23361 LINKALL!$LINKALL$ac_delim
23362 NOLINKALL!$NOLINKALL$ac_delim
23363 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23364 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23365 ARCH!$ARCH$ac_delim
23366 HOST_ARCH!$HOST_ARCH$ac_delim
23367 ENDIAN!$ENDIAN$ac_delim
23368 GREP!$GREP$ac_delim
23369 EGREP!$EGREP$ac_delim
23370 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23371 BUILD_CC!$BUILD_CC$ac_delim
23372 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23373 BUILD_CXX!$BUILD_CXX$ac_delim
23374 CVSBUILD!$CVSBUILD$ac_delim
23375 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23376 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23377 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23378 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23379 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23380 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23381 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23382 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23383 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23384 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23385 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23386 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23387 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23388 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23390 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23393 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23395 elif $ac_last_try; then
23396 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23397 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23398 { (exit 1); exit 1; }; }
23400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23404 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23405 if test -n "$ac_eof"; then
23406 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23407 ac_eof=`expr $ac_eof + 1`
23410 cat >>$CONFIG_STATUS <<_ACEOF
23411 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23415 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23416 s/^/s,@/; s/!/@,|#_!!_#|/
23419 s/'"$ac_delim"'$/,g/; t
23421 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23422 ' >>$CONFIG_STATUS <conf$$subs.sed
23423 rm -f conf$$subs.sed
23424 cat >>$CONFIG_STATUS <<_ACEOF
23430 for ac_last_try in false false false false false :; do
23431 cat >conf$$subs.sed <<_ACEOF
23432 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23433 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23434 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23435 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23436 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23437 ENABLE_PIC!$ENABLE_PIC$ac_delim
23438 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23439 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23440 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23441 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23442 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23443 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23444 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23445 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23446 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23447 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23448 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23449 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23450 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23451 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23452 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23454 ifGNUmake!$ifGNUmake$ac_delim
23455 LN_S!$LN_S$ac_delim
23458 DATE!$DATE$ac_delim
23459 FIND!$FIND$ac_delim
23460 MKDIR!$MKDIR$ac_delim
23462 RANLIB!$RANLIB$ac_delim
23467 BINPWD!$BINPWD$ac_delim
23468 GRAPHVIZ!$GRAPHVIZ$ac_delim
23471 NEATO!$NEATO$ac_delim
23472 TWOPI!$TWOPI$ac_delim
23473 CIRCO!$CIRCO$ac_delim
23475 DOTTY!$DOTTY$ac_delim
23476 XDOT_PY!$XDOT_PY$ac_delim
23477 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23478 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23479 INSTALL_DATA!$INSTALL_DATA$ac_delim
23480 BZIP2!$BZIP2$ac_delim
23482 DOXYGEN!$DOXYGEN$ac_delim
23483 GROFF!$GROFF$ac_delim
23484 GZIPBIN!$GZIPBIN$ac_delim
23485 PDFROFF!$PDFROFF$ac_delim
23487 OCAMLC!$OCAMLC$ac_delim
23488 OCAMLOPT!$OCAMLOPT$ac_delim
23489 OCAMLDEP!$OCAMLDEP$ac_delim
23490 OCAMLDOC!$OCAMLDOC$ac_delim
23492 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23493 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23494 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23495 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23496 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23497 LIBADD_DL!$LIBADD_DL$ac_delim
23498 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23499 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23500 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23501 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23502 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23503 PYTHON!$PYTHON$ac_delim
23504 USE_UDIS86!$USE_UDIS86$ac_delim
23505 USE_OPROFILE!$USE_OPROFILE$ac_delim
23506 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23507 XML2CONFIG!$XML2CONFIG$ac_delim
23508 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23509 LIBXML2_INC!$LIBXML2_INC$ac_delim
23510 CXXCPP!$CXXCPP$ac_delim
23511 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23512 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23513 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23514 MMAP_FILE!$MMAP_FILE$ac_delim
23515 SHLIBEXT!$SHLIBEXT$ac_delim
23516 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23517 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23518 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23519 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23520 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23521 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23522 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23523 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23524 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23525 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23526 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23527 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23528 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23531 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23533 elif $ac_last_try; then
23534 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23535 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23536 { (exit 1); exit 1; }; }
23538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23542 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23543 if test -n "$ac_eof"; then
23544 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23545 ac_eof=`expr $ac_eof + 1`
23548 cat >>$CONFIG_STATUS <<_ACEOF
23549 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23553 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23554 s/^/s,@/; s/!/@,|#_!!_#|/
23557 s/'"$ac_delim"'$/,g/; t
23559 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23560 ' >>$CONFIG_STATUS <conf$$subs.sed
23561 rm -f conf$$subs.sed
23562 cat >>$CONFIG_STATUS <<_ACEOF
23568 for ac_last_try in false false false false false :; do
23569 cat >conf$$subs.sed <<_ACEOF
23570 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23571 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23572 RPATH!$RPATH$ac_delim
23573 RDYNAMIC!$RDYNAMIC$ac_delim
23574 program_prefix!$program_prefix$ac_delim
23575 LIBOBJS!$LIBOBJS$ac_delim
23576 LTLIBOBJS!$LTLIBOBJS$ac_delim
23579 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23581 elif $ac_last_try; then
23582 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23583 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23584 { (exit 1); exit 1; }; }
23586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23590 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23591 if test -n "$ac_eof"; then
23592 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23593 ac_eof=`expr $ac_eof + 1`
23596 cat >>$CONFIG_STATUS <<_ACEOF
23597 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23601 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23602 s/^/s,@/; s/!/@,|#_!!_#|/
23605 s/'"$ac_delim"'$/,g/; t
23607 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23608 ' >>$CONFIG_STATUS <conf$$subs.sed
23609 rm -f conf$$subs.sed
23610 cat >>$CONFIG_STATUS <<_ACEOF
23617 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23618 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23619 # trailing colons and then remove the whole line if VPATH becomes empty
23620 # (actually we leave an empty line to preserve line numbers).
23621 if test "x$srcdir" = x.; then
23622 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23623 s/:*\$(srcdir):*/:/
23624 s/:*\${srcdir}:*/:/
23626 s/^\([^=]*=[ ]*\):*/\1/
23632 cat >>$CONFIG_STATUS <<\_ACEOF
23633 fi # test -n "$CONFIG_FILES"
23636 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23639 :[FHLC]) ac_mode=$ac_tag; continue;;
23641 case $ac_mode$ac_tag in
23643 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23644 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23645 { (exit 1); exit 1; }; };;
23646 :[FH]-) ac_tag=-:-;;
23647 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23664 -) ac_f="$tmp/stdin";;
23665 *) # Look for the file first in the build tree, then in the source tree
23666 # (if the path is not absolute). The absolute path cannot be DOS-style,
23667 # because $ac_f cannot contain `:'.
23671 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23673 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23674 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23675 { (exit 1); exit 1; }; };;
23677 ac_file_inputs="$ac_file_inputs $ac_f"
23680 # Let's still pretend it is `configure' which instantiates (i.e., don't
23681 # use $as_me), people would be surprised to read:
23682 # /* config.h. Generated by config.status. */
23683 configure_input="Generated from "`IFS=:
23684 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23685 if test x"$ac_file" != x-; then
23686 configure_input="$ac_file. $configure_input"
23687 { echo "$as_me:$LINENO: creating $ac_file" >&5
23688 echo "$as_me: creating $ac_file" >&6;}
23692 *:-:* | *:-) cat >"$tmp/stdin";;
23697 ac_dir=`$as_dirname -- "$ac_file" ||
23698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23699 X"$ac_file" : 'X\(//\)[^/]' \| \
23700 X"$ac_file" : 'X\(//\)$' \| \
23701 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23707 /^X\(\/\/\)[^/].*/{
23722 -*) as_dir=./$as_dir;;
23724 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23728 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23729 *) as_qdir=$as_dir;;
23731 as_dirs="'$as_qdir' $as_dirs"
23732 as_dir=`$as_dirname -- "$as_dir" ||
23733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23734 X"$as_dir" : 'X\(//\)[^/]' \| \
23735 X"$as_dir" : 'X\(//\)$' \| \
23736 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23742 /^X\(\/\/\)[^/].*/{
23755 test -d "$as_dir" && break
23757 test -z "$as_dirs" || eval "mkdir $as_dirs"
23758 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23759 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23760 { (exit 1); exit 1; }; }; }
23764 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23766 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23767 # A ".." for each directory in $ac_dir_suffix.
23768 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23769 case $ac_top_builddir_sub in
23770 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23771 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23774 ac_abs_top_builddir=$ac_pwd
23775 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23776 # for backward compatibility:
23777 ac_top_builddir=$ac_top_build_prefix
23780 .) # We are building in place.
23782 ac_top_srcdir=$ac_top_builddir_sub
23783 ac_abs_top_srcdir=$ac_pwd ;;
23784 [\\/]* | ?:[\\/]* ) # Absolute name.
23785 ac_srcdir=$srcdir$ac_dir_suffix;
23786 ac_top_srcdir=$srcdir
23787 ac_abs_top_srcdir=$srcdir ;;
23788 *) # Relative name.
23789 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23790 ac_top_srcdir=$ac_top_build_prefix$srcdir
23791 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23793 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23803 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23804 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23808 cat >>$CONFIG_STATUS <<\_ACEOF
23809 # If the template does not know about datarootdir, expand it.
23810 # FIXME: This hack should be removed a few years after 2.60.
23811 ac_datarootdir_hack=; ac_datarootdir_seen=
23813 case `sed -n '/datarootdir/ {
23822 ' $ac_file_inputs` in
23823 *datarootdir*) ac_datarootdir_seen=yes;;
23824 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23825 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23826 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23828 cat >>$CONFIG_STATUS <<_ACEOF
23829 ac_datarootdir_hack='
23830 s&@datadir@&$datadir&g
23831 s&@docdir@&$docdir&g
23832 s&@infodir@&$infodir&g
23833 s&@localedir@&$localedir&g
23834 s&@mandir@&$mandir&g
23835 s&\\\${datarootdir}&$datarootdir&g' ;;
23839 # Neutralize VPATH when `$srcdir' = `.'.
23840 # Shell code in configure.ac might set extrasub.
23841 # FIXME: do we really want to maintain this feature?
23842 cat >>$CONFIG_STATUS <<_ACEOF
23846 cat >>$CONFIG_STATUS <<\_ACEOF
23848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23849 s&@configure_input@&$configure_input&;t t
23850 s&@top_builddir@&$ac_top_builddir_sub&;t t
23851 s&@srcdir@&$ac_srcdir&;t t
23852 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23853 s&@top_srcdir@&$ac_top_srcdir&;t t
23854 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23855 s&@builddir@&$ac_builddir&;t t
23856 s&@abs_builddir@&$ac_abs_builddir&;t t
23857 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23858 s&@INSTALL@&$ac_INSTALL&;t t
23859 $ac_datarootdir_hack
23860 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23862 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23863 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23864 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23865 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23866 which seems to be undefined. Please make sure it is defined." >&5
23867 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23868 which seems to be undefined. Please make sure it is defined." >&2;}
23872 -) cat "$tmp/out"; rm -f "$tmp/out";;
23873 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23882 # Transform confdefs.h into a sed script `conftest.defines', that
23883 # substitutes the proper values into config.h.in to produce config.h.
23884 rm -f conftest.defines conftest.tail
23885 # First, append a space to every undef/define line, to ease matching.
23886 echo 's/$/ /' >conftest.defines
23887 # Then, protect against being on the right side of a sed subst, or in
23888 # an unquoted here document, in config.status. If some macros were
23889 # called several times there might be several #defines for the same
23890 # symbol, which is useless. But do not sort them, since the last
23891 # AC_DEFINE must be honored.
23892 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23893 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23894 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23895 # PARAMS is the parameter list in the macro definition--in most cases, it's
23896 # just an empty string.
23897 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23898 ac_dB='\\)[ (].*,\\1define\\2'
23906 s/^[ ]*#[ ]*define[ ][ ]*//
23911 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23912 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23913 ' >>conftest.defines
23915 # Remove the space that was appended to ease matching.
23916 # Then replace #undef with comments. This is necessary, for
23917 # example, in the case of _POSIX_SOURCE, which is predefined and required
23918 # on some systems where configure will not decide to define it.
23919 # (The regexp can be short, since the line contains either #define or #undef.)
23921 s,^[ #]*u.*,/* & */,' >>conftest.defines
23923 # Break up conftest.defines:
23924 ac_max_sed_lines=50
23926 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23927 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23928 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23930 ac_in='$ac_file_inputs'
23931 ac_out='"$tmp/out1"'
23932 ac_nxt='"$tmp/out2"'
23936 # Write a here document:
23937 cat >>$CONFIG_STATUS <<_ACEOF
23938 # First, check the format of the line:
23939 cat >"\$tmp/defines.sed" <<\\CEOF
23940 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23941 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23945 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23947 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23948 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23949 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23950 grep . conftest.tail >/dev/null || break
23951 rm -f conftest.defines
23952 mv conftest.tail conftest.defines
23954 rm -f conftest.defines conftest.tail
23956 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23957 cat >>$CONFIG_STATUS <<\_ACEOF
23958 if test x"$ac_file" != x-; then
23959 echo "/* $configure_input */" >"$tmp/config.h"
23960 cat "$ac_result" >>"$tmp/config.h"
23961 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23962 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23963 echo "$as_me: $ac_file is unchanged" >&6;}
23966 mv "$tmp/config.h" $ac_file
23969 echo "/* $configure_input */"
23975 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23976 echo "$as_me: executing $ac_file commands" >&6;}
23981 case $ac_file$ac_mode in
23982 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23984 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23986 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23988 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23990 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23992 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23994 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23996 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23998 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24000 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24002 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24004 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24006 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24013 { (exit 0); exit 0; }
24015 chmod +x $CONFIG_STATUS
24016 ac_clean_files=$ac_clean_files_save
24019 # configure is writing to config.log, and then calls config.status.
24020 # config.status does its own redirection, appending to config.log.
24021 # Unfortunately, on DOS this fails, as config.log is still kept open
24022 # by configure, so config.status won't be able to write to it; its
24023 # output is simply discarded. So we exec the FD to /dev/null,
24024 # effectively closing config.log, so it can be properly (re)opened and
24025 # appended to by config.status. When coming back to configure, we
24026 # need to make the FD available again.
24027 if test "$no_create" != yes; then
24029 ac_config_status_args=
24030 test "$silent" = yes &&
24031 ac_config_status_args="$ac_config_status_args --quiet"
24033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24036 # would make configure fail if this is the last instruction.
24037 $ac_cs_success || { (exit 1); exit 1; }
24041 # CONFIG_SUBDIRS section.
24043 if test "$no_recursion" != yes; then
24045 # Remove --cache-file and --srcdir arguments so they do not pile up.
24046 ac_sub_configure_args=
24048 eval "set x $ac_configure_args"
24052 if test -n "$ac_prev"; then
24057 -cache-file | --cache-file | --cache-fil | --cache-fi \
24058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24059 ac_prev=cache_file ;;
24060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24064 --config-cache | -C)
24066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24076 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24078 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24082 # Always prepend --prefix to ensure using the same prefix
24083 # in subdir configurations.
24084 ac_arg="--prefix=$prefix"
24086 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24088 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24091 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24093 # Do not complain, so a configure script can configure whichever
24094 # parts of a large source tree are present.
24095 test -d "$srcdir/$ac_dir" || continue
24097 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24098 echo "$as_me:$LINENO: $ac_msg" >&5
24102 -*) as_dir=./$as_dir;;
24104 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24108 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24109 *) as_qdir=$as_dir;;
24111 as_dirs="'$as_qdir' $as_dirs"
24112 as_dir=`$as_dirname -- "$as_dir" ||
24113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24114 X"$as_dir" : 'X\(//\)[^/]' \| \
24115 X"$as_dir" : 'X\(//\)$' \| \
24116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24122 /^X\(\/\/\)[^/].*/{
24135 test -d "$as_dir" && break
24137 test -z "$as_dirs" || eval "mkdir $as_dirs"
24138 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24139 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24140 { (exit 1); exit 1; }; }; }
24144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24147 # A ".." for each directory in $ac_dir_suffix.
24148 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24149 case $ac_top_builddir_sub in
24150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24154 ac_abs_top_builddir=$ac_pwd
24155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24156 # for backward compatibility:
24157 ac_top_builddir=$ac_top_build_prefix
24160 .) # We are building in place.
24162 ac_top_srcdir=$ac_top_builddir_sub
24163 ac_abs_top_srcdir=$ac_pwd ;;
24164 [\\/]* | ?:[\\/]* ) # Absolute name.
24165 ac_srcdir=$srcdir$ac_dir_suffix;
24166 ac_top_srcdir=$srcdir
24167 ac_abs_top_srcdir=$srcdir ;;
24168 *) # Relative name.
24169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24170 ac_top_srcdir=$ac_top_build_prefix$srcdir
24171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24178 # Check for guested configure; otherwise get Cygnus style configure.
24179 if test -f "$ac_srcdir/configure.gnu"; then
24180 ac_sub_configure=$ac_srcdir/configure.gnu
24181 elif test -f "$ac_srcdir/configure"; then
24182 ac_sub_configure=$ac_srcdir/configure
24183 elif test -f "$ac_srcdir/configure.in"; then
24184 # This should be Cygnus configure.
24185 ac_sub_configure=$ac_aux_dir/configure
24187 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24188 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24192 # The recursion is here.
24193 if test -n "$ac_sub_configure"; then
24194 # Make the cache file name correct relative to the subdirectory.
24195 case $cache_file in
24196 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24197 *) # Relative name.
24198 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24201 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24202 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24203 # The eval makes quoting arguments work.
24204 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24205 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24206 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24207 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24208 { (exit 1); exit 1; }; }