2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
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-2014 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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
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
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
693 ENABLE_EXPENSIVE_CHECKS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
798 ENABLE_VISIBILITY_INLINES_HIDDEN
805 ac_precious_vars='build_alias
817 ac_subdirs_all='projects/test-suite
820 projects/llvm-poolalloc
826 # Initialize some variables set by options.
828 ac_init_version=false
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
838 program_transform_name=s,x,x,
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
884 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
930 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
931 { (exit 1); exit 1; }; }
932 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
933 eval enable_$ac_feature=no ;;
935 -docdir | --docdir | --docdi | --doc | --do)
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 -enable-* | --enable-*)
946 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
949 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
950 { (exit 1); exit 1; }; }
951 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
952 eval enable_$ac_feature=\$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
967 -help | --help | --hel | --he | -h)
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 htmldir=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 sbindir=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 sharedstatedir=$ac_optarg ;;
1114 -site | --site | --sit)
1116 -site=* | --site=* | --sit=*)
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1143 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package| sed 's/-/_/g'`
1149 eval with_$ac_package=\$ac_optarg ;;
1151 -without-* | --without-*)
1152 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155 { echo "$as_me: error: invalid package name: $ac_package" >&2
1156 { (exit 1); exit 1; }; }
1157 ac_package=`echo $ac_package | sed 's/-/_/g'`
1158 eval with_$ac_package=no ;;
1161 # Obsolete; use --with-x.
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1178 -*) { echo "$as_me: error: unrecognized option: $ac_option
1179 Try \`$0 --help' for more information." >&2
1180 { (exit 1); exit 1; }; }
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1188 { (exit 1); exit 1; }; }
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 { echo "$as_me: error: missing argument to $ac_option" >&2
1206 { (exit 1); exit 1; }; }
1209 # Be sure to have absolute directory names.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1221 { (exit 1); exit 1; }; }
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used." >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245 test "$silent" = yes && exec 6>/dev/null
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 { echo "$as_me: error: Working directory cannot be determined" >&2
1252 { (exit 1); exit 1; }; }
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 { echo "$as_me: error: pwd does not report name of working directory" >&2
1255 { (exit 1); exit 1; }; }
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$0" ||
1263 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$0" : 'X\(//\)[^/]' \| \
1265 X"$0" : 'X\(//\)$' \| \
1266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1290 ac_srcdir_defaulted=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1295 { (exit 1); exit 1; }; }
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1300 { (exit 1); exit 1; }; }
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-polly Use polly if available (default is YES)
1400 --enable-libcpp Use libc++ if available (default is NO)
1401 --enable-cxx11 Use c++11 if available (default is NO)
1402 --enable-split-dwarf Use split-dwarf if available (default is NO)
1403 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1404 --enable-clang-static-analyzer
1405 Enable building of clang Static Analyzer (default is
1407 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1408 --enable-optimized Compile with optimizations enabled (default is NO)
1409 --enable-profiling Compile with profiling enabled (default is NO)
1410 --enable-assertions Compile with assertion checks enabled (default is
1412 --enable-werror Compile with -Werror enabled (default is NO)
1413 --enable-expensive-checks
1414 Compile with expensive debug checks enabled (default
1416 --enable-debug-runtime Build runtime libs with debug symbols (default is
1418 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1419 optimization is on and YES if it's off)
1420 --enable-keep-symbols Do not strip installed executables)
1421 --enable-jit Enable Just In Time Compiling (default is YES)
1422 --enable-docs Build documents (default is YES)
1423 --enable-doxygen Build doxygen documentation (default is NO)
1424 --enable-threads Use threads if available (default is YES)
1425 --enable-pthreads Use pthreads if available (default is YES)
1426 --enable-zlib Use zlib for compression/decompression if available
1428 --enable-pic Build LLVM with Position Independent Code (default
1430 --enable-shared Build a shared library and link tools against it
1432 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1433 Win32 DLL (default is NO)
1434 --enable-timestamps Enable embedding timestamp information in build
1436 --enable-backtraces Enable embedding backtraces on crash (default is
1438 --enable-crash-overrides
1439 Enable crash handling overrides (default is YES)
1440 --enable-targets Build specific host targets: all or
1441 target1,target2,... Valid targets are: host, x86,
1442 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1443 xcore, msp430, nvptx, systemz, r600, and cpp
1445 --enable-experimental-targets
1446 Build experimental host targets: disable or
1447 target1,target2,... (default=disable)
1448 --enable-bindings Build specific language bindings:
1449 all,auto,none,{binding-name} (default=auto)
1450 --enable-terminfo Query the terminfo database if available (default is
1452 --enable-libffi Check for the presence of libffi (default is NO)
1453 --enable-ltdl-install install libltdl
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-optimize-option Select the compiler options to use for optimized
1460 --with-extra-options Specify additional options to compile LLVM with
1461 --with-extra-ld-options Specify additional options to link LLVM with
1462 --with-ocaml-libdir Specify install location for ocaml bindings (default
1464 --with-clang-srcdir Directory to the out-of-tree Clang source
1465 --with-clang-resource-dir
1466 Relative directory from the Clang binary for
1468 --with-c-include-dirs Colon separated list of directories clang will
1470 --with-gcc-toolchain Directory where gcc is installed.
1471 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org/bugs/)
1476 --with-internal-prefix Installation directory for internal files
1477 --with-python path to python
1478 --with-udis86=<path> Use udis86 external x86 disassembler library
1479 --with-oprofile=<prefix>
1480 Tell OProfile >= 0.9.4 how to symbolize JIT output
1481 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1494 CXXCPP C++ preprocessor
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1499 Report bugs to <http://llvm.org/bugs/>.
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" || continue
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1527 .) # We are building in place.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1551 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1560 LLVM configure 3.5svn
1561 generated by GNU Autoconf 2.60
1563 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1564 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1568 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1572 cat >config.log <<_ACEOF
1573 This file contains any messages produced by compilers while
1574 running configure, to aid debugging if configure makes a mistake.
1576 It was created by LLVM $as_me 3.5svn, which was
1577 generated by GNU Autoconf 2.60. Invocation command line was
1589 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1590 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1591 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1592 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1593 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1595 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1596 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1598 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1599 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1600 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1601 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1602 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1603 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1604 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 echo "PATH: $as_dir"
1629 # Keep a trace of the command line.
1630 # Strip out --no-create and --no-recursion so they do not pile up.
1631 # Strip out --silent because we don't want to record it for future runs.
1632 # Also quote any args containing shell meta-characters.
1633 # Make two passes to allow for proper duplicate-argument suppression.
1637 ac_must_keep_next=false
1643 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645 | -silent | --silent | --silen | --sile | --sil)
1648 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1653 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1654 if test $ac_must_keep_next = true; then
1655 ac_must_keep_next=false # Got value, back to normal.
1658 *=* | --config-cache | -C | -disable-* | --disable-* \
1659 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1660 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1661 | -with-* | --with-* | -without-* | --without-* | --x)
1662 case "$ac_configure_args0 " in
1663 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666 -* ) ac_must_keep_next=true ;;
1669 ac_configure_args="$ac_configure_args '$ac_arg'"
1674 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1675 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1677 # When interrupted or exit'd, cleanup temporary files, and complete
1678 # config.log. We remove comments because anyway the quotes in there
1679 # would cause problems or look ugly.
1680 # WARNING: Use '\'' to represent an apostrophe within the trap.
1681 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1682 trap 'exit_status=$?
1683 # Save into config.log some information that might help in debugging.
1688 ## ---------------- ##
1689 ## Cache variables. ##
1690 ## ---------------- ##
1693 # The following way of writing the cache mishandles newlines in values,
1695 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1696 eval ac_val=\$$ac_var
1700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704 _ | IFS | as_nl) ;; #(
1705 *) $as_unset $ac_var ;;
1710 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1711 *${as_nl}ac_space=\ *)
1713 "s/'\''/'\''\\\\'\'''\''/g;
1714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 ## ----------------- ##
1726 ## Output variables. ##
1727 ## ----------------- ##
1730 for ac_var in $ac_subst_vars
1732 eval ac_val=\$$ac_var
1734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736 echo "$ac_var='\''$ac_val'\''"
1740 if test -n "$ac_subst_files"; then
1742 ## ------------------- ##
1743 ## File substitutions. ##
1744 ## ------------------- ##
1747 for ac_var in $ac_subst_files
1749 eval ac_val=\$$ac_var
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753 echo "$ac_var='\''$ac_val'\''"
1758 if test -s confdefs.h; then
1768 test "$ac_signal" != 0 &&
1769 echo "$as_me: caught signal $ac_signal"
1770 echo "$as_me: exit $exit_status"
1772 rm -f core *.core core.conftest.* &&
1773 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776 for ac_signal in 1 2 13 15; do
1777 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1781 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1782 rm -f -r conftest* confdefs.h
1784 # Predefined preprocessor variables.
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_NAME "$PACKAGE_NAME"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_STRING "$PACKAGE_STRING"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1811 # Let the site file select an alternate cache file if it wants to.
1812 # Prefer explicitly selected file to automatically selected ones.
1813 if test -n "$CONFIG_SITE"; then
1814 set x "$CONFIG_SITE"
1815 elif test "x$prefix" != xNONE; then
1816 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1818 set x "$ac_default_prefix/share/config.site" \
1819 "$ac_default_prefix/etc/config.site"
1824 if test -r "$ac_site_file"; then
1825 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1826 echo "$as_me: loading site script $ac_site_file" >&6;}
1827 sed 's/^/| /' "$ac_site_file" >&5
1832 if test -r "$cache_file"; then
1833 # Some versions of bash will fail to source /dev/null (special
1834 # files actually), so we avoid doing that.
1835 if test -f "$cache_file"; then
1836 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1837 echo "$as_me: loading cache $cache_file" >&6;}
1839 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1840 *) . "./$cache_file";;
1844 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1845 echo "$as_me: creating cache $cache_file" >&6;}
1849 # Check that the precious variables saved in the cache have kept the same
1851 ac_cache_corrupted=false
1852 for ac_var in $ac_precious_vars; do
1853 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1854 eval ac_new_set=\$ac_env_${ac_var}_set
1855 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1856 eval ac_new_val=\$ac_env_${ac_var}_value
1857 case $ac_old_set,$ac_new_set in
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1868 if test "x$ac_old_val" != "x$ac_new_val"; then
1869 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1870 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1871 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1872 echo "$as_me: former value: $ac_old_val" >&2;}
1873 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1874 echo "$as_me: current value: $ac_new_val" >&2;}
1875 ac_cache_corrupted=:
1878 # Pass precious variables to config.status.
1879 if test "$ac_new_set" = set; then
1881 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 *) ac_arg=$ac_var=$ac_new_val ;;
1884 case " $ac_configure_args " in
1885 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1886 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1890 if $ac_cache_corrupted; then
1891 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1892 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1893 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1894 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1895 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 cat >>confdefs.h <<\_ACEOF
1931 #define LLVM_VERSION_MAJOR 3
1935 cat >>confdefs.h <<\_ACEOF
1936 #define LLVM_VERSION_MINOR 5
1940 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1949 for ac_dir in autoconf "$srcdir"/autoconf; do
1950 if test -f "$ac_dir/install-sh"; then
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 elif test -f "$ac_dir/install.sh"; then
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 elif test -f "$ac_dir/shtool"; then
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 if test -z "$ac_aux_dir"; then
1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1980 if test ${srcdir} != "." ; then
1981 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1982 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1983 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1984 { (exit 1); exit 1; }; }
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996 if test -n "$ac_tool_prefix"; then
1997 for ac_prog in clang gcc
1999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003 if test "${ac_cv_prog_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$CC"; then
2007 ac_cv_prog_CC="$CC" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2016 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 if test -n "$CC"; then
2028 { echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6; }
2031 { echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6; }
2036 test -n "$CC" && break
2039 if test -z "$CC"; then
2041 for ac_prog in clang gcc
2043 # Extract the first word of "$ac_prog", so it can be a program name with args.
2044 set dummy $ac_prog; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$ac_ct_CC"; then
2051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2060 ac_cv_prog_ac_ct_CC="$ac_prog"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6; }
2075 { echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6; }
2080 test -n "$ac_ct_CC" && break
2083 if test "x$ac_ct_CC" = x; then
2086 case $cross_compiling:$ac_tool_warned in
2088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2089 whose name does not start with the host triplet. If you think this
2090 configuration is useful to you, please write to autoconf@gnu.org." >&5
2091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2092 whose name does not start with the host triplet. If you think this
2093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2094 ac_tool_warned=yes ;;
2101 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2107 # Provide some information about the compiler.
2108 echo "$as_me:$LINENO: checking for C compiler version" >&5
2109 ac_compiler=`set X $ac_compile; echo $2`
2110 { (ac_try="$ac_compiler --version >&5"
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler --version >&5") 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (ac_try="$ac_compiler -v >&5"
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126 (eval "$ac_compiler -v >&5") 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (ac_try="$ac_compiler -V >&5"
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_compiler -V >&5") 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2141 cat >conftest.$ac_ext <<_ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2156 ac_clean_files_save=$ac_clean_files
2157 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158 # Try to create an executable without -o first, disregard a.out.
2159 # It will help us diagnose broken compilers, and finding out an intuition
2161 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2163 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2165 # List of possible output files, starting from the most likely.
2166 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2167 # only as a last resort. b.out is created by i960 compilers.
2168 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2170 # The IRIX 6 linker writes into existing files which may not be
2171 # executable, retaining their permissions. Remove them first so a
2172 # subsequent execution test works.
2174 for ac_file in $ac_files
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2178 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2183 if { (ac_try="$ac_link_default"
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2189 (eval "$ac_link_default") 2>&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; then
2193 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2194 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2195 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2196 # so that the user can short-circuit this test for compilers unknown to
2198 for ac_file in $ac_files
2200 test -f "$ac_file" || continue
2202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2205 # We found the default executable, but exeext='' is most
2209 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2213 # We set ac_cv_exeext here because the later test for it is not
2214 # safe: cross compilers may not add the suffix if given an `-o'
2215 # argument, so we may need to know it at that point already.
2216 # Even if this section looks crufty: it has the advantage of
2223 test "$ac_cv_exeext" = no && ac_cv_exeext=
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233 { (exit 77); exit 77; }; }
2236 ac_exeext=$ac_cv_exeext
2237 { echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6; }
2240 # Check that the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247 if { ac_try='./$ac_file'
2248 { (case "(($ac_try" in
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253 (eval "$ac_try") 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2259 if test "$cross_compiling" = maybe; then
2262 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2263 If you meant to cross compile, use \`--host'.
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&2;}
2268 { (exit 1); exit 1; }; }
2272 { echo "$as_me:$LINENO: result: yes" >&5
2273 echo "${ECHO_T}yes" >&6; }
2275 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2276 ac_clean_files=$ac_clean_files_save
2277 # Check that the compiler produces executables we can run. If not, either
2278 # the compiler is broken, or we cross compile.
2279 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2280 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2281 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2282 echo "${ECHO_T}$cross_compiling" >&6; }
2284 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2285 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2286 if { (ac_try="$ac_link"
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292 (eval "$ac_link") 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; then
2296 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2297 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2298 # work properly (i.e., refer to `conftest.exe'), while it won't with
2300 for ac_file in conftest.exe conftest conftest.*; do
2301 test -f "$ac_file" || continue
2303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2304 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2310 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&2;}
2314 { (exit 1); exit 1; }; }
2317 rm -f conftest$ac_cv_exeext
2318 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2319 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2321 rm -f conftest.$ac_ext
2322 EXEEXT=$ac_cv_exeext
2324 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2325 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2326 if test "${ac_cv_objext+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 cat >conftest.$ac_ext <<_ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2344 rm -f conftest.o conftest.obj
2345 if { (ac_try="$ac_compile"
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compile") 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; then
2355 for ac_file in conftest.o conftest.obj conftest.*; do
2356 test -f "$ac_file" || continue;
2358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2367 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&2;}
2371 { (exit 1); exit 1; }; }
2374 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2376 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2377 echo "${ECHO_T}$ac_cv_objext" >&6; }
2378 OBJEXT=$ac_cv_objext
2380 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2381 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2382 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 cat >conftest.$ac_ext <<_ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2403 rm -f conftest.$ac_objext
2404 if { (ac_try="$ac_compile"
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_compile") 2>conftest.er1
2412 grep -v '^ *+' conftest.er1 >conftest.err
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2418 { (case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_try") 2>&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; } &&
2427 { ac_try='test -s conftest.$ac_objext'
2428 { (case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_try") 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2451 GCC=`test $ac_compiler_gnu = yes && echo yes`
2452 ac_test_CFLAGS=${CFLAGS+set}
2453 ac_save_CFLAGS=$CFLAGS
2454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_cc_g+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 ac_save_c_werror_flag=$ac_c_werror_flag
2460 ac_c_werror_flag=yes
2463 cat >conftest.$ac_ext <<_ACEOF
2466 cat confdefs.h >>conftest.$ac_ext
2467 cat >>conftest.$ac_ext <<_ACEOF
2468 /* end confdefs.h. */
2478 rm -f conftest.$ac_objext
2479 if { (ac_try="$ac_compile"
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_compile") 2>conftest.er1
2487 grep -v '^ *+' conftest.er1 >conftest.err
2489 cat conftest.err >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
2492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2493 { (case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_try") 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_try") 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2518 cat >conftest.$ac_ext <<_ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2533 rm -f conftest.$ac_objext
2534 if { (ac_try="$ac_compile"
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_compile") 2>conftest.er1
2542 grep -v '^ *+' conftest.er1 >conftest.err
2544 cat conftest.err >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2548 { (case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_try") 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; } &&
2557 { ac_try='test -s conftest.$ac_objext'
2558 { (case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_try") 2>&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 ac_c_werror_flag=$ac_save_c_werror_flag
2574 cat >conftest.$ac_ext <<_ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_compile") 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2604 { (case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_try") 2>&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_try") 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2640 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2641 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2642 if test "$ac_test_CFLAGS" = set; then
2643 CFLAGS=$ac_save_CFLAGS
2644 elif test $ac_cv_prog_cc_g = yes; then
2645 if test "$GCC" = yes; then
2651 if test "$GCC" = yes; then
2657 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2658 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_cc_c89+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 ac_cv_prog_cc_c89=no
2664 cat >conftest.$ac_ext <<_ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2672 #include <sys/types.h>
2673 #include <sys/stat.h>
2674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2675 struct buf { int x; };
2676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2677 static char *e (p, i)
2683 static char *f (char * (*g) (char **, int), char **p, ...)
2688 s = g (p, va_arg (v,int));
2693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2694 function prototypes and stuff, but not '\xHH' hex character constants.
2695 These don't provoke an error unfortunately, instead are silently treated
2696 as 'x'. The following induces an error, until -std is added to get
2697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2698 array size at least. It's necessary to write '\x00'==0 to get something
2699 that's true only with -std. */
2700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2702 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2703 inside strings and character constants. */
2705 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2707 int test (int i, double x);
2708 struct s1 {int (*f) (int a);};
2709 struct s2 {int (*f) (double a);};
2710 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2716 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2721 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2724 CC="$ac_save_CC $ac_arg"
2725 rm -f conftest.$ac_objext
2726 if { (ac_try="$ac_compile"
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compile") 2>conftest.er1
2734 grep -v '^ *+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2740 { (case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_try") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; } &&
2749 { ac_try='test -s conftest.$ac_objext'
2750 { (case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_try") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_cv_prog_cc_c89=$ac_arg
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f core conftest.err conftest.$ac_objext
2768 test "x$ac_cv_prog_cc_c89" != "xno" && break
2770 rm -f conftest.$ac_ext
2775 case "x$ac_cv_prog_cc_c89" in
2777 { echo "$as_me:$LINENO: result: none needed" >&5
2778 echo "${ECHO_T}none needed" >&6; } ;;
2780 { echo "$as_me:$LINENO: result: unsupported" >&5
2781 echo "${ECHO_T}unsupported" >&6; } ;;
2783 CC="$CC $ac_cv_prog_cc_c89"
2784 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2785 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 ac_cpp='$CXXCPP $CPPFLAGS'
2797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2800 if test -z "$CXX"; then
2801 if test -n "$CCC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 for ac_prog in clang++ g++
2807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2811 if test "${ac_cv_prog_CXX+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 if test -n "$CXX"; then
2815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test -n "$CXX"; then
2836 { echo "$as_me:$LINENO: result: $CXX" >&5
2837 echo "${ECHO_T}$CXX" >&6; }
2839 { echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6; }
2844 test -n "$CXX" && break
2847 if test -z "$CXX"; then
2849 for ac_prog in clang++ g++
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2855 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$ac_ct_CXX"; then
2859 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_ac_ct_CXX="$ac_prog"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2879 if test -n "$ac_ct_CXX"; then
2880 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2881 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2883 { echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6; }
2888 test -n "$ac_ct_CXX" && break
2891 if test "x$ac_ct_CXX" = x; then
2894 case $cross_compiling:$ac_tool_warned in
2896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2897 whose name does not start with the host triplet. If you think this
2898 configuration is useful to you, please write to autoconf@gnu.org." >&5
2899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet. If you think this
2901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2902 ac_tool_warned=yes ;;
2910 # Provide some information about the compiler.
2911 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2912 ac_compiler=`set X $ac_compile; echo $2`
2913 { (ac_try="$ac_compiler --version >&5"
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compiler --version >&5") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2923 { (ac_try="$ac_compiler -v >&5"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_compiler -v >&5") 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }
2933 { (ac_try="$ac_compiler -V >&5"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compiler -V >&5") 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }
2944 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2945 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2946 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 cat >conftest.$ac_ext <<_ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2982 { (case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_try") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_try") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3014 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3015 GXX=`test $ac_compiler_gnu = yes && echo yes`
3016 ac_test_CXXFLAGS=${CXXFLAGS+set}
3017 ac_save_CXXFLAGS=$CXXFLAGS
3018 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3019 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_cxx_g+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3024 ac_cxx_werror_flag=yes
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_prog_cxx_g=yes
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_try") 2>&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3153 rm -f conftest.$ac_objext
3154 if { (ac_try="$ac_compile"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_compile") 2>conftest.er1
3162 grep -v '^ *+' conftest.er1 >conftest.err
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3168 { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
3187 ac_cv_prog_cxx_g=yes
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3206 if test "$ac_test_CXXFLAGS" = set; then
3207 CXXFLAGS=$ac_save_CXXFLAGS
3208 elif test $ac_cv_prog_cxx_g = yes; then
3209 if test "$GXX" = yes; then
3215 if test "$GXX" = yes; then
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3233 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3234 # On Suns, sometimes $CPP names a directory.
3235 if test -n "$CPP" && test -d "$CPP"; then
3238 if test -z "$CPP"; then
3239 if test "${ac_cv_prog_CPP+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 # Double quotes because CPP needs to be expanded
3243 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246 for ac_c_preproc_warn_flag in '' yes
3248 # Use a header file that comes with gcc, so configuring glibc
3249 # with a fresh cross-compiler works.
3250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3251 # <limits.h> exists even on freestanding compilers.
3252 # On the NeXT, cc -E runs the code through the compiler's parser,
3253 # not just through cpp. "Syntax error" is here to catch this case.
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3261 # include <limits.h>
3263 # include <assert.h>
3267 if { (ac_try="$ac_cpp conftest.$ac_ext"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } >/dev/null; then
3280 if test -s conftest.err; then
3281 ac_cpp_err=$ac_c_preproc_warn_flag
3282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3289 if test -z "$ac_cpp_err"; then
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 # Broken: fails on valid input.
3299 rm -f conftest.err conftest.$ac_ext
3301 # OK, works on sane cases. Now check whether nonexistent headers
3302 # can be detected and how.
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #include <ac_nonexistent.h>
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } >/dev/null; then
3324 if test -s conftest.err; then
3325 ac_cpp_err=$ac_c_preproc_warn_flag
3326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3333 if test -z "$ac_cpp_err"; then
3334 # Broken: success on invalid input.
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 # Passes both tests.
3345 rm -f conftest.err conftest.$ac_ext
3348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3349 rm -f conftest.err conftest.$ac_ext
3350 if $ac_preproc_ok; then
3362 { echo "$as_me:$LINENO: result: $CPP" >&5
3363 echo "${ECHO_T}$CPP" >&6; }
3365 for ac_c_preproc_warn_flag in '' yes
3367 # Use a header file that comes with gcc, so configuring glibc
3368 # with a fresh cross-compiler works.
3369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3370 # <limits.h> exists even on freestanding compilers.
3371 # On the NeXT, cc -E runs the code through the compiler's parser,
3372 # not just through cpp. "Syntax error" is here to catch this case.
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3380 # include <limits.h>
3382 # include <assert.h>
3386 if { (ac_try="$ac_cpp conftest.$ac_ext"
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3394 grep -v '^ *+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } >/dev/null; then
3399 if test -s conftest.err; then
3400 ac_cpp_err=$ac_c_preproc_warn_flag
3401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3408 if test -z "$ac_cpp_err"; then
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3414 # Broken: fails on valid input.
3418 rm -f conftest.err conftest.$ac_ext
3420 # OK, works on sane cases. Now check whether nonexistent headers
3421 # can be detected and how.
3422 cat >conftest.$ac_ext <<_ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 #include <ac_nonexistent.h>
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null; then
3443 if test -s conftest.err; then
3444 ac_cpp_err=$ac_c_preproc_warn_flag
3445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452 if test -z "$ac_cpp_err"; then
3453 # Broken: success on invalid input.
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 # Passes both tests.
3464 rm -f conftest.err conftest.$ac_ext
3467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3468 rm -f conftest.err conftest.$ac_ext
3469 if $ac_preproc_ok; then
3472 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3473 See \`config.log' for more details." >&5
3474 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&2;}
3476 { (exit 1); exit 1; }; }
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 if test "$CXX" = "clang++" ; then
3487 { echo "$as_me:$LINENO: checking whether clang works" >&5
3488 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3490 ac_cpp='$CXXCPP $CPPFLAGS'
3491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3503 #if __has_include (<cxxabi.h>)
3506 #if __has_include (<unwind.h>)
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3533 { (case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_try") 2>&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
3543 { (case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_try") 2>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3553 { echo "$as_me:$LINENO: result: yes" >&5
3554 echo "${ECHO_T}yes" >&6; }
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3561 { echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6; }
3563 { { 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
3564 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;}
3565 { (exit 1); exit 1; }; }
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 if test -d ${srcdir}/projects/test-suite ; then
3581 subdirs="$subdirs projects/test-suite"
3585 if test -d ${srcdir}/projects/llvm-test ; then
3586 subdirs="$subdirs projects/llvm-test"
3590 if test -d ${srcdir}/projects/poolalloc ; then
3591 subdirs="$subdirs projects/poolalloc"
3595 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3596 subdirs="$subdirs projects/llvm-poolalloc"
3600 for i in `ls ${srcdir}/projects`
3602 if test -d ${srcdir}/projects/${i} ; then
3604 sample) subdirs="$subdirs projects/sample"
3606 privbracket) subdirs="$subdirs projects/privbracket"
3608 safecode) subdirs="$subdirs projects/safecode"
3616 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3623 # Check whether --enable-polly was given.
3624 if test "${enable_polly+set}" = set; then
3625 enableval=$enable_polly;
3630 case "$enableval" in
3635 default) ENABLE_POLLY=1
3637 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3638 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3639 { (exit 1); exit 1; }; } ;;
3643 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3646 subdirs="$subdirs tools/polly"
3651 # Make sure we can run config.sub.
3652 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3653 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3654 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3655 { (exit 1); exit 1; }; }
3657 { echo "$as_me:$LINENO: checking build system type" >&5
3658 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3659 if test "${ac_cv_build+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 ac_build_alias=$build_alias
3663 test "x$ac_build_alias" = x &&
3664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3665 test "x$ac_build_alias" = x &&
3666 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3667 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3668 { (exit 1); exit 1; }; }
3669 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3670 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3671 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3672 { (exit 1); exit 1; }; }
3675 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3676 echo "${ECHO_T}$ac_cv_build" >&6; }
3677 case $ac_cv_build in
3679 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3680 echo "$as_me: error: invalid value of canonical build" >&2;}
3681 { (exit 1); exit 1; }; };;
3684 ac_save_IFS=$IFS; IFS='-'
3690 # Remember, the first character of IFS is used to create $*,
3691 # except with old shells:
3694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3697 { echo "$as_me:$LINENO: checking host system type" >&5
3698 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3699 if test "${ac_cv_host+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 if test "x$host_alias" = x; then
3703 ac_cv_host=$ac_cv_build
3705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3706 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3707 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3708 { (exit 1); exit 1; }; }
3712 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3713 echo "${ECHO_T}$ac_cv_host" >&6; }
3716 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3717 echo "$as_me: error: invalid value of canonical host" >&2;}
3718 { (exit 1); exit 1; }; };;
3721 ac_save_IFS=$IFS; IFS='-'
3727 # Remember, the first character of IFS is used to create $*,
3728 # except with old shells:
3731 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3734 { echo "$as_me:$LINENO: checking target system type" >&5
3735 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3736 if test "${ac_cv_target+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 if test "x$target_alias" = x; then
3740 ac_cv_target=$ac_cv_host
3742 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3743 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3744 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3745 { (exit 1); exit 1; }; }
3749 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3750 echo "${ECHO_T}$ac_cv_target" >&6; }
3751 case $ac_cv_target in
3753 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3754 echo "$as_me: error: invalid value of canonical target" >&2;}
3755 { (exit 1); exit 1; }; };;
3757 target=$ac_cv_target
3758 ac_save_IFS=$IFS; IFS='-'
3764 # Remember, the first character of IFS is used to create $*,
3765 # except with old shells:
3768 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3771 # The aliases save the names the user supplied, while $host etc.
3772 # will get canonicalized.
3773 test -n "$target_alias" &&
3774 test "$program_prefix$program_suffix$program_transform_name" = \
3776 program_prefix=${target_alias}-
3778 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3779 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3780 if test "${llvm_cv_os_type+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 llvm_cv_link_all_option="-Wl,--whole-archive"
3786 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3787 llvm_cv_os_type="AIX"
3788 llvm_cv_platform_type="Unix" ;;
3790 llvm_cv_link_all_option="-Wl,--whole-archive"
3791 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3792 llvm_cv_os_type="IRIX"
3793 llvm_cv_platform_type="Unix" ;;
3795 llvm_cv_link_all_option="-Wl,--whole-archive"
3796 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3797 llvm_cv_os_type="Cygwin"
3798 llvm_cv_platform_type="Unix" ;;
3800 llvm_cv_link_all_option="-Wl,-all_load"
3801 llvm_cv_no_link_all_option="-Wl,-noall_load"
3802 llvm_cv_os_type="Darwin"
3803 llvm_cv_platform_type="Unix" ;;
3805 llvm_cv_link_all_option="-Wl,-all_load"
3806 llvm_cv_no_link_all_option="-Wl,-noall_load"
3807 llvm_cv_os_type="Minix"
3808 llvm_cv_platform_type="Unix" ;;
3810 llvm_cv_link_all_option="-Wl,--whole-archive"
3811 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812 llvm_cv_os_type="FreeBSD"
3813 llvm_cv_platform_type="Unix" ;;
3815 llvm_cv_link_all_option="-Wl,--whole-archive"
3816 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817 llvm_cv_os_type="GNU/kFreeBSD"
3818 llvm_cv_platform_type="Unix" ;;
3820 llvm_cv_link_all_option="-Wl,--whole-archive"
3821 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3822 llvm_cv_os_type="OpenBSD"
3823 llvm_cv_platform_type="Unix" ;;
3825 llvm_cv_link_all_option="-Wl,--whole-archive"
3826 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3827 llvm_cv_os_type="NetBSD"
3828 llvm_cv_platform_type="Unix" ;;
3830 llvm_cv_link_all_option="-Wl,--whole-archive"
3831 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832 llvm_cv_os_type="DragonFly"
3833 llvm_cv_platform_type="Unix" ;;
3835 llvm_cv_link_all_option="-Wl,--whole-archive"
3836 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837 llvm_cv_os_type="HP-UX"
3838 llvm_cv_platform_type="Unix" ;;
3840 llvm_cv_link_all_option="-Wl,--whole-archive"
3841 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842 llvm_cv_os_type="Interix"
3843 llvm_cv_platform_type="Unix" ;;
3845 llvm_cv_link_all_option="-Wl,--whole-archive"
3846 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847 llvm_cv_os_type="Linux"
3848 llvm_cv_platform_type="Unix" ;;
3850 llvm_cv_link_all_option="-Wl,--whole-archive"
3851 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852 llvm_cv_os_type="GNU"
3853 llvm_cv_platform_type="Unix" ;;
3855 llvm_cv_link_all_option="-Wl,-z,allextract"
3856 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3857 llvm_cv_os_type="SunOS"
3858 llvm_cv_platform_type="Unix" ;;
3860 llvm_cv_link_all_option="-Wl,-z,allextract"
3861 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3862 llvm_cv_os_type="AuroraUX"
3863 llvm_cv_platform_type="Unix" ;;
3865 llvm_cv_link_all_option="-Wl,--whole-archive"
3866 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867 llvm_cv_os_type="Win32"
3868 llvm_cv_platform_type="Win32" ;;
3870 llvm_cv_link_all_option="-Wl,--whole-archive"
3871 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3872 llvm_cv_os_type="MingW"
3873 llvm_cv_platform_type="Win32" ;;
3875 llvm_cv_link_all_option="-Wl,--whole-archive"
3876 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3877 llvm_cv_os_type="Haiku"
3878 llvm_cv_platform_type="Unix" ;;
3880 llvm_cv_link_all_option="-Wl,--whole-archive"
3881 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3882 llvm_cv_os_type="Freestanding"
3883 llvm_cv_platform_type="Unix" ;;
3885 llvm_cv_link_all_option="-Wl,--whole-archive"
3886 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887 llvm_cv_os_type="Freestanding"
3888 llvm_cv_platform_type="Unix" ;;
3890 llvm_cv_link_all_option=""
3891 llvm_cv_no_link_all_option=""
3892 llvm_cv_os_type="Unknown"
3893 llvm_cv_platform_type="Unknown" ;;
3896 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3897 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3899 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3900 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3901 if test "${llvm_cv_target_os_type+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 llvm_cv_target_os_type="AIX" ;;
3908 llvm_cv_target_os_type="IRIX" ;;
3910 llvm_cv_target_os_type="Cygwin" ;;
3912 llvm_cv_target_os_type="Darwin" ;;
3914 llvm_cv_target_os_type="Minix" ;;
3916 llvm_cv_target_os_type="FreeBSD" ;;
3918 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3920 llvm_cv_target_os_type="OpenBSD" ;;
3922 llvm_cv_target_os_type="NetBSD" ;;
3924 llvm_cv_target_os_type="DragonFly" ;;
3926 llvm_cv_target_os_type="HP-UX" ;;
3928 llvm_cv_target_os_type="Interix" ;;
3930 llvm_cv_target_os_type="Linux" ;;
3932 llvm_cv_target_os_type="GNU" ;;
3934 llvm_cv_target_os_type="SunOS" ;;
3936 llvm_cv_target_os_type="AuroraUX" ;;
3938 llvm_cv_target_os_type="Win32" ;;
3940 llvm_cv_target_os_type="MingW" ;;
3942 llvm_cv_target_os_type="Haiku" ;;
3944 llvm_cv_target_os_type="RTEMS" ;;
3946 llvm_cv_target_os_type="NativeClient" ;;
3948 llvm_cv_target_os_type="Freestanding" ;;
3950 llvm_cv_target_os_type="Unknown" ;;
3953 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3954 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3956 if test "$llvm_cv_os_type" = "Unknown" ; then
3957 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3958 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3959 { (exit 1); exit 1; }; }
3964 HOST_OS=$llvm_cv_os_type
3966 TARGET_OS=$llvm_cv_target_os_type
3969 LINKALL=$llvm_cv_link_all_option
3971 NOLINKALL=$llvm_cv_no_link_all_option
3974 case $llvm_cv_platform_type in
3977 cat >>confdefs.h <<\_ACEOF
3978 #define LLVM_ON_UNIX 1
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_WIN32 1
3999 { echo "$as_me:$LINENO: checking target architecture" >&5
4000 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4001 if test "${llvm_cv_target_arch+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 i?86-*) llvm_cv_target_arch="x86" ;;
4006 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4007 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4008 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4009 arm*-*) llvm_cv_target_arch="ARM" ;;
4010 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4011 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4012 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4013 xcore-*) llvm_cv_target_arch="XCore" ;;
4014 msp430-*) llvm_cv_target_arch="MSP430" ;;
4015 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4016 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4017 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4018 *) llvm_cv_target_arch="Unknown" ;;
4021 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4022 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4024 if test "$llvm_cv_target_arch" = "Unknown" ; then
4025 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4026 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4029 case "$llvm_cv_target_arch" in
4030 x86) LLVM_NATIVE_ARCH="X86" ;;
4031 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4032 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4035 ARCH=$llvm_cv_target_arch
4039 i?86-*) host_arch="x86" ;;
4040 amd64-* | x86_64-*) host_arch="x86_64" ;;
4041 sparc*-*) host_arch="Sparc" ;;
4042 powerpc*-*) host_arch="PowerPC" ;;
4043 arm*-*) host_arch="ARM" ;;
4044 aarch64*-*) host_arch="AArch64" ;;
4045 mips-* | mips64-*) host_arch="Mips" ;;
4046 mipsel-* | mips64el-*) host_arch="Mips" ;;
4047 xcore-*) host_arch="XCore" ;;
4048 msp430-*) host_arch="MSP430" ;;
4049 hexagon-*) host_arch="Hexagon" ;;
4050 s390x-*) host_arch="SystemZ" ;;
4051 *) host_arch="Unknown" ;;
4054 if test "$host_arch" = "Unknown" ; then
4055 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4056 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4059 HOST_ARCH=$host_arch
4062 if test "$cross_compiling" = yes; then
4063 LLVM_CROSS_COMPILING=1
4066 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4067 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4068 if test "${ac_cv_build_exeext+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4072 ac_cv_build_exeext=.exe
4074 ac_build_prefix=${build_alias}-
4076 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4077 set dummy ${ac_build_prefix}gcc; ac_word=$2
4078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4080 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 if test -n "$BUILD_CC"; then
4084 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 BUILD_CC=$ac_cv_prog_BUILD_CC
4104 if test -n "$BUILD_CC"; then
4105 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4106 echo "${ECHO_T}$BUILD_CC" >&6; }
4108 { echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6; }
4113 if test -z "$BUILD_CC"; then
4114 # Extract the first word of "gcc", so it can be a program name with args.
4115 set dummy gcc; ac_word=$2
4116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4118 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 if test -n "$BUILD_CC"; then
4122 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_BUILD_CC="gcc"
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 BUILD_CC=$ac_cv_prog_BUILD_CC
4142 if test -n "$BUILD_CC"; then
4143 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4144 echo "${ECHO_T}$BUILD_CC" >&6; }
4146 { echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6; }
4151 if test -z "$BUILD_CC"; then
4152 # Extract the first word of "cc", so it can be a program name with args.
4153 set dummy cc; ac_word=$2
4154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4156 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$BUILD_CC"; then
4160 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4171 ac_prog_rejected=yes
4174 ac_cv_prog_BUILD_CC="cc"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 if test $ac_prog_rejected = yes; then
4183 # We found a bogon in the path, so make sure we never use it.
4184 set dummy $ac_cv_prog_BUILD_CC
4186 if test $# != 0; then
4187 # We chose a different compiler from the bogus one.
4188 # However, it has the same basename, so the bogon will be chosen
4189 # first if we set BUILD_CC to just the basename; use the full file name.
4191 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4196 BUILD_CC=$ac_cv_prog_BUILD_CC
4197 if test -n "$BUILD_CC"; then
4198 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4199 echo "${ECHO_T}$BUILD_CC" >&6; }
4201 { echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6; }
4208 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4209 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4210 { (exit 1); exit 1; }; }
4211 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4213 echo 'int main () { return 0; }' > conftest.$ac_ext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4216 (eval $ac_build_link) 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; then
4220 for file in conftest.*; do
4222 *.c | *.o | *.obj | *.dSYM) ;;
4223 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4227 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4228 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4229 { (exit 1); exit 1; }; }
4232 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4237 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4238 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4239 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4240 ac_build_exeext=$BUILD_EXEEXT
4242 ac_build_prefix=${build_alias}-
4243 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4244 set dummy ${ac_build_prefix}g++; ac_word=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 if test -n "$BUILD_CXX"; then
4251 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4271 if test -n "$BUILD_CXX"; then
4272 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4273 echo "${ECHO_T}$BUILD_CXX" >&6; }
4275 { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4280 if test -z "$BUILD_CXX"; then
4281 # Extract the first word of "g++", so it can be a program name with args.
4282 set dummy g++; ac_word=$2
4283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4285 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 if test -n "$BUILD_CXX"; then
4289 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4298 ac_cv_prog_BUILD_CXX="g++"
4299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4309 if test -n "$BUILD_CXX"; then
4310 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4311 echo "${ECHO_T}$BUILD_CXX" >&6; }
4313 { echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6; }
4318 if test -z "$BUILD_CXX"; then
4319 # Extract the first word of "c++", so it can be a program name with args.
4320 set dummy c++; ac_word=$2
4321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4323 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test -n "$BUILD_CXX"; then
4327 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4338 ac_prog_rejected=yes
4341 ac_cv_prog_BUILD_CXX="c++"
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 if test $ac_prog_rejected = yes; then
4350 # We found a bogon in the path, so make sure we never use it.
4351 set dummy $ac_cv_prog_BUILD_CXX
4353 if test $# != 0; then
4354 # We chose a different compiler from the bogus one.
4355 # However, it has the same basename, so the bogon will be chosen
4356 # first if we set BUILD_CXX to just the basename; use the full file name.
4358 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4363 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4364 if test -n "$BUILD_CXX"; then
4365 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4366 echo "${ECHO_T}$BUILD_CXX" >&6; }
4368 { echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6; }
4376 LLVM_CROSS_COMPILING=0
4380 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4391 # Check whether --enable-libcpp was given.
4392 if test "${enable_libcpp+set}" = set; then
4393 enableval=$enable_libcpp;
4398 case "$enableval" in
4399 yes) ENABLE_LIBCPP=1
4403 default) ENABLE_LIBCPP=0
4405 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4406 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4407 { (exit 1); exit 1; }; } ;;
4410 # Check whether --enable-cxx11 was given.
4411 if test "${enable_cxx11+set}" = set; then
4412 enableval=$enable_cxx11;
4417 case "$enableval" in
4422 default) ENABLE_CXX11=0
4424 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4425 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4426 { (exit 1); exit 1; }; } ;;
4429 # Check whether --enable-split-dwarf was given.
4430 if test "${enable_split_dwarf+set}" = set; then
4431 enableval=$enable_split_dwarf;
4436 case "$enableval" in
4437 yes) ENABLE_SPLIT_DWARF=1
4439 no) ENABLE_SPLIT_DWARF=0
4441 default) ENABLE_SPLIT_DWARF=0
4443 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4444 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4445 { (exit 1); exit 1; }; } ;;
4449 # Check whether --enable-clang-arcmt was given.
4450 if test "${enable_clang_arcmt+set}" = set; then
4451 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4456 case "$enableval" in
4457 yes) ENABLE_CLANG_ARCMT=1
4459 no) ENABLE_CLANG_ARCMT=0
4461 default) ENABLE_CLANG_ARCMT=1
4463 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4464 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4465 { (exit 1); exit 1; }; } ;;
4468 clang_static_analyzer="yes"
4469 # Check whether --enable-clang-static-analyzer was given.
4470 if test "${enable_clang_static_analyzer+set}" = set; then
4471 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4476 case "$enableval" in
4477 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4480 if test ${clang_arcmt} != "no" ; then
4481 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4482 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4483 { (exit 1); exit 1; }; }
4485 ENABLE_CLANG_STATIC_ANALYZER=0
4488 default) ENABLE_CLANG_STATIC_ANALYZER=1
4490 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4491 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4492 { (exit 1); exit 1; }; } ;;
4495 # Check whether --enable-clang-rewriter was given.
4496 if test "${enable_clang_rewriter+set}" = set; then
4497 enableval=$enable_clang_rewriter;
4502 case "$enableval" in
4503 yes) ENABLE_CLANG_REWRITER=1
4506 if test ${clang_arcmt} != "no" ; then
4507 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4508 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4509 { (exit 1); exit 1; }; }
4511 if test ${clang_static_analyzer} != "no" ; then
4512 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4513 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4514 { (exit 1); exit 1; }; }
4516 ENABLE_CLANG_REWRITER=0
4519 default) ENABLE_CLANG_REWRITER=1
4521 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4522 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4523 { (exit 1); exit 1; }; } ;;
4526 # Check whether --enable-optimized was given.
4527 if test "${enable_optimized+set}" = set; then
4528 enableval=$enable_optimized;
4533 if test ${enableval} = "no" ; then
4537 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4541 # Check whether --enable-profiling was given.
4542 if test "${enable_profiling+set}" = set; then
4543 enableval=$enable_profiling;
4548 if test ${enableval} = "no" ; then
4552 ENABLE_PROFILING=ENABLE_PROFILING=1
4556 # Check whether --enable-assertions was given.
4557 if test "${enable_assertions+set}" = set; then
4558 enableval=$enable_assertions;
4563 if test ${enableval} = "yes" ; then
4567 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4571 # Check whether --enable-werror was given.
4572 if test "${enable_werror+set}" = set; then
4573 enableval=$enable_werror;
4578 case "$enableval" in
4579 yes) ENABLE_WERROR=1
4583 default) ENABLE_WERROR=0
4585 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4586 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4587 { (exit 1); exit 1; }; } ;;
4590 # Check whether --enable-expensive-checks was given.
4591 if test "${enable_expensive_checks+set}" = set; then
4592 enableval=$enable_expensive_checks;
4597 if test ${enableval} = "yes" ; then
4598 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4600 EXPENSIVE_CHECKS=yes
4603 ENABLE_EXPENSIVE_CHECKS=
4609 # Check whether --enable-debug-runtime was given.
4610 if test "${enable_debug_runtime+set}" = set; then
4611 enableval=$enable_debug_runtime;
4616 if test ${enableval} = "no" ; then
4620 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4624 # Check whether --enable-debug-symbols was given.
4625 if test "${enable_debug_symbols+set}" = set; then
4626 enableval=$enable_debug_symbols;
4631 if test ${enableval} = "no" ; then
4635 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4639 # Check whether --enable-keep-symbols was given.
4640 if test "${enable_keep_symbols+set}" = set; then
4641 enableval=$enable_keep_symbols;
4646 if test ${enableval} = "no" ; then
4650 KEEP_SYMBOLS=KEEP_SYMBOLS=1
4654 # Check whether --enable-jit was given.
4655 if test "${enable_jit+set}" = set; then
4656 enableval=$enable_jit;
4661 if test ${enableval} = "no"
4666 case "$llvm_cv_target_arch" in
4667 x86) TARGET_HAS_JIT=1
4669 Sparc) TARGET_HAS_JIT=0
4671 PowerPC) TARGET_HAS_JIT=1
4673 x86_64) TARGET_HAS_JIT=1
4675 ARM) TARGET_HAS_JIT=1
4677 AArch64) TARGET_HAS_JIT=0
4679 Mips) TARGET_HAS_JIT=1
4681 XCore) TARGET_HAS_JIT=0
4683 MSP430) TARGET_HAS_JIT=0
4685 Hexagon) TARGET_HAS_JIT=0
4687 NVPTX) TARGET_HAS_JIT=0
4689 SystemZ) TARGET_HAS_JIT=1
4696 # Check whether --enable-docs was given.
4697 if test "${enable_docs+set}" = set; then
4698 enableval=$enable_docs;
4703 case "$enableval" in
4708 default) ENABLE_DOCS=1
4710 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4711 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4712 { (exit 1); exit 1; }; } ;;
4715 # Check whether --enable-doxygen was given.
4716 if test "${enable_doxygen+set}" = set; then
4717 enableval=$enable_doxygen;
4722 case "$enableval" in
4723 yes) ENABLE_DOXYGEN=1
4725 no) ENABLE_DOXYGEN=0
4727 default) ENABLE_DOXYGEN=0
4729 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4730 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4731 { (exit 1); exit 1; }; } ;;
4734 # Check whether --enable-threads was given.
4735 if test "${enable_threads+set}" = set; then
4736 enableval=$enable_threads;
4741 case "$enableval" in
4742 yes) LLVM_ENABLE_THREADS=1
4744 no) LLVM_ENABLE_THREADS=0
4746 default) LLVM_ENABLE_THREADS=1
4748 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4749 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4750 { (exit 1); exit 1; }; } ;;
4753 cat >>confdefs.h <<_ACEOF
4754 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
4758 # Check whether --enable-pthreads was given.
4759 if test "${enable_pthreads+set}" = set; then
4760 enableval=$enable_pthreads;
4765 case "$enableval" in
4766 yes) ENABLE_PTHREADS=1
4768 no) ENABLE_PTHREADS=0
4770 default) ENABLE_PTHREADS=1
4772 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4773 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4774 { (exit 1); exit 1; }; } ;;
4777 # Check whether --enable-zlib was given.
4778 if test "${enable_zlib+set}" = set; then
4779 enableval=$enable_zlib;
4784 case "$enableval" in
4785 yes) LLVM_ENABLE_ZLIB=1
4787 no) LLVM_ENABLE_ZLIB=0
4789 default) LLVM_ENABLE_ZLIB=1
4791 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
4792 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
4793 { (exit 1); exit 1; }; } ;;
4796 cat >>confdefs.h <<_ACEOF
4797 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
4801 # Check whether --enable-pic was given.
4802 if test "${enable_pic+set}" = set; then
4803 enableval=$enable_pic;
4808 case "$enableval" in
4813 default) ENABLE_PIC=1
4815 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4816 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4817 { (exit 1); exit 1; }; } ;;
4820 cat >>confdefs.h <<_ACEOF
4821 #define ENABLE_PIC $ENABLE_PIC
4825 # Check whether --enable-shared was given.
4826 if test "${enable_shared+set}" = set; then
4827 enableval=$enable_shared;
4832 case "$enableval" in
4833 yes) ENABLE_SHARED=1
4837 default) ENABLE_SHARED=0
4839 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4840 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4841 { (exit 1); exit 1; }; } ;;
4844 # Check whether --enable-embed-stdcxx was given.
4845 if test "${enable_embed_stdcxx+set}" = set; then
4846 enableval=$enable_embed_stdcxx;
4851 case "$enableval" in
4852 yes) ENABLE_EMBED_STDCXX=1
4854 no) ENABLE_EMBED_STDCXX=0
4856 default) ENABLE_EMBED_STDCXX=0
4858 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
4859 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
4860 { (exit 1); exit 1; }; } ;;
4863 # Check whether --enable-timestamps was given.
4864 if test "${enable_timestamps+set}" = set; then
4865 enableval=$enable_timestamps;
4870 case "$enableval" in
4871 yes) ENABLE_TIMESTAMPS=1
4873 no) ENABLE_TIMESTAMPS=0
4875 default) ENABLE_TIMESTAMPS=1
4877 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4878 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4879 { (exit 1); exit 1; }; } ;;
4882 cat >>confdefs.h <<_ACEOF
4883 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4887 # Check whether --enable-backtraces was given.
4888 if test "${enable_backtraces+set}" = set; then
4889 enableval=$enable_backtraces; case "$enableval" in
4890 yes) llvm_cv_enable_backtraces="yes" ;;
4891 no) llvm_cv_enable_backtraces="no" ;;
4892 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4897 llvm_cv_enable_backtraces="yes"
4900 if test "$llvm_cv_enable_backtraces" = "yes" ; then
4902 cat >>confdefs.h <<\_ACEOF
4903 #define ENABLE_BACKTRACES 1
4908 # Check whether --enable-crash-overrides was given.
4909 if test "${enable_crash_overrides+set}" = set; then
4910 enableval=$enable_crash_overrides; case "$enableval" in
4911 yes) llvm_cv_enable_crash_overrides="yes" ;;
4912 no) llvm_cv_enable_crash_overrides="no" ;;
4913 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
4914 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
4915 { (exit 1); exit 1; }; } ;;
4918 llvm_cv_enable_crash_overrides="yes"
4921 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
4923 cat >>confdefs.h <<\_ACEOF
4924 #define ENABLE_CRASH_OVERRIDES 1
4930 # Check whether --enable-targets was given.
4931 if test "${enable_targets+set}" = set; then
4932 enableval=$enable_targets;
4937 if test "$enableval" = host-only ; then
4940 case "$enableval" in
4941 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
4942 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4944 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4945 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4946 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4947 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4948 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
4949 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4950 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4951 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4952 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4953 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4954 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4955 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4956 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4957 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
4958 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
4959 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4960 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
4961 host) case "$llvm_cv_target_arch" in
4962 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4964 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4965 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4966 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
4967 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4968 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4969 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4970 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4971 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
4972 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
4973 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4974 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4975 echo "$as_me: error: Can not set target to build" >&2;}
4976 { (exit 1); exit 1; }; } ;;
4978 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4979 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4986 # Check whether --enable-experimental-targets was given.
4987 if test "${enable_experimental_targets+set}" = set; then
4988 enableval=$enable_experimental_targets;
4994 if test ${enableval} != "disable"
4996 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
4999 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5002 for a_target in $TARGETS_TO_BUILD; do
5003 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5005 cat >>confdefs.h <<_ACEOF
5006 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5009 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5010 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5011 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5012 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5013 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5014 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5016 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5017 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5020 cat >>confdefs.h <<_ACEOF
5021 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5025 cat >>confdefs.h <<_ACEOF
5026 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5030 cat >>confdefs.h <<_ACEOF
5031 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5035 cat >>confdefs.h <<_ACEOF
5036 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5039 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5041 cat >>confdefs.h <<_ACEOF
5042 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5046 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5048 cat >>confdefs.h <<_ACEOF
5049 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5056 LLVM_ENUM_TARGETS=""
5057 LLVM_ENUM_ASM_PRINTERS=""
5058 LLVM_ENUM_ASM_PARSERS=""
5059 LLVM_ENUM_DISASSEMBLERS=""
5060 for target_to_build in $TARGETS_TO_BUILD; do
5061 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5062 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5063 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5065 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5066 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5068 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5069 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5078 # Check whether --with-optimize-option was given.
5079 if test "${with_optimize_option+set}" = set; then
5080 withval=$with_optimize_option;
5085 { echo "$as_me:$LINENO: checking optimization flags" >&5
5086 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5089 case "$llvm_cv_os_type" in
5090 FreeBSD) optimize_option=-O2 ;;
5091 MingW) optimize_option=-O2 ;;
5092 *) optimize_option=-O3 ;;
5094 *) optimize_option="$withval" ;;
5096 OPTIMIZE_OPTION=$optimize_option
5098 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5099 echo "${ECHO_T}$optimize_option" >&6; }
5102 # Check whether --with-extra-options was given.
5103 if test "${with_extra_options+set}" = set; then
5104 withval=$with_extra_options;
5110 default) EXTRA_OPTIONS= ;;
5111 *) EXTRA_OPTIONS=$withval ;;
5113 EXTRA_OPTIONS=$EXTRA_OPTIONS
5117 # Check whether --with-extra-ld-options was given.
5118 if test "${with_extra_ld_options+set}" = set; then
5119 withval=$with_extra_ld_options;
5125 default) EXTRA_LD_OPTIONS= ;;
5126 *) EXTRA_LD_OPTIONS=$withval ;;
5128 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5131 # Check whether --enable-bindings was given.
5132 if test "${enable_bindings+set}" = set; then
5133 enableval=$enable_bindings;
5138 BINDINGS_TO_BUILD=""
5139 case "$enableval" in
5140 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5141 all ) BINDINGS_TO_BUILD="ocaml" ;;
5142 none | no) BINDINGS_TO_BUILD="" ;;
5143 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5144 case "$a_binding" in
5145 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5146 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5147 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5155 # Check whether --with-ocaml-libdir was given.
5156 if test "${with_ocaml_libdir+set}" = set; then
5157 withval=$with_ocaml_libdir;
5163 auto) with_ocaml_libdir="$withval" ;;
5164 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5165 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5166 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5167 { (exit 1); exit 1; }; } ;;
5171 # Check whether --with-clang-srcdir was given.
5172 if test "${with_clang_srcdir+set}" = set; then
5173 withval=$with_clang_srcdir;
5179 -) clang_src_root="" ;;
5180 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5181 *) clang_src_root="$ac_pwd/$withval" ;;
5183 CLANG_SRC_ROOT=$clang_src_root
5187 # Check whether --with-clang-resource-dir was given.
5188 if test "${with_clang_resource_dir+set}" = set; then
5189 withval=$with_clang_resource_dir;
5195 cat >>confdefs.h <<_ACEOF
5196 #define CLANG_RESOURCE_DIR "$withval"
5201 # Check whether --with-c-include-dirs was given.
5202 if test "${with_c_include_dirs+set}" = set; then
5203 withval=$with_c_include_dirs;
5209 cat >>confdefs.h <<_ACEOF
5210 #define C_INCLUDE_DIRS "$withval"
5214 # Clang normally uses the system c++ headers and libraries. With this option,
5215 # clang will use the ones provided by a gcc installation instead. This option should
5216 # be passed the same value that was used with --prefix when configuring gcc.
5218 # Check whether --with-gcc-toolchain was given.
5219 if test "${with_gcc_toolchain+set}" = set; then
5220 withval=$with_gcc_toolchain;
5226 cat >>confdefs.h <<_ACEOF
5227 #define GCC_INSTALL_PREFIX "$withval"
5232 # Check whether --with-default-sysroot was given.
5233 if test "${with_default_sysroot+set}" = set; then
5234 withval=$with_default_sysroot;
5240 cat >>confdefs.h <<_ACEOF
5241 #define DEFAULT_SYSROOT "$withval"
5246 # Check whether --with-binutils-include was given.
5247 if test "${with_binutils_include+set}" = set; then
5248 withval=$with_binutils_include;
5254 default) WITH_BINUTILS_INCDIR=default ;;
5255 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5256 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5257 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5258 { (exit 1); exit 1; }; } ;;
5260 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5261 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5263 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5264 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5265 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5266 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5267 { (exit 1); exit 1; }; };
5272 # Check whether --with-bug-report-url was given.
5273 if test "${with_bug_report_url+set}" = set; then
5274 withval=$with_bug_report_url;
5276 withval="http://llvm.org/bugs/"
5280 cat >>confdefs.h <<_ACEOF
5281 #define BUG_REPORT_URL "$withval"
5285 # Check whether --enable-terminfo was given.
5286 if test "${enable_terminfo+set}" = set; then
5287 enableval=$enable_terminfo; case "$enableval" in
5288 yes) llvm_cv_enable_terminfo="yes" ;;
5289 no) llvm_cv_enable_terminfo="no" ;;
5290 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5291 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5292 { (exit 1); exit 1; }; } ;;
5295 llvm_cv_enable_terminfo="yes"
5299 # Check whether --enable-libffi was given.
5300 if test "${enable_libffi+set}" = set; then
5301 enableval=$enable_libffi; case "$enableval" in
5302 yes) llvm_cv_enable_libffi="yes" ;;
5303 no) llvm_cv_enable_libffi="no" ;;
5304 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5305 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5306 { (exit 1); exit 1; }; } ;;
5309 llvm_cv_enable_libffi=no
5314 # Check whether --with-internal-prefix was given.
5315 if test "${with_internal_prefix+set}" = set; then
5316 withval=$with_internal_prefix;
5321 INTERNAL_PREFIX=$withval
5325 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5326 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5327 if test "${lt_cv_path_NM+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 if test -n "$NM"; then
5331 # Let the user override the test.
5334 lt_nm_to_check="${ac_tool_prefix}nm"
5335 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5336 lt_nm_to_check="$lt_nm_to_check nm"
5338 for lt_tmp_nm in $lt_nm_to_check; do
5339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5340 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5342 test -z "$ac_dir" && ac_dir=.
5343 tmp_nm="$ac_dir/$lt_tmp_nm"
5344 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5345 # Check to see if the nm accepts a BSD-compat flag.
5346 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5347 # nm: unknown option "B" ignored
5348 # Tru64's nm complains that /dev/null is an invalid object file
5349 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5350 */dev/null* | *'Invalid file or object type'*)
5351 lt_cv_path_NM="$tmp_nm -B"
5355 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5357 lt_cv_path_NM="$tmp_nm -p"
5361 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5362 continue # so that we can try to find one that supports BSD flags
5371 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5374 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5375 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5380 { echo "$as_me:$LINENO: checking for GNU make" >&5
5381 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5382 if test "${llvm_cv_gnu_make_command+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 llvm_cv_gnu_make_command=''
5386 for a in "$MAKE" make gmake gnumake ; do
5387 if test -z "$a" ; then continue ; fi ;
5388 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5390 llvm_cv_gnu_make_command=$a ;
5395 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5396 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5397 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5401 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5402 echo "${ECHO_T}\"Not found\"" >&6; };
5406 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5407 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5409 if test "$LN_S" = "ln -s"; then
5410 { echo "$as_me:$LINENO: result: yes" >&5
5411 echo "${ECHO_T}yes" >&6; }
5413 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5414 echo "${ECHO_T}no, using $LN_S" >&6; }
5417 # Extract the first word of "cmp", so it can be a program name with args.
5418 set dummy cmp; ac_word=$2
5419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5421 if test "${ac_cv_path_CMP+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5449 if test -n "$CMP"; then
5450 { echo "$as_me:$LINENO: result: $CMP" >&5
5451 echo "${ECHO_T}$CMP" >&6; }
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5458 # Extract the first word of "cp", so it can be a program name with args.
5459 set dummy cp; ac_word=$2
5460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5462 if test "${ac_cv_path_CP+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5490 if test -n "$CP"; then
5491 { echo "$as_me:$LINENO: result: $CP" >&5
5492 echo "${ECHO_T}$CP" >&6; }
5494 { echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6; }
5499 # Extract the first word of "date", so it can be a program name with args.
5500 set dummy date; ac_word=$2
5501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5503 if test "${ac_cv_path_DATE+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5518 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5530 DATE=$ac_cv_path_DATE
5531 if test -n "$DATE"; then
5532 { echo "$as_me:$LINENO: result: $DATE" >&5
5533 echo "${ECHO_T}$DATE" >&6; }
5535 { echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6; }
5540 # Extract the first word of "find", so it can be a program name with args.
5541 set dummy find; ac_word=$2
5542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5544 if test "${ac_cv_path_FIND+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5571 FIND=$ac_cv_path_FIND
5572 if test -n "$FIND"; then
5573 { echo "$as_me:$LINENO: result: $FIND" >&5
5574 echo "${ECHO_T}$FIND" >&6; }
5576 { echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6; }
5581 # Extract the first word of "grep", so it can be a program name with args.
5582 set dummy grep; ac_word=$2
5583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5585 if test "${ac_cv_path_GREP+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5612 GREP=$ac_cv_path_GREP
5613 if test -n "$GREP"; then
5614 { echo "$as_me:$LINENO: result: $GREP" >&5
5615 echo "${ECHO_T}$GREP" >&6; }
5617 { echo "$as_me:$LINENO: result: no" >&5
5618 echo "${ECHO_T}no" >&6; }
5622 # Extract the first word of "mkdir", so it can be a program name with args.
5623 set dummy mkdir; ac_word=$2
5624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5626 if test "${ac_cv_path_MKDIR+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5641 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5653 MKDIR=$ac_cv_path_MKDIR
5654 if test -n "$MKDIR"; then
5655 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5656 echo "${ECHO_T}$MKDIR" >&6; }
5658 { echo "$as_me:$LINENO: result: no" >&5
5659 echo "${ECHO_T}no" >&6; }
5663 # Extract the first word of "mv", so it can be a program name with args.
5664 set dummy mv; ac_word=$2
5665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5667 if test "${ac_cv_path_MV+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5695 if test -n "$MV"; then
5696 { echo "$as_me:$LINENO: result: $MV" >&5
5697 echo "${ECHO_T}$MV" >&6; }
5699 { echo "$as_me:$LINENO: result: no" >&5
5700 echo "${ECHO_T}no" >&6; }
5704 if test -n "$ac_tool_prefix"; then
5705 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709 if test "${ac_cv_prog_RANLIB+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 if test -n "$RANLIB"; then
5713 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 RANLIB=$ac_cv_prog_RANLIB
5733 if test -n "$RANLIB"; then
5734 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5735 echo "${ECHO_T}$RANLIB" >&6; }
5737 { echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6; }
5743 if test -z "$ac_cv_prog_RANLIB"; then
5744 ac_ct_RANLIB=$RANLIB
5745 # Extract the first word of "ranlib", so it can be a program name with args.
5746 set dummy ranlib; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 if test -n "$ac_ct_RANLIB"; then
5753 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_ac_ct_RANLIB="ranlib"
5763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5773 if test -n "$ac_ct_RANLIB"; then
5774 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5775 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5777 { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5781 if test "x$ac_ct_RANLIB" = x; then
5784 case $cross_compiling:$ac_tool_warned in
5786 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5787 whose name does not start with the host triplet. If you think this
5788 configuration is useful to you, please write to autoconf@gnu.org." >&5
5789 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5790 whose name does not start with the host triplet. If you think this
5791 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5792 ac_tool_warned=yes ;;
5794 RANLIB=$ac_ct_RANLIB
5797 RANLIB="$ac_cv_prog_RANLIB"
5800 if test -n "$ac_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5802 set dummy ${ac_tool_prefix}ar; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_prog_AR+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 if test -n "$AR"; then
5809 ac_cv_prog_AR="$AR" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_AR="${ac_tool_prefix}ar"
5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 if test -n "$AR"; then
5830 { echo "$as_me:$LINENO: result: $AR" >&5
5831 echo "${ECHO_T}$AR" >&6; }
5833 { echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6; }
5839 if test -z "$ac_cv_prog_AR"; then
5841 # Extract the first word of "ar", so it can be a program name with args.
5842 set dummy ar; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 if test -n "$ac_ct_AR"; then
5849 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_ac_ct_AR="ar"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5869 if test -n "$ac_ct_AR"; then
5870 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5871 echo "${ECHO_T}$ac_ct_AR" >&6; }
5873 { echo "$as_me:$LINENO: result: no" >&5
5874 echo "${ECHO_T}no" >&6; }
5877 if test "x$ac_ct_AR" = x; then
5880 case $cross_compiling:$ac_tool_warned in
5882 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5883 whose name does not start with the host triplet. If you think this
5884 configuration is useful to you, please write to autoconf@gnu.org." >&5
5885 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5886 whose name does not start with the host triplet. If you think this
5887 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5888 ac_tool_warned=yes ;;
5896 # Extract the first word of "rm", so it can be a program name with args.
5897 set dummy rm; ac_word=$2
5898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5900 if test "${ac_cv_path_RM+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5915 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5928 if test -n "$RM"; then
5929 { echo "$as_me:$LINENO: result: $RM" >&5
5930 echo "${ECHO_T}$RM" >&6; }
5932 { echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6; }
5937 # Extract the first word of "sed", so it can be a program name with args.
5938 set dummy sed; ac_word=$2
5939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5941 if test "${ac_cv_path_SED+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5969 if test -n "$SED"; then
5970 { echo "$as_me:$LINENO: result: $SED" >&5
5971 echo "${ECHO_T}$SED" >&6; }
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5978 # Extract the first word of "tar", so it can be a program name with args.
5979 set dummy tar; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_path_TAR+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6010 if test -n "$TAR"; then
6011 { echo "$as_me:$LINENO: result: $TAR" >&5
6012 echo "${ECHO_T}$TAR" >&6; }
6014 { echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6; }
6019 # Extract the first word of "pwd", so it can be a program name with args.
6020 set dummy pwd; ac_word=$2
6021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6023 if test "${ac_cv_path_BINPWD+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6038 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6050 BINPWD=$ac_cv_path_BINPWD
6051 if test -n "$BINPWD"; then
6052 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6053 echo "${ECHO_T}$BINPWD" >&6; }
6055 { echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6; }
6061 # Extract the first word of "Graphviz", so it can be a program name with args.
6062 set dummy Graphviz; ac_word=$2
6063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6065 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6080 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6092 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6093 if test -n "$GRAPHVIZ"; then
6094 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6095 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6097 { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6102 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6104 cat >>confdefs.h <<\_ACEOF
6105 #define HAVE_GRAPHVIZ 1
6108 if test "$llvm_cv_os_type" = "MingW" ; then
6109 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6112 cat >>confdefs.h <<_ACEOF
6113 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6117 # Extract the first word of "dot", so it can be a program name with args.
6118 set dummy dot; ac_word=$2
6119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6121 if test "${ac_cv_path_DOT+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6136 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6149 if test -n "$DOT"; then
6150 { echo "$as_me:$LINENO: result: $DOT" >&5
6151 echo "${ECHO_T}$DOT" >&6; }
6153 { echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6; }
6158 if test "$DOT" != "echo dot" ; then
6160 cat >>confdefs.h <<\_ACEOF
6164 if test "$llvm_cv_os_type" = "MingW" ; then
6165 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6168 cat >>confdefs.h <<_ACEOF
6169 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6173 # Extract the first word of "fdp", so it can be a program name with args.
6174 set dummy fdp; ac_word=$2
6175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177 if test "${ac_cv_path_FDP+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6205 if test -n "$FDP"; then
6206 { echo "$as_me:$LINENO: result: $FDP" >&5
6207 echo "${ECHO_T}$FDP" >&6; }
6209 { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6214 if test "$FDP" != "echo fdp" ; then
6216 cat >>confdefs.h <<\_ACEOF
6220 if test "$llvm_cv_os_type" = "MingW" ; then
6221 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6224 cat >>confdefs.h <<_ACEOF
6225 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6229 # Extract the first word of "neato", so it can be a program name with args.
6230 set dummy neato; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_path_NEATO+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6260 NEATO=$ac_cv_path_NEATO
6261 if test -n "$NEATO"; then
6262 { echo "$as_me:$LINENO: result: $NEATO" >&5
6263 echo "${ECHO_T}$NEATO" >&6; }
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6270 if test "$NEATO" != "echo neato" ; then
6272 cat >>confdefs.h <<\_ACEOF
6273 #define HAVE_NEATO 1
6276 if test "$llvm_cv_os_type" = "MingW" ; then
6277 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6280 cat >>confdefs.h <<_ACEOF
6281 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6285 # Extract the first word of "twopi", so it can be a program name with args.
6286 set dummy twopi; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_path_TWOPI+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6316 TWOPI=$ac_cv_path_TWOPI
6317 if test -n "$TWOPI"; then
6318 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6319 echo "${ECHO_T}$TWOPI" >&6; }
6321 { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6326 if test "$TWOPI" != "echo twopi" ; then
6328 cat >>confdefs.h <<\_ACEOF
6329 #define HAVE_TWOPI 1
6332 if test "$llvm_cv_os_type" = "MingW" ; then
6333 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6336 cat >>confdefs.h <<_ACEOF
6337 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6341 # Extract the first word of "circo", so it can be a program name with args.
6342 set dummy circo; ac_word=$2
6343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6345 if test "${ac_cv_path_CIRCO+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6372 CIRCO=$ac_cv_path_CIRCO
6373 if test -n "$CIRCO"; then
6374 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6375 echo "${ECHO_T}$CIRCO" >&6; }
6377 { echo "$as_me:$LINENO: result: no" >&5
6378 echo "${ECHO_T}no" >&6; }
6382 if test "$CIRCO" != "echo circo" ; then
6384 cat >>confdefs.h <<\_ACEOF
6385 #define HAVE_CIRCO 1
6388 if test "$llvm_cv_os_type" = "MingW" ; then
6389 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6392 cat >>confdefs.h <<_ACEOF
6393 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6397 for ac_prog in gv gsview32
6399 # Extract the first word of "$ac_prog", so it can be a program name with args.
6400 set dummy $ac_prog; ac_word=$2
6401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6403 if test "${ac_cv_path_GV+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 if test -n "$GV"; then
6431 { echo "$as_me:$LINENO: result: $GV" >&5
6432 echo "${ECHO_T}$GV" >&6; }
6434 { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6439 test -n "$GV" && break
6441 test -n "$GV" || GV="echo gv"
6443 if test "$GV" != "echo gv" ; then
6445 cat >>confdefs.h <<\_ACEOF
6449 if test "$llvm_cv_os_type" = "MingW" ; then
6450 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6453 cat >>confdefs.h <<_ACEOF
6454 #define LLVM_PATH_GV "$GV${EXEEXT}"
6458 # Extract the first word of "dotty", so it can be a program name with args.
6459 set dummy dotty; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_DOTTY+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6489 DOTTY=$ac_cv_path_DOTTY
6490 if test -n "$DOTTY"; then
6491 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6492 echo "${ECHO_T}$DOTTY" >&6; }
6494 { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6499 if test "$DOTTY" != "echo dotty" ; then
6501 cat >>confdefs.h <<\_ACEOF
6502 #define HAVE_DOTTY 1
6505 if test "$llvm_cv_os_type" = "MingW" ; then
6506 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6509 cat >>confdefs.h <<_ACEOF
6510 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6514 for ac_prog in xdot xdot.py
6516 # Extract the first word of "$ac_prog", so it can be a program name with args.
6517 set dummy $ac_prog; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_path_XDOT+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6535 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 XDOT=$ac_cv_path_XDOT
6547 if test -n "$XDOT"; then
6548 { echo "$as_me:$LINENO: result: $XDOT" >&5
6549 echo "${ECHO_T}$XDOT" >&6; }
6551 { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6556 test -n "$XDOT" && break
6558 test -n "$XDOT" || XDOT="echo xdot"
6560 if test "$XDOT" != "echo xdot" ; then
6562 cat >>confdefs.h <<\_ACEOF
6566 if test "$llvm_cv_os_type" = "MingW" ; then
6567 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6570 cat >>confdefs.h <<_ACEOF
6571 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6576 # Find a good install program. We prefer a C program (faster),
6577 # so one script is as good as another. But avoid the broken or
6578 # incompatible versions:
6579 # SysV /etc/install, /usr/sbin/install
6580 # SunOS /usr/etc/install
6581 # IRIX /sbin/install
6583 # AmigaOS /C/install, which installs bootblocks on floppy discs
6584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6587 # OS/2's system install, which has a completely different semantic
6588 # ./install, which can be erroneously created by make from ./install.sh.
6589 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6590 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6591 if test -z "$INSTALL"; then
6592 if test "${ac_cv_path_install+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 # Account for people who put trailing slashes in PATH elements.
6602 ./ | .// | /cC/* | \
6603 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6604 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6607 # OSF1 and SCO ODT 3.0 have their own names for install.
6608 # Don't use installbsd from OSF since it installs stuff as root
6610 for ac_prog in ginstall scoinst install; do
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6613 if test $ac_prog = install &&
6614 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6615 # AIX install. It has an incompatible calling convention.
6617 elif test $ac_prog = install &&
6618 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6619 # program-specific install script used by HP pwplus--don't use.
6622 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6635 if test "${ac_cv_path_install+set}" = set; then
6636 INSTALL=$ac_cv_path_install
6638 # As a last resort, use the slow shell script. Don't cache a
6639 # value for INSTALL within a source directory, because that will
6640 # break other packages using the cache if that directory is
6641 # removed, or if the value is a relative name.
6642 INSTALL=$ac_install_sh
6645 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6646 echo "${ECHO_T}$INSTALL" >&6; }
6648 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6649 # It thinks the first close brace ends the variable substitution.
6650 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6654 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6657 [\\/$]* | ?:[\\/]* ) ;;
6658 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6661 # Extract the first word of "bzip2", so it can be a program name with args.
6662 set dummy bzip2; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_path_BZIP2+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 BZIP2=$ac_cv_path_BZIP2
6692 if test -n "$BZIP2"; then
6693 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6694 echo "${ECHO_T}$BZIP2" >&6; }
6696 { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6701 # Extract the first word of "cat", so it can be a program name with args.
6702 set dummy cat; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_CAT+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 if test -n "$CAT"; then
6733 { echo "$as_me:$LINENO: result: $CAT" >&5
6734 echo "${ECHO_T}$CAT" >&6; }
6736 { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6741 # Extract the first word of "doxygen", so it can be a program name with args.
6742 set dummy doxygen; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 DOXYGEN=$ac_cv_path_DOXYGEN
6772 if test -n "$DOXYGEN"; then
6773 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6774 echo "${ECHO_T}$DOXYGEN" >&6; }
6776 { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6781 # Extract the first word of "groff", so it can be a program name with args.
6782 set dummy groff; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_GROFF+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 GROFF=$ac_cv_path_GROFF
6812 if test -n "$GROFF"; then
6813 { echo "$as_me:$LINENO: result: $GROFF" >&5
6814 echo "${ECHO_T}$GROFF" >&6; }
6816 { echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6; }
6821 # Extract the first word of "gzip", so it can be a program name with args.
6822 set dummy gzip; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 GZIPBIN=$ac_cv_path_GZIPBIN
6852 if test -n "$GZIPBIN"; then
6853 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6854 echo "${ECHO_T}$GZIPBIN" >&6; }
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 # Extract the first word of "pdfroff", so it can be a program name with args.
6862 set dummy pdfroff; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_PDFROFF+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 PDFROFF=$ac_cv_path_PDFROFF
6892 if test -n "$PDFROFF"; then
6893 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6894 echo "${ECHO_T}$PDFROFF" >&6; }
6896 { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6901 # Extract the first word of "zip", so it can be a program name with args.
6902 set dummy zip; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_path_ZIP+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6920 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 if test -n "$ZIP"; then
6933 { echo "$as_me:$LINENO: result: $ZIP" >&5
6934 echo "${ECHO_T}$ZIP" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6941 for ac_prog in ocamlc
6943 # Extract the first word of "$ac_prog", so it can be a program name with args.
6944 set dummy $ac_prog; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_OCAMLC+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 OCAMLC=$ac_cv_path_OCAMLC
6974 if test -n "$OCAMLC"; then
6975 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6976 echo "${ECHO_T}$OCAMLC" >&6; }
6978 { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6983 test -n "$OCAMLC" && break
6986 for ac_prog in ocamlopt
6988 # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7007 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 OCAMLOPT=$ac_cv_path_OCAMLOPT
7019 if test -n "$OCAMLOPT"; then
7020 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7021 echo "${ECHO_T}$OCAMLOPT" >&6; }
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7028 test -n "$OCAMLOPT" && break
7031 for ac_prog in ocamldep
7033 # Extract the first word of "$ac_prog", so it can be a program name with args.
7034 set dummy $ac_prog; ac_word=$2
7035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7037 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 OCAMLDEP=$ac_cv_path_OCAMLDEP
7064 if test -n "$OCAMLDEP"; then
7065 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7066 echo "${ECHO_T}$OCAMLDEP" >&6; }
7068 { echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6; }
7073 test -n "$OCAMLDEP" && break
7076 for ac_prog in ocamldoc
7078 # Extract the first word of "$ac_prog", so it can be a program name with args.
7079 set dummy $ac_prog; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 OCAMLDOC=$ac_cv_path_OCAMLDOC
7109 if test -n "$OCAMLDOC"; then
7110 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7111 echo "${ECHO_T}$OCAMLDOC" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7118 test -n "$OCAMLDOC" && break
7121 for ac_prog in gas as
7123 # Extract the first word of "$ac_prog", so it can be a program name with args.
7124 set dummy $ac_prog; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_GAS+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 if test -n "$GAS"; then
7155 { echo "$as_me:$LINENO: result: $GAS" >&5
7156 echo "${ECHO_T}$GAS" >&6; }
7158 { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7163 test -n "$GAS" && break
7167 { echo "$as_me:$LINENO: checking for linker version" >&5
7168 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7169 if test "${llvm_cv_link_version+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 version_string="$(ld -v 2>&1 | head -1)"
7176 if (echo "$version_string" | grep -q "ld64"); then
7177 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7179 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7183 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7184 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7186 cat >>confdefs.h <<_ACEOF
7187 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7193 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7194 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7195 if test "${llvm_cv_link_use_r+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 ac_cpp='$CPP $CPPFLAGS'
7200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7205 CFLAGS="$CFLAGS -Wl,-R."
7206 cat >conftest.$ac_ext <<_ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7221 rm -f conftest.$ac_objext conftest$ac_exeext
7222 if { (ac_try="$ac_link"
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228 (eval "$ac_link") 2>conftest.er1
7230 grep -v '^ *+' conftest.er1 >conftest.err
7232 cat conftest.err >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } &&
7235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7236 { (case "(($ac_try" in
7237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238 *) ac_try_echo=$ac_try;;
7240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241 (eval "$ac_try") 2>&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try='test -s conftest$ac_exeext'
7246 { (case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_try") 2>&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; }; then
7255 llvm_cv_link_use_r=yes
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7260 llvm_cv_link_use_r=no
7263 rm -f core conftest.err conftest.$ac_objext \
7264 conftest$ac_exeext conftest.$ac_ext
7267 ac_cpp='$CPP $CPPFLAGS'
7268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7274 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7275 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7276 if test "$llvm_cv_link_use_r" = yes ; then
7278 cat >>confdefs.h <<\_ACEOF
7279 #define HAVE_LINK_R 1
7285 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7286 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7287 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cpp='$CPP $CPPFLAGS'
7292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7297 CFLAGS="$CFLAGS -rdynamic"
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7313 rm -f conftest.$ac_objext conftest$ac_exeext
7314 if { (ac_try="$ac_link"
7316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317 *) ac_try_echo=$ac_try;;
7319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7320 (eval "$ac_link") 2>conftest.er1
7322 grep -v '^ *+' conftest.er1 >conftest.err
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7328 { (case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_try") 2>&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; } &&
7337 { ac_try='test -s conftest$ac_exeext'
7338 { (case "(($ac_try" in
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_try") 2>&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 llvm_cv_link_use_export_dynamic=yes
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 llvm_cv_link_use_export_dynamic=no
7355 rm -f core conftest.err conftest.$ac_objext \
7356 conftest$ac_exeext conftest.$ac_ext
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7366 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7367 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7368 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_LINK_EXPORT_DYNAMIC 1
7377 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7378 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7379 if test "${llvm_cv_link_use_version_script+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 ac_cpp='$CPP $CPPFLAGS'
7384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7390 # The following code is from the autoconf manual,
7391 # "11.13: Limitations of Usual Tools".
7392 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7393 # Use mktemp if possible; otherwise fall back on mkdir,
7394 # with $RANDOM to make collisions less likely.
7398 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7400 test -n "$tmp" && test -d "$tmp"
7402 tmp=$TMPDIR/foo$$-$RANDOM
7403 (umask 077 && mkdir "$tmp")
7406 echo "{" > "$tmp/export.map"
7407 echo " global: main;" >> "$tmp/export.map"
7408 echo " local: *;" >> "$tmp/export.map"
7409 echo "};" >> "$tmp/export.map"
7411 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7412 cat >conftest.$ac_ext <<_ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h. */
7427 rm -f conftest.$ac_objext conftest$ac_exeext
7428 if { (ac_try="$ac_link"
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_link") 2>conftest.er1
7436 grep -v '^ *+' conftest.er1 >conftest.err
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7442 { (case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_try") 2>&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (case "(($ac_try" in
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457 (eval "$ac_try") 2>&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 llvm_cv_link_use_version_script=yes
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7466 llvm_cv_link_use_version_script=no
7469 rm -f core conftest.err conftest.$ac_objext \
7470 conftest$ac_exeext conftest.$ac_ext
7471 rm "$tmp/export.map"
7475 ac_cpp='$CPP $CPPFLAGS'
7476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7482 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7483 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7484 if test "$llvm_cv_link_use_version_script" = yes ; then
7485 HAVE_LINK_VERSION_SCRIPT=1
7492 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7493 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7494 if test "${ac_cv_c_const+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 cat >conftest.$ac_ext <<_ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7507 /* FIXME: Include the comments suggested by Paul. */
7509 /* Ultrix mips cc rejects this. */
7510 typedef int charset[2];
7512 /* SunOS 4.1.1 cc rejects this. */
7513 char const *const *ccp;
7515 /* NEC SVR4.0.2 mips cc rejects this. */
7516 struct point {int x, y;};
7517 static struct point const zero = {0,0};
7518 /* AIX XL C 1.02.0.0 rejects this.
7519 It does not let you subtract one const X* pointer from another in
7520 an arm of an if-expression whose if-part is not a constant
7522 const char *g = "string";
7523 ccp = &g + (g ? g-g : 0);
7524 /* HPUX 7.0 cc rejects these. */
7527 ccp = (char const *const *) p;
7528 { /* SCO 3.2v4 cc rejects this. */
7530 char const *s = 0 ? (char *) 0 : (char const *) 0;
7535 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7537 const int *foo = &x[0];
7540 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7541 typedef const int *iptr;
7545 { /* AIX XL C 1.02.0.0 rejects this saying
7546 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7547 struct s { int j; const int *ap[3]; };
7548 struct s *b; b->j = 5;
7550 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7554 return !x[0] && !zero.x;
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_compile") 2>conftest.er1
7570 grep -v '^ *+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7576 { (case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_try") 2>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; } &&
7585 { ac_try='test -s conftest.$ac_objext'
7586 { (case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_try") 2>&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; }; then
7597 echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7606 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7607 if test $ac_cv_c_const = no; then
7609 cat >>confdefs.h <<\_ACEOF
7616 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7617 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_GREP+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 # Extract the first word of "grep ggrep" to use in msg output
7622 if test -z "$GREP"; then
7623 set dummy grep ggrep; ac_prog_name=$2
7624 if test "${ac_cv_path_GREP+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 ac_path_GREP_found=false
7628 # Loop through the user's path and test for each of PROGNAME-LIST
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7633 test -z "$as_dir" && as_dir=.
7634 for ac_prog in grep ggrep; do
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7637 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7638 # Check for GNU ac_path_GREP and select it if it is found.
7639 # Check for GNU $ac_path_GREP
7640 case `"$ac_path_GREP" --version 2>&1` in
7642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7645 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7648 cat "conftest.in" "conftest.in" >"conftest.tmp"
7649 mv "conftest.tmp" "conftest.in"
7650 cp "conftest.in" "conftest.nl"
7651 echo 'GREP' >> "conftest.nl"
7652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7654 ac_count=`expr $ac_count + 1`
7655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7656 # Best one so far, save it but keep looking for a better one
7657 ac_cv_path_GREP="$ac_path_GREP"
7658 ac_path_GREP_max=$ac_count
7660 # 10*(2^10) chars as input seems more than enough
7661 test $ac_count -gt 10 && break
7663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7667 $ac_path_GREP_found && break 3
7677 GREP="$ac_cv_path_GREP"
7678 if test -z "$GREP"; then
7679 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7680 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7681 { (exit 1); exit 1; }; }
7685 ac_cv_path_GREP=$GREP
7690 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7691 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7692 GREP="$ac_cv_path_GREP"
7695 { echo "$as_me:$LINENO: checking for egrep" >&5
7696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7697 if test "${ac_cv_path_EGREP+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7701 then ac_cv_path_EGREP="$GREP -E"
7703 # Extract the first word of "egrep" to use in msg output
7704 if test -z "$EGREP"; then
7705 set dummy egrep; ac_prog_name=$2
7706 if test "${ac_cv_path_EGREP+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 ac_path_EGREP_found=false
7710 # Loop through the user's path and test for each of PROGNAME-LIST
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7715 test -z "$as_dir" && as_dir=.
7716 for ac_prog in egrep; do
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7719 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7720 # Check for GNU ac_path_EGREP and select it if it is found.
7721 # Check for GNU $ac_path_EGREP
7722 case `"$ac_path_EGREP" --version 2>&1` in
7724 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7730 cat "conftest.in" "conftest.in" >"conftest.tmp"
7731 mv "conftest.tmp" "conftest.in"
7732 cp "conftest.in" "conftest.nl"
7733 echo 'EGREP' >> "conftest.nl"
7734 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7736 ac_count=`expr $ac_count + 1`
7737 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7738 # Best one so far, save it but keep looking for a better one
7739 ac_cv_path_EGREP="$ac_path_EGREP"
7740 ac_path_EGREP_max=$ac_count
7742 # 10*(2^10) chars as input seems more than enough
7743 test $ac_count -gt 10 && break
7745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7749 $ac_path_EGREP_found && break 3
7759 EGREP="$ac_cv_path_EGREP"
7760 if test -z "$EGREP"; then
7761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7763 { (exit 1); exit 1; }; }
7767 ac_cv_path_EGREP=$EGREP
7773 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7774 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7775 EGREP="$ac_cv_path_EGREP"
7778 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7780 if test "${ac_cv_header_stdc+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7802 rm -f conftest.$ac_objext
7803 if { (ac_try="$ac_compile"
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809 (eval "$ac_compile") 2>conftest.er1
7811 grep -v '^ *+' conftest.er1 >conftest.err
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7817 { (case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_try") 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest.$ac_objext'
7827 { (case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_try") 2>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_header_stdc=yes
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7841 ac_cv_header_stdc=no
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846 if test $ac_cv_header_stdc = yes; then
7847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7858 $EGREP "memchr" >/dev/null 2>&1; then
7861 ac_cv_header_stdc=no
7867 if test $ac_cv_header_stdc = yes; then
7868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7869 cat >conftest.$ac_ext <<_ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7879 $EGREP "free" >/dev/null 2>&1; then
7882 ac_cv_header_stdc=no
7888 if test $ac_cv_header_stdc = yes; then
7889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7890 if test "$cross_compiling" = yes; then
7893 cat >conftest.$ac_ext <<_ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7901 #if ((' ' & 0x0FF) == 0x020)
7902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7905 # define ISLOWER(c) \
7906 (('a' <= (c) && (c) <= 'i') \
7907 || ('j' <= (c) && (c) <= 'r') \
7908 || ('s' <= (c) && (c) <= 'z'))
7909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7917 for (i = 0; i < 256; i++)
7918 if (XOR (islower (i), ISLOWER (i))
7919 || toupper (i) != TOUPPER (i))
7924 rm -f conftest$ac_exeext
7925 if { (ac_try="$ac_link"
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_link") 2>&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7946 echo "$as_me: program exited with status $ac_status" >&5
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7951 ac_cv_header_stdc=no
7953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7959 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7960 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7961 if test $ac_cv_header_stdc = yes; then
7963 cat >>confdefs.h <<\_ACEOF
7964 #define STDC_HEADERS 1
7975 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7976 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7977 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7978 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 cat >conftest.$ac_ext <<_ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 #include <sys/types.h>
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8009 grep -v '^ *+' conftest.er1 >conftest.err
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8015 { (case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_try") 2>&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; } &&
8024 { ac_try='test -s conftest.$ac_objext'
8025 { (case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_try") 2>&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 eval "$as_ac_Header=yes"
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8039 eval "$as_ac_Header=no"
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 ac_res=`eval echo '${'$as_ac_Header'}'`
8045 { echo "$as_me:$LINENO: result: $ac_res" >&5
8046 echo "${ECHO_T}$ac_res" >&6; }
8047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8048 cat >>confdefs.h <<_ACEOF
8049 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8052 ac_header_dirent=$ac_hdr; break
8056 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8057 if test $ac_header_dirent = dirent.h; then
8058 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8059 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8060 if test "${ac_cv_search_opendir+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 ac_func_search_save_LIBS=$LIBS
8064 cat >conftest.$ac_ext <<_ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8071 /* Override any GCC internal prototype to avoid an error.
8072 Use char because int might match the return type of a GCC
8073 builtin and then its argument prototype would still apply. */
8086 for ac_lib in '' dir; do
8087 if test -z "$ac_lib"; then
8088 ac_res="none required"
8091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8093 rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (ac_try="$ac_link"
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_link") 2>conftest.er1
8102 grep -v '^ *+' conftest.er1 >conftest.err
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108 { (case "(($ac_try" in
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_try") 2>&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest$ac_exeext'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 ac_cv_search_opendir=$ac_res
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8135 rm -f core conftest.err conftest.$ac_objext \
8137 if test "${ac_cv_search_opendir+set}" = set; then
8141 if test "${ac_cv_search_opendir+set}" = set; then
8144 ac_cv_search_opendir=no
8147 LIBS=$ac_func_search_save_LIBS
8149 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8150 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8151 ac_res=$ac_cv_search_opendir
8152 if test "$ac_res" != no; then
8153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8158 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8159 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8160 if test "${ac_cv_search_opendir+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 ac_func_search_save_LIBS=$LIBS
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8171 /* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8186 for ac_lib in '' x; do
8187 if test -z "$ac_lib"; then
8188 ac_res="none required"
8191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8208 { (case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_try") 2>&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_cv_search_opendir=$ac_res
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8235 rm -f core conftest.err conftest.$ac_objext \
8237 if test "${ac_cv_search_opendir+set}" = set; then
8241 if test "${ac_cv_search_opendir+set}" = set; then
8244 ac_cv_search_opendir=no
8247 LIBS=$ac_func_search_save_LIBS
8249 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8250 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8251 ac_res=$ac_cv_search_opendir
8252 if test "$ac_res" != no; then
8253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8259 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8270 inttypes.h stdint.h unistd.h
8272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 $ac_includes_default
8286 #include <$ac_header>
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_compile") 2>conftest.er1
8297 grep -v '^ *+' conftest.er1 >conftest.err
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 eval "$as_ac_Header=yes"
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 eval "$as_ac_Header=no"
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 ac_res=`eval echo '${'$as_ac_Header'}'`
8333 { echo "$as_me:$LINENO: result: $ac_res" >&5
8334 echo "${ECHO_T}$ac_res" >&6; }
8335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8336 cat >>confdefs.h <<_ACEOF
8337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8346 for ac_header in dlfcn.h
8348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 ac_res=`eval echo '${'$as_ac_Header'}'`
8356 { echo "$as_me:$LINENO: result: $ac_res" >&5
8357 echo "${ECHO_T}$ac_res" >&6; }
8359 # Is the header compilable?
8360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8362 cat >conftest.$ac_ext <<_ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368 $ac_includes_default
8369 #include <$ac_header>
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8380 grep -v '^ *+' conftest.er1 >conftest.err
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8386 { (case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_try") 2>&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; } &&
8395 { ac_try='test -s conftest.$ac_objext'
8396 { (case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_try") 2>&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_header_compiler=yes
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ac_header_compiler=no
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8415 echo "${ECHO_T}$ac_header_compiler" >&6; }
8417 # Is the header present?
8418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 #include <$ac_header>
8428 if { (ac_try="$ac_cpp conftest.$ac_ext"
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } >/dev/null; then
8441 if test -s conftest.err; then
8442 ac_cpp_err=$ac_c_preproc_warn_flag
8443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8450 if test -z "$ac_cpp_err"; then
8451 ac_header_preproc=yes
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8456 ac_header_preproc=no
8459 rm -f conftest.err conftest.$ac_ext
8460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8461 echo "${ECHO_T}$ac_header_preproc" >&6; }
8463 # So? What about this header?
8464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8470 ac_header_preproc=yes
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8486 ## ------------------------------------ ##
8487 ## Report this to http://llvm.org/bugs/ ##
8488 ## ------------------------------------ ##
8490 ) | sed "s/^/$as_me: WARNING: /" >&2
8493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 eval "$as_ac_Header=\$ac_header_preproc"
8500 ac_res=`eval echo '${'$as_ac_Header'}'`
8501 { echo "$as_me:$LINENO: result: $ac_res" >&5
8502 echo "${ECHO_T}$ac_res" >&6; }
8505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8506 cat >>confdefs.h <<_ACEOF
8507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8514 # Check whether --enable-ltdl-install was given.
8515 if test "${enable_ltdl_install+set}" = set; then
8516 enableval=$enable_ltdl_install;
8522 if test x"${enable_ltdl_install-no}" != xno; then
8524 INSTALL_LTDL_FALSE='#'
8526 INSTALL_LTDL_TRUE='#'
8532 if test x"${enable_ltdl_convenience-no}" != xno; then
8533 CONVENIENCE_LTDL_TRUE=
8534 CONVENIENCE_LTDL_FALSE='#'
8536 CONVENIENCE_LTDL_TRUE='#'
8537 CONVENIENCE_LTDL_FALSE=
8541 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8542 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8544 libname_spec='lib$name'
8552 shlibpath_overrides_runpath=unknown
8554 dynamic_linker="$host_os ld.so"
8555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8556 if test "$GCC" = yes; then
8557 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8558 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8559 # if the path contains ";" then we assume it to be the separator
8560 # otherwise default to the standard path separator (i.e. ":") - it is
8561 # assumed that no part of a normal pathname contains ";" but that should
8562 # okay in the real world where ";" in dirpaths is itself problematic.
8563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8568 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8570 need_lib_prefix=unknown
8571 hardcode_into_libs=no
8573 # when you set need_version to no, make sure it does not cause -set_version
8574 # flags to be left without arguments
8575 need_version=unknown
8580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8581 shlibpath_var=LIBPATH
8583 # AIX 3 has no versioning support, so we append a major version to the name.
8584 soname_spec='${libname}${release}${shared_ext}$major'
8591 hardcode_into_libs=yes
8592 if test "$host_cpu" = ia64; then
8593 # AIX 5 supports IA64
8594 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8595 shlibpath_var=LD_LIBRARY_PATH
8597 # With GCC up to 2.95.x, collect2 would create an import file
8598 # for dependence libraries. The import file would start with
8599 # the line `#! .'. This would cause the generated library to
8600 # depend on `.', always an invalid library. This was fixed in
8601 # development snapshots of GCC prior to 3.0.
8603 aix4 | aix4.[01] | aix4.[01].*)
8604 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8606 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8613 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8614 # soname into executable. Probably we can add versioning support to
8615 # collect2, so additional links can be useful in future.
8616 if test "$aix_use_runtimelinking" = yes; then
8617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8618 # instead of lib<name>.a to let people know that these are not
8619 # typical AIX shared libraries.
8620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622 # We preserve .a as extension for shared libraries through AIX4.2
8623 # and later when we are not doing run time linking.
8624 library_names_spec='${libname}${release}.a $libname.a'
8625 soname_spec='${libname}${release}${shared_ext}$major'
8627 shlibpath_var=LIBPATH
8632 library_names_spec='$libname.ixlibrary $libname.a'
8633 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8634 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'
8638 library_names_spec='${libname}${shared_ext}'
8639 dynamic_linker="$host_os ld.so"
8640 shlibpath_var=LIBRARY_PATH
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8647 soname_spec='${libname}${release}${shared_ext}$major'
8648 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8649 shlibpath_var=LD_LIBRARY_PATH
8650 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8651 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8652 # the default ld.so.conf also contains /usr/contrib/lib and
8653 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8654 # libtool to hard-code these into programs
8657 cygwin* | mingw* | pw32*)
8658 version_type=windows
8663 case $GCC,$host_os in
8664 yes,cygwin* | yes,mingw* | yes,pw32*)
8665 library_names_spec='$libname.dll.a'
8666 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8667 postinstall_cmds='base_file=`basename \${file}`~
8668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8669 dldir=$destdir/`dirname \$dlpath`~
8670 test -d \$dldir || mkdir -p \$dldir~
8671 $install_prog $dir/$dlname \$dldir/$dlname~
8672 chmod a+x \$dldir/$dlname'
8673 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8674 dlpath=$dir/\$dldll~
8676 shlibpath_overrides_runpath=yes
8680 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8681 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8682 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8685 # MinGW DLLs use traditional 'lib' prefix
8686 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8687 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8688 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8689 # It is most probably a Windows format PATH printed by
8690 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8691 # path with ; separators, and with drive letters. We can handle the
8692 # drive letters (cygwin fileutils understands them), so leave them,
8693 # especially as we might pass files found there to a mingw objdump,
8694 # which wouldn't understand a cygwinified path. Ahh.
8695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8701 # pw32 DLLs use 'pw' prefix rather than 'lib'
8702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8708 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8711 dynamic_linker='Win32 ld.exe'
8712 # FIXME: first we should search . and the directory the executable is in
8716 darwin* | rhapsody*)
8717 dynamic_linker="$host_os dyld"
8721 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8722 soname_spec='${libname}${release}${major}$shared_ext'
8723 shlibpath_overrides_runpath=yes
8724 shlibpath_var=DYLD_LIBRARY_PATH
8725 shrext_cmds='.dylib'
8726 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8727 if test "$GCC" = yes; then
8728 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"`
8730 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8732 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8740 soname_spec='${libname}${release}${shared_ext}$major'
8741 shlibpath_var=LD_LIBRARY_PATH
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8753 soname_spec='${libname}${release}${shared_ext}$major'
8754 shlibpath_var=LD_LIBRARY_PATH
8755 shlibpath_overrides_runpath=no
8756 hardcode_into_libs=yes
8757 dynamic_linker='GNU ld.so'
8760 freebsd* | dragonfly*)
8761 # DragonFly does not have aout. When/if they implement a new
8762 # versioning mechanism, adjust this.
8763 if test -x /usr/bin/objformat; then
8764 objformat=`/usr/bin/objformat`
8767 freebsd[123].*) objformat=aout ;;
8771 version_type=freebsd-$objformat
8772 case $version_type in
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8783 shlibpath_var=LD_LIBRARY_PATH
8786 shlibpath_overrides_runpath=yes
8788 freebsd3.[01]* | freebsdelf3.[01]*)
8789 shlibpath_overrides_runpath=yes
8790 hardcode_into_libs=yes
8792 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8793 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8794 shlibpath_overrides_runpath=no
8795 hardcode_into_libs=yes
8797 freebsd*) # from 4.6 on
8798 shlibpath_overrides_runpath=yes
8799 hardcode_into_libs=yes
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 hardcode_into_libs=yes
8814 hpux9* | hpux10* | hpux11*)
8815 # Give a soname corresponding to the major version so that dld.sl refuses to
8816 # link against other versions.
8823 hardcode_into_libs=yes
8824 dynamic_linker="$host_os dld.so"
8825 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 if test "X$HPUX_IA64_MODE" = X32; then
8830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8838 hardcode_into_libs=yes
8839 dynamic_linker="$host_os dld.sl"
8840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843 soname_spec='${libname}${release}${shared_ext}$major'
8844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8849 dynamic_linker="$host_os dld.sl"
8850 shlibpath_var=SHLIB_PATH
8851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8856 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8857 postinstall_cmds='chmod 555 $lib'
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8867 shlibpath_var=LD_LIBRARY_PATH
8868 shlibpath_overrides_runpath=no
8869 hardcode_into_libs=yes
8872 irix5* | irix6* | nonstopux*)
8874 nonstopux*) version_type=nonstopux ;;
8876 if test "$lt_cv_prog_gnu_ld" = yes; then
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8887 irix5* | nonstopux*)
8891 case $LD in # libtool.m4 will add one of these switches to LD
8892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8893 libsuff= shlibsuff= libmagic=32-bit;;
8894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8895 libsuff=32 shlibsuff=N32 libmagic=N32;;
8896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8898 *) libsuff= shlibsuff= libmagic=never-match;;
8902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8903 shlibpath_overrides_runpath=no
8904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8906 hardcode_into_libs=yes
8909 # No shared lib support for Linux oldld, aout, or coff.
8910 linux*oldld* | linux*aout* | linux*coff*)
8914 # This must be Linux ELF.
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 # This implies no fast_install, which is unacceptable.
8925 # Some rework will be needed to allow for fast_install
8926 # before this can be enabled.
8927 hardcode_into_libs=yes
8929 # Append ld.so.conf contents to the search path
8930 if test -f /etc/ld.so.conf; then
8931 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' ' '`
8932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8935 # We used to test for /lib/ld.so.1 and disable shared libraries on
8936 # powerpc, because MkLinux only supported shared libraries with the
8937 # GNU dynamic linker. Since this was broken with cross compilers,
8938 # most powerpc-linux boxes support dynamic linking these days and
8939 # people can always --disable-shared, the test was removed, and we
8940 # assume the GNU/Linux dynamic linker is in use.
8941 dynamic_linker='GNU/Linux ld.so'
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=no
8952 hardcode_into_libs=yes
8953 dynamic_linker='GNU ld.so'
8960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8963 dynamic_linker='NetBSD (a.out) ld.so'
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 dynamic_linker='NetBSD ld.elf_so'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=yes
8971 hardcode_into_libs=yes
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 shlibpath_overrides_runpath=yes
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=yes
8993 sys_lib_dlsearch_path_spec="/usr/lib"
8995 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8997 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8998 *) need_version=no ;;
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9005 openbsd2.[89] | openbsd2.[89].*)
9006 shlibpath_overrides_runpath=no
9009 shlibpath_overrides_runpath=yes
9013 shlibpath_overrides_runpath=yes
9018 libname_spec='$name'
9021 library_names_spec='$libname${shared_ext} $libname.a'
9022 dynamic_linker='OS/2 ld.exe'
9023 shlibpath_var=LIBPATH
9026 osf3* | osf4* | osf5*)
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 shlibpath_overrides_runpath=yes
9045 hardcode_into_libs=yes
9046 # ldd complains unless libraries are executable
9047 postinstall_cmds='chmod +x $lib'
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 shlibpath_overrides_runpath=yes
9056 if test "$with_gnu_ld" = yes; then
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065 soname_spec='${libname}${release}${shared_ext}$major'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 case $host_vendor in
9069 shlibpath_overrides_runpath=no
9071 export_dynamic_flag_spec='${wl}-Blargedynsym'
9072 runpath_var=LD_RUN_PATH
9080 shlibpath_overrides_runpath=no
9081 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9087 if test -d /usr/nec ;then
9089 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9090 soname_spec='$libname${shared_ext}.$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9095 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9096 version_type=freebsd-elf
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 hardcode_into_libs=yes
9103 if test "$with_gnu_ld" = yes; then
9104 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9105 shlibpath_overrides_runpath=no
9107 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9108 shlibpath_overrides_runpath=yes
9111 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9115 sys_lib_dlsearch_path_spec='/usr/lib'
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9129 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9130 echo "${ECHO_T}$dynamic_linker" >&6; }
9131 test "$dynamic_linker" = no && can_build_shared=no
9133 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9134 if test "$GCC" = yes; then
9135 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9139 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9140 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9141 if test "${libltdl_cv_shlibext+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 eval libltdl_cv_shlibext=$shrext_cmds
9149 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9150 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9151 if test -n "$libltdl_cv_shlibext"; then
9153 cat >>confdefs.h <<_ACEOF
9154 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9160 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9161 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9162 if test "${libltdl_cv_sys_search_path+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9167 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9168 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9169 if test -n "$libltdl_cv_sys_search_path"; then
9171 for dir in $libltdl_cv_sys_search_path; do
9172 if test -z "$sys_search_path"; then
9173 sys_search_path="$dir"
9175 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9179 cat >>confdefs.h <<_ACEOF
9180 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9185 { echo "$as_me:$LINENO: checking for objdir" >&5
9186 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9187 if test "${libltdl_cv_objdir+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 libltdl_cv_objdir="$objdir"
9191 if test -n "$objdir"; then
9194 rm -f .libs 2>/dev/null
9195 mkdir .libs 2>/dev/null
9196 if test -d .libs; then
9197 libltdl_cv_objdir=.libs
9199 # MS-DOS does not allow filenames that begin with a dot.
9200 libltdl_cv_objdir=_libs
9202 rmdir .libs 2>/dev/null
9206 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9207 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9209 cat >>confdefs.h <<_ACEOF
9210 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9218 # Check for command to grab the raw symbol name followed by C symbol from nm.
9219 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9220 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9221 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 # These are sane defaults that work on at least a few old systems.
9226 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9228 # Character class describing NM global symbol codes.
9229 symcode='[BCDEGRST]'
9231 # Regexp to match symbols that can be accessed directly from C.
9232 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9234 # Transform an extracted symbol line into a proper C declaration
9235 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9237 # Transform an extracted symbol line into symbol name and symbol address
9238 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'"
9240 # Define system-specific variables.
9245 cygwin* | mingw* | pw32*)
9246 symcode='[ABCDGISTW]'
9248 hpux*) # Its linker distinguishes data from code symbols
9249 if test "$host_cpu" = ia64; then
9250 symcode='[ABCDEGRST]'
9252 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9253 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'"
9256 if test "$host_cpu" = ia64; then
9257 symcode='[ABCDGIRSTW]'
9258 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9259 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'"
9263 symcode='[BCDEGRST]'
9266 symcode='[BCDEGQRST]'
9277 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9285 # Handle CRLF in mingw tool chain
9289 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9293 # If we're using GNU nm, then use its standard symbol codes.
9294 case `$NM -V 2>&1` in
9295 *GNU* | *'with BFD'*)
9296 symcode='[ABCDGIRSTW]' ;;
9299 # Try without a prefix undercore, then with it.
9300 for ac_symprfx in "" "_"; do
9302 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9303 symxfrm="\\1 $ac_symprfx\\2 \\2"
9305 # Write the raw and C identifiers.
9306 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9308 # Check to see that the pipe works correctly.
9312 cat > conftest.$ac_ext <<EOF
9317 void nm_test_func(){}
9321 int main(){nm_test_var='a';nm_test_func();return(0);}
9324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9325 (eval $ac_compile) 2>&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; then
9329 # Now try to grab the symbols.
9331 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9332 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } && test -s "$nlist"; then
9336 # Try sorting and uniquifying the output.
9337 if sort "$nlist" | uniq > "$nlist"T; then
9338 mv -f "$nlist"T "$nlist"
9343 # Make sure that we snagged all the symbols we need.
9344 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9345 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9346 cat <<EOF > conftest.$ac_ext
9352 # Now generate the symbol file.
9353 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9355 cat <<EOF >> conftest.$ac_ext
9356 #if defined (__STDC__) && __STDC__
9357 # define lt_ptr_t void *
9359 # define lt_ptr_t char *
9363 /* The mapping between symbol names and symbols. */
9368 lt_preloaded_symbols[] =
9371 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9372 cat <<\EOF >> conftest.$ac_ext
9380 # Now try linking the two files.
9381 mv conftest.$ac_objext conftstm.$ac_objext
9382 lt_save_LIBS="$LIBS"
9383 lt_save_CFLAGS="$CFLAGS"
9384 LIBS="conftstm.$ac_objext"
9385 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387 (eval $ac_link) 2>&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9393 LIBS="$lt_save_LIBS"
9394 CFLAGS="$lt_save_CFLAGS"
9396 echo "cannot find nm_test_func in $nlist" >&5
9399 echo "cannot find nm_test_var in $nlist" >&5
9402 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9405 echo "$progname: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9408 rm -f conftest* conftst*
9410 # Do not use the global_symbol_pipe unless it works.
9411 if test "$pipe_works" = yes; then
9414 lt_cv_sys_global_symbol_pipe=
9420 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9421 lt_cv_sys_global_symbol_to_cdecl=
9423 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9424 { echo "$as_me:$LINENO: result: failed" >&5
9425 echo "${ECHO_T}failed" >&6; }
9427 { echo "$as_me:$LINENO: result: ok" >&5
9428 echo "${ECHO_T}ok" >&6; }
9432 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9433 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9434 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9438 libltdl_cv_preloaded_symbols=yes
9440 libltdl_cv_preloaded_symbols=no
9444 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9445 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9446 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9448 cat >>confdefs.h <<\_ACEOF
9449 #define HAVE_PRELOADED_SYMBOLS 1
9457 ac_cpp='$CPP $CPPFLAGS'
9458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9463 { echo "$as_me:$LINENO: checking for shl_load" >&5
9464 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9465 if test "${ac_cv_func_shl_load+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9476 #define shl_load innocuous_shl_load
9478 /* System header to define __stub macros and hopefully few prototypes,
9479 which can conflict with char shl_load (); below.
9480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481 <limits.h> exists even on freestanding compilers. */
9484 # include <limits.h>
9486 # include <assert.h>
9491 /* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9498 /* The GNU C library defines this for functions which it implements
9499 to always fail with ENOSYS. Some functions are actually named
9500 something starting with __ and the normal name is an alias. */
9501 #if defined __stub_shl_load || defined __stub___shl_load
9513 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (ac_try="$ac_link"
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_link") 2>conftest.er1
9522 grep -v '^ *+' conftest.er1 >conftest.err
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } &&
9527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9528 { (case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_try") 2>&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; } &&
9537 { ac_try='test -s conftest$ac_exeext'
9538 { (case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543 (eval "$ac_try") 2>&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_cv_func_shl_load=yes
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 ac_cv_func_shl_load=no
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9558 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9559 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9560 if test $ac_cv_func_shl_load = yes; then
9562 cat >>confdefs.h <<\_ACEOF
9563 #define HAVE_SHL_LOAD 1
9567 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9568 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9569 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 ac_check_lib_save_LIBS=$LIBS
9574 cat >conftest.$ac_ext <<_ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_link") 2>conftest.er1
9605 grep -v '^ *+' conftest.er1 >conftest.err
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9611 { (case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_try") 2>&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest$ac_exeext'
9621 { (case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_try") 2>&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9630 ac_cv_lib_dld_shl_load=yes
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9635 ac_cv_lib_dld_shl_load=no
9638 rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 LIBS=$ac_check_lib_save_LIBS
9642 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9643 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9644 if test $ac_cv_lib_dld_shl_load = yes; then
9646 cat >>confdefs.h <<\_ACEOF
9647 #define HAVE_SHL_LOAD 1
9650 LIBADD_DL="$LIBADD_DL -ldld"
9652 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9653 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 ac_check_lib_save_LIBS=$LIBS
9659 cat >conftest.$ac_ext <<_ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9666 /* Override any GCC internal prototype to avoid an error.
9667 Use char because int might match the return type of a GCC
9668 builtin and then its argument prototype would still apply. */
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
9695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9696 { (case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_try") 2>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest$ac_exeext'
9706 { (case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_try") 2>&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 ac_cv_lib_dl_dlopen=yes
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_cv_lib_dl_dlopen=no
9723 rm -f core conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
9725 LIBS=$ac_check_lib_save_LIBS
9727 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9729 if test $ac_cv_lib_dl_dlopen = yes; then
9731 cat >>confdefs.h <<\_ACEOF
9732 #define HAVE_LIBDL 1
9735 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9755 rm -f conftest.$ac_objext conftest$ac_exeext
9756 if { (ac_try="$ac_link"
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_link") 2>conftest.er1
9764 grep -v '^ *+' conftest.er1 >conftest.err
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9770 { (case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_try") 2>&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; } &&
9779 { ac_try='test -s conftest$ac_exeext'
9780 { (case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_try") 2>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9790 cat >>confdefs.h <<\_ACEOF
9791 #define HAVE_LIBDL 1
9793 libltdl_cv_func_dlopen="yes"
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9799 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9800 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 ac_check_lib_save_LIBS=$LIBS
9805 cat >conftest.$ac_ext <<_ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9812 /* Override any GCC internal prototype to avoid an error.
9813 Use char because int might match the return type of a GCC
9814 builtin and then its argument prototype would still apply. */
9827 rm -f conftest.$ac_objext conftest$ac_exeext
9828 if { (ac_try="$ac_link"
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_link") 2>conftest.er1
9836 grep -v '^ *+' conftest.er1 >conftest.err
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; } &&
9851 { ac_try='test -s conftest$ac_exeext'
9852 { (case "(($ac_try" in
9853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854 *) ac_try_echo=$ac_try;;
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857 (eval "$ac_try") 2>&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_lib_svld_dlopen=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_cv_lib_svld_dlopen=no
9869 rm -f core conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871 LIBS=$ac_check_lib_save_LIBS
9873 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9874 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9875 if test $ac_cv_lib_svld_dlopen = yes; then
9877 cat >>confdefs.h <<\_ACEOF
9878 #define HAVE_LIBDL 1
9881 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9883 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9884 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9885 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 ac_check_lib_save_LIBS=$LIBS
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9897 /* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (ac_try="$ac_link"
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_link") 2>conftest.er1
9921 grep -v '^ *+' conftest.er1 >conftest.err
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
9926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try='test -s conftest$ac_exeext'
9937 { (case "(($ac_try" in
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_try") 2>&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_cv_lib_dld_dld_link=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_lib_dld_dld_link=no
9954 rm -f core conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9959 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9960 if test $ac_cv_lib_dld_dld_link = yes; then
9962 cat >>confdefs.h <<\_ACEOF
9966 LIBADD_DL="$LIBADD_DL -ldld"
9968 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9969 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9970 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 cat >conftest.$ac_ext <<_ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9981 #define _dyld_func_lookup innocuous__dyld_func_lookup
9983 /* System header to define __stub macros and hopefully few prototypes,
9984 which can conflict with char _dyld_func_lookup (); below.
9985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9986 <limits.h> exists even on freestanding compilers. */
9989 # include <limits.h>
9991 # include <assert.h>
9994 #undef _dyld_func_lookup
9996 /* Override any GCC internal prototype to avoid an error.
9997 Use char because int might match the return type of a GCC
9998 builtin and then its argument prototype would still apply. */
10002 char _dyld_func_lookup ();
10003 /* The GNU C library defines this for functions which it implements
10004 to always fail with ENOSYS. Some functions are actually named
10005 something starting with __ and the normal name is an alias. */
10006 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10013 return _dyld_func_lookup ();
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (ac_try="$ac_link"
10020 case "(($ac_try" in
10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022 *) ac_try_echo=$ac_try;;
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025 (eval "$ac_link") 2>conftest.er1
10027 grep -v '^ *+' conftest.er1 >conftest.err
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10033 { (case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_try") 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; } &&
10042 { ac_try='test -s conftest$ac_exeext'
10043 { (case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_try") 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_cv_func__dyld_func_lookup=yes
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10057 ac_cv_func__dyld_func_lookup=no
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10063 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10064 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10065 if test $ac_cv_func__dyld_func_lookup = yes; then
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_DYLD 1
10082 rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10094 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10096 lt_save_LIBS="$LIBS"
10097 LIBS="$LIBS $LIBADD_DL"
10099 for ac_func in dlerror
10101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 cat >conftest.$ac_ext <<_ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10115 #define $ac_func innocuous_$ac_func
10117 /* System header to define __stub macros and hopefully few prototypes,
10118 which can conflict with char $ac_func (); below.
10119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10120 <limits.h> exists even on freestanding compilers. */
10123 # include <limits.h>
10125 # include <assert.h>
10130 /* Override any GCC internal prototype to avoid an error.
10131 Use char because int might match the return type of a GCC
10132 builtin and then its argument prototype would still apply. */
10137 /* The GNU C library defines this for functions which it implements
10138 to always fail with ENOSYS. Some functions are actually named
10139 something starting with __ and the normal name is an alias. */
10140 #if defined __stub_$ac_func || defined __stub___$ac_func
10147 return $ac_func ();
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_link") 2>conftest.er1
10161 grep -v '^ *+' conftest.er1 >conftest.err
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; } &&
10176 { ac_try='test -s conftest$ac_exeext'
10177 { (case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_try") 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 eval "$as_ac_var=yes"
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 eval "$as_ac_var=no"
10194 rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10197 ac_res=`eval echo '${'$as_ac_var'}'`
10198 { echo "$as_me:$LINENO: result: $ac_res" >&5
10199 echo "${ECHO_T}$ac_res" >&6; }
10200 if test `eval echo '${'$as_ac_var'}'` = yes; then
10201 cat >>confdefs.h <<_ACEOF
10202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10208 LIBS="$lt_save_LIBS"
10211 ac_cpp='$CPP $CPPFLAGS'
10212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10218 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10219 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10220 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 ac_cv_sys_symbol_underscore=no
10224 cat > conftest.$ac_ext <<EOF
10225 void nm_test_func(){}
10226 int main(){nm_test_func;return 0;}
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229 (eval $ac_compile) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; then
10233 # Now try to grab the symbols.
10234 ac_nlist=conftest.nm
10235 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10236 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } && test -s "$ac_nlist"; then
10240 # See whether the symbols have a leading underscore.
10241 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10242 ac_cv_sys_symbol_underscore=yes
10244 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10247 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10251 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10254 echo "configure: failed program was:" >&5
10260 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10261 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10264 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10265 if test x"$libltdl_cv_func_dlopen" = xyes ||
10266 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10267 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10268 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10269 if test "${libltdl_cv_need_uscore+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 libltdl_cv_need_uscore=unknown
10274 LIBS="$LIBS $LIBADD_DL"
10275 if test "$cross_compiling" = yes; then :
10276 libltdl_cv_need_uscore=cross
10278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10279 lt_status=$lt_dlunknown
10280 cat > conftest.$ac_ext <<EOF
10281 #line 10281 "configure"
10282 #include "confdefs.h"
10291 # define LT_DLGLOBAL RTLD_GLOBAL
10294 # define LT_DLGLOBAL DL_GLOBAL
10296 # define LT_DLGLOBAL 0
10300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10301 find out it does not work in some platform. */
10302 #ifndef LT_DLLAZY_OR_NOW
10304 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10307 # define LT_DLLAZY_OR_NOW DL_LAZY
10310 # define LT_DLLAZY_OR_NOW RTLD_NOW
10313 # define LT_DLLAZY_OR_NOW DL_NOW
10315 # define LT_DLLAZY_OR_NOW 0
10323 extern "C" void exit (int);
10326 void fnord() { int i=42;}
10329 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10330 int status = $lt_dlunknown;
10334 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10335 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10336 /* dlclose (self); */
10344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345 (eval $ac_link) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10349 (./conftest; exit; ) >&5 2>/dev/null
10351 case x$lt_status in
10352 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10353 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10354 x$lt_dlunknown|x*) ;;
10357 # compilation failed
10366 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10367 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10371 if test x"$libltdl_cv_need_uscore" = xyes; then
10373 cat >>confdefs.h <<\_ACEOF
10374 #define NEED_USCORE 1
10380 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10381 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10382 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 # PORTME does your system automatically load deplibs for dlopen?
10386 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10387 # For now, we just catch OSes we know something about -- in the
10388 # future, we'll try test this programmatically.
10389 libltdl_cv_sys_dlopen_deplibs=unknown
10391 aix3*|aix4.1.*|aix4.2.*)
10392 # Unknown whether this is true for these versions of AIX, but
10393 # we want this `case' here to explicitly catch those versions.
10394 libltdl_cv_sys_dlopen_deplibs=unknown
10397 libltdl_cv_sys_dlopen_deplibs=yes
10400 # Assuming the user has installed a libdl from somewhere, this is true
10401 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10402 libltdl_cv_sys_dlopen_deplibs=yes
10404 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10405 # GNU and its variants, using gnu ld.so (Glibc)
10406 libltdl_cv_sys_dlopen_deplibs=yes
10409 libltdl_cv_sys_dlopen_deplibs=yes
10412 libltdl_cv_sys_dlopen_deplibs=yes
10414 irix[12345]*|irix6.[01]*)
10415 # Catch all versions of IRIX before 6.2, and indicate that we don't
10416 # know how it worked for any of those versions.
10417 libltdl_cv_sys_dlopen_deplibs=unknown
10420 # The case above catches anything before 6.2, and it's known that
10421 # at 6.2 and later dlopen does load deplibs.
10422 libltdl_cv_sys_dlopen_deplibs=yes
10425 libltdl_cv_sys_dlopen_deplibs=yes
10428 libltdl_cv_sys_dlopen_deplibs=yes
10431 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10432 # it did *not* use an RPATH in a shared library to find objects the
10433 # library depends on, so we explicitly say `no'.
10434 libltdl_cv_sys_dlopen_deplibs=no
10436 osf5.0|osf5.0a|osf5.1)
10437 # dlopen *does* load deplibs and with the right loader patch applied
10438 # it even uses RPATH in a shared library to search for shared objects
10439 # that the library depends on, but there's no easy way to know if that
10440 # patch is installed. Since this is the case, all we can really
10441 # say is unknown -- it depends on the patch being installed. If
10442 # it is, this changes to `yes'. Without it, it would be `no'.
10443 libltdl_cv_sys_dlopen_deplibs=unknown
10446 # the two cases above should catch all versions of osf <= 5.1. Read
10447 # the comments above for what we know about them.
10448 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10449 # is used to find them so we can finally say `yes'.
10450 libltdl_cv_sys_dlopen_deplibs=yes
10453 libltdl_cv_sys_dlopen_deplibs=yes
10455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10456 libltdl_cv_sys_dlopen_deplibs=yes
10461 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10462 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10463 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10465 cat >>confdefs.h <<\_ACEOF
10466 #define LTDL_DLOPEN_DEPLIBS 1
10472 for ac_header in argz.h
10474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 ac_res=`eval echo '${'$as_ac_Header'}'`
10482 { echo "$as_me:$LINENO: result: $ac_res" >&5
10483 echo "${ECHO_T}$ac_res" >&6; }
10485 # Is the header compilable?
10486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 $ac_includes_default
10495 #include <$ac_header>
10497 rm -f conftest.$ac_objext
10498 if { (ac_try="$ac_compile"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_compile") 2>conftest.er1
10506 grep -v '^ *+' conftest.er1 >conftest.err
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10512 { (case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_try") 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; } &&
10521 { ac_try='test -s conftest.$ac_objext'
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_header_compiler=yes
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 ac_header_compiler=no
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10541 echo "${ECHO_T}$ac_header_compiler" >&6; }
10543 # Is the header present?
10544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10546 cat >conftest.$ac_ext <<_ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 #include <$ac_header>
10554 if { (ac_try="$ac_cpp conftest.$ac_ext"
10555 case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10562 grep -v '^ *+' conftest.er1 >conftest.err
10564 cat conftest.err >&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } >/dev/null; then
10567 if test -s conftest.err; then
10568 ac_cpp_err=$ac_c_preproc_warn_flag
10569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10576 if test -z "$ac_cpp_err"; then
10577 ac_header_preproc=yes
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10582 ac_header_preproc=no
10585 rm -f conftest.err conftest.$ac_ext
10586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10587 echo "${ECHO_T}$ac_header_preproc" >&6; }
10589 # So? What about this header?
10590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10596 ac_header_preproc=yes
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10612 ## ------------------------------------ ##
10613 ## Report this to http://llvm.org/bugs/ ##
10614 ## ------------------------------------ ##
10616 ) | sed "s/^/$as_me: WARNING: /" >&2
10619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 eval "$as_ac_Header=\$ac_header_preproc"
10626 ac_res=`eval echo '${'$as_ac_Header'}'`
10627 { echo "$as_me:$LINENO: result: $ac_res" >&5
10628 echo "${ECHO_T}$ac_res" >&6; }
10631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10632 cat >>confdefs.h <<_ACEOF
10633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10641 { echo "$as_me:$LINENO: checking for error_t" >&5
10642 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10643 if test "${ac_cv_type_error_t+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10656 typedef error_t ac__type_new_;
10660 if ((ac__type_new_ *) 0)
10662 if (sizeof (ac__type_new_))
10668 rm -f conftest.$ac_objext
10669 if { (ac_try="$ac_compile"
10670 case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_compile") 2>conftest.er1
10677 grep -v '^ *+' conftest.er1 >conftest.err
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10683 { (case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_try") 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest.$ac_objext'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 ac_cv_type_error_t=yes
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ac_cv_type_error_t=no
10710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10713 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10714 if test $ac_cv_type_error_t = yes; then
10716 cat >>confdefs.h <<_ACEOF
10717 #define HAVE_ERROR_T 1
10723 cat >>confdefs.h <<\_ACEOF
10724 #define error_t int
10735 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 cat >conftest.$ac_ext <<_ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10751 #define $ac_func innocuous_$ac_func
10753 /* System header to define __stub macros and hopefully few prototypes,
10754 which can conflict with char $ac_func (); below.
10755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10756 <limits.h> exists even on freestanding compilers. */
10759 # include <limits.h>
10761 # include <assert.h>
10766 /* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10773 /* The GNU C library defines this for functions which it implements
10774 to always fail with ENOSYS. Some functions are actually named
10775 something starting with __ and the normal name is an alias. */
10776 #if defined __stub_$ac_func || defined __stub___$ac_func
10783 return $ac_func ();
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (ac_try="$ac_link"
10790 case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_link") 2>conftest.er1
10797 grep -v '^ *+' conftest.er1 >conftest.err
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10803 { (case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_try") 2>&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; } &&
10812 { ac_try='test -s conftest$ac_exeext'
10813 { (case "(($ac_try" in
10814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815 *) ac_try_echo=$ac_try;;
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818 (eval "$ac_try") 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 eval "$as_ac_var=yes"
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 eval "$as_ac_var=no"
10830 rm -f core conftest.err conftest.$ac_objext \
10831 conftest$ac_exeext conftest.$ac_ext
10833 ac_res=`eval echo '${'$as_ac_var'}'`
10834 { echo "$as_me:$LINENO: result: $ac_res" >&5
10835 echo "${ECHO_T}$ac_res" >&6; }
10836 if test `eval echo '${'$as_ac_var'}'` = yes; then
10837 cat >>confdefs.h <<_ACEOF
10838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10866 for ac_header in errno.h malloc.h memory.h unistd.h
10868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 ac_res=`eval echo '${'$as_ac_Header'}'`
10876 { echo "$as_me:$LINENO: result: $ac_res" >&5
10877 echo "${ECHO_T}$ac_res" >&6; }
10879 # Is the header compilable?
10880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 $ac_includes_default
10889 #include <$ac_header>
10891 rm -f conftest.$ac_objext
10892 if { (ac_try="$ac_compile"
10893 case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_compile") 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10906 { (case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_try") 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest.$ac_objext'
10916 { (case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_try") 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_header_compiler=yes
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_header_compiler=no
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10935 echo "${ECHO_T}$ac_header_compiler" >&6; }
10937 # Is the header present?
10938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10940 cat >conftest.$ac_ext <<_ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 #include <$ac_header>
10948 if { (ac_try="$ac_cpp conftest.$ac_ext"
10949 case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10956 grep -v '^ *+' conftest.er1 >conftest.err
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } >/dev/null; then
10961 if test -s conftest.err; then
10962 ac_cpp_err=$ac_c_preproc_warn_flag
10963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10970 if test -z "$ac_cpp_err"; then
10971 ac_header_preproc=yes
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ac_header_preproc=no
10979 rm -f conftest.err conftest.$ac_ext
10980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10981 echo "${ECHO_T}$ac_header_preproc" >&6; }
10983 # So? What about this header?
10984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10990 ac_header_preproc=yes
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11006 ## ------------------------------------ ##
11007 ## Report this to http://llvm.org/bugs/ ##
11008 ## ------------------------------------ ##
11010 ) | sed "s/^/$as_me: WARNING: /" >&2
11013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 eval "$as_ac_Header=\$ac_header_preproc"
11020 ac_res=`eval echo '${'$as_ac_Header'}'`
11021 { echo "$as_me:$LINENO: result: $ac_res" >&5
11022 echo "${ECHO_T}$ac_res" >&6; }
11025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11026 cat >>confdefs.h <<_ACEOF
11027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11035 for ac_header in mach-o/dyld.h
11037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 ac_res=`eval echo '${'$as_ac_Header'}'`
11045 { echo "$as_me:$LINENO: result: $ac_res" >&5
11046 echo "${ECHO_T}$ac_res" >&6; }
11048 # Is the header compilable?
11049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 $ac_includes_default
11058 #include <$ac_header>
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
11069 grep -v '^ *+' conftest.er1 >conftest.err
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
11074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11075 { (case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_try") 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try='test -s conftest.$ac_objext'
11085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_header_compiler=yes
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_header_compiler=no
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104 echo "${ECHO_T}$ac_header_compiler" >&6; }
11106 # Is the header present?
11107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <$ac_header>
11117 if { (ac_try="$ac_cpp conftest.$ac_ext"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } >/dev/null; then
11130 if test -s conftest.err; then
11131 ac_cpp_err=$ac_c_preproc_warn_flag
11132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11139 if test -z "$ac_cpp_err"; then
11140 ac_header_preproc=yes
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ac_header_preproc=no
11148 rm -f conftest.err conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11150 echo "${ECHO_T}$ac_header_preproc" >&6; }
11152 # So? What about this header?
11153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11159 ac_header_preproc=yes
11162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11175 ## ------------------------------------ ##
11176 ## Report this to http://llvm.org/bugs/ ##
11177 ## ------------------------------------ ##
11179 ) | sed "s/^/$as_me: WARNING: /" >&2
11182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 eval "$as_ac_Header=\$ac_header_preproc"
11189 ac_res=`eval echo '${'$as_ac_Header'}'`
11190 { echo "$as_me:$LINENO: result: $ac_res" >&5
11191 echo "${ECHO_T}$ac_res" >&6; }
11194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11195 cat >>confdefs.h <<_ACEOF
11196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11207 for ac_func in closedir opendir readdir
11209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 cat >conftest.$ac_ext <<_ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11223 #define $ac_func innocuous_$ac_func
11225 /* System header to define __stub macros and hopefully few prototypes,
11226 which can conflict with char $ac_func (); below.
11227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11228 <limits.h> exists even on freestanding compilers. */
11231 # include <limits.h>
11233 # include <assert.h>
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11245 /* The GNU C library defines this for functions which it implements
11246 to always fail with ENOSYS. Some functions are actually named
11247 something starting with __ and the normal name is an alias. */
11248 #if defined __stub_$ac_func || defined __stub___$ac_func
11255 return $ac_func ();
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_link") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest$ac_exeext'
11285 { (case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_try") 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 eval "$as_ac_var=yes"
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 eval "$as_ac_var=no"
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11305 ac_res=`eval echo '${'$as_ac_var'}'`
11306 { echo "$as_me:$LINENO: result: $ac_res" >&5
11307 echo "${ECHO_T}$ac_res" >&6; }
11308 if test `eval echo '${'$as_ac_var'}'` = yes; then
11309 cat >>confdefs.h <<_ACEOF
11310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11318 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11319 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11332 if test "$GCC" != "yes" && test "$ICC" != "yes"
11334 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11335 echo "$as_me: error: gcc|icc required but not found" >&2;}
11336 { (exit 1); exit 1; }; }
11339 if test "$GXX" != "yes" && test "$IXX" != "yes"
11341 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11342 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11343 { (exit 1); exit 1; }; }
11346 if test "$GCC" = "yes"
11348 cat >conftest.$ac_ext <<_ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11356 #if !defined(__GNUC__) || __GNUC__ < 3
11357 #error Unsupported GCC version
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11371 grep -v '^ *+' conftest.er1 >conftest.err
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_try") 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11402 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11403 { (exit 1); exit 1; }; }
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409 if test -z "$llvm_cv_gnu_make_command"
11411 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11412 echo "$as_me: error: GNU Make required but not found" >&2;}
11413 { (exit 1); exit 1; }; }
11416 { echo "$as_me:$LINENO: result: ok" >&5
11417 echo "${ECHO_T}ok" >&6; }
11419 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11420 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11421 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11423 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11425 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11429 NO_MAYBE_UNINITIALIZED=
11430 if test "$GXX" = "yes"
11432 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11434 if test -z "$NO_MAYBE_UNINITIALIZED"
11436 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11440 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11441 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11444 # Check whether --with-python was given.
11445 if test "${with_python+set}" = set; then
11446 withval=$with_python; PYTHON="$withval"
11450 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11451 { echo "$as_me:$LINENO: checking for python" >&5
11452 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11453 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11454 echo "${ECHO_T}user defined: $with_python" >&6; }
11456 if test -n "$PYTHON" ; then
11457 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11458 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11461 # Extract the first word of "python python2 python26", so it can be a program name with args.
11462 set dummy python python2 python26; ac_word=$2
11463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11465 if test "${ac_cv_path_PYTHON+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11480 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11489 echo "${ECHO_T}not found" >&6; }
11490 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11491 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11492 { (exit 1); exit 1; }; }"
11496 PYTHON=$ac_cv_path_PYTHON
11497 if test -n "$PYTHON"; then
11498 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11499 echo "${ECHO_T}$PYTHON" >&6; }
11501 { echo "$as_me:$LINENO: result: no" >&5
11502 echo "${ECHO_T}no" >&6; }
11508 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11509 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11510 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11511 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11512 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11513 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11514 if test "$ac_python_version_major" -gt "2" || \
11515 (test "$ac_python_version_major" -eq "2" && \
11516 test "$ac_python_version_minor" -ge "5") ; then
11517 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11518 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11520 { echo "$as_me:$LINENO: result: not found" >&5
11521 echo "${ECHO_T}not found" >&6; }
11522 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11523 See \`config.log' for more details." >&5
11524 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11525 See \`config.log' for more details." >&2;}
11526 { (exit 1); exit 1; }; }
11531 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11532 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11533 if test "${ac_cv_lib_m_sin+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 ac_check_lib_save_LIBS=$LIBS
11538 cat >conftest.$ac_ext <<_ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (ac_try="$ac_link"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
11569 grep -v '^ *+' conftest.er1 >conftest.err
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_try") 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try='test -s conftest$ac_exeext'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_cv_lib_m_sin=yes
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11606 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11607 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11608 if test $ac_cv_lib_m_sin = yes; then
11609 cat >>confdefs.h <<_ACEOF
11610 #define HAVE_LIBM 1
11617 if test "$llvm_cv_os_type" = "MingW" ; then
11619 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11620 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11621 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-limagehlp $LIBS"
11626 cat >conftest.$ac_ext <<_ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (ac_try="$ac_link"
11644 case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_link") 2>conftest.er1
11651 grep -v '^ *+' conftest.er1 >conftest.err
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11657 { (case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_try") 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; } &&
11666 { ac_try='test -s conftest$ac_exeext'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 ac_cv_lib_imagehlp_main=yes
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 ac_cv_lib_imagehlp_main=no
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 LIBS=$ac_check_lib_save_LIBS
11688 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11689 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11690 if test $ac_cv_lib_imagehlp_main = yes; then
11691 cat >>confdefs.h <<_ACEOF
11692 #define HAVE_LIBIMAGEHLP 1
11695 LIBS="-limagehlp $LIBS"
11700 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11701 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11702 if test "${ac_cv_lib_psapi_main+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-lpsapi $LIBS"
11707 cat >conftest.$ac_ext <<_ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (ac_try="$ac_link"
11725 case "(($ac_try" in
11726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727 *) ac_try_echo=$ac_try;;
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730 (eval "$ac_link") 2>conftest.er1
11732 grep -v '^ *+' conftest.er1 >conftest.err
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11738 { (case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743 (eval "$ac_try") 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try='test -s conftest$ac_exeext'
11748 { (case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753 (eval "$ac_try") 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 ac_cv_lib_psapi_main=yes
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 ac_cv_lib_psapi_main=no
11765 rm -f core conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_lib_save_LIBS
11769 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
11770 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
11771 if test $ac_cv_lib_psapi_main = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773 #define HAVE_LIBPSAPI 1
11776 LIBS="-lpsapi $LIBS"
11781 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
11782 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
11783 if test "${ac_cv_lib_shell32_main+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 ac_check_lib_save_LIBS=$LIBS
11787 LIBS="-lshell32 $LIBS"
11788 cat >conftest.$ac_ext <<_ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (ac_try="$ac_link"
11806 case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_link") 2>conftest.er1
11813 grep -v '^ *+' conftest.er1 >conftest.err
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
11818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11819 { (case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_try") 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest$ac_exeext'
11829 { (case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_try") 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 ac_cv_lib_shell32_main=yes
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_cv_lib_shell32_main=no
11846 rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_lib_save_LIBS
11850 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
11851 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
11852 if test $ac_cv_lib_shell32_main = yes; then
11853 cat >>confdefs.h <<_ACEOF
11854 #define HAVE_LIBSHELL32 1
11857 LIBS="-lshell32 $LIBS"
11863 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11864 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11865 if test "${ac_cv_search_dlopen+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 ac_func_search_save_LIBS=$LIBS
11869 cat >conftest.$ac_ext <<_ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11891 for ac_lib in '' dl; do
11892 if test -z "$ac_lib"; then
11893 ac_res="none required"
11896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11898 rm -f conftest.$ac_objext conftest$ac_exeext
11899 if { (ac_try="$ac_link"
11900 case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_link") 2>conftest.er1
11907 grep -v '^ *+' conftest.er1 >conftest.err
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; } &&
11922 { ac_try='test -s conftest$ac_exeext'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 ac_cv_search_dlopen=$ac_res
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11940 rm -f core conftest.err conftest.$ac_objext \
11942 if test "${ac_cv_search_dlopen+set}" = set; then
11946 if test "${ac_cv_search_dlopen+set}" = set; then
11949 ac_cv_search_dlopen=no
11951 rm conftest.$ac_ext
11952 LIBS=$ac_func_search_save_LIBS
11954 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11955 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11956 ac_res=$ac_cv_search_dlopen
11957 if test "$ac_res" != no; then
11958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11960 cat >>confdefs.h <<\_ACEOF
11961 #define HAVE_DLOPEN 1
11965 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
11966 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
11970 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
11971 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
11972 if test "${ac_cv_search_clock_gettime+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 ac_func_search_save_LIBS=$LIBS
11976 cat >conftest.$ac_ext <<_ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11983 /* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11989 char clock_gettime ();
11993 return clock_gettime ();
11998 for ac_lib in '' rt; do
11999 if test -z "$ac_lib"; then
12000 ac_res="none required"
12003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12005 rm -f conftest.$ac_objext conftest$ac_exeext
12006 if { (ac_try="$ac_link"
12007 case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_link") 2>conftest.er1
12014 grep -v '^ *+' conftest.er1 >conftest.err
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12020 { (case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_try") 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; } &&
12029 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_search_clock_gettime=$ac_res
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12047 rm -f core conftest.err conftest.$ac_objext \
12049 if test "${ac_cv_search_clock_gettime+set}" = set; then
12053 if test "${ac_cv_search_clock_gettime+set}" = set; then
12056 ac_cv_search_clock_gettime=no
12058 rm conftest.$ac_ext
12059 LIBS=$ac_func_search_save_LIBS
12061 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12062 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12063 ac_res=$ac_cv_search_clock_gettime
12064 if test "$ac_res" != no; then
12065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12070 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12071 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12072 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12073 if test "${ac_cv_search_setupterm+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 ac_func_search_save_LIBS=$LIBS
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12094 return setupterm ();
12099 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12100 if test -z "$ac_lib"; then
12101 ac_res="none required"
12104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_link") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121 { (case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_try") 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest$ac_exeext'
12131 { (case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_try") 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_cv_search_setupterm=$ac_res
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12148 rm -f core conftest.err conftest.$ac_objext \
12150 if test "${ac_cv_search_setupterm+set}" = set; then
12154 if test "${ac_cv_search_setupterm+set}" = set; then
12157 ac_cv_search_setupterm=no
12159 rm conftest.$ac_ext
12160 LIBS=$ac_func_search_save_LIBS
12162 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12163 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12164 ac_res=$ac_cv_search_setupterm
12165 if test "$ac_res" != no; then
12166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12168 cat >>confdefs.h <<\_ACEOF
12169 #define HAVE_TERMINFO 1
12176 if test "$llvm_cv_enable_libffi" = "yes" ; then
12177 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12178 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12179 if test "${ac_cv_search_ffi_call+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 ac_func_search_save_LIBS=$LIBS
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12200 return ffi_call ();
12205 for ac_lib in '' ffi; do
12206 if test -z "$ac_lib"; then
12207 ac_res="none required"
12210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12227 { (case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232 (eval "$ac_try") 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } &&
12236 { ac_try='test -s conftest$ac_exeext'
12237 { (case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_try") 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 ac_cv_search_ffi_call=$ac_res
12248 echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12254 rm -f core conftest.err conftest.$ac_objext \
12256 if test "${ac_cv_search_ffi_call+set}" = set; then
12260 if test "${ac_cv_search_ffi_call+set}" = set; then
12263 ac_cv_search_ffi_call=no
12265 rm conftest.$ac_ext
12266 LIBS=$ac_func_search_save_LIBS
12268 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12269 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12270 ac_res=$ac_cv_search_ffi_call
12271 if test "$ac_res" != no; then
12272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12274 cat >>confdefs.h <<\_ACEOF
12275 #define HAVE_FFI_CALL 1
12279 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12280 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12281 { (exit 1); exit 1; }; }
12286 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12287 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12288 if test "${ac_cv_search_mallinfo+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 ac_func_search_save_LIBS=$LIBS
12292 cat >conftest.$ac_ext <<_ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h. */
12299 /* Override any GCC internal prototype to avoid an error.
12300 Use char because int might match the return type of a GCC
12301 builtin and then its argument prototype would still apply. */
12309 return mallinfo ();
12314 for ac_lib in '' malloc; do
12315 if test -z "$ac_lib"; then
12316 ac_res="none required"
12319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12321 rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (ac_try="$ac_link"
12323 case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_link") 2>conftest.er1
12330 grep -v '^ *+' conftest.er1 >conftest.err
12332 cat conftest.err >&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
12335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12336 { (case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_try") 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; } &&
12345 { ac_try='test -s conftest$ac_exeext'
12346 { (case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_try") 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12355 ac_cv_search_mallinfo=$ac_res
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12363 rm -f core conftest.err conftest.$ac_objext \
12365 if test "${ac_cv_search_mallinfo+set}" = set; then
12369 if test "${ac_cv_search_mallinfo+set}" = set; then
12372 ac_cv_search_mallinfo=no
12374 rm conftest.$ac_ext
12375 LIBS=$ac_func_search_save_LIBS
12377 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12378 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12379 ac_res=$ac_cv_search_mallinfo
12380 if test "$ac_res" != no; then
12381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12383 cat >>confdefs.h <<\_ACEOF
12384 #define HAVE_MALLINFO 1
12390 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12392 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12393 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12394 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-lpthread $LIBS"
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12406 /* Override any GCC internal prototype to avoid an error.
12407 Use char because int might match the return type of a GCC
12408 builtin and then its argument prototype would still apply. */
12412 char pthread_mutex_init ();
12416 return pthread_mutex_init ();
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest$ac_exeext'
12446 { (case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_try") 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 ac_cv_lib_pthread_pthread_mutex_init=yes
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_cv_lib_pthread_pthread_mutex_init=no
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12467 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12468 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12469 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12470 cat >>confdefs.h <<_ACEOF
12471 #define HAVE_LIBPTHREAD 1
12474 LIBS="-lpthread $LIBS"
12478 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12479 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12480 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 ac_func_search_save_LIBS=$LIBS
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12491 /* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
12497 char pthread_mutex_lock ();
12501 return pthread_mutex_lock ();
12506 for ac_lib in '' pthread; do
12507 if test -z "$ac_lib"; then
12508 ac_res="none required"
12511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (ac_try="$ac_link"
12515 case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_link") 2>conftest.er1
12522 grep -v '^ *+' conftest.er1 >conftest.err
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528 { (case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_try") 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_try") 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_cv_search_pthread_mutex_lock=$ac_res
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12555 rm -f core conftest.err conftest.$ac_objext \
12557 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12561 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12564 ac_cv_search_pthread_mutex_lock=no
12566 rm conftest.$ac_ext
12567 LIBS=$ac_func_search_save_LIBS
12569 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12570 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12571 ac_res=$ac_cv_search_pthread_mutex_lock
12572 if test "$ac_res" != no; then
12573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12575 cat >>confdefs.h <<\_ACEOF
12576 #define HAVE_PTHREAD_MUTEX_LOCK 1
12581 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12582 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12583 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 ac_func_search_save_LIBS=$LIBS
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12600 char pthread_rwlock_init ();
12604 return pthread_rwlock_init ();
12609 for ac_lib in '' pthread; do
12610 if test -z "$ac_lib"; then
12611 ac_res="none required"
12614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>conftest.er1
12625 grep -v '^ *+' conftest.er1 >conftest.err
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest$ac_exeext'
12641 { (case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_try") 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_cv_search_pthread_rwlock_init=$ac_res
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12658 rm -f core conftest.err conftest.$ac_objext \
12660 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12664 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12667 ac_cv_search_pthread_rwlock_init=no
12669 rm conftest.$ac_ext
12670 LIBS=$ac_func_search_save_LIBS
12672 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12673 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12674 ac_res=$ac_cv_search_pthread_rwlock_init
12675 if test "$ac_res" != no; then
12676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12678 cat >>confdefs.h <<\_ACEOF
12679 #define HAVE_PTHREAD_RWLOCK_INIT 1
12684 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12685 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12686 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 ac_func_search_save_LIBS=$LIBS
12690 cat >conftest.$ac_ext <<_ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12697 /* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
12703 char pthread_getspecific ();
12707 return pthread_getspecific ();
12712 for ac_lib in '' pthread; do
12713 if test -z "$ac_lib"; then
12714 ac_res="none required"
12717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12719 rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12728 grep -v '^ *+' conftest.er1 >conftest.err
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
12733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12734 { (case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_try") 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest$ac_exeext'
12744 { (case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_try") 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 ac_cv_search_pthread_getspecific=$ac_res
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12761 rm -f core conftest.err conftest.$ac_objext \
12763 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12767 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12770 ac_cv_search_pthread_getspecific=no
12772 rm conftest.$ac_ext
12773 LIBS=$ac_func_search_save_LIBS
12775 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12776 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12777 ac_res=$ac_cv_search_pthread_getspecific
12778 if test "$ac_res" != no; then
12779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12781 cat >>confdefs.h <<\_ACEOF
12782 #define HAVE_PTHREAD_GETSPECIFIC 1
12789 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12791 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12792 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
12793 if test "${ac_cv_lib_z_compress2+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 ac_check_lib_save_LIBS=$LIBS
12798 cat >conftest.$ac_ext <<_ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12815 return compress2 ();
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_link") 2>conftest.er1
12829 grep -v '^ *+' conftest.er1 >conftest.err
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
12834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12835 { (case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_try") 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest$ac_exeext'
12845 { (case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_try") 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; }; then
12854 ac_cv_lib_z_compress2=yes
12856 echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12859 ac_cv_lib_z_compress2=no
12862 rm -f core conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
12864 LIBS=$ac_check_lib_save_LIBS
12866 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
12867 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
12868 if test $ac_cv_lib_z_compress2 = yes; then
12869 cat >>confdefs.h <<_ACEOF
12870 #define HAVE_LIBZ 1
12880 # Check whether --with-udis86 was given.
12881 if test "${with_udis86+set}" = set; then
12882 withval=$with_udis86;
12887 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12890 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12891 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12892 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 ac_check_lib_save_LIBS=$LIBS
12896 LIBS="-ludis86 $LIBS"
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12919 rm -f conftest.$ac_objext conftest$ac_exeext
12920 if { (ac_try="$ac_link"
12921 case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_link") 2>conftest.er1
12928 grep -v '^ *+' conftest.er1 >conftest.err
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12934 { (case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939 (eval "$ac_try") 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } &&
12943 { ac_try='test -s conftest$ac_exeext'
12944 { (case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_try") 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_cv_lib_udis86_ud_init=yes
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12958 ac_cv_lib_udis86_ud_init=no
12961 rm -f core conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12963 LIBS=$ac_check_lib_save_LIBS
12965 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
12966 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
12967 if test $ac_cv_lib_udis86_ud_init = yes; then
12968 cat >>confdefs.h <<_ACEOF
12969 #define HAVE_LIBUDIS86 1
12972 LIBS="-ludis86 $LIBS"
12976 echo "Error! You need to have libudis86 around."
12988 cat >>confdefs.h <<_ACEOF
12989 #define USE_UDIS86 $USE_UDIS86
12994 # Check whether --with-oprofile was given.
12995 if test "${with_oprofile+set}" = set; then
12996 withval=$with_oprofile;
13000 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13001 no) llvm_cv_oppath=
13004 *) llvm_cv_oppath="${withval}/lib/oprofile"
13005 CPPFLAGS="-I${withval}/include";;
13007 case $llvm_cv_os_type in
13009 if test -n "$llvm_cv_oppath" ; then
13010 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13011 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13012 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13013 if test "${ac_cv_search_bfd_init+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 ac_func_search_save_LIBS=$LIBS
13017 cat >conftest.$ac_ext <<_ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13024 /* Override any GCC internal prototype to avoid an error.
13025 Use char because int might match the return type of a GCC
13026 builtin and then its argument prototype would still apply. */
13034 return bfd_init ();
13039 for ac_lib in '' bfd; do
13040 if test -z "$ac_lib"; then
13041 ac_res="none required"
13044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13046 rm -f conftest.$ac_objext conftest$ac_exeext
13047 if { (ac_try="$ac_link"
13048 case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_link") 2>conftest.er1
13055 grep -v '^ *+' conftest.er1 >conftest.err
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13061 { (case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_try") 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest$ac_exeext'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_cv_search_bfd_init=$ac_res
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13088 rm -f core conftest.err conftest.$ac_objext \
13090 if test "${ac_cv_search_bfd_init+set}" = set; then
13094 if test "${ac_cv_search_bfd_init+set}" = set; then
13097 ac_cv_search_bfd_init=no
13099 rm conftest.$ac_ext
13100 LIBS=$ac_func_search_save_LIBS
13102 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13103 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13104 ac_res=$ac_cv_search_bfd_init
13105 if test "$ac_res" != no; then
13106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13110 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13111 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13112 if test "${ac_cv_search_op_open_agent+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 ac_func_search_save_LIBS=$LIBS
13116 cat >conftest.$ac_ext <<_ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13123 /* Override any GCC internal prototype to avoid an error.
13124 Use char because int might match the return type of a GCC
13125 builtin and then its argument prototype would still apply. */
13129 char op_open_agent ();
13133 return op_open_agent ();
13138 for ac_lib in '' opagent; do
13139 if test -z "$ac_lib"; then
13140 ac_res="none required"
13143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (ac_try="$ac_link"
13147 case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_link") 2>conftest.er1
13154 grep -v '^ *+' conftest.er1 >conftest.err
13156 cat conftest.err >&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13160 { (case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165 (eval "$ac_try") 2>&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; } &&
13169 { ac_try='test -s conftest$ac_exeext'
13170 { (case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_try") 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13179 ac_cv_search_op_open_agent=$ac_res
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13187 rm -f core conftest.err conftest.$ac_objext \
13189 if test "${ac_cv_search_op_open_agent+set}" = set; then
13193 if test "${ac_cv_search_op_open_agent+set}" = set; then
13196 ac_cv_search_op_open_agent=no
13198 rm conftest.$ac_ext
13199 LIBS=$ac_func_search_save_LIBS
13201 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13202 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13203 ac_res=$ac_cv_search_op_open_agent
13204 if test "$ac_res" != no; then
13205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13209 echo "Error! You need to have libopagent around."
13214 if test "${ac_cv_header_opagent_h+set}" = set; then
13215 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13216 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13217 if test "${ac_cv_header_opagent_h+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13221 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13223 # Is the header compilable?
13224 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13225 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 $ac_includes_default
13233 #include <opagent.h>
13235 rm -f conftest.$ac_objext
13236 if { (ac_try="$ac_compile"
13237 case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_compile") 2>conftest.er1
13244 grep -v '^ *+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try='test -s conftest.$ac_objext'
13260 { (case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_try") 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_header_compiler=yes
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13274 ac_header_compiler=no
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6; }
13281 # Is the header present?
13282 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13283 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13284 cat >conftest.$ac_ext <<_ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 #include <opagent.h>
13292 if { (ac_try="$ac_cpp conftest.$ac_ext"
13293 case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13300 grep -v '^ *+' conftest.er1 >conftest.err
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev/null; then
13305 if test -s conftest.err; then
13306 ac_cpp_err=$ac_c_preproc_warn_flag
13307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13314 if test -z "$ac_cpp_err"; then
13315 ac_header_preproc=yes
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_header_preproc=no
13323 rm -f conftest.err conftest.$ac_ext
13324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13325 echo "${ECHO_T}$ac_header_preproc" >&6; }
13327 # So? What about this header?
13328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13330 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13331 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13333 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13334 ac_header_preproc=yes
13337 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13338 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13340 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13342 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13344 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13346 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13348 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13350 ## ------------------------------------ ##
13351 ## Report this to http://llvm.org/bugs/ ##
13352 ## ------------------------------------ ##
13354 ) | sed "s/^/$as_me: WARNING: /" >&2
13357 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13358 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13359 if test "${ac_cv_header_opagent_h+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 ac_cv_header_opagent_h=$ac_header_preproc
13364 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13365 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13368 if test $ac_cv_header_opagent_h = yes; then
13372 echo "Error! You need to have opagent.h around."
13380 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13381 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13382 { (exit 1); exit 1; }; } ;;
13393 cat >>confdefs.h <<_ACEOF
13394 #define LLVM_USE_OPROFILE $USE_OPROFILE
13399 # Check whether --with-intel-jitevents was given.
13400 if test "${with_intel_jitevents+set}" = set; then
13401 withval=$with_intel_jitevents;
13403 yes) USE_INTEL_JITEVENTS=1
13405 no) USE_INTEL_JITEVENTS=0
13407 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13408 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13409 { (exit 1); exit 1; }; };;
13412 case $llvm_cv_os_type in
13413 Linux|Win32|Cygwin|MingW) ;;
13414 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13415 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13416 { (exit 1); exit 1; }; };;
13419 case "$llvm_cv_target_arch" in
13421 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13422 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13423 { (exit 1); exit 1; }; };;
13428 USE_INTEL_JITEVENTS=0
13434 cat >>confdefs.h <<_ACEOF
13435 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13439 for ac_prog in xml2-config
13441 # Extract the first word of "$ac_prog", so it can be a program name with args.
13442 set dummy $ac_prog; ac_word=$2
13443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13445 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 if test -n "$XML2CONFIG"; then
13449 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13452 for as_dir in $PATH
13455 test -z "$as_dir" && as_dir=.
13456 for ac_exec_ext in '' $ac_executable_extensions; do
13457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13458 ac_cv_prog_XML2CONFIG="$ac_prog"
13459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13468 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13469 if test -n "$XML2CONFIG"; then
13470 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13471 echo "${ECHO_T}$XML2CONFIG" >&6; }
13473 { echo "$as_me:$LINENO: result: no" >&5
13474 echo "${ECHO_T}no" >&6; }
13478 test -n "$XML2CONFIG" && break
13482 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13483 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13484 if test "x$XML2CONFIG" = "x"; then
13485 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13486 echo "${ECHO_T}xml2-config not found" >&6; }
13488 LIBXML2_INC=`$XML2CONFIG --cflags`
13489 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13490 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13491 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13492 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13493 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 ac_check_lib_save_LIBS=$LIBS
13497 LIBS="-lxml2 $LIBS"
13498 cat >conftest.$ac_ext <<_ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13505 /* Override any GCC internal prototype to avoid an error.
13506 Use char because int might match the return type of a GCC
13507 builtin and then its argument prototype would still apply. */
13511 char xmlReadFile ();
13515 return xmlReadFile ();
13520 rm -f conftest.$ac_objext conftest$ac_exeext
13521 if { (ac_try="$ac_link"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_link") 2>conftest.er1
13529 grep -v '^ *+' conftest.er1 >conftest.err
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } &&
13534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13535 { (case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13540 (eval "$ac_try") 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; } &&
13544 { ac_try='test -s conftest$ac_exeext'
13545 { (case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_try") 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_cv_lib_xml2_xmlReadFile=yes
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13559 ac_cv_lib_xml2_xmlReadFile=no
13562 rm -f core conftest.err conftest.$ac_objext \
13563 conftest$ac_exeext conftest.$ac_ext
13564 LIBS=$ac_check_lib_save_LIBS
13566 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13567 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13568 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13570 cat >>confdefs.h <<\_ACEOF
13571 #define CLANG_HAVE_LIBXML 1
13574 LIBXML2_LIBS="-lxml2"
13587 ac_header_dirent=no
13588 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13589 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13590 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13591 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 cat >conftest.$ac_ext <<_ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 #include <sys/types.h>
13613 rm -f conftest.$ac_objext
13614 if { (ac_try="$ac_compile"
13615 case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_compile") 2>conftest.er1
13622 grep -v '^ *+' conftest.er1 >conftest.err
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13628 { (case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_try") 2>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; } &&
13637 { ac_try='test -s conftest.$ac_objext'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_try") 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 eval "$as_ac_Header=yes"
13649 echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13652 eval "$as_ac_Header=no"
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 ac_res=`eval echo '${'$as_ac_Header'}'`
13658 { echo "$as_me:$LINENO: result: $ac_res" >&5
13659 echo "${ECHO_T}$ac_res" >&6; }
13660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13661 cat >>confdefs.h <<_ACEOF
13662 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13665 ac_header_dirent=$ac_hdr; break
13669 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13670 if test $ac_header_dirent = dirent.h; then
13671 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13672 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13673 if test "${ac_cv_search_opendir+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 ac_func_search_save_LIBS=$LIBS
13677 cat >conftest.$ac_ext <<_ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13684 /* Override any GCC internal prototype to avoid an error.
13685 Use char because int might match the return type of a GCC
13686 builtin and then its argument prototype would still apply. */
13699 for ac_lib in '' dir; do
13700 if test -z "$ac_lib"; then
13701 ac_res="none required"
13704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13706 rm -f conftest.$ac_objext conftest$ac_exeext
13707 if { (ac_try="$ac_link"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_link") 2>conftest.er1
13715 grep -v '^ *+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13721 { (case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_try") 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; } &&
13730 { ac_try='test -s conftest$ac_exeext'
13731 { (case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_try") 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13740 ac_cv_search_opendir=$ac_res
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13748 rm -f core conftest.err conftest.$ac_objext \
13750 if test "${ac_cv_search_opendir+set}" = set; then
13754 if test "${ac_cv_search_opendir+set}" = set; then
13757 ac_cv_search_opendir=no
13759 rm conftest.$ac_ext
13760 LIBS=$ac_func_search_save_LIBS
13762 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13763 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13764 ac_res=$ac_cv_search_opendir
13765 if test "$ac_res" != no; then
13766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13771 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13772 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13773 if test "${ac_cv_search_opendir+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 ac_func_search_save_LIBS=$LIBS
13777 cat >conftest.$ac_ext <<_ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13784 /* Override any GCC internal prototype to avoid an error.
13785 Use char because int might match the return type of a GCC
13786 builtin and then its argument prototype would still apply. */
13799 for ac_lib in '' x; do
13800 if test -z "$ac_lib"; then
13801 ac_res="none required"
13804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13806 rm -f conftest.$ac_objext conftest$ac_exeext
13807 if { (ac_try="$ac_link"
13808 case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_link") 2>conftest.er1
13815 grep -v '^ *+' conftest.er1 >conftest.err
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13821 { (case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_try") 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest$ac_exeext'
13831 { (case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_try") 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_cv_search_opendir=$ac_res
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13848 rm -f core conftest.err conftest.$ac_objext \
13850 if test "${ac_cv_search_opendir+set}" = set; then
13854 if test "${ac_cv_search_opendir+set}" = set; then
13857 ac_cv_search_opendir=no
13859 rm conftest.$ac_ext
13860 LIBS=$ac_func_search_save_LIBS
13862 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13863 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13864 ac_res=$ac_cv_search_opendir
13865 if test "$ac_res" != no; then
13866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13872 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13873 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13874 if test "${ac_cv_header_mmap_anon+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 ac_cpp='$CPP $CPPFLAGS'
13879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13883 cat >conftest.$ac_ext <<_ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13889 #include <sys/mman.h>
13890 #include <unistd.h>
13895 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13900 rm -f conftest.$ac_objext
13901 if { (ac_try="$ac_compile"
13902 case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_compile") 2>conftest.er1
13909 grep -v '^ *+' conftest.er1 >conftest.err
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13915 { (case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_try") 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } &&
13924 { ac_try='test -s conftest.$ac_objext'
13925 { (case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_try") 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_cv_header_mmap_anon=yes
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13939 ac_cv_header_mmap_anon=no
13942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 ac_cpp='$CPP $CPPFLAGS'
13945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13951 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13952 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13953 if test "$ac_cv_header_mmap_anon" = yes; then
13955 cat >>confdefs.h <<\_ACEOF
13956 #define HAVE_MMAP_ANONYMOUS 1
13961 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13962 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13963 if test "${ac_cv_header_stat_broken+set}" = set; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 cat >conftest.$ac_ext <<_ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 #include <sys/types.h>
13973 #include <sys/stat.h>
13975 #if defined S_ISBLK && defined S_IFDIR
13976 # if S_ISBLK (S_IFDIR)
13981 #if defined S_ISBLK && defined S_IFCHR
13982 # if S_ISBLK (S_IFCHR)
13987 #if defined S_ISLNK && defined S_IFREG
13988 # if S_ISLNK (S_IFREG)
13993 #if defined S_ISSOCK && defined S_IFREG
13994 # if S_ISSOCK (S_IFREG)
14000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14001 $EGREP "You lose" >/dev/null 2>&1; then
14002 ac_cv_header_stat_broken=yes
14004 ac_cv_header_stat_broken=no
14009 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14010 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14011 if test $ac_cv_header_stat_broken = yes; then
14013 cat >>confdefs.h <<\_ACEOF
14014 #define STAT_MACROS_BROKEN 1
14019 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14020 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14021 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 cat >conftest.$ac_ext <<_ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 #include <sys/types.h>
14031 #include <sys/wait.h>
14032 #ifndef WEXITSTATUS
14033 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14036 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14044 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14049 rm -f conftest.$ac_objext
14050 if { (ac_try="$ac_compile"
14051 case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056 (eval "$ac_compile") 2>conftest.er1
14058 grep -v '^ *+' conftest.er1 >conftest.err
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
14063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14064 { (case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_try") 2>&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; } &&
14073 { ac_try='test -s conftest.$ac_objext'
14074 { (case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_try") 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_cv_header_sys_wait_h=yes
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14088 ac_cv_header_sys_wait_h=no
14091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14093 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14094 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14095 if test $ac_cv_header_sys_wait_h = yes; then
14097 cat >>confdefs.h <<\_ACEOF
14098 #define HAVE_SYS_WAIT_H 1
14103 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14104 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14105 if test "${ac_cv_header_time+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 cat >conftest.$ac_ext <<_ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 #include <sys/types.h>
14115 #include <sys/time.h>
14121 if ((struct tm *) 0)
14127 rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_compile") 2>conftest.er1
14136 grep -v '^ *+' conftest.er1 >conftest.err
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14142 { (case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_try") 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; } &&
14151 { ac_try='test -s conftest.$ac_objext'
14152 { (case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_try") 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_cv_header_time=yes
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ac_cv_header_time=no
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14172 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14173 if test $ac_cv_header_time = yes; then
14175 cat >>confdefs.h <<\_ACEOF
14176 #define TIME_WITH_SYS_TIME 1
14183 ac_cpp='$CXXCPP $CPPFLAGS'
14184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14189 ac_cpp='$CXXCPP $CPPFLAGS'
14190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14193 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14194 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14195 if test -z "$CXXCPP"; then
14196 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 # Double quotes because CXXCPP needs to be expanded
14200 for CXXCPP in "$CXX -E" "/lib/cpp"
14202 ac_preproc_ok=false
14203 for ac_cxx_preproc_warn_flag in '' yes
14205 # Use a header file that comes with gcc, so configuring glibc
14206 # with a fresh cross-compiler works.
14207 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14208 # <limits.h> exists even on freestanding compilers.
14209 # On the NeXT, cc -E runs the code through the compiler's parser,
14210 # not just through cpp. "Syntax error" is here to catch this case.
14211 cat >conftest.$ac_ext <<_ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14218 # include <limits.h>
14220 # include <assert.h>
14224 if { (ac_try="$ac_cpp conftest.$ac_ext"
14225 case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14232 grep -v '^ *+' conftest.er1 >conftest.err
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } >/dev/null; then
14237 if test -s conftest.err; then
14238 ac_cpp_err=$ac_cxx_preproc_warn_flag
14239 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14246 if test -z "$ac_cpp_err"; then
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 # Broken: fails on valid input.
14256 rm -f conftest.err conftest.$ac_ext
14258 # OK, works on sane cases. Now check whether nonexistent headers
14259 # can be detected and how.
14260 cat >conftest.$ac_ext <<_ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 #include <ac_nonexistent.h>
14268 if { (ac_try="$ac_cpp conftest.$ac_ext"
14269 case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14276 grep -v '^ *+' conftest.er1 >conftest.err
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } >/dev/null; then
14281 if test -s conftest.err; then
14282 ac_cpp_err=$ac_cxx_preproc_warn_flag
14283 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14290 if test -z "$ac_cpp_err"; then
14291 # Broken: success on invalid input.
14294 echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14297 # Passes both tests.
14302 rm -f conftest.err conftest.$ac_ext
14305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14306 rm -f conftest.err conftest.$ac_ext
14307 if $ac_preproc_ok; then
14312 ac_cv_prog_CXXCPP=$CXXCPP
14315 CXXCPP=$ac_cv_prog_CXXCPP
14317 ac_cv_prog_CXXCPP=$CXXCPP
14319 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14320 echo "${ECHO_T}$CXXCPP" >&6; }
14321 ac_preproc_ok=false
14322 for ac_cxx_preproc_warn_flag in '' yes
14324 # Use a header file that comes with gcc, so configuring glibc
14325 # with a fresh cross-compiler works.
14326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14327 # <limits.h> exists even on freestanding compilers.
14328 # On the NeXT, cc -E runs the code through the compiler's parser,
14329 # not just through cpp. "Syntax error" is here to catch this case.
14330 cat >conftest.$ac_ext <<_ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14337 # include <limits.h>
14339 # include <assert.h>
14343 if { (ac_try="$ac_cpp conftest.$ac_ext"
14344 case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14351 grep -v '^ *+' conftest.er1 >conftest.err
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } >/dev/null; then
14356 if test -s conftest.err; then
14357 ac_cpp_err=$ac_cxx_preproc_warn_flag
14358 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14365 if test -z "$ac_cpp_err"; then
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14371 # Broken: fails on valid input.
14375 rm -f conftest.err conftest.$ac_ext
14377 # OK, works on sane cases. Now check whether nonexistent headers
14378 # can be detected and how.
14379 cat >conftest.$ac_ext <<_ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 #include <ac_nonexistent.h>
14387 if { (ac_try="$ac_cpp conftest.$ac_ext"
14388 case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14395 grep -v '^ *+' conftest.er1 >conftest.err
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } >/dev/null; then
14400 if test -s conftest.err; then
14401 ac_cpp_err=$ac_cxx_preproc_warn_flag
14402 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14409 if test -z "$ac_cpp_err"; then
14410 # Broken: success on invalid input.
14413 echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14416 # Passes both tests.
14421 rm -f conftest.err conftest.$ac_ext
14424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14425 rm -f conftest.err conftest.$ac_ext
14426 if $ac_preproc_ok; then
14429 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14430 See \`config.log' for more details." >&5
14431 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14432 See \`config.log' for more details." >&2;}
14433 { (exit 1); exit 1; }; }
14437 ac_cpp='$CXXCPP $CPPFLAGS'
14438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14444 for ac_header in cxxabi.h
14446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 ac_res=`eval echo '${'$as_ac_Header'}'`
14454 { echo "$as_me:$LINENO: result: $ac_res" >&5
14455 echo "${ECHO_T}$ac_res" >&6; }
14457 # Is the header compilable?
14458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14466 $ac_includes_default
14467 #include <$ac_header>
14469 rm -f conftest.$ac_objext
14470 if { (ac_try="$ac_compile"
14471 case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_compile") 2>conftest.er1
14478 grep -v '^ *+' conftest.er1 >conftest.err
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14484 { (case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489 (eval "$ac_try") 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest.$ac_objext'
14494 { (case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_try") 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 ac_header_compiler=yes
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14508 ac_header_compiler=no
14511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14513 echo "${ECHO_T}$ac_header_compiler" >&6; }
14515 # Is the header present?
14516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14518 cat >conftest.$ac_ext <<_ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 #include <$ac_header>
14526 if { (ac_try="$ac_cpp conftest.$ac_ext"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } >/dev/null; then
14539 if test -s conftest.err; then
14540 ac_cpp_err=$ac_cxx_preproc_warn_flag
14541 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14548 if test -z "$ac_cpp_err"; then
14549 ac_header_preproc=yes
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 ac_header_preproc=no
14557 rm -f conftest.err conftest.$ac_ext
14558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14559 echo "${ECHO_T}$ac_header_preproc" >&6; }
14561 # So? What about this header?
14562 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14568 ac_header_preproc=yes
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14584 ## ------------------------------------ ##
14585 ## Report this to http://llvm.org/bugs/ ##
14586 ## ------------------------------------ ##
14588 ) | sed "s/^/$as_me: WARNING: /" >&2
14591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 eval "$as_ac_Header=\$ac_header_preproc"
14598 ac_res=`eval echo '${'$as_ac_Header'}'`
14599 { echo "$as_me:$LINENO: result: $ac_res" >&5
14600 echo "${ECHO_T}$ac_res" >&6; }
14603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14604 cat >>confdefs.h <<_ACEOF
14605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14613 ac_cpp='$CPP $CPPFLAGS'
14614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14623 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 ac_res=`eval echo '${'$as_ac_Header'}'`
14633 { echo "$as_me:$LINENO: result: $ac_res" >&5
14634 echo "${ECHO_T}$ac_res" >&6; }
14636 # Is the header compilable?
14637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14639 cat >conftest.$ac_ext <<_ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h. */
14645 $ac_includes_default
14646 #include <$ac_header>
14648 rm -f conftest.$ac_objext
14649 if { (ac_try="$ac_compile"
14650 case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_compile") 2>conftest.er1
14657 grep -v '^ *+' conftest.er1 >conftest.err
14659 cat conftest.err >&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); } &&
14662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14663 { (case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668 (eval "$ac_try") 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; } &&
14672 { ac_try='test -s conftest.$ac_objext'
14673 { (case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_try") 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_header_compiler=yes
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14687 ac_header_compiler=no
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14692 echo "${ECHO_T}$ac_header_compiler" >&6; }
14694 # Is the header present?
14695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14697 cat >conftest.$ac_ext <<_ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h. */
14703 #include <$ac_header>
14705 if { (ac_try="$ac_cpp conftest.$ac_ext"
14706 case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14713 grep -v '^ *+' conftest.er1 >conftest.err
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } >/dev/null; then
14718 if test -s conftest.err; then
14719 ac_cpp_err=$ac_c_preproc_warn_flag
14720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14727 if test -z "$ac_cpp_err"; then
14728 ac_header_preproc=yes
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 ac_header_preproc=no
14736 rm -f conftest.err conftest.$ac_ext
14737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14738 echo "${ECHO_T}$ac_header_preproc" >&6; }
14740 # So? What about this header?
14741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14747 ac_header_preproc=yes
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14763 ## ------------------------------------ ##
14764 ## Report this to http://llvm.org/bugs/ ##
14765 ## ------------------------------------ ##
14767 ) | sed "s/^/$as_me: WARNING: /" >&2
14770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 eval "$as_ac_Header=\$ac_header_preproc"
14777 ac_res=`eval echo '${'$as_ac_Header'}'`
14778 { echo "$as_me:$LINENO: result: $ac_res" >&5
14779 echo "${ECHO_T}$ac_res" >&6; }
14782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14783 cat >>confdefs.h <<_ACEOF
14784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14797 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 ac_res=`eval echo '${'$as_ac_Header'}'`
14807 { echo "$as_me:$LINENO: result: $ac_res" >&5
14808 echo "${ECHO_T}$ac_res" >&6; }
14810 # Is the header compilable?
14811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 $ac_includes_default
14820 #include <$ac_header>
14822 rm -f conftest.$ac_objext
14823 if { (ac_try="$ac_compile"
14824 case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_compile") 2>conftest.er1
14831 grep -v '^ *+' conftest.er1 >conftest.err
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14837 { (case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_try") 2>&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_try") 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14856 ac_header_compiler=yes
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 ac_header_compiler=no
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14866 echo "${ECHO_T}$ac_header_compiler" >&6; }
14868 # Is the header present?
14869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14871 cat >conftest.$ac_ext <<_ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 #include <$ac_header>
14879 if { (ac_try="$ac_cpp conftest.$ac_ext"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14887 grep -v '^ *+' conftest.er1 >conftest.err
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } >/dev/null; then
14892 if test -s conftest.err; then
14893 ac_cpp_err=$ac_c_preproc_warn_flag
14894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14901 if test -z "$ac_cpp_err"; then
14902 ac_header_preproc=yes
14904 echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.$ac_ext >&5
14907 ac_header_preproc=no
14910 rm -f conftest.err conftest.$ac_ext
14911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14912 echo "${ECHO_T}$ac_header_preproc" >&6; }
14914 # So? What about this header?
14915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14921 ac_header_preproc=yes
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14937 ## ------------------------------------ ##
14938 ## Report this to http://llvm.org/bugs/ ##
14939 ## ------------------------------------ ##
14941 ) | sed "s/^/$as_me: WARNING: /" >&2
14944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 eval "$as_ac_Header=\$ac_header_preproc"
14951 ac_res=`eval echo '${'$as_ac_Header'}'`
14952 { echo "$as_me:$LINENO: result: $ac_res" >&5
14953 echo "${ECHO_T}$ac_res" >&6; }
14956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14957 cat >>confdefs.h <<_ACEOF
14958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14966 for ac_header in utime.h
14968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 ac_res=`eval echo '${'$as_ac_Header'}'`
14976 { echo "$as_me:$LINENO: result: $ac_res" >&5
14977 echo "${ECHO_T}$ac_res" >&6; }
14979 # Is the header compilable?
14980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14982 cat >conftest.$ac_ext <<_ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 $ac_includes_default
14989 #include <$ac_header>
14991 rm -f conftest.$ac_objext
14992 if { (ac_try="$ac_compile"
14993 case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_compile") 2>conftest.er1
15000 grep -v '^ *+' conftest.er1 >conftest.err
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } &&
15005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15006 { (case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_try") 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_try") 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 ac_header_compiler=yes
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 ac_header_compiler=no
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15035 echo "${ECHO_T}$ac_header_compiler" >&6; }
15037 # Is the header present?
15038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15040 cat >conftest.$ac_ext <<_ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 #include <$ac_header>
15048 if { (ac_try="$ac_cpp conftest.$ac_ext"
15049 case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15056 grep -v '^ *+' conftest.er1 >conftest.err
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } >/dev/null; then
15061 if test -s conftest.err; then
15062 ac_cpp_err=$ac_c_preproc_warn_flag
15063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15070 if test -z "$ac_cpp_err"; then
15071 ac_header_preproc=yes
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_header_preproc=no
15079 rm -f conftest.err conftest.$ac_ext
15080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15081 echo "${ECHO_T}$ac_header_preproc" >&6; }
15083 # So? What about this header?
15084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15090 ac_header_preproc=yes
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15106 ## ------------------------------------ ##
15107 ## Report this to http://llvm.org/bugs/ ##
15108 ## ------------------------------------ ##
15110 ) | sed "s/^/$as_me: WARNING: /" >&2
15113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 eval "$as_ac_Header=\$ac_header_preproc"
15120 ac_res=`eval echo '${'$as_ac_Header'}'`
15121 { echo "$as_me:$LINENO: result: $ac_res" >&5
15122 echo "${ECHO_T}$ac_res" >&6; }
15125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15126 cat >>confdefs.h <<_ACEOF
15127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15139 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15148 ac_res=`eval echo '${'$as_ac_Header'}'`
15149 { echo "$as_me:$LINENO: result: $ac_res" >&5
15150 echo "${ECHO_T}$ac_res" >&6; }
15152 # Is the header compilable?
15153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 $ac_includes_default
15162 #include <$ac_header>
15164 rm -f conftest.$ac_objext
15165 if { (ac_try="$ac_compile"
15166 case "(($ac_try" in
15167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168 *) ac_try_echo=$ac_try;;
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171 (eval "$ac_compile") 2>conftest.er1
15173 grep -v '^ *+' conftest.er1 >conftest.err
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; } &&
15188 { ac_try='test -s conftest.$ac_objext'
15189 { (case "(($ac_try" in
15190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191 *) ac_try_echo=$ac_try;;
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194 (eval "$ac_try") 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198 ac_header_compiler=yes
15200 echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15203 ac_header_compiler=no
15206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15208 echo "${ECHO_T}$ac_header_compiler" >&6; }
15210 # Is the header present?
15211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15213 cat >conftest.$ac_ext <<_ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 #include <$ac_header>
15221 if { (ac_try="$ac_cpp conftest.$ac_ext"
15222 case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15229 grep -v '^ *+' conftest.er1 >conftest.err
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } >/dev/null; then
15234 if test -s conftest.err; then
15235 ac_cpp_err=$ac_c_preproc_warn_flag
15236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15243 if test -z "$ac_cpp_err"; then
15244 ac_header_preproc=yes
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_header_preproc=no
15252 rm -f conftest.err conftest.$ac_ext
15253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15254 echo "${ECHO_T}$ac_header_preproc" >&6; }
15256 # So? What about this header?
15257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15263 ac_header_preproc=yes
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15279 ## ------------------------------------ ##
15280 ## Report this to http://llvm.org/bugs/ ##
15281 ## ------------------------------------ ##
15283 ) | sed "s/^/$as_me: WARNING: /" >&2
15286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 eval "$as_ac_Header=\$ac_header_preproc"
15293 ac_res=`eval echo '${'$as_ac_Header'}'`
15294 { echo "$as_me:$LINENO: result: $ac_res" >&5
15295 echo "${ECHO_T}$ac_res" >&6; }
15298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15299 cat >>confdefs.h <<_ACEOF
15300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15310 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 ac_res=`eval echo '${'$as_ac_Header'}'`
15320 { echo "$as_me:$LINENO: result: $ac_res" >&5
15321 echo "${ECHO_T}$ac_res" >&6; }
15323 # Is the header compilable?
15324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15326 cat >conftest.$ac_ext <<_ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 $ac_includes_default
15333 #include <$ac_header>
15335 rm -f conftest.$ac_objext
15336 if { (ac_try="$ac_compile"
15337 case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_compile") 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_try") 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_header_compiler=yes
15371 echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15374 ac_header_compiler=no
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15379 echo "${ECHO_T}$ac_header_compiler" >&6; }
15381 # Is the header present?
15382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15384 cat >conftest.$ac_ext <<_ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h. */
15390 #include <$ac_header>
15392 if { (ac_try="$ac_cpp conftest.$ac_ext"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15400 grep -v '^ *+' conftest.er1 >conftest.err
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } >/dev/null; then
15405 if test -s conftest.err; then
15406 ac_cpp_err=$ac_c_preproc_warn_flag
15407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15414 if test -z "$ac_cpp_err"; then
15415 ac_header_preproc=yes
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ac_header_preproc=no
15423 rm -f conftest.err conftest.$ac_ext
15424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15425 echo "${ECHO_T}$ac_header_preproc" >&6; }
15427 # So? What about this header?
15428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15434 ac_header_preproc=yes
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15450 ## ------------------------------------ ##
15451 ## Report this to http://llvm.org/bugs/ ##
15452 ## ------------------------------------ ##
15454 ) | sed "s/^/$as_me: WARNING: /" >&2
15457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 eval "$as_ac_Header=\$ac_header_preproc"
15464 ac_res=`eval echo '${'$as_ac_Header'}'`
15465 { echo "$as_me:$LINENO: result: $ac_res" >&5
15466 echo "${ECHO_T}$ac_res" >&6; }
15469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15470 cat >>confdefs.h <<_ACEOF
15471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15479 for ac_header in valgrind/valgrind.h
15481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 ac_res=`eval echo '${'$as_ac_Header'}'`
15489 { echo "$as_me:$LINENO: result: $ac_res" >&5
15490 echo "${ECHO_T}$ac_res" >&6; }
15492 # Is the header compilable?
15493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15495 cat >conftest.$ac_ext <<_ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h. */
15501 $ac_includes_default
15502 #include <$ac_header>
15504 rm -f conftest.$ac_objext
15505 if { (ac_try="$ac_compile"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_compile") 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } &&
15518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15519 { (case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; } &&
15528 { ac_try='test -s conftest.$ac_objext'
15529 { (case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_try") 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_header_compiler=yes
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ac_header_compiler=no
15546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15548 echo "${ECHO_T}$ac_header_compiler" >&6; }
15550 # Is the header present?
15551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 #include <$ac_header>
15561 if { (ac_try="$ac_cpp conftest.$ac_ext"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } >/dev/null; then
15574 if test -s conftest.err; then
15575 ac_cpp_err=$ac_c_preproc_warn_flag
15576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15583 if test -z "$ac_cpp_err"; then
15584 ac_header_preproc=yes
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_header_preproc=no
15592 rm -f conftest.err conftest.$ac_ext
15593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15594 echo "${ECHO_T}$ac_header_preproc" >&6; }
15596 # So? What about this header?
15597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15603 ac_header_preproc=yes
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15619 ## ------------------------------------ ##
15620 ## Report this to http://llvm.org/bugs/ ##
15621 ## ------------------------------------ ##
15623 ) | sed "s/^/$as_me: WARNING: /" >&2
15626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 eval "$as_ac_Header=\$ac_header_preproc"
15633 ac_res=`eval echo '${'$as_ac_Header'}'`
15634 { echo "$as_me:$LINENO: result: $ac_res" >&5
15635 echo "${ECHO_T}$ac_res" >&6; }
15638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15639 cat >>confdefs.h <<_ACEOF
15640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15648 for ac_header in fenv.h
15650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15657 ac_res=`eval echo '${'$as_ac_Header'}'`
15658 { echo "$as_me:$LINENO: result: $ac_res" >&5
15659 echo "${ECHO_T}$ac_res" >&6; }
15661 # Is the header compilable?
15662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15664 cat >conftest.$ac_ext <<_ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 $ac_includes_default
15671 #include <$ac_header>
15673 rm -f conftest.$ac_objext
15674 if { (ac_try="$ac_compile"
15675 case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680 (eval "$ac_compile") 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
15687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15688 { (case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_try") 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest.$ac_objext'
15698 { (case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_try") 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_header_compiler=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_header_compiler=no
15715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15717 echo "${ECHO_T}$ac_header_compiler" >&6; }
15719 # Is the header present?
15720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15722 cat >conftest.$ac_ext <<_ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728 #include <$ac_header>
15730 if { (ac_try="$ac_cpp conftest.$ac_ext"
15731 case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15738 grep -v '^ *+' conftest.er1 >conftest.err
15740 cat conftest.err >&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } >/dev/null; then
15743 if test -s conftest.err; then
15744 ac_cpp_err=$ac_c_preproc_warn_flag
15745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15752 if test -z "$ac_cpp_err"; then
15753 ac_header_preproc=yes
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ac_header_preproc=no
15761 rm -f conftest.err conftest.$ac_ext
15762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15763 echo "${ECHO_T}$ac_header_preproc" >&6; }
15765 # So? What about this header?
15766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15772 ac_header_preproc=yes
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15788 ## ------------------------------------ ##
15789 ## Report this to http://llvm.org/bugs/ ##
15790 ## ------------------------------------ ##
15792 ) | sed "s/^/$as_me: WARNING: /" >&2
15795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 eval "$as_ac_Header=\$ac_header_preproc"
15802 ac_res=`eval echo '${'$as_ac_Header'}'`
15803 { echo "$as_me:$LINENO: result: $ac_res" >&5
15804 echo "${ECHO_T}$ac_res" >&6; }
15807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15808 cat >>confdefs.h <<_ACEOF
15809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15816 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
15817 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
15818 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 cat >conftest.$ac_ext <<_ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15832 #ifndef FE_ALL_EXCEPT
15833 char *p = (char *) FE_ALL_EXCEPT;
15841 rm -f conftest.$ac_objext
15842 if { (ac_try="$ac_compile"
15843 case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_compile") 2>conftest.er1
15850 grep -v '^ *+' conftest.er1 >conftest.err
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } &&
15865 { ac_try='test -s conftest.$ac_objext'
15866 { (case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871 (eval "$ac_try") 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875 ac_cv_have_decl_FE_ALL_EXCEPT=yes
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_cv_have_decl_FE_ALL_EXCEPT=no
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15885 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
15886 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
15887 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
15889 cat >>confdefs.h <<_ACEOF
15890 #define HAVE_DECL_FE_ALL_EXCEPT 1
15895 cat >>confdefs.h <<_ACEOF
15896 #define HAVE_DECL_FE_ALL_EXCEPT 0
15901 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
15902 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
15903 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 cat >conftest.$ac_ext <<_ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15918 char *p = (char *) FE_INEXACT;
15926 rm -f conftest.$ac_objext
15927 if { (ac_try="$ac_compile"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_compile") 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15941 { (case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_try") 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest.$ac_objext'
15951 { (case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_try") 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_cv_have_decl_FE_INEXACT=yes
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_cv_have_decl_FE_INEXACT=no
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
15971 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
15972 if test $ac_cv_have_decl_FE_INEXACT = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975 #define HAVE_DECL_FE_INEXACT 1
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_DECL_FE_INEXACT 0
15988 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15990 for ac_header in pthread.h
15992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997 echo $ECHO_N "(cached) $ECHO_C" >&6
15999 ac_res=`eval echo '${'$as_ac_Header'}'`
16000 { echo "$as_me:$LINENO: result: $ac_res" >&5
16001 echo "${ECHO_T}$ac_res" >&6; }
16003 # Is the header compilable?
16004 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 $ac_includes_default
16013 #include <$ac_header>
16015 rm -f conftest.$ac_objext
16016 if { (ac_try="$ac_compile"
16017 case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022 (eval "$ac_compile") 2>conftest.er1
16024 grep -v '^ *+' conftest.er1 >conftest.err
16026 cat conftest.err >&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_try") 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; } &&
16039 { ac_try='test -s conftest.$ac_objext'
16040 { (case "(($ac_try" in
16041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042 *) ac_try_echo=$ac_try;;
16044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16045 (eval "$ac_try") 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 ac_header_compiler=yes
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 ac_header_compiler=no
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16059 echo "${ECHO_T}$ac_header_compiler" >&6; }
16061 # Is the header present?
16062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16064 cat >conftest.$ac_ext <<_ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 #include <$ac_header>
16072 if { (ac_try="$ac_cpp conftest.$ac_ext"
16073 case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16080 grep -v '^ *+' conftest.er1 >conftest.err
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } >/dev/null; then
16085 if test -s conftest.err; then
16086 ac_cpp_err=$ac_c_preproc_warn_flag
16087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16094 if test -z "$ac_cpp_err"; then
16095 ac_header_preproc=yes
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 ac_header_preproc=no
16103 rm -f conftest.err conftest.$ac_ext
16104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16105 echo "${ECHO_T}$ac_header_preproc" >&6; }
16107 # So? What about this header?
16108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16114 ac_header_preproc=yes
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16130 ## ------------------------------------ ##
16131 ## Report this to http://llvm.org/bugs/ ##
16132 ## ------------------------------------ ##
16134 ) | sed "s/^/$as_me: WARNING: /" >&2
16137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 eval "$as_ac_Header=\$ac_header_preproc"
16144 ac_res=`eval echo '${'$as_ac_Header'}'`
16145 { echo "$as_me:$LINENO: result: $ac_res" >&5
16146 echo "${ECHO_T}$ac_res" >&6; }
16149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16150 cat >>confdefs.h <<_ACEOF
16151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16166 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16168 for ac_header in zlib.h
16170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 ac_res=`eval echo '${'$as_ac_Header'}'`
16178 { echo "$as_me:$LINENO: result: $ac_res" >&5
16179 echo "${ECHO_T}$ac_res" >&6; }
16181 # Is the header compilable?
16182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16184 cat >conftest.$ac_ext <<_ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 $ac_includes_default
16191 #include <$ac_header>
16193 rm -f conftest.$ac_objext
16194 if { (ac_try="$ac_compile"
16195 case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_compile") 2>conftest.er1
16202 grep -v '^ *+' conftest.er1 >conftest.err
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
16207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16208 { (case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_try") 2>&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; } &&
16217 { ac_try='test -s conftest.$ac_objext'
16218 { (case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_try") 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 ac_header_compiler=yes
16229 echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ac_header_compiler=no
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16237 echo "${ECHO_T}$ac_header_compiler" >&6; }
16239 # Is the header present?
16240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16242 cat >conftest.$ac_ext <<_ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 #include <$ac_header>
16250 if { (ac_try="$ac_cpp conftest.$ac_ext"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1 >conftest.err
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } >/dev/null; then
16263 if test -s conftest.err; then
16264 ac_cpp_err=$ac_c_preproc_warn_flag
16265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16272 if test -z "$ac_cpp_err"; then
16273 ac_header_preproc=yes
16275 echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16278 ac_header_preproc=no
16281 rm -f conftest.err conftest.$ac_ext
16282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16283 echo "${ECHO_T}$ac_header_preproc" >&6; }
16285 # So? What about this header?
16286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16292 ac_header_preproc=yes
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16308 ## ------------------------------------ ##
16309 ## Report this to http://llvm.org/bugs/ ##
16310 ## ------------------------------------ ##
16312 ) | sed "s/^/$as_me: WARNING: /" >&2
16315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 eval "$as_ac_Header=\$ac_header_preproc"
16322 ac_res=`eval echo '${'$as_ac_Header'}'`
16323 { echo "$as_me:$LINENO: result: $ac_res" >&5
16324 echo "${ECHO_T}$ac_res" >&6; }
16327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16328 cat >>confdefs.h <<_ACEOF
16329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16345 if test "$llvm_cv_enable_libffi" = "yes" ; then
16348 for ac_header in ffi.h ffi/ffi.h
16350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 ac_res=`eval echo '${'$as_ac_Header'}'`
16358 { echo "$as_me:$LINENO: result: $ac_res" >&5
16359 echo "${ECHO_T}$ac_res" >&6; }
16361 # Is the header compilable?
16362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16364 cat >conftest.$ac_ext <<_ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16370 $ac_includes_default
16371 #include <$ac_header>
16373 rm -f conftest.$ac_objext
16374 if { (ac_try="$ac_compile"
16375 case "(($ac_try" in
16376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377 *) ac_try_echo=$ac_try;;
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380 (eval "$ac_compile") 2>conftest.er1
16382 grep -v '^ *+' conftest.er1 >conftest.err
16384 cat conftest.err >&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } &&
16387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16388 { (case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_try") 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; } &&
16397 { ac_try='test -s conftest.$ac_objext'
16398 { (case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_try") 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 ac_header_compiler=yes
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16412 ac_header_compiler=no
16415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16417 echo "${ECHO_T}$ac_header_compiler" >&6; }
16419 # Is the header present?
16420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16422 cat >conftest.$ac_ext <<_ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428 #include <$ac_header>
16430 if { (ac_try="$ac_cpp conftest.$ac_ext"
16431 case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16438 grep -v '^ *+' conftest.er1 >conftest.err
16440 cat conftest.err >&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } >/dev/null; then
16443 if test -s conftest.err; then
16444 ac_cpp_err=$ac_c_preproc_warn_flag
16445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16452 if test -z "$ac_cpp_err"; then
16453 ac_header_preproc=yes
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 ac_header_preproc=no
16461 rm -f conftest.err conftest.$ac_ext
16462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16463 echo "${ECHO_T}$ac_header_preproc" >&6; }
16465 # So? What about this header?
16466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16472 ac_header_preproc=yes
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16488 ## ------------------------------------ ##
16489 ## Report this to http://llvm.org/bugs/ ##
16490 ## ------------------------------------ ##
16492 ) | sed "s/^/$as_me: WARNING: /" >&2
16495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 eval "$as_ac_Header=\$ac_header_preproc"
16502 ac_res=`eval echo '${'$as_ac_Header'}'`
16503 { echo "$as_me:$LINENO: result: $ac_res" >&5
16504 echo "${ECHO_T}$ac_res" >&6; }
16507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16508 cat >>confdefs.h <<_ACEOF
16509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16519 for ac_header in CrashReporterClient.h
16521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 ac_res=`eval echo '${'$as_ac_Header'}'`
16529 { echo "$as_me:$LINENO: result: $ac_res" >&5
16530 echo "${ECHO_T}$ac_res" >&6; }
16532 # Is the header compilable?
16533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16535 cat >conftest.$ac_ext <<_ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 $ac_includes_default
16542 #include <$ac_header>
16544 rm -f conftest.$ac_objext
16545 if { (ac_try="$ac_compile"
16546 case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_compile") 2>conftest.er1
16553 grep -v '^ *+' conftest.er1 >conftest.err
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
16558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16559 { (case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_try") 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; } &&
16568 { ac_try='test -s conftest.$ac_objext'
16569 { (case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_try") 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_header_compiler=yes
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ac_header_compiler=no
16586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16588 echo "${ECHO_T}$ac_header_compiler" >&6; }
16590 # Is the header present?
16591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16593 cat >conftest.$ac_ext <<_ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h. */
16599 #include <$ac_header>
16601 if { (ac_try="$ac_cpp conftest.$ac_ext"
16602 case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16609 grep -v '^ *+' conftest.er1 >conftest.err
16611 cat conftest.err >&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } >/dev/null; then
16614 if test -s conftest.err; then
16615 ac_cpp_err=$ac_c_preproc_warn_flag
16616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16623 if test -z "$ac_cpp_err"; then
16624 ac_header_preproc=yes
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_header_preproc=no
16632 rm -f conftest.err conftest.$ac_ext
16633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16634 echo "${ECHO_T}$ac_header_preproc" >&6; }
16636 # So? What about this header?
16637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16643 ac_header_preproc=yes
16646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16659 ## ------------------------------------ ##
16660 ## Report this to http://llvm.org/bugs/ ##
16661 ## ------------------------------------ ##
16663 ) | sed "s/^/$as_me: WARNING: /" >&2
16666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 eval "$as_ac_Header=\$ac_header_preproc"
16673 ac_res=`eval echo '${'$as_ac_Header'}'`
16674 { echo "$as_me:$LINENO: result: $ac_res" >&5
16675 echo "${ECHO_T}$ac_res" >&6; }
16678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16679 cat >>confdefs.h <<_ACEOF
16680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16688 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16689 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16690 cat >conftest.$ac_ext <<_ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16698 extern const char *__crashreporter_info__;
16700 __crashreporter_info__ = "test";
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (ac_try="$ac_link"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_link") 2>conftest.er1
16715 grep -v '^ *+' conftest.er1 >conftest.err
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
16720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16721 { (case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_try") 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest$ac_exeext'
16731 { (case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_try") 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16741 { echo "$as_me:$LINENO: result: yes" >&5
16742 echo "${ECHO_T}yes" >&6; }
16744 cat >>confdefs.h <<\_ACEOF
16745 #define HAVE_CRASHREPORTER_INFO 1
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16754 { echo "$as_me:$LINENO: result: no" >&5
16755 echo "${ECHO_T}no" >&6; }
16757 cat >>confdefs.h <<\_ACEOF
16758 #define HAVE_CRASHREPORTER_INFO 0
16764 rm -f core conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16769 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16770 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16771 if test "${ac_cv_huge_val_sanity+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16776 ac_cpp='$CXXCPP $CPPFLAGS'
16777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16781 ac_save_CXXFLAGS=$CXXFLAGS
16782 CXXFLAGS="$CXXFLAGS -pedantic"
16783 if test "$cross_compiling" = yes; then
16784 ac_cv_huge_val_sanity=yes
16786 cat >conftest.$ac_ext <<_ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16796 double x = HUGE_VAL; return x != x;
16801 rm -f conftest$ac_exeext
16802 if { (ac_try="$ac_link"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_link") 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16812 { (case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_try") 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821 ac_cv_huge_val_sanity=yes
16823 echo "$as_me: program exited with status $ac_status" >&5
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 ( exit $ac_status )
16828 ac_cv_huge_val_sanity=no
16830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16834 CXXFLAGS=$ac_save_CXXFLAGS
16836 ac_cpp='$CPP $CPPFLAGS'
16837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16843 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16844 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16845 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16848 { echo "$as_me:$LINENO: checking for pid_t" >&5
16849 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16850 if test "${ac_cv_type_pid_t+set}" = set; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 $ac_includes_default
16860 typedef pid_t ac__type_new_;
16864 if ((ac__type_new_ *) 0)
16866 if (sizeof (ac__type_new_))
16872 rm -f conftest.$ac_objext
16873 if { (ac_try="$ac_compile"
16874 case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_compile") 2>conftest.er1
16881 grep -v '^ *+' conftest.er1 >conftest.err
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16887 { (case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_try") 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest.$ac_objext'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 ac_cv_type_pid_t=yes
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 ac_cv_type_pid_t=no
16914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16916 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16917 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16918 if test $ac_cv_type_pid_t = yes; then
16922 cat >>confdefs.h <<_ACEOF
16928 { echo "$as_me:$LINENO: checking for size_t" >&5
16929 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16930 if test "${ac_cv_type_size_t+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 cat >conftest.$ac_ext <<_ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h. */
16939 $ac_includes_default
16940 typedef size_t ac__type_new_;
16944 if ((ac__type_new_ *) 0)
16946 if (sizeof (ac__type_new_))
16952 rm -f conftest.$ac_objext
16953 if { (ac_try="$ac_compile"
16954 case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_compile") 2>conftest.er1
16961 grep -v '^ *+' conftest.er1 >conftest.err
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16967 { (case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_try") 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; } &&
16976 { ac_try='test -s conftest.$ac_objext'
16977 { (case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_try") 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_type_size_t=yes
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16991 ac_cv_type_size_t=no
16994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16997 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16998 if test $ac_cv_type_size_t = yes; then
17002 cat >>confdefs.h <<_ACEOF
17003 #define size_t unsigned int
17009 cat >>confdefs.h <<_ACEOF
17010 #define RETSIGTYPE void
17013 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17014 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17015 if test "${ac_cv_struct_tm+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 cat >conftest.$ac_ext <<_ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 #include <sys/types.h>
17030 struct tm *tp; tp->tm_sec;
17035 rm -f conftest.$ac_objext
17036 if { (ac_try="$ac_compile"
17037 case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_compile") 2>conftest.er1
17044 grep -v '^ *+' conftest.er1 >conftest.err
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; } &&
17059 { ac_try='test -s conftest.$ac_objext'
17060 { (case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_try") 2>&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; }; then
17069 ac_cv_struct_tm=time.h
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17074 ac_cv_struct_tm=sys/time.h
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17079 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17080 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17081 if test $ac_cv_struct_tm = sys/time.h; then
17083 cat >>confdefs.h <<\_ACEOF
17084 #define TM_IN_SYS_TIME 1
17089 { echo "$as_me:$LINENO: checking for int64_t" >&5
17090 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17091 if test "${ac_cv_type_int64_t+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 cat >conftest.$ac_ext <<_ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100 $ac_includes_default
17101 typedef int64_t ac__type_new_;
17105 if ((ac__type_new_ *) 0)
17107 if (sizeof (ac__type_new_))
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_compile") 2>conftest.er1
17122 grep -v '^ *+' conftest.er1 >conftest.err
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128 { (case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_try") 2>&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest.$ac_objext'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_type_int64_t=yes
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 ac_cv_type_int64_t=no
17155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17157 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17158 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17159 if test $ac_cv_type_int64_t = yes; then
17161 cat >>confdefs.h <<_ACEOF
17162 #define HAVE_INT64_T 1
17167 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17168 echo "$as_me: error: Type int64_t required but not found" >&2;}
17169 { (exit 1); exit 1; }; }
17172 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17173 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17174 if test "${ac_cv_type_uint64_t+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 cat >conftest.$ac_ext <<_ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 $ac_includes_default
17184 typedef uint64_t ac__type_new_;
17188 if ((ac__type_new_ *) 0)
17190 if (sizeof (ac__type_new_))
17196 rm -f conftest.$ac_objext
17197 if { (ac_try="$ac_compile"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_compile") 2>conftest.er1
17205 grep -v '^ *+' conftest.er1 >conftest.err
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17211 { (case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_try") 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try='test -s conftest.$ac_objext'
17221 { (case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_try") 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 ac_cv_type_uint64_t=yes
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17235 ac_cv_type_uint64_t=no
17238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17240 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17241 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17242 if test $ac_cv_type_uint64_t = yes; then
17244 cat >>confdefs.h <<_ACEOF
17245 #define HAVE_UINT64_T 1
17250 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17251 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17252 if test "${ac_cv_type_u_int64_t+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17255 cat >conftest.$ac_ext <<_ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 $ac_includes_default
17262 typedef u_int64_t ac__type_new_;
17266 if ((ac__type_new_ *) 0)
17268 if (sizeof (ac__type_new_))
17274 rm -f conftest.$ac_objext
17275 if { (ac_try="$ac_compile"
17276 case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_compile") 2>conftest.er1
17283 grep -v '^ *+' conftest.er1 >conftest.err
17285 cat conftest.err >&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); } &&
17288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17289 { (case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_try") 2>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; } &&
17298 { ac_try='test -s conftest.$ac_objext'
17299 { (case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_try") 2>&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 ac_cv_type_u_int64_t=yes
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17313 ac_cv_type_u_int64_t=no
17316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17319 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17320 if test $ac_cv_type_u_int64_t = yes; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define HAVE_U_INT64_T 1
17328 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17329 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17330 { (exit 1); exit 1; }; }
17344 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 cat >conftest.$ac_ext <<_ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17360 #define $ac_func innocuous_$ac_func
17362 /* System header to define __stub macros and hopefully few prototypes,
17363 which can conflict with char $ac_func (); below.
17364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17365 <limits.h> exists even on freestanding compilers. */
17368 # include <limits.h>
17370 # include <assert.h>
17375 /* Override any GCC internal prototype to avoid an error.
17376 Use char because int might match the return type of a GCC
17377 builtin and then its argument prototype would still apply. */
17382 /* The GNU C library defines this for functions which it implements
17383 to always fail with ENOSYS. Some functions are actually named
17384 something starting with __ and the normal name is an alias. */
17385 #if defined __stub_$ac_func || defined __stub___$ac_func
17392 return $ac_func ();
17397 rm -f conftest.$ac_objext conftest$ac_exeext
17398 if { (ac_try="$ac_link"
17399 case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_link") 2>conftest.er1
17406 grep -v '^ *+' conftest.er1 >conftest.err
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17412 { (case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_try") 2>&5
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; } &&
17421 { ac_try='test -s conftest$ac_exeext'
17422 { (case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_try") 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
17431 eval "$as_ac_var=yes"
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 eval "$as_ac_var=no"
17439 rm -f core conftest.err conftest.$ac_objext \
17440 conftest$ac_exeext conftest.$ac_ext
17442 ac_res=`eval echo '${'$as_ac_var'}'`
17443 { echo "$as_me:$LINENO: result: $ac_res" >&5
17444 echo "${ECHO_T}$ac_res" >&6; }
17445 if test `eval echo '${'$as_ac_var'}'` = yes; then
17446 cat >>confdefs.h <<_ACEOF
17447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17457 for ac_func in powf fmodf strtof round
17459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 cat >conftest.$ac_ext <<_ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17473 #define $ac_func innocuous_$ac_func
17475 /* System header to define __stub macros and hopefully few prototypes,
17476 which can conflict with char $ac_func (); below.
17477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17478 <limits.h> exists even on freestanding compilers. */
17481 # include <limits.h>
17483 # include <assert.h>
17488 /* Override any GCC internal prototype to avoid an error.
17489 Use char because int might match the return type of a GCC
17490 builtin and then its argument prototype would still apply. */
17495 /* The GNU C library defines this for functions which it implements
17496 to always fail with ENOSYS. Some functions are actually named
17497 something starting with __ and the normal name is an alias. */
17498 #if defined __stub_$ac_func || defined __stub___$ac_func
17505 return $ac_func ();
17510 rm -f conftest.$ac_objext conftest$ac_exeext
17511 if { (ac_try="$ac_link"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_link") 2>conftest.er1
17519 grep -v '^ *+' conftest.er1 >conftest.err
17521 cat conftest.err >&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } &&
17524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17525 { (case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_try") 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest$ac_exeext'
17535 { (case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_try") 2>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 eval "$as_ac_var=yes"
17546 echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17549 eval "$as_ac_var=no"
17552 rm -f core conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17555 ac_res=`eval echo '${'$as_ac_var'}'`
17556 { echo "$as_me:$LINENO: result: $ac_res" >&5
17557 echo "${ECHO_T}$ac_res" >&6; }
17558 if test `eval echo '${'$as_ac_var'}'` = yes; then
17559 cat >>confdefs.h <<_ACEOF
17560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17571 for ac_func in log log2 log10 exp exp2
17573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 cat >conftest.$ac_ext <<_ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17587 #define $ac_func innocuous_$ac_func
17589 /* System header to define __stub macros and hopefully few prototypes,
17590 which can conflict with char $ac_func (); below.
17591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17592 <limits.h> exists even on freestanding compilers. */
17595 # include <limits.h>
17597 # include <assert.h>
17602 /* Override any GCC internal prototype to avoid an error.
17603 Use char because int might match the return type of a GCC
17604 builtin and then its argument prototype would still apply. */
17609 /* The GNU C library defines this for functions which it implements
17610 to always fail with ENOSYS. Some functions are actually named
17611 something starting with __ and the normal name is an alias. */
17612 #if defined __stub_$ac_func || defined __stub___$ac_func
17619 return $ac_func ();
17624 rm -f conftest.$ac_objext conftest$ac_exeext
17625 if { (ac_try="$ac_link"
17626 case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_link") 2>conftest.er1
17633 grep -v '^ *+' conftest.er1 >conftest.err
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17639 { (case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_try") 2>&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; } &&
17648 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 eval "$as_ac_var=yes"
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 eval "$as_ac_var=no"
17666 rm -f core conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
17669 ac_res=`eval echo '${'$as_ac_var'}'`
17670 { echo "$as_me:$LINENO: result: $ac_res" >&5
17671 echo "${ECHO_T}$ac_res" >&6; }
17672 if test `eval echo '${'$as_ac_var'}'` = yes; then
17673 cat >>confdefs.h <<_ACEOF
17674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17685 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 cat >conftest.$ac_ext <<_ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h. */
17699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17701 #define $ac_func innocuous_$ac_func
17703 /* System header to define __stub macros and hopefully few prototypes,
17704 which can conflict with char $ac_func (); below.
17705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17706 <limits.h> exists even on freestanding compilers. */
17709 # include <limits.h>
17711 # include <assert.h>
17716 /* Override any GCC internal prototype to avoid an error.
17717 Use char because int might match the return type of a GCC
17718 builtin and then its argument prototype would still apply. */
17723 /* The GNU C library defines this for functions which it implements
17724 to always fail with ENOSYS. Some functions are actually named
17725 something starting with __ and the normal name is an alias. */
17726 #if defined __stub_$ac_func || defined __stub___$ac_func
17733 return $ac_func ();
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_link") 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest$ac_exeext'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 eval "$as_ac_var=yes"
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17777 eval "$as_ac_var=no"
17780 rm -f core conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17783 ac_res=`eval echo '${'$as_ac_var'}'`
17784 { echo "$as_me:$LINENO: result: $ac_res" >&5
17785 echo "${ECHO_T}$ac_res" >&6; }
17786 if test `eval echo '${'$as_ac_var'}'` = yes; then
17787 cat >>confdefs.h <<_ACEOF
17788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17797 for ac_func in isatty mkdtemp mkstemp
17799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 cat >conftest.$ac_ext <<_ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17813 #define $ac_func innocuous_$ac_func
17815 /* System header to define __stub macros and hopefully few prototypes,
17816 which can conflict with char $ac_func (); below.
17817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17818 <limits.h> exists even on freestanding compilers. */
17821 # include <limits.h>
17823 # include <assert.h>
17828 /* Override any GCC internal prototype to avoid an error.
17829 Use char because int might match the return type of a GCC
17830 builtin and then its argument prototype would still apply. */
17835 /* The GNU C library defines this for functions which it implements
17836 to always fail with ENOSYS. Some functions are actually named
17837 something starting with __ and the normal name is an alias. */
17838 #if defined __stub_$ac_func || defined __stub___$ac_func
17845 return $ac_func ();
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (ac_try="$ac_link"
17852 case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857 (eval "$ac_link") 2>conftest.er1
17859 grep -v '^ *+' conftest.er1 >conftest.err
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
17864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17865 { (case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_try") 2>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; } &&
17874 { ac_try='test -s conftest$ac_exeext'
17875 { (case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_try") 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
17884 eval "$as_ac_var=yes"
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 eval "$as_ac_var=no"
17892 rm -f core conftest.err conftest.$ac_objext \
17893 conftest$ac_exeext conftest.$ac_ext
17895 ac_res=`eval echo '${'$as_ac_var'}'`
17896 { echo "$as_me:$LINENO: result: $ac_res" >&5
17897 echo "${ECHO_T}$ac_res" >&6; }
17898 if test `eval echo '${'$as_ac_var'}'` = yes; then
17899 cat >>confdefs.h <<_ACEOF
17900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17912 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
17914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 cat >conftest.$ac_ext <<_ACEOF
17923 cat confdefs.h >>conftest.$ac_ext
17924 cat >>conftest.$ac_ext <<_ACEOF
17925 /* end confdefs.h. */
17926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17928 #define $ac_func innocuous_$ac_func
17930 /* System header to define __stub macros and hopefully few prototypes,
17931 which can conflict with char $ac_func (); below.
17932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17933 <limits.h> exists even on freestanding compilers. */
17936 # include <limits.h>
17938 # include <assert.h>
17943 /* Override any GCC internal prototype to avoid an error.
17944 Use char because int might match the return type of a GCC
17945 builtin and then its argument prototype would still apply. */
17950 /* The GNU C library defines this for functions which it implements
17951 to always fail with ENOSYS. Some functions are actually named
17952 something starting with __ and the normal name is an alias. */
17953 #if defined __stub_$ac_func || defined __stub___$ac_func
17960 return $ac_func ();
17965 rm -f conftest.$ac_objext conftest$ac_exeext
17966 if { (ac_try="$ac_link"
17967 case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_link") 2>conftest.er1
17974 grep -v '^ *+' conftest.er1 >conftest.err
17976 cat conftest.err >&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } &&
17979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17980 { (case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_try") 2>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; } &&
17989 { ac_try='test -s conftest$ac_exeext'
17990 { (case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_try") 2>&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; }; then
17999 eval "$as_ac_var=yes"
18001 echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18004 eval "$as_ac_var=no"
18007 rm -f core conftest.err conftest.$ac_objext \
18008 conftest$ac_exeext conftest.$ac_ext
18010 ac_res=`eval echo '${'$as_ac_var'}'`
18011 { echo "$as_me:$LINENO: result: $ac_res" >&5
18012 echo "${ECHO_T}$ac_res" >&6; }
18013 if test `eval echo '${'$as_ac_var'}'` = yes; then
18014 cat >>confdefs.h <<_ACEOF
18015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18025 for ac_func in strerror strerror_r setenv arc4random
18027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18041 #define $ac_func innocuous_$ac_func
18043 /* System header to define __stub macros and hopefully few prototypes,
18044 which can conflict with char $ac_func (); below.
18045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18046 <limits.h> exists even on freestanding compilers. */
18049 # include <limits.h>
18051 # include <assert.h>
18056 /* Override any GCC internal prototype to avoid an error.
18057 Use char because int might match the return type of a GCC
18058 builtin and then its argument prototype would still apply. */
18063 /* The GNU C library defines this for functions which it implements
18064 to always fail with ENOSYS. Some functions are actually named
18065 something starting with __ and the normal name is an alias. */
18066 #if defined __stub_$ac_func || defined __stub___$ac_func
18073 return $ac_func ();
18078 rm -f conftest.$ac_objext conftest$ac_exeext
18079 if { (ac_try="$ac_link"
18080 case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085 (eval "$ac_link") 2>conftest.er1
18087 grep -v '^ *+' conftest.er1 >conftest.err
18089 cat conftest.err >&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } &&
18092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18093 { (case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_try") 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; } &&
18102 { ac_try='test -s conftest$ac_exeext'
18103 { (case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_try") 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 eval "$as_ac_var=yes"
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18117 eval "$as_ac_var=no"
18120 rm -f core conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18123 ac_res=`eval echo '${'$as_ac_var'}'`
18124 { echo "$as_me:$LINENO: result: $ac_res" >&5
18125 echo "${ECHO_T}$ac_res" >&6; }
18126 if test `eval echo '${'$as_ac_var'}'` = yes; then
18127 cat >>confdefs.h <<_ACEOF
18128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18138 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 cat >conftest.$ac_ext <<_ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18154 #define $ac_func innocuous_$ac_func
18156 /* System header to define __stub macros and hopefully few prototypes,
18157 which can conflict with char $ac_func (); below.
18158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18159 <limits.h> exists even on freestanding compilers. */
18162 # include <limits.h>
18164 # include <assert.h>
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18176 /* The GNU C library defines this for functions which it implements
18177 to always fail with ENOSYS. Some functions are actually named
18178 something starting with __ and the normal name is an alias. */
18179 #if defined __stub_$ac_func || defined __stub___$ac_func
18186 return $ac_func ();
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_link") 2>conftest.er1
18200 grep -v '^ *+' conftest.er1 >conftest.err
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } &&
18205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18206 { (case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_try") 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest$ac_exeext'
18216 { (case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_try") 2>&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18225 eval "$as_ac_var=yes"
18227 echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18230 eval "$as_ac_var=no"
18233 rm -f core conftest.err conftest.$ac_objext \
18234 conftest$ac_exeext conftest.$ac_ext
18236 ac_res=`eval echo '${'$as_ac_var'}'`
18237 { echo "$as_me:$LINENO: result: $ac_res" >&5
18238 echo "${ECHO_T}$ac_res" >&6; }
18239 if test `eval echo '${'$as_ac_var'}'` = yes; then
18240 cat >>confdefs.h <<_ACEOF
18241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18252 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 cat >conftest.$ac_ext <<_ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18268 #define $ac_func innocuous_$ac_func
18270 /* System header to define __stub macros and hopefully few prototypes,
18271 which can conflict with char $ac_func (); below.
18272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18273 <limits.h> exists even on freestanding compilers. */
18276 # include <limits.h>
18278 # include <assert.h>
18283 /* Override any GCC internal prototype to avoid an error.
18284 Use char because int might match the return type of a GCC
18285 builtin and then its argument prototype would still apply. */
18290 /* The GNU C library defines this for functions which it implements
18291 to always fail with ENOSYS. Some functions are actually named
18292 something starting with __ and the normal name is an alias. */
18293 #if defined __stub_$ac_func || defined __stub___$ac_func
18300 return $ac_func ();
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (ac_try="$ac_link"
18307 case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_link") 2>conftest.er1
18314 grep -v '^ *+' conftest.er1 >conftest.err
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } &&
18319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18320 { (case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_try") 2>&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest$ac_exeext'
18330 { (case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_try") 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 eval "$as_ac_var=yes"
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 eval "$as_ac_var=no"
18347 rm -f core conftest.err conftest.$ac_objext \
18348 conftest$ac_exeext conftest.$ac_ext
18350 ac_res=`eval echo '${'$as_ac_var'}'`
18351 { echo "$as_me:$LINENO: result: $ac_res" >&5
18352 echo "${ECHO_T}$ac_res" >&6; }
18353 if test `eval echo '${'$as_ac_var'}'` = yes; then
18354 cat >>confdefs.h <<_ACEOF
18355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18363 for ac_func in futimes futimens
18365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18379 #define $ac_func innocuous_$ac_func
18381 /* System header to define __stub macros and hopefully few prototypes,
18382 which can conflict with char $ac_func (); below.
18383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18384 <limits.h> exists even on freestanding compilers. */
18387 # include <limits.h>
18389 # include <assert.h>
18394 /* Override any GCC internal prototype to avoid an error.
18395 Use char because int might match the return type of a GCC
18396 builtin and then its argument prototype would still apply. */
18401 /* The GNU C library defines this for functions which it implements
18402 to always fail with ENOSYS. Some functions are actually named
18403 something starting with __ and the normal name is an alias. */
18404 #if defined __stub_$ac_func || defined __stub___$ac_func
18411 return $ac_func ();
18416 rm -f conftest.$ac_objext conftest$ac_exeext
18417 if { (ac_try="$ac_link"
18418 case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_link") 2>conftest.er1
18425 grep -v '^ *+' conftest.er1 >conftest.err
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
18430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18431 { (case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_try") 2>&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; } &&
18440 { ac_try='test -s conftest$ac_exeext'
18441 { (case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_try") 2>&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 eval "$as_ac_var=yes"
18452 echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 eval "$as_ac_var=no"
18458 rm -f core conftest.err conftest.$ac_objext \
18459 conftest$ac_exeext conftest.$ac_ext
18461 ac_res=`eval echo '${'$as_ac_var'}'`
18462 { echo "$as_me:$LINENO: result: $ac_res" >&5
18463 echo "${ECHO_T}$ac_res" >&6; }
18464 if test `eval echo '${'$as_ac_var'}'` = yes; then
18465 cat >>confdefs.h <<_ACEOF
18466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18472 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18473 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18474 if test "${llvm_cv_c_printf_a+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 ac_cpp='$CPP $CPPFLAGS'
18479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18483 if test "$cross_compiling" = yes; then
18484 llvmac_cv_c_printf_a=no
18486 cat >conftest.$ac_ext <<_ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18495 #include <stdlib.h>
18501 volatile double A, B;
18505 sprintf(Buffer, "%a", A);
18509 if (A != 0x1.999999999999ap-4)
18516 rm -f conftest$ac_exeext
18517 if { (ac_try="$ac_link"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_link") 2>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18527 { (case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_try") 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 llvm_cv_c_printf_a=yes
18538 echo "$as_me: program exited with status $ac_status" >&5
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 ( exit $ac_status )
18543 llvmac_cv_c_printf_a=no
18545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18550 ac_cpp='$CPP $CPPFLAGS'
18551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18556 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18557 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18558 if test "$llvm_cv_c_printf_a" = "yes"; then
18560 cat >>confdefs.h <<\_ACEOF
18561 #define HAVE_PRINTF_A 1
18568 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18569 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18570 if test "${ac_cv_func_rand48+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 ac_cpp='$CXXCPP $CPPFLAGS'
18576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 #include <stdlib.h>
18590 srand48(0);lrand48();drand48();
18595 rm -f conftest.$ac_objext
18596 if { (ac_try="$ac_compile"
18597 case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602 (eval "$ac_compile") 2>conftest.er1
18604 grep -v '^ *+' conftest.er1 >conftest.err
18606 cat conftest.err >&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } &&
18609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18610 { (case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_try") 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; } &&
18619 { ac_try='test -s conftest.$ac_objext'
18620 { (case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_try") 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; }; then
18629 ac_cv_func_rand48=yes
18631 echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18634 ac_cv_func_rand48=no
18637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18639 ac_cpp='$CPP $CPPFLAGS'
18640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18646 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18647 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18649 if test "$ac_cv_func_rand48" = "yes" ; then
18651 cat >>confdefs.h <<\_ACEOF
18652 #define HAVE_RAND48 1
18658 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18659 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18660 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 cat >conftest.$ac_ext <<_ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18669 $ac_includes_default
18674 char *p = (char *) strerror_s;
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_compile") 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest.$ac_objext'
18707 { (case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_cv_have_decl_strerror_s=yes
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 ac_cv_have_decl_strerror_s=no
18724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18726 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18727 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18728 if test $ac_cv_have_decl_strerror_s = yes; then
18730 cat >>confdefs.h <<_ACEOF
18731 #define HAVE_DECL_STRERROR_S 1
18736 cat >>confdefs.h <<_ACEOF
18737 #define HAVE_DECL_STRERROR_S 0
18745 if test "$llvm_cv_os_type" = "MingW" ; then
18746 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18747 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18748 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18751 ac_check_lib_save_LIBS=$LIBS
18753 cat >conftest.$ac_ext <<_ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h. */
18760 /* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
18775 rm -f conftest.$ac_objext conftest$ac_exeext
18776 if { (ac_try="$ac_link"
18777 case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_link") 2>conftest.er1
18784 grep -v '^ *+' conftest.er1 >conftest.err
18786 cat conftest.err >&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
18789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; } &&
18799 { ac_try='test -s conftest$ac_exeext'
18800 { (case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_try") 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_cv_lib_gcc__alloca=yes
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18814 ac_cv_lib_gcc__alloca=no
18817 rm -f core conftest.err conftest.$ac_objext \
18818 conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18821 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18822 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18823 if test $ac_cv_lib_gcc__alloca = yes; then
18825 cat >>confdefs.h <<\_ACEOF
18826 #define HAVE__ALLOCA 1
18831 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18832 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18833 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18834 echo $ECHO_N "(cached) $ECHO_C" >&6
18836 ac_check_lib_save_LIBS=$LIBS
18838 cat >conftest.$ac_ext <<_ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18845 /* Override any GCC internal prototype to avoid an error.
18846 Use char because int might match the return type of a GCC
18847 builtin and then its argument prototype would still apply. */
18855 return __alloca ();
18860 rm -f conftest.$ac_objext conftest$ac_exeext
18861 if { (ac_try="$ac_link"
18862 case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_link") 2>conftest.er1
18869 grep -v '^ *+' conftest.er1 >conftest.err
18871 cat conftest.err >&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } &&
18874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18875 { (case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_try") 2>&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); }; } &&
18884 { ac_try='test -s conftest$ac_exeext'
18885 { (case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_try") 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_lib_gcc___alloca=yes
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 ac_cv_lib_gcc___alloca=no
18902 rm -f core conftest.err conftest.$ac_objext \
18903 conftest$ac_exeext conftest.$ac_ext
18904 LIBS=$ac_check_lib_save_LIBS
18906 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18907 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18908 if test $ac_cv_lib_gcc___alloca = yes; then
18910 cat >>confdefs.h <<\_ACEOF
18911 #define HAVE___ALLOCA 1
18916 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18917 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18918 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 ac_check_lib_save_LIBS=$LIBS
18923 cat >conftest.$ac_ext <<_ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18930 /* Override any GCC internal prototype to avoid an error.
18931 Use char because int might match the return type of a GCC
18932 builtin and then its argument prototype would still apply. */
18940 return __chkstk ();
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_link") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18960 { (case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_try") 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; } &&
18969 { ac_try='test -s conftest$ac_exeext'
18970 { (case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_try") 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 ac_cv_lib_gcc___chkstk=yes
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 ac_cv_lib_gcc___chkstk=no
18987 rm -f core conftest.err conftest.$ac_objext \
18988 conftest$ac_exeext conftest.$ac_ext
18989 LIBS=$ac_check_lib_save_LIBS
18991 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18992 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18993 if test $ac_cv_lib_gcc___chkstk = yes; then
18995 cat >>confdefs.h <<\_ACEOF
18996 #define HAVE___CHKSTK 1
19001 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19002 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19003 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19006 ac_check_lib_save_LIBS=$LIBS
19008 cat >conftest.$ac_ext <<_ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19015 /* Override any GCC internal prototype to avoid an error.
19016 Use char because int might match the return type of a GCC
19017 builtin and then its argument prototype would still apply. */
19025 return ___chkstk ();
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_link") 2>conftest.er1
19039 grep -v '^ *+' conftest.er1 >conftest.err
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } &&
19044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19045 { (case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050 (eval "$ac_try") 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest$ac_exeext'
19055 { (case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_try") 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 ac_cv_lib_gcc____chkstk=yes
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_cv_lib_gcc____chkstk=no
19072 rm -f core conftest.err conftest.$ac_objext \
19073 conftest$ac_exeext conftest.$ac_ext
19074 LIBS=$ac_check_lib_save_LIBS
19076 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19077 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19078 if test $ac_cv_lib_gcc____chkstk = yes; then
19080 cat >>confdefs.h <<\_ACEOF
19081 #define HAVE____CHKSTK 1
19087 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19088 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19089 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19092 ac_check_lib_save_LIBS=$LIBS
19094 cat >conftest.$ac_ext <<_ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19101 /* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19111 return __ashldi3 ();
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19125 grep -v '^ *+' conftest.er1 >conftest.err
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest$ac_exeext'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 ac_cv_lib_gcc___ashldi3=yes
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 ac_cv_lib_gcc___ashldi3=no
19158 rm -f core conftest.err conftest.$ac_objext \
19159 conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19162 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19163 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19164 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19166 cat >>confdefs.h <<\_ACEOF
19167 #define HAVE___ASHLDI3 1
19172 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19173 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19174 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 ac_check_lib_save_LIBS=$LIBS
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19186 /* Override any GCC internal prototype to avoid an error.
19187 Use char because int might match the return type of a GCC
19188 builtin and then its argument prototype would still apply. */
19196 return __ashrdi3 ();
19201 rm -f conftest.$ac_objext conftest$ac_exeext
19202 if { (ac_try="$ac_link"
19203 case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_link") 2>conftest.er1
19210 grep -v '^ *+' conftest.er1 >conftest.err
19212 cat conftest.err >&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
19215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19216 { (case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_try") 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try='test -s conftest$ac_exeext'
19226 { (case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_try") 2>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235 ac_cv_lib_gcc___ashrdi3=yes
19237 echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19240 ac_cv_lib_gcc___ashrdi3=no
19243 rm -f core conftest.err conftest.$ac_objext \
19244 conftest$ac_exeext conftest.$ac_ext
19245 LIBS=$ac_check_lib_save_LIBS
19247 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19248 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19249 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE___ASHRDI3 1
19257 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19258 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19259 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19262 ac_check_lib_save_LIBS=$LIBS
19264 cat >conftest.$ac_ext <<_ACEOF
19267 cat confdefs.h >>conftest.$ac_ext
19268 cat >>conftest.$ac_ext <<_ACEOF
19269 /* end confdefs.h. */
19271 /* Override any GCC internal prototype to avoid an error.
19272 Use char because int might match the return type of a GCC
19273 builtin and then its argument prototype would still apply. */
19281 return __divdi3 ();
19286 rm -f conftest.$ac_objext conftest$ac_exeext
19287 if { (ac_try="$ac_link"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_link") 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; } &&
19310 { ac_try='test -s conftest$ac_exeext'
19311 { (case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_try") 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 ac_cv_lib_gcc___divdi3=yes
19322 echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19325 ac_cv_lib_gcc___divdi3=no
19328 rm -f core conftest.err conftest.$ac_objext \
19329 conftest$ac_exeext conftest.$ac_ext
19330 LIBS=$ac_check_lib_save_LIBS
19332 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19333 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19334 if test $ac_cv_lib_gcc___divdi3 = yes; then
19336 cat >>confdefs.h <<\_ACEOF
19337 #define HAVE___DIVDI3 1
19342 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19343 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19344 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 ac_check_lib_save_LIBS=$LIBS
19349 cat >conftest.$ac_ext <<_ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19356 /* Override any GCC internal prototype to avoid an error.
19357 Use char because int might match the return type of a GCC
19358 builtin and then its argument prototype would still apply. */
19366 return __fixdfdi ();
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (ac_try="$ac_link"
19373 case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_link") 2>conftest.er1
19380 grep -v '^ *+' conftest.er1 >conftest.err
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19386 { (case "(($ac_try" in
19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388 *) ac_try_echo=$ac_try;;
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391 (eval "$ac_try") 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest$ac_exeext'
19396 { (case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_try") 2>&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19405 ac_cv_lib_gcc___fixdfdi=yes
19407 echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19410 ac_cv_lib_gcc___fixdfdi=no
19413 rm -f core conftest.err conftest.$ac_objext \
19414 conftest$ac_exeext conftest.$ac_ext
19415 LIBS=$ac_check_lib_save_LIBS
19417 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19418 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19419 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19421 cat >>confdefs.h <<\_ACEOF
19422 #define HAVE___FIXDFDI 1
19427 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19428 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19429 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19432 ac_check_lib_save_LIBS=$LIBS
19434 cat >conftest.$ac_ext <<_ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19441 /* Override any GCC internal prototype to avoid an error.
19442 Use char because int might match the return type of a GCC
19443 builtin and then its argument prototype would still apply. */
19451 return __fixsfdi ();
19456 rm -f conftest.$ac_objext conftest$ac_exeext
19457 if { (ac_try="$ac_link"
19458 case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_link") 2>conftest.er1
19465 grep -v '^ *+' conftest.er1 >conftest.err
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19471 { (case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_try") 2>&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; } &&
19480 { ac_try='test -s conftest$ac_exeext'
19481 { (case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_try") 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; }; then
19490 ac_cv_lib_gcc___fixsfdi=yes
19492 echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19495 ac_cv_lib_gcc___fixsfdi=no
19498 rm -f core conftest.err conftest.$ac_objext \
19499 conftest$ac_exeext conftest.$ac_ext
19500 LIBS=$ac_check_lib_save_LIBS
19502 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19503 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19504 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19506 cat >>confdefs.h <<\_ACEOF
19507 #define HAVE___FIXSFDI 1
19512 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19513 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19514 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19517 ac_check_lib_save_LIBS=$LIBS
19519 cat >conftest.$ac_ext <<_ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 /* Override any GCC internal prototype to avoid an error.
19527 Use char because int might match the return type of a GCC
19528 builtin and then its argument prototype would still apply. */
19532 char __floatdidf ();
19536 return __floatdidf ();
19541 rm -f conftest.$ac_objext conftest$ac_exeext
19542 if { (ac_try="$ac_link"
19543 case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_link") 2>conftest.er1
19550 grep -v '^ *+' conftest.er1 >conftest.err
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
19555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19556 { (case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_try") 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest$ac_exeext'
19566 { (case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571 (eval "$ac_try") 2>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_cv_lib_gcc___floatdidf=yes
19577 echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19580 ac_cv_lib_gcc___floatdidf=no
19583 rm -f core conftest.err conftest.$ac_objext \
19584 conftest$ac_exeext conftest.$ac_ext
19585 LIBS=$ac_check_lib_save_LIBS
19587 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19588 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19589 if test $ac_cv_lib_gcc___floatdidf = yes; then
19591 cat >>confdefs.h <<\_ACEOF
19592 #define HAVE___FLOATDIDF 1
19597 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19598 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19599 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 ac_check_lib_save_LIBS=$LIBS
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19611 /* Override any GCC internal prototype to avoid an error.
19612 Use char because int might match the return type of a GCC
19613 builtin and then its argument prototype would still apply. */
19621 return __lshrdi3 ();
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (ac_try="$ac_link"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_link") 2>conftest.er1
19635 grep -v '^ *+' conftest.er1 >conftest.err
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest$ac_exeext'
19651 { (case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_try") 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 ac_cv_lib_gcc___lshrdi3=yes
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 ac_cv_lib_gcc___lshrdi3=no
19668 rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19670 LIBS=$ac_check_lib_save_LIBS
19672 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19673 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19674 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE___LSHRDI3 1
19682 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19683 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19684 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 ac_check_lib_save_LIBS=$LIBS
19689 cat >conftest.$ac_ext <<_ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19696 /* Override any GCC internal prototype to avoid an error.
19697 Use char because int might match the return type of a GCC
19698 builtin and then its argument prototype would still apply. */
19706 return __moddi3 ();
19711 rm -f conftest.$ac_objext conftest$ac_exeext
19712 if { (ac_try="$ac_link"
19713 case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_link") 2>conftest.er1
19720 grep -v '^ *+' conftest.er1 >conftest.err
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19735 { ac_try='test -s conftest$ac_exeext'
19736 { (case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_try") 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 ac_cv_lib_gcc___moddi3=yes
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 ac_cv_lib_gcc___moddi3=no
19753 rm -f core conftest.err conftest.$ac_objext \
19754 conftest$ac_exeext conftest.$ac_ext
19755 LIBS=$ac_check_lib_save_LIBS
19757 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19758 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19759 if test $ac_cv_lib_gcc___moddi3 = yes; then
19761 cat >>confdefs.h <<\_ACEOF
19762 #define HAVE___MODDI3 1
19767 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19768 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19769 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 ac_check_lib_save_LIBS=$LIBS
19774 cat >conftest.$ac_ext <<_ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19781 /* Override any GCC internal prototype to avoid an error.
19782 Use char because int might match the return type of a GCC
19783 builtin and then its argument prototype would still apply. */
19791 return __udivdi3 ();
19796 rm -f conftest.$ac_objext conftest$ac_exeext
19797 if { (ac_try="$ac_link"
19798 case "(($ac_try" in
19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_link") 2>conftest.er1
19805 grep -v '^ *+' conftest.er1 >conftest.err
19807 cat conftest.err >&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } &&
19810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19820 { ac_try='test -s conftest$ac_exeext'
19821 { (case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_try") 2>&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 ac_cv_lib_gcc___udivdi3=yes
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_cv_lib_gcc___udivdi3=no
19838 rm -f core conftest.err conftest.$ac_objext \
19839 conftest$ac_exeext conftest.$ac_ext
19840 LIBS=$ac_check_lib_save_LIBS
19842 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19843 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19844 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19846 cat >>confdefs.h <<\_ACEOF
19847 #define HAVE___UDIVDI3 1
19852 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19853 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19854 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 ac_check_lib_save_LIBS=$LIBS
19859 cat >conftest.$ac_ext <<_ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19866 /* Override any GCC internal prototype to avoid an error.
19867 Use char because int might match the return type of a GCC
19868 builtin and then its argument prototype would still apply. */
19876 return __umoddi3 ();
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (ac_try="$ac_link"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_link") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } &&
19895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19905 { ac_try='test -s conftest$ac_exeext'
19906 { (case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_try") 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; }; then
19915 ac_cv_lib_gcc___umoddi3=yes
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_cv_lib_gcc___umoddi3=no
19923 rm -f core conftest.err conftest.$ac_objext \
19924 conftest$ac_exeext conftest.$ac_ext
19925 LIBS=$ac_check_lib_save_LIBS
19927 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19928 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19929 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19931 cat >>confdefs.h <<\_ACEOF
19932 #define HAVE___UMODDI3 1
19938 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19939 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19940 if test "${ac_cv_lib_gcc___main+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 ac_check_lib_save_LIBS=$LIBS
19945 cat >conftest.$ac_ext <<_ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19952 /* Override any GCC internal prototype to avoid an error.
19953 Use char because int might match the return type of a GCC
19954 builtin and then its argument prototype would still apply. */
19967 rm -f conftest.$ac_objext conftest$ac_exeext
19968 if { (ac_try="$ac_link"
19969 case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_link") 2>conftest.er1
19976 grep -v '^ *+' conftest.er1 >conftest.err
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19982 { (case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_try") 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; } &&
19991 { ac_try='test -s conftest$ac_exeext'
19992 { (case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_try") 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_lib_gcc___main=yes
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_cv_lib_gcc___main=no
20009 rm -f core conftest.err conftest.$ac_objext \
20010 conftest$ac_exeext conftest.$ac_ext
20011 LIBS=$ac_check_lib_save_LIBS
20013 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20014 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20015 if test $ac_cv_lib_gcc___main = yes; then
20017 cat >>confdefs.h <<\_ACEOF
20018 #define HAVE___MAIN 1
20023 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20024 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20025 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20028 ac_check_lib_save_LIBS=$LIBS
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20037 /* Override any GCC internal prototype to avoid an error.
20038 Use char because int might match the return type of a GCC
20039 builtin and then its argument prototype would still apply. */
20047 return __cmpdi2 ();
20052 rm -f conftest.$ac_objext conftest$ac_exeext
20053 if { (ac_try="$ac_link"
20054 case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_link") 2>conftest.er1
20061 grep -v '^ *+' conftest.er1 >conftest.err
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
20066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20067 { (case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_try") 2>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest$ac_exeext'
20077 { (case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_try") 2>&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; }; then
20086 ac_cv_lib_gcc___cmpdi2=yes
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20091 ac_cv_lib_gcc___cmpdi2=no
20094 rm -f core conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext conftest.$ac_ext
20096 LIBS=$ac_check_lib_save_LIBS
20098 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20099 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20100 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20102 cat >>confdefs.h <<\_ACEOF
20103 #define HAVE___CMPDI2 1
20110 if test "$llvm_cv_os_type" = "MingW" ; then
20111 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20112 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20113 cat >conftest.$ac_ext <<_ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20121 #include <windows.h>
20122 #include <imagehlp.h>
20123 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20124 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20128 rm -f conftest.$ac_objext
20129 if { (ac_try="$ac_compile"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135 (eval "$ac_compile") 2>conftest.er1
20137 grep -v '^ *+' conftest.er1 >conftest.err
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143 { (case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_try") 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest.$ac_objext'
20153 { (case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_try") 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20163 { echo "$as_me:$LINENO: result: yes" >&5
20164 echo "${ECHO_T}yes" >&6; }
20165 llvm_cv_win32_elmcb_pcstr="PCSTR"
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20172 { echo "$as_me:$LINENO: result: no" >&5
20173 echo "${ECHO_T}no" >&6; }
20174 llvm_cv_win32_elmcb_pcstr="PSTR"
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 cat >>confdefs.h <<_ACEOF
20181 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20188 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20189 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20190 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 ac_cpp='$CXXCPP $CPPFLAGS'
20196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20200 cat >conftest.$ac_ext <<_ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20215 rm -f conftest.$ac_objext
20216 if { (ac_try="$ac_compile"
20217 case "(($ac_try" in
20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219 *) ac_try_echo=$ac_try;;
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222 (eval "$ac_compile") 2>conftest.er1
20224 grep -v '^ *+' conftest.er1 >conftest.err
20226 cat conftest.err >&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
20229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20230 { (case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_try") 2>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; } &&
20239 { ac_try='test -s conftest.$ac_objext'
20240 { (case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_try") 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 ac_cv_func_isnan_in_math_h=yes
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20254 ac_cv_func_isnan_in_math_h=no
20257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 ac_cpp='$CPP $CPPFLAGS'
20260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20266 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20267 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20270 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20272 cat >>confdefs.h <<\_ACEOF
20273 #define HAVE_ISNAN_IN_MATH_H 1
20279 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20280 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20281 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20286 ac_cpp='$CXXCPP $CPPFLAGS'
20287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20291 cat >conftest.$ac_ext <<_ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20306 rm -f conftest.$ac_objext
20307 if { (ac_try="$ac_compile"
20308 case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_compile") 2>conftest.er1
20315 grep -v '^ *+' conftest.er1 >conftest.err
20317 cat conftest.err >&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
20330 { ac_try='test -s conftest.$ac_objext'
20331 { (case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_try") 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_cv_func_isnan_in_cmath=yes
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 ac_cv_func_isnan_in_cmath=no
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 ac_cpp='$CPP $CPPFLAGS'
20351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20357 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20358 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20360 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20362 cat >>confdefs.h <<\_ACEOF
20363 #define HAVE_ISNAN_IN_CMATH 1
20369 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20370 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20371 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 ac_cpp='$CXXCPP $CPPFLAGS'
20377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20391 float f; std::isnan(f);
20396 rm -f conftest.$ac_objext
20397 if { (ac_try="$ac_compile"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_compile") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20411 { (case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_try") 2>&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try='test -s conftest.$ac_objext'
20421 { (case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_try") 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_func_std_isnan_in_cmath=yes
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ac_cv_func_std_isnan_in_cmath=no
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 ac_cpp='$CPP $CPPFLAGS'
20441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20447 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20448 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20450 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20452 cat >>confdefs.h <<\_ACEOF
20453 #define HAVE_STD_ISNAN_IN_CMATH 1
20461 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20462 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20463 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 ac_cpp='$CXXCPP $CPPFLAGS'
20469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20488 rm -f conftest.$ac_objext
20489 if { (ac_try="$ac_compile"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_compile") 2>conftest.er1
20497 grep -v '^ *+' conftest.er1 >conftest.err
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } &&
20502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20503 { (case "(($ac_try" in
20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508 (eval "$ac_try") 2>&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; } &&
20512 { ac_try='test -s conftest.$ac_objext'
20513 { (case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518 (eval "$ac_try") 2>&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 ac_cv_func_isinf_in_math_h=yes
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 ac_cv_func_isinf_in_math_h=no
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20532 ac_cpp='$CPP $CPPFLAGS'
20533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20539 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20540 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20542 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20544 cat >>confdefs.h <<\_ACEOF
20545 #define HAVE_ISINF_IN_MATH_H 1
20551 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20552 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20553 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20558 ac_cpp='$CXXCPP $CPPFLAGS'
20559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20563 cat >conftest.$ac_ext <<_ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20578 rm -f conftest.$ac_objext
20579 if { (ac_try="$ac_compile"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_compile") 2>conftest.er1
20587 grep -v '^ *+' conftest.er1 >conftest.err
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } &&
20592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20593 { (case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_try") 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; } &&
20602 { ac_try='test -s conftest.$ac_objext'
20603 { (case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_try") 2>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; }; then
20612 ac_cv_func_isinf_in_cmath=yes
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 ac_cv_func_isinf_in_cmath=no
20620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622 ac_cpp='$CPP $CPPFLAGS'
20623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20629 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20630 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20632 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20634 cat >>confdefs.h <<\_ACEOF
20635 #define HAVE_ISINF_IN_CMATH 1
20641 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20642 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20643 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20648 ac_cpp='$CXXCPP $CPPFLAGS'
20649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20663 float f; std::isinf(f);
20668 rm -f conftest.$ac_objext
20669 if { (ac_try="$ac_compile"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_compile") 2>conftest.er1
20677 grep -v '^ *+' conftest.er1 >conftest.err
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } &&
20682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20683 { (case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_try") 2>&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try='test -s conftest.$ac_objext'
20693 { (case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_try") 2>&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }; then
20702 ac_cv_func_std_isinf_in_cmath=yes
20704 echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20707 ac_cv_func_std_isinf_in_cmath=no
20710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20712 ac_cpp='$CPP $CPPFLAGS'
20713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20719 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20720 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20722 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20724 cat >>confdefs.h <<\_ACEOF
20725 #define HAVE_STD_ISINF_IN_CMATH 1
20731 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20732 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20733 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 ac_cpp='$CXXCPP $CPPFLAGS'
20739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20743 cat >conftest.$ac_ext <<_ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 #include <ieeefp.h>
20753 float f; finite(f);
20758 rm -f conftest.$ac_objext
20759 if { (ac_try="$ac_compile"
20760 case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765 (eval "$ac_compile") 2>conftest.er1
20767 grep -v '^ *+' conftest.er1 >conftest.err
20769 cat conftest.err >&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } &&
20772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20773 { (case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_try") 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; } &&
20782 { ac_try='test -s conftest.$ac_objext'
20783 { (case "(($ac_try" in
20784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785 *) ac_try_echo=$ac_try;;
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788 (eval "$ac_try") 2>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_cv_func_finite_in_ieeefp_h=yes
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ac_cv_func_finite_in_ieeefp_h=no
20800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20802 ac_cpp='$CPP $CPPFLAGS'
20803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20809 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20810 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20812 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20814 cat >>confdefs.h <<\_ACEOF
20815 #define HAVE_FINITE_IN_IEEEFP_H 1
20822 if test "$llvm_cv_platform_type" = "Unix" ; then
20825 for ac_header in stdlib.h unistd.h
20827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 ac_res=`eval echo '${'$as_ac_Header'}'`
20835 { echo "$as_me:$LINENO: result: $ac_res" >&5
20836 echo "${ECHO_T}$ac_res" >&6; }
20838 # Is the header compilable?
20839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20841 cat >conftest.$ac_ext <<_ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 $ac_includes_default
20848 #include <$ac_header>
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_compile") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } &&
20864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20865 { (case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_try") 2>&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; } &&
20874 { ac_try='test -s conftest.$ac_objext'
20875 { (case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_try") 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ac_header_compiler=yes
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20889 ac_header_compiler=no
20892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20894 echo "${ECHO_T}$ac_header_compiler" >&6; }
20896 # Is the header present?
20897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20899 cat >conftest.$ac_ext <<_ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20905 #include <$ac_header>
20907 if { (ac_try="$ac_cpp conftest.$ac_ext"
20908 case "(($ac_try" in
20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910 *) ac_try_echo=$ac_try;;
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20915 grep -v '^ *+' conftest.er1 >conftest.err
20917 cat conftest.err >&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } >/dev/null; then
20920 if test -s conftest.err; then
20921 ac_cpp_err=$ac_c_preproc_warn_flag
20922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20929 if test -z "$ac_cpp_err"; then
20930 ac_header_preproc=yes
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ac_header_preproc=no
20938 rm -f conftest.err conftest.$ac_ext
20939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20940 echo "${ECHO_T}$ac_header_preproc" >&6; }
20942 # So? What about this header?
20943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20949 ac_header_preproc=yes
20952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20965 ## ------------------------------------ ##
20966 ## Report this to http://llvm.org/bugs/ ##
20967 ## ------------------------------------ ##
20969 ) | sed "s/^/$as_me: WARNING: /" >&2
20972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20977 eval "$as_ac_Header=\$ac_header_preproc"
20979 ac_res=`eval echo '${'$as_ac_Header'}'`
20980 { echo "$as_me:$LINENO: result: $ac_res" >&5
20981 echo "${ECHO_T}$ac_res" >&6; }
20984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20985 cat >>confdefs.h <<_ACEOF
20986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20994 for ac_func in getpagesize
20996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21010 #define $ac_func innocuous_$ac_func
21012 /* System header to define __stub macros and hopefully few prototypes,
21013 which can conflict with char $ac_func (); below.
21014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21015 <limits.h> exists even on freestanding compilers. */
21018 # include <limits.h>
21020 # include <assert.h>
21025 /* Override any GCC internal prototype to avoid an error.
21026 Use char because int might match the return type of a GCC
21027 builtin and then its argument prototype would still apply. */
21032 /* The GNU C library defines this for functions which it implements
21033 to always fail with ENOSYS. Some functions are actually named
21034 something starting with __ and the normal name is an alias. */
21035 #if defined __stub_$ac_func || defined __stub___$ac_func
21042 return $ac_func ();
21047 rm -f conftest.$ac_objext conftest$ac_exeext
21048 if { (ac_try="$ac_link"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_link") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } &&
21061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21062 { (case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_try") 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest$ac_exeext'
21072 { (case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_try") 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 eval "$as_ac_var=yes"
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21086 eval "$as_ac_var=no"
21089 rm -f core conftest.err conftest.$ac_objext \
21090 conftest$ac_exeext conftest.$ac_ext
21092 ac_res=`eval echo '${'$as_ac_var'}'`
21093 { echo "$as_me:$LINENO: result: $ac_res" >&5
21094 echo "${ECHO_T}$ac_res" >&6; }
21095 if test `eval echo '${'$as_ac_var'}'` = yes; then
21096 cat >>confdefs.h <<_ACEOF
21097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21103 { echo "$as_me:$LINENO: checking for working mmap" >&5
21104 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21105 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 if test "$cross_compiling" = yes; then
21109 ac_cv_func_mmap_fixed_mapped=no
21111 cat >conftest.$ac_ext <<_ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 $ac_includes_default
21118 /* malloc might have been renamed as rpl_malloc. */
21121 /* Thanks to Mike Haertel and Jim Avera for this test.
21122 Here is a matrix of mmap possibilities:
21123 mmap private not fixed
21124 mmap private fixed at somewhere currently unmapped
21125 mmap private fixed at somewhere already mapped
21126 mmap shared not fixed
21127 mmap shared fixed at somewhere currently unmapped
21128 mmap shared fixed at somewhere already mapped
21129 For private mappings, we should verify that changes cannot be read()
21130 back from the file, nor mmap's back from the file at a different
21131 address. (There have been systems where private was not correctly
21132 implemented like the infamous i386 svr4.0, and systems where the
21133 VM page cache was not coherent with the file system buffer cache
21134 like early versions of FreeBSD and possibly contemporary NetBSD.)
21135 For shared mappings, we should conversely verify that changes get
21136 propagated back to all the places they're supposed to be.
21138 Grep wants private fixed already mapped.
21139 The main things grep needs to know about mmap are:
21140 * does it exist and is it safe to write into the mmap'd area
21141 * how to use it (BSD variants) */
21144 #include <sys/mman.h>
21146 #if !STDC_HEADERS && !HAVE_STDLIB_H
21150 /* This mess was copied from the GNU getpagesize.h. */
21151 #if !HAVE_GETPAGESIZE
21152 /* Assume that all systems that can run configure have sys/param.h. */
21153 # if !HAVE_SYS_PARAM_H
21154 # define HAVE_SYS_PARAM_H 1
21157 # ifdef _SC_PAGESIZE
21158 # define getpagesize() sysconf(_SC_PAGESIZE)
21159 # else /* no _SC_PAGESIZE */
21160 # if HAVE_SYS_PARAM_H
21161 # include <sys/param.h>
21162 # ifdef EXEC_PAGESIZE
21163 # define getpagesize() EXEC_PAGESIZE
21164 # else /* no EXEC_PAGESIZE */
21166 # define getpagesize() NBPG * CLSIZE
21169 # endif /* no CLSIZE */
21170 # else /* no NBPG */
21172 # define getpagesize() NBPC
21173 # else /* no NBPC */
21175 # define getpagesize() PAGESIZE
21176 # endif /* PAGESIZE */
21177 # endif /* no NBPC */
21178 # endif /* no NBPG */
21179 # endif /* no EXEC_PAGESIZE */
21180 # else /* no HAVE_SYS_PARAM_H */
21181 # define getpagesize() 8192 /* punt totally */
21182 # endif /* no HAVE_SYS_PARAM_H */
21183 # endif /* no _SC_PAGESIZE */
21185 #endif /* no HAVE_GETPAGESIZE */
21190 char *data, *data2, *data3;
21194 pagesize = getpagesize ();
21196 /* First, make a file with some known garbage in it. */
21197 data = (char *) malloc (pagesize);
21200 for (i = 0; i < pagesize; ++i)
21201 *(data + i) = rand ();
21203 fd = creat ("conftest.mmap", 0600);
21206 if (write (fd, data, pagesize) != pagesize)
21210 /* Next, try to mmap the file at a fixed address which already has
21211 something else allocated at it. If we can, also make sure that
21212 we see the same garbage. */
21213 fd = open ("conftest.mmap", O_RDWR);
21216 data2 = (char *) malloc (2 * pagesize);
21219 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21220 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21221 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21223 for (i = 0; i < pagesize; ++i)
21224 if (*(data + i) != *(data2 + i))
21227 /* Finally, make sure that changes to the mapped area do not
21228 percolate back to the file as seen by read(). (This is a bug on
21229 some variants of i386 svr4.0.) */
21230 for (i = 0; i < pagesize; ++i)
21231 *(data2 + i) = *(data2 + i) + 1;
21232 data3 = (char *) malloc (pagesize);
21235 if (read (fd, data3, pagesize) != pagesize)
21237 for (i = 0; i < pagesize; ++i)
21238 if (*(data + i) != *(data3 + i))
21244 rm -f conftest$ac_exeext
21245 if { (ac_try="$ac_link"
21246 case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_link") 2>&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
21264 ac_cv_func_mmap_fixed_mapped=yes
21266 echo "$as_me: program exited with status $ac_status" >&5
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21270 ( exit $ac_status )
21271 ac_cv_func_mmap_fixed_mapped=no
21273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21278 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21279 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21280 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21282 cat >>confdefs.h <<\_ACEOF
21283 #define HAVE_MMAP 1
21287 rm -f conftest.mmap
21289 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21290 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21291 if test "${ac_cv_func_mmap_file+set}" = set; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21295 ac_cpp='$CPP $CPPFLAGS'
21296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21300 if test "$cross_compiling" = yes; then
21301 ac_cv_func_mmap_file=no
21303 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21311 #include <sys/types.h>
21312 #include <sys/mman.h>
21320 fd = creat ("foo",0777);
21321 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21323 return (fd != (int) MAP_FAILED);
21328 rm -f conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_link") 2>&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21339 { (case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_try") 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 ac_cv_func_mmap_file=yes
21350 echo "$as_me: program exited with status $ac_status" >&5
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ( exit $ac_status )
21355 ac_cv_func_mmap_file=no
21357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21362 ac_cpp='$CPP $CPPFLAGS'
21363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21369 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21370 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21371 if test "$ac_cv_func_mmap_file" = yes; then
21373 cat >>confdefs.h <<\_ACEOF
21374 #define HAVE_MMAP_FILE
21381 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21382 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21383 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21386 if test "$llvm_cv_os_type" = "Interix" ; then
21387 ac_cv_need_dev_zero_for_mmap=yes
21389 ac_cv_need_dev_zero_for_mmap=no
21393 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21394 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21395 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21397 cat >>confdefs.h <<\_ACEOF
21398 #define NEED_DEV_ZERO_FOR_MMAP 1
21403 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21405 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21406 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21408 if test "$ac_cv_func_mmap_file" = "no"
21410 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21411 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21415 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21416 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21418 ac_cpp='$CXXCPP $CPPFLAGS'
21419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21423 cat >conftest.$ac_ext <<_ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21432 volatile unsigned long val = 1;
21433 __sync_synchronize();
21434 __sync_val_compare_and_swap(&val, 1, 0);
21435 __sync_add_and_fetch(&val, 1);
21436 __sync_sub_and_fetch(&val, 1);
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (ac_try="$ac_link"
21444 case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_link") 2>conftest.er1
21451 grep -v '^ *+' conftest.er1 >conftest.err
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } &&
21456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21457 { (case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_try") 2>&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; } &&
21466 { ac_try='test -s conftest$ac_exeext'
21467 { (case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21472 (eval "$ac_try") 2>&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21477 { echo "$as_me:$LINENO: result: yes" >&5
21478 echo "${ECHO_T}yes" >&6; }
21480 cat >>confdefs.h <<\_ACEOF
21481 #define LLVM_HAS_ATOMICS 1
21486 echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21490 { echo "$as_me:$LINENO: result: no" >&5
21491 echo "${ECHO_T}no" >&6; }
21493 cat >>confdefs.h <<\_ACEOF
21494 #define LLVM_HAS_ATOMICS 0
21497 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21498 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21502 rm -f core conftest.err conftest.$ac_objext \
21503 conftest$ac_exeext conftest.$ac_ext
21505 ac_cpp='$CPP $CPPFLAGS'
21506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21512 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21513 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21514 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21515 if test "${llvm_cv_linux_mixed+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 ac_cpp='$CPP $CPPFLAGS'
21520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21524 cat >conftest.$ac_ext <<_ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21531 error: Not x86-64 even if uname says so!
21542 rm -f conftest.$ac_objext
21543 if { (ac_try="$ac_compile"
21544 case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_compile") 2>conftest.er1
21551 grep -v '^ *+' conftest.er1 >conftest.err
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } &&
21556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21557 { (case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_try") 2>&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; } &&
21566 { ac_try='test -s conftest.$ac_objext'
21567 { (case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572 (eval "$ac_try") 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; }; then
21576 llvm_cv_linux_mixed=no
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21581 llvm_cv_linux_mixed=yes
21584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 ac_cpp='$CPP $CPPFLAGS'
21587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21593 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21594 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21596 if test "$llvm_cv_linux_mixed" = "yes"; then
21597 llvm_cv_target_arch="x86"
21603 for ac_func in __dso_handle
21605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 cat >conftest.$ac_ext <<_ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h. */
21617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21619 #define $ac_func innocuous_$ac_func
21621 /* System header to define __stub macros and hopefully few prototypes,
21622 which can conflict with char $ac_func (); below.
21623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21624 <limits.h> exists even on freestanding compilers. */
21627 # include <limits.h>
21629 # include <assert.h>
21634 /* Override any GCC internal prototype to avoid an error.
21635 Use char because int might match the return type of a GCC
21636 builtin and then its argument prototype would still apply. */
21641 /* The GNU C library defines this for functions which it implements
21642 to always fail with ENOSYS. Some functions are actually named
21643 something starting with __ and the normal name is an alias. */
21644 #if defined __stub_$ac_func || defined __stub___$ac_func
21651 return $ac_func ();
21656 rm -f conftest.$ac_objext conftest$ac_exeext
21657 if { (ac_try="$ac_link"
21658 case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_link") 2>conftest.er1
21665 grep -v '^ *+' conftest.er1 >conftest.err
21667 cat conftest.err >&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } &&
21670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21671 { (case "(($ac_try" in
21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673 *) ac_try_echo=$ac_try;;
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676 (eval "$ac_try") 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; } &&
21680 { ac_try='test -s conftest$ac_exeext'
21681 { (case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_try") 2>&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); }; }; then
21690 eval "$as_ac_var=yes"
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21695 eval "$as_ac_var=no"
21698 rm -f core conftest.err conftest.$ac_objext \
21699 conftest$ac_exeext conftest.$ac_ext
21701 ac_res=`eval echo '${'$as_ac_var'}'`
21702 { echo "$as_me:$LINENO: result: $ac_res" >&5
21703 echo "${ECHO_T}$ac_res" >&6; }
21704 if test `eval echo '${'$as_ac_var'}'` = yes; then
21705 cat >>confdefs.h <<_ACEOF
21706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21713 SHLIBEXT=$libltdl_cv_shlibext
21716 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21719 if test "${prefix}" = "NONE" ; then
21720 prefix="/usr/local"
21722 eval LLVM_PREFIX="${prefix}";
21723 eval LLVM_BINDIR="${prefix}/bin";
21724 eval LLVM_DATADIR="${prefix}/share/llvm";
21725 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21726 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21727 eval LLVM_INCLUDEDIR="${prefix}/include";
21728 eval LLVM_INFODIR="${prefix}/info";
21729 eval LLVM_MANDIR="${prefix}/man";
21730 LLVM_CONFIGTIME=`date`
21741 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21742 LLVM_CONFIGTIME="(timestamp not enabled)"
21746 cat >>confdefs.h <<_ACEOF
21747 #define LLVM_PREFIX "$LLVM_PREFIX"
21751 cat >>confdefs.h <<_ACEOF
21752 #define LLVM_BINDIR "$LLVM_BINDIR"
21756 cat >>confdefs.h <<_ACEOF
21757 #define LLVM_DATADIR "$LLVM_DATADIR"
21761 cat >>confdefs.h <<_ACEOF
21762 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21766 cat >>confdefs.h <<_ACEOF
21767 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21771 cat >>confdefs.h <<_ACEOF
21772 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21776 cat >>confdefs.h <<_ACEOF
21777 #define LLVM_INFODIR "$LLVM_INFODIR"
21781 cat >>confdefs.h <<_ACEOF
21782 #define LLVM_MANDIR "$LLVM_MANDIR"
21786 cat >>confdefs.h <<_ACEOF
21787 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21791 cat >>confdefs.h <<_ACEOF
21792 #define LLVM_HOST_TRIPLE "$host"
21796 cat >>confdefs.h <<_ACEOF
21797 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21801 if test "$BINDINGS_TO_BUILD" = auto ; then
21802 BINDINGS_TO_BUILD=""
21803 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21804 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21807 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21813 binding_prereqs_failed=0
21814 for a_binding in $BINDINGS_TO_BUILD ; do
21815 case "$a_binding" in
21817 if test "x$OCAMLC" = x ; then
21818 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21819 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21820 binding_prereqs_failed=1
21822 if test "x$OCAMLDEP" = x ; then
21823 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21824 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21825 binding_prereqs_failed=1
21827 if test "x$OCAMLOPT" = x ; then
21828 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21829 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21831 if test "x$with_ocaml_libdir" != xauto ; then
21832 OCAML_LIBDIR=$with_ocaml_libdir
21835 ocaml_stdlib="`"$OCAMLC" -where`"
21836 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21838 # ocaml stdlib is beneath our prefix; use stdlib
21839 OCAML_LIBDIR=$ocaml_stdlib
21842 # ocaml stdlib is outside our prefix; use libdir/ocaml
21843 OCAML_LIBDIR=${prefix}/lib/ocaml
21850 if test "$binding_prereqs_failed" = 1 ; then
21851 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21852 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21853 { (exit 1); exit 1; }; }
21856 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21857 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21858 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21859 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 ac_cpp='$CXXCPP $CPPFLAGS'
21863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21867 oldcxxflags="$CXXFLAGS"
21868 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21875 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_compile") 2>conftest.er1
21893 grep -v '^ *+' conftest.er1 >conftest.err
21895 cat conftest.err >&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } &&
21898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21899 { (case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904 (eval "$ac_try") 2>&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; } &&
21908 { ac_try='test -s conftest.$ac_objext'
21909 { (case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_try") 2>&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 llvm_cv_cxx_visibility_inlines_hidden=yes
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 llvm_cv_cxx_visibility_inlines_hidden=no
21926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927 CXXFLAGS="$oldcxxflags"
21929 ac_cpp='$CPP $CPPFLAGS'
21930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21936 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21937 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21938 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21939 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21942 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21947 if test "$llvm_cv_link_use_r" = "yes" ; then
21954 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21955 RDYNAMIC="-rdynamic"
21962 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21969 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21971 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21973 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21975 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21977 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21980 ac_config_files="$ac_config_files Makefile.config"
21983 ac_config_files="$ac_config_files llvm.spec"
21986 ac_config_files="$ac_config_files docs/doxygen.cfg"
21989 if test "${clang_src_root}" = ""; then
21990 clang_src_root="$srcdir/tools/clang"
21992 if test -f ${clang_src_root}/README.txt; then
21993 configh="include/clang/Config/config.h"
21994 doxy="docs/doxygen.cfg"
21995 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21997 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22001 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22004 test "x$program_prefix" = "xNONE" && program_prefix=""
22008 ac_config_commands="$ac_config_commands setup"
22010 ac_config_commands="$ac_config_commands Makefile"
22013 ac_config_commands="$ac_config_commands Makefile.common"
22016 ac_config_commands="$ac_config_commands examples/Makefile"
22019 ac_config_commands="$ac_config_commands lib/Makefile"
22022 ac_config_commands="$ac_config_commands test/Makefile"
22025 ac_config_commands="$ac_config_commands test/Makefile.tests"
22028 ac_config_commands="$ac_config_commands unittests/Makefile"
22031 ac_config_commands="$ac_config_commands tools/Makefile"
22034 ac_config_commands="$ac_config_commands utils/Makefile"
22037 ac_config_commands="$ac_config_commands projects/Makefile"
22040 ac_config_commands="$ac_config_commands bindings/Makefile"
22043 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22047 cat >confcache <<\_ACEOF
22048 # This file is a shell script that caches the results of configure
22049 # tests run on this system so they can be shared between configure
22050 # scripts and configure runs, see configure's option --config-cache.
22051 # It is not useful on other systems. If it contains results you don't
22052 # want to keep, you may remove or edit it.
22054 # config.status only pays attention to the cache file if you give it
22055 # the --recheck option to rerun configure.
22057 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22058 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22059 # following values.
22063 # The following way of writing the cache mishandles newlines in values,
22064 # but we know of no workaround that is simple, portable, and efficient.
22065 # So, we kill variables containing newlines.
22066 # Ultrix sh set writes to stderr and can't be redirected directly,
22067 # and sets the high bit in the cache file unless we assign to the vars.
22069 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22070 eval ac_val=\$$ac_var
22074 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22075 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22078 _ | IFS | as_nl) ;; #(
22079 *) $as_unset $ac_var ;;
22085 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22086 *${as_nl}ac_space=\ *)
22087 # `set' does not quote correctly, so add quotes (double-quote
22088 # substitution turns \\\\ into \\, and sed turns \\ into \).
22091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22094 # `set' quotes correctly as required by POSIX, so do not add quotes.
22095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22104 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22106 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22108 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22109 if test -w "$cache_file"; then
22110 test "x$cache_file" != "x/dev/null" &&
22111 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22112 echo "$as_me: updating cache $cache_file" >&6;}
22113 cat confcache >$cache_file
22115 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22116 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22121 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22122 # Let make expand exec_prefix.
22123 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22125 DEFS=-DHAVE_CONFIG_H
22129 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22130 # 1. Remove the extension, and $U if already installed.
22131 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22132 ac_i=`echo "$ac_i" | sed "$ac_script"`
22133 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22134 # will be set to the directory where LIBOBJS objects are built.
22135 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22136 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22138 LIBOBJS=$ac_libobjs
22140 LTLIBOBJS=$ac_ltlibobjs
22143 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22144 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22145 Usually this means the macro was only invoked conditionally." >&5
22146 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22147 Usually this means the macro was only invoked conditionally." >&2;}
22148 { (exit 1); exit 1; }; }
22150 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22151 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22152 Usually this means the macro was only invoked conditionally." >&5
22153 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22154 Usually this means the macro was only invoked conditionally." >&2;}
22155 { (exit 1); exit 1; }; }
22158 : ${CONFIG_STATUS=./config.status}
22159 ac_clean_files_save=$ac_clean_files
22160 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22161 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22162 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22163 cat >$CONFIG_STATUS <<_ACEOF
22165 # Generated by $as_me.
22166 # Run this file to recreate the current configuration.
22167 # Compiler output produced by configure, useful for debugging
22168 # configure, is in config.log if it exists.
22171 ac_cs_recheck=false
22173 SHELL=\${CONFIG_SHELL-$SHELL}
22176 cat >>$CONFIG_STATUS <<\_ACEOF
22177 ## --------------------- ##
22178 ## M4sh Initialization. ##
22179 ## --------------------- ##
22181 # Be Bourne compatible
22182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22185 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22186 # is contrary to our usage. Disable this feature.
22187 alias -g '${1+"$@"}'='"$@"'
22188 setopt NO_GLOB_SUBST
22190 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22192 BIN_SH=xpg4; export BIN_SH # for Tru64
22193 DUALCASE=1; export DUALCASE # for MKS sh
22197 # Avoid depending upon Character Ranges.
22198 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22199 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22200 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22201 as_cr_digits='0123456789'
22202 as_cr_alnum=$as_cr_Letters$as_cr_digits
22204 # The user is always right.
22205 if test "${PATH_SEPARATOR+set}" != set; then
22206 echo "#! /bin/sh" >conf$$.sh
22207 echo "exit 0" >>conf$$.sh
22209 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22217 # Support unset when possible.
22218 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22226 # We need space, tab and new line, in precisely that order. Quoting is
22227 # there to prevent editors from complaining about space-tab.
22228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22229 # splitting by setting IFS to empty value.)
22234 # Find who we are. Look in the path if we contain no directory separator.
22236 *[\\/]* ) as_myself=$0 ;;
22237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22238 for as_dir in $PATH
22241 test -z "$as_dir" && as_dir=.
22242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22248 # We did not find ourselves, most probably we were run as `sh COMMAND'
22249 # in which case we are not to be found in the path.
22250 if test "x$as_myself" = x; then
22253 if test ! -f "$as_myself"; then
22254 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22255 { (exit 1); exit 1; }
22258 # Work around bugs in pre-3.0 UWIN ksh.
22259 for as_var in ENV MAIL MAILPATH
22260 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22268 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22269 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22270 LC_TELEPHONE LC_TIME
22272 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22273 eval $as_var=C; export $as_var
22275 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22279 # Required to use basename.
22280 if expr a : '\(a\)' >/dev/null 2>&1 &&
22281 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22287 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22288 as_basename=basename
22294 # Name of the executable.
22295 as_me=`$as_basename -- "$0" ||
22296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22297 X"$0" : 'X\(//\)$' \| \
22298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22300 sed '/^.*\/\([^/][^/]*\)\/*$/{
22319 as_lineno_1=$LINENO
22320 as_lineno_2=$LINENO
22321 test "x$as_lineno_1" != "x$as_lineno_2" &&
22322 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22324 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22325 # uniformly replaced by the line number. The first 'sed' inserts a
22326 # line-number line after each line using $LINENO; the second 'sed'
22327 # does the real work. The second script uses 'N' to pair each
22328 # line-number line with the line containing $LINENO, and appends
22329 # trailing '-' during substitution so that $LINENO is not a special
22330 # case at line end.
22331 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22332 # scripts with optimization help from Paolo Bonzini. Blame Lee
22333 # E. McMahon (1931-1989) for sed's syntax. :-)
22345 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22348 ' >$as_me.lineno &&
22349 chmod +x "$as_me.lineno" ||
22350 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22351 { (exit 1); exit 1; }; }
22353 # Don't try to exec as it changes $[0], causing all sort of problems
22354 # (the dirname of $[0] is not the place where we might find the
22355 # original and so on. Autoconf is especially sensitive to this).
22356 . "./$as_me.lineno"
22357 # Exit status is that of the last command.
22362 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22368 ECHO_C= ECHO_N= ECHO_T=
22369 case `echo -n x` in
22371 case `echo 'x\c'` in
22372 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22379 if expr a : '\(a\)' >/dev/null 2>&1 &&
22380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22386 rm -f conf$$ conf$$.exe conf$$.file
22387 if test -d conf$$.dir; then
22388 rm -f conf$$.dir/conf$$.file
22394 if ln -s conf$$.file conf$$ 2>/dev/null; then
22396 # ... but there are two gotchas:
22397 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22398 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22399 # In both cases, we have to default to `cp -p'.
22400 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22402 elif ln conf$$.file conf$$ 2>/dev/null; then
22407 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22408 rmdir conf$$.dir 2>/dev/null
22410 if mkdir -p . 2>/dev/null; then
22413 test -d ./-p && rmdir ./-p
22417 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22418 # systems may use methods other than mode bits to determine executability.
22419 cat >conf$$.file <<_ASEOF
22423 chmod +x conf$$.file
22424 if test -x conf$$.file >/dev/null 2>&1; then
22425 as_executable_p="test -x"
22431 # Sed expression to map a string onto a valid CPP name.
22432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22434 # Sed expression to map a string onto a valid variable name.
22435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22440 # Save the log message, to keep $[0] and so on meaningful, and to
22441 # report actual input values of CONFIG_FILES etc. instead of their
22442 # values after options handling.
22444 This file was extended by LLVM $as_me 3.5svn, which was
22445 generated by GNU Autoconf 2.60. Invocation command line was
22447 CONFIG_FILES = $CONFIG_FILES
22448 CONFIG_HEADERS = $CONFIG_HEADERS
22449 CONFIG_LINKS = $CONFIG_LINKS
22450 CONFIG_COMMANDS = $CONFIG_COMMANDS
22453 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22458 cat >>$CONFIG_STATUS <<_ACEOF
22459 # Files that config.status was made for.
22460 config_files="$ac_config_files"
22461 config_headers="$ac_config_headers"
22462 config_commands="$ac_config_commands"
22466 cat >>$CONFIG_STATUS <<\_ACEOF
22468 \`$as_me' instantiates files from templates according to the
22469 current configuration.
22471 Usage: $0 [OPTIONS] [FILE]...
22473 -h, --help print this help, then exit
22474 -V, --version print version number, then exit
22475 -q, --quiet do not print progress messages
22476 -d, --debug don't remove temporary files
22477 --recheck update $as_me by reconfiguring in the same conditions
22478 --file=FILE[:TEMPLATE]
22479 instantiate the configuration file FILE
22480 --header=FILE[:TEMPLATE]
22481 instantiate the configuration header FILE
22483 Configuration files:
22486 Configuration headers:
22489 Configuration commands:
22492 Report bugs to <bug-autoconf@gnu.org>."
22495 cat >>$CONFIG_STATUS <<_ACEOF
22497 LLVM config.status 3.5svn
22498 configured by $0, generated by GNU Autoconf 2.60,
22499 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22501 Copyright (C) 2006 Free Software Foundation, Inc.
22502 This config.status script is free software; the Free Software Foundation
22503 gives unlimited permission to copy, distribute and modify it."
22510 cat >>$CONFIG_STATUS <<\_ACEOF
22511 # If no file are specified by the user, then we need to provide default
22512 # value. By we need to know if files were specified by the user.
22518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22519 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22530 # Handling of the options.
22531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22533 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22534 echo "$ac_cs_version"; exit ;;
22535 --debug | --debu | --deb | --de | --d | -d )
22537 --file | --fil | --fi | --f )
22539 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22540 ac_need_defaults=false;;
22541 --header | --heade | --head | --hea )
22543 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22544 ac_need_defaults=false;;
22546 # Conflict between --help and --header
22547 { echo "$as_me: error: ambiguous option: $1
22548 Try \`$0 --help' for more information." >&2
22549 { (exit 1); exit 1; }; };;
22550 --help | --hel | -h )
22551 echo "$ac_cs_usage"; exit ;;
22552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22553 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22556 # This is an error.
22557 -*) { echo "$as_me: error: unrecognized option: $1
22558 Try \`$0 --help' for more information." >&2
22559 { (exit 1); exit 1; }; } ;;
22561 *) ac_config_targets="$ac_config_targets $1"
22562 ac_need_defaults=false ;;
22568 ac_configure_extra_args=
22570 if $ac_cs_silent; then
22572 ac_configure_extra_args="$ac_configure_extra_args --silent"
22576 cat >>$CONFIG_STATUS <<_ACEOF
22577 if \$ac_cs_recheck; then
22578 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22579 CONFIG_SHELL=$SHELL
22580 export CONFIG_SHELL
22581 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22585 cat >>$CONFIG_STATUS <<\_ACEOF
22589 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22590 ## Running $as_me. ##
22596 cat >>$CONFIG_STATUS <<_ACEOF
22600 llvm_src="${srcdir}"
22604 cat >>$CONFIG_STATUS <<\_ACEOF
22606 # Handling of arguments.
22607 for ac_config_target in $ac_config_targets
22609 case $ac_config_target in
22610 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22611 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22612 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22613 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22614 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22615 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22616 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22617 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22618 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22619 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22620 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22621 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22622 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22623 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22624 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22625 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22626 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22627 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22628 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22629 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22630 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22631 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22632 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22633 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22634 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22635 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22637 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22638 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22639 { (exit 1); exit 1; }; };;
22644 # If the user did not use the arguments to specify the items to instantiate,
22645 # then the envvar interface is used. Set only those that are not.
22646 # We use the long form for the default assignment because of an extremely
22647 # bizarre bug on SunOS 4.1.3.
22648 if $ac_need_defaults; then
22649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22650 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22654 # Have a temporary directory for convenience. Make it in the build tree
22655 # simply because there is no reason against having it here, and in addition,
22656 # creating and moving files from /tmp can sometimes cause problems.
22657 # Hook for its removal unless debugging.
22658 # Note that there is a small window in which the directory will not be cleaned:
22659 # after its creation but before its name has been assigned to `$tmp'.
22663 trap 'exit_status=$?
22664 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22666 trap '{ (exit 1); exit 1; }' 1 2 13 15
22668 # Create a (secure) tmp directory for tmp files.
22671 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22672 test -n "$tmp" && test -d "$tmp"
22675 tmp=./conf$$-$RANDOM
22676 (umask 077 && mkdir "$tmp")
22679 echo "$me: cannot create a temporary directory in ." >&2
22680 { (exit 1); exit 1; }
22684 # Set up the sed scripts for CONFIG_FILES section.
22687 # No need to generate the scripts if there are no CONFIG_FILES.
22688 # This happens for instance when ./config.status config.h
22689 if test -n "$CONFIG_FILES"; then
22696 for ac_last_try in false false false false false :; do
22697 cat >conf$$subs.sed <<_ACEOF
22698 SHELL!$SHELL$ac_delim
22699 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22700 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22701 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22702 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22703 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22704 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22705 exec_prefix!$exec_prefix$ac_delim
22706 prefix!$prefix$ac_delim
22707 program_transform_name!$program_transform_name$ac_delim
22708 bindir!$bindir$ac_delim
22709 sbindir!$sbindir$ac_delim
22710 libexecdir!$libexecdir$ac_delim
22711 datarootdir!$datarootdir$ac_delim
22712 datadir!$datadir$ac_delim
22713 sysconfdir!$sysconfdir$ac_delim
22714 sharedstatedir!$sharedstatedir$ac_delim
22715 localstatedir!$localstatedir$ac_delim
22716 includedir!$includedir$ac_delim
22717 oldincludedir!$oldincludedir$ac_delim
22718 docdir!$docdir$ac_delim
22719 infodir!$infodir$ac_delim
22720 htmldir!$htmldir$ac_delim
22721 dvidir!$dvidir$ac_delim
22722 pdfdir!$pdfdir$ac_delim
22723 psdir!$psdir$ac_delim
22724 libdir!$libdir$ac_delim
22725 localedir!$localedir$ac_delim
22726 mandir!$mandir$ac_delim
22727 DEFS!$DEFS$ac_delim
22728 ECHO_C!$ECHO_C$ac_delim
22729 ECHO_N!$ECHO_N$ac_delim
22730 ECHO_T!$ECHO_T$ac_delim
22731 LIBS!$LIBS$ac_delim
22732 build_alias!$build_alias$ac_delim
22733 host_alias!$host_alias$ac_delim
22734 target_alias!$target_alias$ac_delim
22735 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22737 CFLAGS!$CFLAGS$ac_delim
22738 LDFLAGS!$LDFLAGS$ac_delim
22739 CPPFLAGS!$CPPFLAGS$ac_delim
22740 ac_ct_CC!$ac_ct_CC$ac_delim
22741 EXEEXT!$EXEEXT$ac_delim
22742 OBJEXT!$OBJEXT$ac_delim
22744 CXXFLAGS!$CXXFLAGS$ac_delim
22745 ac_ct_CXX!$ac_ct_CXX$ac_delim
22747 subdirs!$subdirs$ac_delim
22748 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22749 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22750 build!$build$ac_delim
22751 build_cpu!$build_cpu$ac_delim
22752 build_vendor!$build_vendor$ac_delim
22753 build_os!$build_os$ac_delim
22754 host!$host$ac_delim
22755 host_cpu!$host_cpu$ac_delim
22756 host_vendor!$host_vendor$ac_delim
22757 host_os!$host_os$ac_delim
22758 target!$target$ac_delim
22759 target_cpu!$target_cpu$ac_delim
22760 target_vendor!$target_vendor$ac_delim
22761 target_os!$target_os$ac_delim
22763 HOST_OS!$HOST_OS$ac_delim
22764 TARGET_OS!$TARGET_OS$ac_delim
22765 LINKALL!$LINKALL$ac_delim
22766 NOLINKALL!$NOLINKALL$ac_delim
22767 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22768 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22769 ARCH!$ARCH$ac_delim
22770 HOST_ARCH!$HOST_ARCH$ac_delim
22771 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22772 BUILD_CC!$BUILD_CC$ac_delim
22773 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22774 BUILD_CXX!$BUILD_CXX$ac_delim
22775 CVSBUILD!$CVSBUILD$ac_delim
22776 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22777 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22778 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22779 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22780 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22781 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22782 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22783 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22784 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22785 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22786 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22787 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22788 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22789 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22790 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22792 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22793 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22794 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22797 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22799 elif $ac_last_try; then
22800 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22801 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22802 { (exit 1); exit 1; }; }
22804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22808 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22809 if test -n "$ac_eof"; then
22810 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22811 ac_eof=`expr $ac_eof + 1`
22814 cat >>$CONFIG_STATUS <<_ACEOF
22815 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22819 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22820 s/^/s,@/; s/!/@,|#_!!_#|/
22823 s/'"$ac_delim"'$/,g/; t
22825 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22826 ' >>$CONFIG_STATUS <conf$$subs.sed
22827 rm -f conf$$subs.sed
22828 cat >>$CONFIG_STATUS <<_ACEOF
22834 for ac_last_try in false false false false false :; do
22835 cat >conf$$subs.sed <<_ACEOF
22836 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22837 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22838 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22839 ENABLE_PIC!$ENABLE_PIC$ac_delim
22840 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22841 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22842 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22843 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22844 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22845 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22846 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22847 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22848 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22849 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22850 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22851 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22852 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22853 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22855 ifGNUmake!$ifGNUmake$ac_delim
22856 LN_S!$LN_S$ac_delim
22859 DATE!$DATE$ac_delim
22860 FIND!$FIND$ac_delim
22861 GREP!$GREP$ac_delim
22862 MKDIR!$MKDIR$ac_delim
22864 RANLIB!$RANLIB$ac_delim
22869 BINPWD!$BINPWD$ac_delim
22870 GRAPHVIZ!$GRAPHVIZ$ac_delim
22873 NEATO!$NEATO$ac_delim
22874 TWOPI!$TWOPI$ac_delim
22875 CIRCO!$CIRCO$ac_delim
22877 DOTTY!$DOTTY$ac_delim
22878 XDOT!$XDOT$ac_delim
22879 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22880 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22881 INSTALL_DATA!$INSTALL_DATA$ac_delim
22882 BZIP2!$BZIP2$ac_delim
22884 DOXYGEN!$DOXYGEN$ac_delim
22885 GROFF!$GROFF$ac_delim
22886 GZIPBIN!$GZIPBIN$ac_delim
22887 PDFROFF!$PDFROFF$ac_delim
22889 OCAMLC!$OCAMLC$ac_delim
22890 OCAMLOPT!$OCAMLOPT$ac_delim
22891 OCAMLDEP!$OCAMLDEP$ac_delim
22892 OCAMLDOC!$OCAMLDOC$ac_delim
22894 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22895 EGREP!$EGREP$ac_delim
22896 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22897 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22898 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22899 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22900 LIBADD_DL!$LIBADD_DL$ac_delim
22901 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22902 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22903 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22904 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22905 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22906 PYTHON!$PYTHON$ac_delim
22907 USE_UDIS86!$USE_UDIS86$ac_delim
22908 USE_OPROFILE!$USE_OPROFILE$ac_delim
22909 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22910 XML2CONFIG!$XML2CONFIG$ac_delim
22911 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22912 LIBXML2_INC!$LIBXML2_INC$ac_delim
22913 CXXCPP!$CXXCPP$ac_delim
22914 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22915 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
22916 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22917 MMAP_FILE!$MMAP_FILE$ac_delim
22918 SHLIBEXT!$SHLIBEXT$ac_delim
22919 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22920 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22921 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22922 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22923 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22924 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22925 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22926 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22927 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22928 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22929 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22930 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22931 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22932 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22935 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22937 elif $ac_last_try; then
22938 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22940 { (exit 1); exit 1; }; }
22942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22946 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22947 if test -n "$ac_eof"; then
22948 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22949 ac_eof=`expr $ac_eof + 1`
22952 cat >>$CONFIG_STATUS <<_ACEOF
22953 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22958 s/^/s,@/; s/!/@,|#_!!_#|/
22961 s/'"$ac_delim"'$/,g/; t
22963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22964 ' >>$CONFIG_STATUS <conf$$subs.sed
22965 rm -f conf$$subs.sed
22966 cat >>$CONFIG_STATUS <<_ACEOF
22972 for ac_last_try in false false false false false :; do
22973 cat >conf$$subs.sed <<_ACEOF
22974 RPATH!$RPATH$ac_delim
22975 RDYNAMIC!$RDYNAMIC$ac_delim
22976 program_prefix!$program_prefix$ac_delim
22977 LIBOBJS!$LIBOBJS$ac_delim
22978 LTLIBOBJS!$LTLIBOBJS$ac_delim
22981 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
22983 elif $ac_last_try; then
22984 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22985 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22986 { (exit 1); exit 1; }; }
22988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22992 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22993 if test -n "$ac_eof"; then
22994 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22995 ac_eof=`expr $ac_eof + 1`
22998 cat >>$CONFIG_STATUS <<_ACEOF
22999 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23003 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23004 s/^/s,@/; s/!/@,|#_!!_#|/
23007 s/'"$ac_delim"'$/,g/; t
23009 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23010 ' >>$CONFIG_STATUS <conf$$subs.sed
23011 rm -f conf$$subs.sed
23012 cat >>$CONFIG_STATUS <<_ACEOF
23019 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23020 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23021 # trailing colons and then remove the whole line if VPATH becomes empty
23022 # (actually we leave an empty line to preserve line numbers).
23023 if test "x$srcdir" = x.; then
23024 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23025 s/:*\$(srcdir):*/:/
23026 s/:*\${srcdir}:*/:/
23028 s/^\([^=]*=[ ]*\):*/\1/
23034 cat >>$CONFIG_STATUS <<\_ACEOF
23035 fi # test -n "$CONFIG_FILES"
23038 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23041 :[FHLC]) ac_mode=$ac_tag; continue;;
23043 case $ac_mode$ac_tag in
23045 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23046 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23047 { (exit 1); exit 1; }; };;
23048 :[FH]-) ac_tag=-:-;;
23049 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23066 -) ac_f="$tmp/stdin";;
23067 *) # Look for the file first in the build tree, then in the source tree
23068 # (if the path is not absolute). The absolute path cannot be DOS-style,
23069 # because $ac_f cannot contain `:'.
23073 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23075 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23076 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23077 { (exit 1); exit 1; }; };;
23079 ac_file_inputs="$ac_file_inputs $ac_f"
23082 # Let's still pretend it is `configure' which instantiates (i.e., don't
23083 # use $as_me), people would be surprised to read:
23084 # /* config.h. Generated by config.status. */
23085 configure_input="Generated from "`IFS=:
23086 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23087 if test x"$ac_file" != x-; then
23088 configure_input="$ac_file. $configure_input"
23089 { echo "$as_me:$LINENO: creating $ac_file" >&5
23090 echo "$as_me: creating $ac_file" >&6;}
23094 *:-:* | *:-) cat >"$tmp/stdin";;
23099 ac_dir=`$as_dirname -- "$ac_file" ||
23100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23101 X"$ac_file" : 'X\(//\)[^/]' \| \
23102 X"$ac_file" : 'X\(//\)$' \| \
23103 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23109 /^X\(\/\/\)[^/].*/{
23124 -*) as_dir=./$as_dir;;
23126 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23130 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23131 *) as_qdir=$as_dir;;
23133 as_dirs="'$as_qdir' $as_dirs"
23134 as_dir=`$as_dirname -- "$as_dir" ||
23135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23136 X"$as_dir" : 'X\(//\)[^/]' \| \
23137 X"$as_dir" : 'X\(//\)$' \| \
23138 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23144 /^X\(\/\/\)[^/].*/{
23157 test -d "$as_dir" && break
23159 test -z "$as_dirs" || eval "mkdir $as_dirs"
23160 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23161 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23162 { (exit 1); exit 1; }; }; }
23166 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23168 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23169 # A ".." for each directory in $ac_dir_suffix.
23170 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23171 case $ac_top_builddir_sub in
23172 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23173 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23176 ac_abs_top_builddir=$ac_pwd
23177 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23178 # for backward compatibility:
23179 ac_top_builddir=$ac_top_build_prefix
23182 .) # We are building in place.
23184 ac_top_srcdir=$ac_top_builddir_sub
23185 ac_abs_top_srcdir=$ac_pwd ;;
23186 [\\/]* | ?:[\\/]* ) # Absolute name.
23187 ac_srcdir=$srcdir$ac_dir_suffix;
23188 ac_top_srcdir=$srcdir
23189 ac_abs_top_srcdir=$srcdir ;;
23190 *) # Relative name.
23191 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23192 ac_top_srcdir=$ac_top_build_prefix$srcdir
23193 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23195 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23205 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23206 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23210 cat >>$CONFIG_STATUS <<\_ACEOF
23211 # If the template does not know about datarootdir, expand it.
23212 # FIXME: This hack should be removed a few years after 2.60.
23213 ac_datarootdir_hack=; ac_datarootdir_seen=
23215 case `sed -n '/datarootdir/ {
23224 ' $ac_file_inputs` in
23225 *datarootdir*) ac_datarootdir_seen=yes;;
23226 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23227 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23228 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23230 cat >>$CONFIG_STATUS <<_ACEOF
23231 ac_datarootdir_hack='
23232 s&@datadir@&$datadir&g
23233 s&@docdir@&$docdir&g
23234 s&@infodir@&$infodir&g
23235 s&@localedir@&$localedir&g
23236 s&@mandir@&$mandir&g
23237 s&\\\${datarootdir}&$datarootdir&g' ;;
23241 # Neutralize VPATH when `$srcdir' = `.'.
23242 # Shell code in configure.ac might set extrasub.
23243 # FIXME: do we really want to maintain this feature?
23244 cat >>$CONFIG_STATUS <<_ACEOF
23248 cat >>$CONFIG_STATUS <<\_ACEOF
23250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23251 s&@configure_input@&$configure_input&;t t
23252 s&@top_builddir@&$ac_top_builddir_sub&;t t
23253 s&@srcdir@&$ac_srcdir&;t t
23254 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23255 s&@top_srcdir@&$ac_top_srcdir&;t t
23256 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23257 s&@builddir@&$ac_builddir&;t t
23258 s&@abs_builddir@&$ac_abs_builddir&;t t
23259 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23260 s&@INSTALL@&$ac_INSTALL&;t t
23261 $ac_datarootdir_hack
23262 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23264 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23265 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23266 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23267 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23268 which seems to be undefined. Please make sure it is defined." >&5
23269 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23270 which seems to be undefined. Please make sure it is defined." >&2;}
23274 -) cat "$tmp/out"; rm -f "$tmp/out";;
23275 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23284 # Transform confdefs.h into a sed script `conftest.defines', that
23285 # substitutes the proper values into config.h.in to produce config.h.
23286 rm -f conftest.defines conftest.tail
23287 # First, append a space to every undef/define line, to ease matching.
23288 echo 's/$/ /' >conftest.defines
23289 # Then, protect against being on the right side of a sed subst, or in
23290 # an unquoted here document, in config.status. If some macros were
23291 # called several times there might be several #defines for the same
23292 # symbol, which is useless. But do not sort them, since the last
23293 # AC_DEFINE must be honored.
23294 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23295 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23296 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23297 # PARAMS is the parameter list in the macro definition--in most cases, it's
23298 # just an empty string.
23299 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23300 ac_dB='\\)[ (].*,\\1define\\2'
23308 s/^[ ]*#[ ]*define[ ][ ]*//
23313 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23314 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23315 ' >>conftest.defines
23317 # Remove the space that was appended to ease matching.
23318 # Then replace #undef with comments. This is necessary, for
23319 # example, in the case of _POSIX_SOURCE, which is predefined and required
23320 # on some systems where configure will not decide to define it.
23321 # (The regexp can be short, since the line contains either #define or #undef.)
23323 s,^[ #]*u.*,/* & */,' >>conftest.defines
23325 # Break up conftest.defines:
23326 ac_max_sed_lines=50
23328 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23329 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23330 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23332 ac_in='$ac_file_inputs'
23333 ac_out='"$tmp/out1"'
23334 ac_nxt='"$tmp/out2"'
23338 # Write a here document:
23339 cat >>$CONFIG_STATUS <<_ACEOF
23340 # First, check the format of the line:
23341 cat >"\$tmp/defines.sed" <<\\CEOF
23342 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23343 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23347 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23349 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23350 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23351 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23352 grep . conftest.tail >/dev/null || break
23353 rm -f conftest.defines
23354 mv conftest.tail conftest.defines
23356 rm -f conftest.defines conftest.tail
23358 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23359 cat >>$CONFIG_STATUS <<\_ACEOF
23360 if test x"$ac_file" != x-; then
23361 echo "/* $configure_input */" >"$tmp/config.h"
23362 cat "$ac_result" >>"$tmp/config.h"
23363 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23364 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23365 echo "$as_me: $ac_file is unchanged" >&6;}
23368 mv "$tmp/config.h" $ac_file
23371 echo "/* $configure_input */"
23377 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23378 echo "$as_me: executing $ac_file commands" >&6;}
23383 case $ac_file$ac_mode in
23384 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23385 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23386 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23387 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23388 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23389 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23390 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23391 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23392 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23393 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23394 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23395 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23396 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23397 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23398 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23399 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23400 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23401 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23402 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23403 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23404 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23405 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23406 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23407 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23413 { (exit 0); exit 0; }
23415 chmod +x $CONFIG_STATUS
23416 ac_clean_files=$ac_clean_files_save
23419 # configure is writing to config.log, and then calls config.status.
23420 # config.status does its own redirection, appending to config.log.
23421 # Unfortunately, on DOS this fails, as config.log is still kept open
23422 # by configure, so config.status won't be able to write to it; its
23423 # output is simply discarded. So we exec the FD to /dev/null,
23424 # effectively closing config.log, so it can be properly (re)opened and
23425 # appended to by config.status. When coming back to configure, we
23426 # need to make the FD available again.
23427 if test "$no_create" != yes; then
23429 ac_config_status_args=
23430 test "$silent" = yes &&
23431 ac_config_status_args="$ac_config_status_args --quiet"
23433 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23435 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23436 # would make configure fail if this is the last instruction.
23437 $ac_cs_success || { (exit 1); exit 1; }
23441 # CONFIG_SUBDIRS section.
23443 if test "$no_recursion" != yes; then
23445 # Remove --cache-file and --srcdir arguments so they do not pile up.
23446 ac_sub_configure_args=
23448 eval "set x $ac_configure_args"
23452 if test -n "$ac_prev"; then
23457 -cache-file | --cache-file | --cache-fil | --cache-fi \
23458 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23459 ac_prev=cache_file ;;
23460 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23461 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23464 --config-cache | -C)
23466 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23468 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23470 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23472 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23476 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23478 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23482 # Always prepend --prefix to ensure using the same prefix
23483 # in subdir configurations.
23484 ac_arg="--prefix=$prefix"
23486 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23488 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23491 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23493 # Do not complain, so a configure script can configure whichever
23494 # parts of a large source tree are present.
23495 test -d "$srcdir/$ac_dir" || continue
23497 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23498 echo "$as_me:$LINENO: $ac_msg" >&5
23502 -*) as_dir=./$as_dir;;
23504 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23508 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23509 *) as_qdir=$as_dir;;
23511 as_dirs="'$as_qdir' $as_dirs"
23512 as_dir=`$as_dirname -- "$as_dir" ||
23513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23514 X"$as_dir" : 'X\(//\)[^/]' \| \
23515 X"$as_dir" : 'X\(//\)$' \| \
23516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23522 /^X\(\/\/\)[^/].*/{
23535 test -d "$as_dir" && break
23537 test -z "$as_dirs" || eval "mkdir $as_dirs"
23538 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23539 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23540 { (exit 1); exit 1; }; }; }
23544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23547 # A ".." for each directory in $ac_dir_suffix.
23548 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23549 case $ac_top_builddir_sub in
23550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23554 ac_abs_top_builddir=$ac_pwd
23555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23556 # for backward compatibility:
23557 ac_top_builddir=$ac_top_build_prefix
23560 .) # We are building in place.
23562 ac_top_srcdir=$ac_top_builddir_sub
23563 ac_abs_top_srcdir=$ac_pwd ;;
23564 [\\/]* | ?:[\\/]* ) # Absolute name.
23565 ac_srcdir=$srcdir$ac_dir_suffix;
23566 ac_top_srcdir=$srcdir
23567 ac_abs_top_srcdir=$srcdir ;;
23568 *) # Relative name.
23569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23570 ac_top_srcdir=$ac_top_build_prefix$srcdir
23571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23578 # Check for guested configure; otherwise get Cygnus style configure.
23579 if test -f "$ac_srcdir/configure.gnu"; then
23580 ac_sub_configure=$ac_srcdir/configure.gnu
23581 elif test -f "$ac_srcdir/configure"; then
23582 ac_sub_configure=$ac_srcdir/configure
23583 elif test -f "$ac_srcdir/configure.in"; then
23584 # This should be Cygnus configure.
23585 ac_sub_configure=$ac_aux_dir/configure
23587 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23588 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23592 # The recursion is here.
23593 if test -n "$ac_sub_configure"; then
23594 # Make the cache file name correct relative to the subdirectory.
23595 case $cache_file in
23596 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23597 *) # Relative name.
23598 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23601 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23602 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23603 # The eval makes quoting arguments work.
23604 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23605 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23606 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23607 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23608 { (exit 1); exit 1; }; }